123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- # -*- coding: utf-8 -*-
- #quickstarted Options:
- #
- # sqlalchemy: True
- # auth: sqlalchemy
- # mako: True
- #
- #
-
- from setuptools.command.develop import develop
- #This is just a work-around for a Python2.7 issue causing
- #interpreter crash at exit when trying to log an info message.
- try:
- import logging
- import multiprocessing
- except:
- pass
-
- import sys
- py_version = sys.version_info[:2]
-
- try:
- from setuptools import setup, find_packages
- except ImportError:
- from ez_setup import use_setuptools
- use_setuptools()
- from setuptools import setup, find_packages
-
-
- class DevelopWithCompileCatalog(develop):
- def run(self):
- from babel.messages.frontend import compile_catalog
- compiler = compile_catalog(self.distribution)
- option_dict = self.distribution.get_option_dict('compile_catalog')
- compiler.domain = option_dict['domain'][1]
- compiler.directory = option_dict['directory'][1]
- compiler.run()
- super().run()
-
- classifiers = [
- "License :: OSI Approved :: GNU Affero General Public License v3",
- "Programming Language :: Python",
- "Programming Language :: Python :: 3.4",
- "Programming Language :: Python :: 3.5",
- "Programming Language :: Python :: 3.6",
- ]
-
- testpkgs=['WebTest >= 1.2.3',
- 'nose',
- 'coverage',
- 'gearbox'
- ]
-
- install_requires=[
- "TurboGears2==2.3.7",
- "Genshi",
- "Mako",
- "zope.sqlalchemy >= 0.4",
- "sqlalchemy",
- "alembic",
- "repoze.who",
- "who_ldap>=3.2.1",
- "python-ldap-test==0.2.1",
- "unicode-slugify==0.1.3",
- "pytz==2014.7",
- 'rq==0.7.1',
- 'filedepot>=0.5.0',
- 'preview-generator'
- ]
-
- setup_requires = [
- 'babel',
- ],
-
- setup(
- name='tracim',
- version='1.0.0',
- description='Tracim is plateform software designed to improve traceability and productivity in collaborative work.',
- author='Damien ACCORSI',
- author_email='damien.accorsi@free.fr',
- url='https://github.com/tracim/tracim',
- packages=find_packages(exclude=['ez_setup']),
- install_requires=install_requires,
- include_package_data=True,
- test_suite='nose.collector',
- tests_require=testpkgs,
- package_data={'tracim': ['i18n/*/LC_MESSAGES/*.mo',
- 'templates/*/*',
- 'public/*/*']},
- message_extractors={'tracim': [
- ('**.py', 'python', None),
- ('templates/**.mak', 'mako', {'input_encoding': 'utf-8'}),
- ('public/**', 'ignore', None)]},
-
- entry_points={
- 'paste.app_factory': [
- 'main = tracim.config.middleware:make_app'
- ],
- 'gearbox.plugins': [
- 'turbogears-devtools = tg.devtools'
- ],
- 'gearbox.commands': [
- 'ldap_server = tracim.command.ldap_test_server:LDAPTestServerCommand',
- 'user_create = tracim.command.user:CreateUserCommand',
- 'user_update = tracim.command.user:UpdateUserCommand',
- 'mail sender = tracim.command.mail:MailSenderCommend',
- ]
- },
- dependency_links=[
- 'http://github.com/algoo/preview-generator/tarball/master#egg=preview_generator-1.0',
- ],
- zip_safe=False,
- cmdclass={
- 'develop': DevelopWithCompileCatalog,
- },
- )
|