From: gamesguru Date: Sat, 13 Mar 2021 16:02:44 +0000 (-0500) Subject: make packagable X-Git-Tag: 0.0.1~9 X-Git-Url: https://git.nutra.tk/v1?a=commitdiff_plain;h=e1f7ad04c798c11002349f4e475e0b491babc849;p=nutratech%2Fnt-sqlite.git make packagable --- diff --git a/.gitignore b/.gitignore index a4e0d32..a48b547 100644 --- a/.gitignore +++ b/.gitignore @@ -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 index 0000000..0e5c533 --- /dev/null +++ b/__init__.py @@ -0,0 +1,7 @@ +#!/usr/bin/env python3 + + +if __name__ == "__main__": + from sql import build_ntsqlite + + build_ntsqlite() diff --git a/sql/build.py b/sql/__init__.py old mode 100755 new mode 100644 similarity index 96% rename from sql/build.py rename to sql/__init__.py index ba4b2b7..1ef8160 --- a/sql/build.py +++ b/sql/__init__.py @@ -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()