diff --git a/dev_requirements.txt b/dev_requirements.txt new file mode 100644 index 0000000..a34dabd --- /dev/null +++ b/dev_requirements.txt @@ -0,0 +1,20 @@ +# +# This file is autogenerated by pip-compile +# To update, run: +# +# pip-compile --output-file dev_requirements.txt dev_requirements.in +# +atomicwrites==1.1.5 # via pytest +attrs==18.1.0 # via pytest +click==6.7 # via pip-tools +coverage==4.5.1 # via pytest-cov +first==2.0.1 # via pip-tools +more-itertools==4.2.0 # via pytest +pip-tools==2.0.2 +pluggy==0.6.0 # via pytest, tox +py==1.5.3 # via pytest, tox +pytest-cov==2.5.1 +pytest==3.6.1 +six==1.11.0 # via more-itertools, pip-tools, pytest, tox +tox==3.0.0 +virtualenv==16.0.0 # via tox diff --git a/requirements.txt b/requirements.txt index 7cd2fcb..34f5d36 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,27 +1,29 @@ -alembic==0.9.9 -apistar==0.5.18 -apistar-mail==0.3.0 +# +# This file is autogenerated by pip-compile +# To update, run: +# +# pip-compile --output-file requirements.txt setup.py +# apistar-jwt==0.4.2 +apistar-mail==0.3.0 +apistar==0.5.18 bcrypt==3.1.4 -certifi==2018.4.16 -cffi==1.11.5 -chardet==3.0.4 -click==6.7 -idna==2.6 -Jinja2==2.10 -Logbook==1.3.3 -Mako==1.0.7 -MarkupSafe==1.0 -psycopg2-binary==2.7.4 -pycparser==2.18 -PyJWT==1.6.1 -python-dateutil==2.7.2 -python-editor==1.0.3 -pyyaml==3.12 -requests==2.18.4 -six==1.11.0 -SQLAlchemy==1.2.7 -urllib3==1.22 -Werkzeug==0.14.1 -whitenoise==3.3.1 +certifi==2018.4.16 # via requests +cffi==1.11.5 # via bcrypt +chardet==3.0.4 # via requests +click==6.7 # via apistar +idna==2.6 # via requests itsdangerous==0.24 +jinja2==2.10 # via apistar +logbook==1.3.3 +markupsafe==1.0 # via jinja2 +psycopg2-binary==2.7.4 +pycparser==2.18 # via cffi +pyjwt==1.6.4 # via apistar-jwt +pyyaml==3.12 # via apistar +requests==2.18.4 # via apistar +six==1.11.0 # via bcrypt +sqlalchemy==1.2.7 +urllib3==1.22 # via requests +werkzeug==0.14.1 # via apistar +whitenoise==3.3.1 # via apistar diff --git a/setup.py b/setup.py index 383371f..efdc92a 100644 --- a/setup.py +++ b/setup.py @@ -3,8 +3,16 @@ from setuptools import setup, find_packages with open('README.md') as readme_file: readme = readme_file.read() -# with open('requirements.txt') as requirements_file: -# requirements = requirements_file.read() +requirements = [ + 'apistar-jwt==0.4.2', + 'apistar-mail==0.3.0', + 'apistar==0.5.18', + 'bcrypt==3.1.4', + 'itsdangerous==0.24', + 'logbook==1.3.3', + 'psycopg2-binary==2.7.4', + 'sqlalchemy==1.2.7', +] test_requirements = [ 'pytest', @@ -23,10 +31,11 @@ setup( maintainer='Drew Bednar', maintainer_email='drew@androiddrew.com', url='https://git.androiddrew.com/androiddrew/cookie-api', - packages=find_packages(), + packages=find_packages(exclude=['tests']), include_package_data=True, - # install_requires=requirements, + install_requires=requirements, license='MIT', + zip_safe=False, classifiers=[ 'Development Status :: 2 - Pre-Alpha', 'Environment :: Web Environment', @@ -38,5 +47,10 @@ setup( ], extras_require={ 'testing': test_requirements, + }, + entry_points={ + 'console_scripts': [ + 'wsgi_runner=wsgi:main' + ] } ) diff --git a/wsgi.py b/wsgi.py index e804980..e49a085 100644 --- a/wsgi.py +++ b/wsgi.py @@ -26,5 +26,10 @@ hooks = [ app = application_factory(components=components, hooks=hooks) -if __name__ == '__main__': + +def main(): app.serve('0.0.0.0', 5000, debug=True) + + +if __name__ == '__main__': + main() \ No newline at end of file