setup.py 2.2KB

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