setup.py 2.5KB

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