diff --git a/.gitignore b/.gitignore index 96831f3..227fb78 100644 --- a/.gitignore +++ b/.gitignore @@ -97,6 +97,10 @@ ENV/ # mkdocs documentation /site +/*.egg-info + +/dist/ + # mypy .mypy_cache/ .idead diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..9561fb1 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1 @@ +include README.rst diff --git a/README.rst b/README.rst new file mode 100644 index 0000000..41d0237 --- /dev/null +++ b/README.rst @@ -0,0 +1,4 @@ +Flask Now +-------- + +A simple Flask Application Generator via CLI. Check Github repository for more information. diff --git a/flask_now/.gitignore b/flask_now/.gitignore new file mode 100644 index 0000000..227fb78 --- /dev/null +++ b/flask_now/.gitignore @@ -0,0 +1,106 @@ +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +env/ +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +*.egg-info/ +.installed.cfg +*.egg + +# 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/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*.cover +.hypothesis/ + +# Translations +*.mo +*.pot + +# Django stuff: +*.log +local_settings.py + +# Flask stuff: +instance/ +.webassets-cache + +# Scrapy stuff: +.scrapy + +# Sphinx documentation +docs/_build/ + +# PyBuilder +target/ + +# Jupyter Notebook +.ipynb_checkpoints + +# pyenv +.python-version + +# celery beat schedule file +celerybeat-schedule + +# SageMath parsed files +*.sage.py + +# dotenv +.env + +# virtualenv +.venv +venv/ +ENV/ + +# Spyder project settings +.spyderproject +.spyproject + +# Rope project settings +.ropeproject + +# mkdocs documentation +/site + +/*.egg-info + +/dist/ + +# mypy +.mypy_cache/ +.idead diff --git a/flask_now/MANIFEST.in b/flask_now/MANIFEST.in new file mode 100644 index 0000000..9561fb1 --- /dev/null +++ b/flask_now/MANIFEST.in @@ -0,0 +1 @@ +include README.rst diff --git a/flask_now/README.rst b/flask_now/README.rst new file mode 100644 index 0000000..26f86eb --- /dev/null +++ b/flask_now/README.rst @@ -0,0 +1,4 @@ +Flask Now +-------- + +A simple Flask Application Generator via CLI. diff --git a/flask_now/architect.py b/flask_now/architect.py index 99a71a5..443e277 100644 --- a/flask_now/architect.py +++ b/flask_now/architect.py @@ -13,9 +13,6 @@ def __identify(self): if self.__architecture.lower() == "mvc": self.__create_mvc_architecture() - elif self.__architecture.lower == "mvvmr": - pass - #self.__create_mvvmr_achitecture() else: self.__create_simple_app() diff --git a/flask_now/parser.py b/flask_now/parser.py index 97ce5d9..41be2e5 100644 --- a/flask_now/parser.py +++ b/flask_now/parser.py @@ -18,7 +18,7 @@ def __init__(self): "mongokit","oauth","openid","pewee","ponywhoosh","principal","pymongo","queryinspect", "raptor","rest-jsonapi","restful","restless","script","seasurf","security","shelve", "sijax","sqlalchemy","sse","static-compress","stormpath","testing","themes","uploads", - "user","via","weasyprint","webtest","wtf","xml-rpc","zen","zodb","frozen-flask"] + "user","via","weasyprint","webtest","wtf","xml-rpc","zen","zodb","frozen"] def __read_package_list(self): if len(sys.argv) > 0: @@ -57,7 +57,7 @@ def __create_requirements(self): try: with open("requirements.txt", "a") as file: for package in self.__package_list: - if package == "frozen-flask": + if package == "frozen": file.write("frozen-flask \n") else: file.write("flask-" + package + "\n") diff --git a/setup.py b/setup.py index a396d03..30f7258 100644 --- a/setup.py +++ b/setup.py @@ -1,14 +1,29 @@ from setuptools import setup + +def readme(): + with open('README.rst') as readme: + return readme.read() + + setup(name='flask-now', - version='0.1', + version='0.1.3', description='Flask App Generator', + long_description=readme(), + classifiers=[ + 'Development Status :: 3 - Alpha', + 'Framework :: Flask', + 'License :: OSI Approved :: GNU General Public License v3 (GPLv3)', + 'Programming Language :: Python :: 3 :: Only', + 'Topic :: Software Development :: Code Generators', + ], + keywords='flask flask_now flask-now app-generator flask-app-generator app generator', url='http://github.com/ozanonurtek/flask-now', author='Ozan Onur Tek', author_email='ozanonurtek@gmail.com', - license='GPLv3', install_requires=[ 'flask' ], packages=['flask_now'], + include_package_data=True, zip_safe=False)