setup.py 1.5KB

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