You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
96 lines
2.2 KiB
96 lines
2.2 KiB
#!/usr/bin/env python |
|
# -*- coding: utf-8 -*- |
|
|
|
''' The setup script. ''' |
|
|
|
from setuptools import setup, find_packages |
|
|
|
with open('README.rst') as readme_file: |
|
readme = readme_file.read() |
|
|
|
with open('HISTORY.rst') as history_file: |
|
history = history_file.read() |
|
|
|
requirements = [ |
|
'deform', |
|
'passlib[argon2, bcrypt]', |
|
'pyramid', |
|
'pyramid_jinja2', |
|
'pyramid_debugtoolbar', |
|
'pyramid_mailer', |
|
'pyramid_nacl_session', |
|
'pyramid_tm', |
|
'SQLAlchemy', |
|
'transaction', |
|
'waitress', |
|
'zope.sqlalchemy', |
|
] |
|
|
|
setup_requirements = [ |
|
'pytest-runner', |
|
# TODO(holgi): put setup requirements (distutils extensions, etc.) here |
|
] |
|
|
|
test_requirements = [ |
|
'WebTest >= 1.3.1', # py3 compat |
|
'pytest', |
|
'pytest-cov', |
|
# TODO: put package test requirements here |
|
] |
|
|
|
extras_requirements = { |
|
'tests': test_requirements |
|
} |
|
|
|
setup( |
|
name='ordr2', |
|
|
|
version='0.0.1', |
|
|
|
description='CPI Ordering System', |
|
long_description=readme + '\n\n' + history, |
|
|
|
author='Holger Frey', |
|
author_email='frey@imtek.de', |
|
url='https://github.com/holgi/ordr2', |
|
|
|
packages=find_packages(include=['ordr2']), |
|
|
|
include_package_data=True, |
|
install_requires=requirements, |
|
license='BSD license', |
|
|
|
zip_safe=False, |
|
|
|
keywords='ordr2 web pyramid pylons', |
|
|
|
# see https://pypi.python.org/pypi?%3Aaction=list_classifiers |
|
classifiers=[ |
|
'Development Status :: 2 - Pre-Alpha', |
|
'Intended Audience :: Developers', |
|
'License :: OSI Approved :: BSD License', |
|
'Natural Language :: English', |
|
'Programming Language :: Python :: 3', |
|
'Programming Language :: Python :: 3.4', |
|
'Programming Language :: Python :: 3.5', |
|
'Programming Language :: Python :: 3.6', |
|
'Framework :: Pyramid', |
|
'Topic :: Internet :: WWW/HTTP', |
|
'Topic :: Internet :: WWW/HTTP :: WSGI :: Application', |
|
], |
|
|
|
test_suite='tests', |
|
tests_require=test_requirements, |
|
|
|
extras_require = extras_requirements, |
|
|
|
setup_requires=setup_requirements, |
|
entry_points={ |
|
'paste.app_factory': [ |
|
'main = ordr2:main', |
|
], |
|
'console_scripts': [ |
|
'initialize_ordr2_db = ordr2.scripts.initializedb:main', |
|
], |
|
}, |
|
)
|
|
|