setup.py 2.4KB

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