setup.py 1.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. import os
  2. import sys
  3. from setuptools import setup, find_packages
  4. here = os.path.abspath(os.path.dirname(__file__))
  5. with open(os.path.join(here, 'README.txt')) as f:
  6. README = f.read()
  7. with open(os.path.join(here, 'CHANGES.txt')) as f:
  8. CHANGES = f.read()
  9. requires = [
  10. 'plaster_pastedeploy',
  11. 'pyramid >= 1.9a',
  12. 'pyramid_debugtoolbar',
  13. 'pyramid_jinja2',
  14. 'pyramid_retry',
  15. 'pyramid_tm',
  16. 'SQLAlchemy',
  17. 'transaction',
  18. 'zope.sqlalchemy',
  19. 'waitress',
  20. 'filedepot',
  21. 'babel',
  22. 'alembic',
  23. ]
  24. tests_require = [
  25. 'WebTest >= 1.3.1', # py3 compat
  26. 'pytest',
  27. 'pytest-cov',
  28. 'nose',
  29. 'pep8',
  30. 'mypy',
  31. ]
  32. # Python version adaptations
  33. if sys.version_info < (3, 5):
  34. requires.append('typing')
  35. setup(
  36. name='tracim_backend',
  37. version='1.9.1',
  38. description='Rest API (Back-end) of Tracim v2',
  39. long_description=README + '\n\n' + CHANGES,
  40. classifiers=[
  41. 'Development Status :: 2 - Pre-Alpha',
  42. 'Programming Language :: Python',
  43. "Programming Language :: Python :: 3.4",
  44. "Programming Language :: Python :: 3.5",
  45. "Programming Language :: Python :: 3.6",
  46. 'Framework :: Pyramid',
  47. 'Topic :: Internet :: WWW/HTTP',
  48. 'Topic :: Internet :: WWW/HTTP :: WSGI :: Application',
  49. 'Topic :: Communications :: File Sharing',
  50. 'Topic :: Communications',
  51. 'License :: OSI Approved :: MIT License',
  52. ],
  53. author='',
  54. author_email='',
  55. url='https://github.com/tracim/tracim_backend',
  56. keywords='web pyramid tracim ',
  57. packages=find_packages(),
  58. include_package_data=True,
  59. zip_safe=False,
  60. extras_require={
  61. 'testing': tests_require,
  62. },
  63. install_requires=requires,
  64. entry_points={
  65. 'paste.app_factory': [
  66. 'main = tracim:main',
  67. ],
  68. 'console_scripts': [
  69. 'initialize_tracim_db = tracim.scripts.initializedb:main',
  70. ],
  71. },
  72. )