setup.py 2.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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. 'requests'
  47. ]
  48. mysql_require = [
  49. 'PyMySQL'
  50. ]
  51. postgresql_require = [
  52. 'psycopg2',
  53. ]
  54. # Python version adaptations
  55. if sys.version_info < (3, 5):
  56. requires.append('typing')
  57. setup(
  58. name='tracim_backend',
  59. version='1.9.1',
  60. description='Rest API (Back-end) of Tracim v2',
  61. long_description=README + '\n\n' + CHANGES,
  62. classifiers=[
  63. 'Development Status :: 2 - Pre-Alpha',
  64. 'Programming Language :: Python',
  65. "Programming Language :: Python :: 3.4",
  66. "Programming Language :: Python :: 3.5",
  67. "Programming Language :: Python :: 3.6",
  68. 'Framework :: Pyramid',
  69. 'Topic :: Internet :: WWW/HTTP',
  70. 'Topic :: Internet :: WWW/HTTP :: WSGI :: Application',
  71. 'Topic :: Communications :: File Sharing',
  72. 'Topic :: Communications',
  73. 'License :: OSI Approved :: MIT License',
  74. ],
  75. author='',
  76. author_email='',
  77. url='https://github.com/tracim/tracim_backend',
  78. keywords='web pyramid tracim ',
  79. packages=find_packages(),
  80. include_package_data=True,
  81. zip_safe=False,
  82. extras_require={
  83. 'testing': tests_require,
  84. 'mysql': mysql_require,
  85. 'postgresql': postgresql_require,
  86. },
  87. install_requires=requires,
  88. entry_points={
  89. 'paste.app_factory': [
  90. 'main = tracim:main',
  91. ],
  92. 'console_scripts': [
  93. 'tracimcli = tracim.command:main',
  94. ],
  95. 'tracimcli': [
  96. 'test = tracim.command:TestTracimCommand',
  97. 'user_create = tracim.command.user:CreateUserCommand',
  98. 'user_update = tracim.command.user:UpdateUserCommand',
  99. 'db_init = tracim.command.database:InitializeDBCommand',
  100. 'db_delete = tracim.command.database:DeleteDBCommand',
  101. 'webdav start = tracim.command.webdav:WebdavRunnerCommand',
  102. ]
  103. },
  104. )