setup.py 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. ]
  30. # Python version adaptations
  31. if sys.version_info < (3, 5):
  32. requires.append('typing')
  33. setup(
  34. name='tracim_backend',
  35. version='1.9.1',
  36. description='Rest API (Back-end) of Tracim v2',
  37. long_description=README + '\n\n' + CHANGES,
  38. classifiers=[
  39. 'Development Status :: 2 - Pre-Alpha',
  40. 'Programming Language :: Python',
  41. "Programming Language :: Python :: 3.4",
  42. "Programming Language :: Python :: 3.5",
  43. "Programming Language :: Python :: 3.6",
  44. 'Framework :: Pyramid',
  45. 'Topic :: Internet :: WWW/HTTP',
  46. 'Topic :: Internet :: WWW/HTTP :: WSGI :: Application',
  47. 'Topic :: Communications :: File Sharing',
  48. 'Topic :: Communications',
  49. 'License :: OSI Approved :: MIT License',
  50. ],
  51. author='',
  52. author_email='',
  53. url='https://github.com/tracim/tracim_backend',
  54. keywords='web pyramid tracim ',
  55. packages=find_packages(),
  56. include_package_data=True,
  57. zip_safe=False,
  58. extras_require={
  59. 'testing': tests_require,
  60. },
  61. install_requires=requires,
  62. entry_points={
  63. 'paste.app_factory': [
  64. 'main = tracim:main',
  65. ],
  66. 'console_scripts': [
  67. 'initialize_tracim_db = tracim.scripts.initializedb:main',
  68. ],
  69. },
  70. )