setup.py 1.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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.txt')) 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. ]
  24. tests_require = [
  25. 'WebTest >= 1.3.1', # py3 compat
  26. 'pytest',
  27. 'pytest-cov',
  28. 'nose',
  29. ]
  30. # Python version adaptations
  31. if sys.version_info < (3, 5):
  32. requires.append('typing')
  33. setup(
  34. name='tracim',
  35. version='0.0',
  36. description='tracim',
  37. long_description=README + '\n\n' + CHANGES,
  38. classifiers=[
  39. 'Programming Language :: Python',
  40. 'Framework :: Pyramid',
  41. 'Topic :: Internet :: WWW/HTTP',
  42. 'Topic :: Internet :: WWW/HTTP :: WSGI :: Application',
  43. ],
  44. author='',
  45. author_email='',
  46. url='',
  47. keywords='web pyramid pylons',
  48. packages=find_packages(),
  49. include_package_data=True,
  50. zip_safe=False,
  51. extras_require={
  52. 'testing': tests_require,
  53. },
  54. install_requires=requires,
  55. entry_points={
  56. 'paste.app_factory': [
  57. 'main = tracim:main',
  58. ],
  59. 'console_scripts': [
  60. 'initialize_tracim_db = tracim.scripts.initializedb:main',
  61. ],
  62. },
  63. )