setup.py 2.2KB

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