1import os 2 3from setuptools import setup, find_packages 4 5here = os.path.abspath(os.path.dirname(__file__)) 6with open(os.path.join(here, 'README.txt')) as f: 7 README = f.read() 8with open(os.path.join(here, 'CHANGES.txt')) as f: 9 CHANGES = f.read() 10 11requires = [ 12 'pyramid', 13 'pyramid_jinja2', 14 'pyramid_debugtoolbar', 15 'pyramid_tm', 16 'SQLAlchemy', 17 'transaction', 18 'zope.sqlalchemy', 19 'waitress', 20 ] 21 22tests_require = [ 23 'WebTest >= 1.3.1', # py3 compat 24 'pytest', # includes virtualenv 25 'pytest-cov', 26 ] 27 28setup(name='tutorial', 29 version='0.0', 30 description='tutorial', 31 long_description=README + '\n\n' + CHANGES, 32 classifiers=[ 33 "Programming Language :: Python", 34 "Framework :: Pyramid", 35 "Topic :: Internet :: WWW/HTTP", 36 "Topic :: Internet :: WWW/HTTP :: WSGI :: Application", 37 ], 38 author='', 39 author_email='', 40 url='', 41 keywords='web wsgi bfg pylons pyramid', 42 packages=find_packages(), 43 include_package_data=True, 44 zip_safe=False, 45 extras_require={ 46 'testing': tests_require, 47 }, 48 install_requires=requires, 49 entry_points="""\ 50 [paste.app_factory] 51 main = tutorial:main 52 [console_scripts] 53 initialize_tutorial_db = tutorial.scripts.initializedb:main 54 """, 55 ) 56