make packagable
authorgamesguru <mathmuncher11@gmail.com>
Sat, 13 Mar 2021 16:02:44 +0000 (11:02 -0500)
committergamesguru <mathmuncher11@gmail.com>
Sat, 13 Mar 2021 16:02:44 +0000 (11:02 -0500)
.gitignore
__init__.py [new file with mode: 0755]
sql/__init__.py [moved from sql/build.py with 96% similarity, mode: 0644]

index a4e0d3274e7f36d3df4542dc2bd684e3d818cf4a..a48b547e03ca42980eec539334dbf46080315ffd 100644 (file)
@@ -3,6 +3,124 @@
 ._*
 .DS_Store
 
-# Database files
+# Other files
 *.sqlite*
+.vscode/
 
+
+####################
+## Python Ignores ##
+####################
+
+# Byte-compiled / optimized / DLL files
+__pycache__/
+*.py[cod]
+*$py.class
+
+# C extensions
+*.so
+
+# Distribution / packaging
+.Python
+build/
+develop-eggs/
+dist/
+downloads/
+eggs/
+.eggs/
+lib/
+lib64/
+parts/
+sdist/
+var/
+wheels/
+*.egg-info/
+.installed.cfg
+*.egg
+MANIFEST
+
+# PyInstaller
+#  Usually these files are written by a python script from a template
+#  before PyInstaller builds the exe, so as to inject date/other infos into it.
+*.manifest
+*.spec
+
+# Installer logs
+pip-log.txt
+pip-delete-this-directory.txt
+
+# Unit test / coverage reports
+htmlcov/
+.tox/
+.nox/
+.coverage
+.coverage.*
+.cache
+nosetests.xml
+coverage.xml
+*.cover
+.hypothesis/
+.pytest_cache/
+Pipfile*
+
+# Translations
+*.mo
+*.pot
+
+# Django stuff:
+*.log
+local_settings.py
+db.sqlite3
+
+# Flask stuff:
+instance/
+.webassets-cache
+
+# Scrapy stuff:
+.scrapy
+
+# Sphinx documentation
+docs/_build/
+
+# PyBuilder
+target/
+
+# Jupyter Notebook
+.ipynb_checkpoints
+
+# IPython
+profile_default/
+ipython_config.py
+
+# pyenv
+.python-version
+
+# celery beat schedule file
+celerybeat-schedule
+
+# SageMath parsed files
+*.sage.py
+
+# Environments
+.env
+.venv
+env/
+venv/
+ENV/
+env.bak/
+venv.bak/
+
+# Spyder project settings
+.spyderproject
+.spyproject
+
+# Rope project settings
+.ropeproject
+
+# mkdocs documentation
+/site
+
+# mypy
+.mypy_cache/
+.dmypy.json
+dmypy.json
diff --git a/__init__.py b/__init__.py
new file mode 100755 (executable)
index 0000000..0e5c533
--- /dev/null
@@ -0,0 +1,7 @@
+#!/usr/bin/env python3
+
+
+if __name__ == "__main__":
+    from sql import build_ntsqlite
+
+    build_ntsqlite()
old mode 100755 (executable)
new mode 100644 (file)
similarity index 96%
rename from sql/build.py
rename to sql/__init__.py
index ba4b2b7..1ef8160
@@ -4,7 +4,7 @@ import os
 import sqlite3
 
 
-def main():
+def build_ntsqlite():
     # cd into this script's directory
     SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
     os.chdir(SCRIPT_DIR)
@@ -43,4 +43,4 @@ def main():
 
 
 if __name__ == "__main__":
-    main()
+    build_ntsqlite()