A webapp/form for people to join pEp coop. Fork of Cultural Commons Collecting Society (C3S) SCE
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

setup.py 2.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. import os
  2. import sys
  3. from setuptools import setup, find_packages
  4. here = os.path.abspath(os.path.dirname(__file__))
  5. README = open(os.path.join(here, 'README.rst')).read()
  6. CHANGES = open(os.path.join(here, 'CHANGES.rst')).read()
  7. VERSION = open(os.path.join(here, 'VERSION')).read()
  8. requires = [
  9. 'alembic==0.8.10', # migrate the database when introducing new fields
  10. 'Babel',
  11. 'colander==1.0',
  12. 'cornice==0.17',
  13. 'cryptacular==1.4.1',
  14. 'deform==2.0a2', # should get deform-2.0...
  15. 'fdfgen==0.11.0',
  16. 'lingua==1.5', # stick to 1.5 for now. TODO: learn to use 2.1/2.3
  17. 'pycountry', # replacing 'webhelpers',
  18. 'pyramid==1.5.2', # use pyramid 1.5.2
  19. 'pyramid_beaker==0.8',
  20. 'pyramid_chameleon==0.3', # 'pyramid 1.5 extension'
  21. 'pyramid_debugtoolbar==2.2.2',
  22. 'pyramid_mailer==0.13.', # maybe not the last version to work
  23. 'pyramid_tm==0.8',
  24. 'python-gnupg==0.4.2',
  25. 'repoze.sendmail==4.1', # pin to 4.1 because of repoze/repoze.sendmail#31
  26. # see https://github.com/repoze/repoze.sendmail/issues/31
  27. 'SQLAlchemy==1.0.9',
  28. 'transaction==1.4.3',
  29. 'unicodecsv==0.9.4',
  30. 'venusian==1.0',
  31. 'waitress==0.8.9',
  32. 'zope.sqlalchemy==0.7.5',
  33. ]
  34. # for the translations machinery using transifex you also need to
  35. # "pip install transifex-client"
  36. test_requirements = [
  37. 'coverage',
  38. 'nose',
  39. 'pdfminer', # and its dependency
  40. 'mock', # for creating mock objects
  41. 'pyquery',
  42. 'selenium',
  43. 'slate', # pdf to text helper
  44. 'webtest',
  45. ]
  46. docs_require = [
  47. 'sphinx', # for generating the documentation
  48. 'sphinxcontrib-plantuml',
  49. ]
  50. if sys.version_info[:3] < (2, 5, 0):
  51. requires.append('pysqlite')
  52. setup(name='c3smembership',
  53. version=VERSION,
  54. description='Membership Form for C3S (form, PDF, email)',
  55. long_description=README + '\n\n' + CHANGES,
  56. classifiers=[
  57. "Programming Language :: Python",
  58. "Framework :: Pylons",
  59. "Topic :: Internet :: WWW/HTTP",
  60. "Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
  61. ],
  62. author='Christoph Scheid',
  63. author_email='christoph@c3s.cc',
  64. url='https://yes.c3s.cc',
  65. keywords='web wsgi bfg pylons pyramid',
  66. packages=find_packages(),
  67. include_package_data=True,
  68. zip_safe=False,
  69. test_suite='c3smembership',
  70. install_requires=requires + test_requirements + docs_require,
  71. entry_points="""\
  72. [paste.app_factory]
  73. main = c3smembership:main
  74. [console_scripts]
  75. initialize_c3sMembership_db = c3smembership.scripts.initialize_db:main
  76. """,
  77. # http://opkode.com/media/blog/
  78. # using-extract_messages-in-your-python-egg-with-a-src-directory
  79. message_extractors={
  80. 'c3smembership': [
  81. ('**.py', 'lingua_python', None),
  82. ('**.pt', 'lingua_xml', None),
  83. ]},
  84. )