setup.py 2.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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.md')) as f:
  6. README = f.read()
  7. with open(os.path.join(here, 'CHANGES.txt')) as f:
  8. CHANGES = f.read()
  9. requires = [
  10. # pyramid
  11. 'plaster_pastedeploy',
  12. 'pyramid >= 1.9a',
  13. 'pyramid_debugtoolbar',
  14. 'pyramid_jinja2',
  15. 'pyramid_retry',
  16. 'waitress',
  17. # Database
  18. 'pyramid_tm',
  19. 'SQLAlchemy',
  20. 'transaction',
  21. 'zope.sqlalchemy',
  22. 'alembic',
  23. # API
  24. 'hapic',
  25. 'marshmallow <3.0.0a1,>2.0.0',
  26. # CLI
  27. 'cliff',
  28. # Webdav
  29. 'wsgidav',
  30. 'PyYAML',
  31. # others
  32. 'filedepot',
  33. 'babel',
  34. # mail-notifier
  35. 'mako',
  36. 'lxml',
  37. 'redis',
  38. 'rq',
  39. ]
  40. tests_require = [
  41. 'WebTest >= 1.3.1', # py3 compat
  42. 'pytest',
  43. 'pytest-cov',
  44. 'pep8',
  45. 'mypy',
  46. ]
  47. mysql_require = [
  48. 'PyMySQL'
  49. ]
  50. postgresql_require = [
  51. 'psycopg2',
  52. ]
  53. # Python version adaptations
  54. if sys.version_info < (3, 5):
  55. requires.append('typing')
  56. setup(
  57. name='tracim_backend',
  58. version='1.9.1',
  59. description='Rest API (Back-end) of Tracim v2',
  60. long_description=README + '\n\n' + CHANGES,
  61. classifiers=[
  62. 'Development Status :: 2 - Pre-Alpha',
  63. 'Programming Language :: Python',
  64. "Programming Language :: Python :: 3.4",
  65. "Programming Language :: Python :: 3.5",
  66. "Programming Language :: Python :: 3.6",
  67. 'Framework :: Pyramid',
  68. 'Topic :: Internet :: WWW/HTTP',
  69. 'Topic :: Internet :: WWW/HTTP :: WSGI :: Application',
  70. 'Topic :: Communications :: File Sharing',
  71. 'Topic :: Communications',
  72. 'License :: OSI Approved :: MIT License',
  73. ],
  74. author='',
  75. author_email='',
  76. url='https://github.com/tracim/tracim_backend',
  77. keywords='web pyramid tracim ',
  78. packages=find_packages(),
  79. include_package_data=True,
  80. zip_safe=False,
  81. extras_require={
  82. 'testing': tests_require,
  83. 'mysql': mysql_require,
  84. 'postgresql': postgresql_require,
  85. },
  86. install_requires=requires,
  87. entry_points={
  88. 'paste.app_factory': [
  89. 'main = tracim:main',
  90. ],
  91. 'console_scripts': [
  92. 'tracimcli = tracim.command:main',
  93. ],
  94. 'tracimcli': [
  95. 'test = tracim.command:TestTracimCommand',
  96. 'user_create = tracim.command.user:CreateUserCommand',
  97. 'user_update = tracim.command.user:UpdateUserCommand',
  98. 'db_init = tracim.command.database:InitializeDBCommand',
  99. 'db_delete = tracim.command.database:DeleteDBCommand',
  100. 'webdav start = tracim.command.webdav:WebdavRunnerCommand',
  101. ]
  102. },
  103. )