#!/usr/bin/env python # -*- coding: utf-8 -*- """Transifex's setup script. See the README and INSTALL files for installation details. """ from ez_setup import use_setuptools use_setuptools() from setuptools import setup, find_packages from turbogears.finddata import find_package_data from codecs import BOM import glob long_description=""" Transifex is a highly scalable localization platform with a focus on integrating well with the existing workflow of both translators and developers. It aims in making it dead-simple for content providers to receive quality translations from big translation communities, no matter where the project is hosted. """ readme_file = open(u'README') long_description = readme_file.read() readme_file.close() if long_description.startswith(BOM): long_description = long_description.lstrip(BOM) long_description.decode('utf-8') package_data = { '': ['*.cfg', 'LICENCE', 'INSTALL', 'NEWS', 'README'], } package_data.update(find_package_data(where='transifex', package='transifex')) conf_files = glob.glob('*.cfg') conf_files.extend(['INSTALL', 'LICENSE', 'README']) setup( name="transifex", #Change this for every release version="devel", description="A system for distributed translation submissions", long_description=long_description, author="Dimitris Glezos and the Transifex community", author_email="dimitris@glezos.com", url="http://transifex.org", download_url="http://transifex.org/files", license="GPL", install_requires = [ "TurboGears >= 1.0.4", "Genshi >= 0.4.4", "SQLAlchemy >= 0.4.6", "ToscaWidgets >= 0.9.2", "tw.forms >= 0.9.1", "Pygments >= 0.9", "Babel >= 0.9", ], scripts = [ "ez_setup.py", "tx-i18n.py", "tx-init.py", "tx-start.py", ], # extras_require = { # 'syntaxhighlight': ["Pygments >= 0.9"], # 'i18n': ["Babel >= 0.9"], # }, # entry_points = { # 'console_scripts': # ['i18n = transifex.tools.i18n [syntaxhighlight]'], # }, data_files = [('po/data', glob.glob('po/data/*'),), ('po/view', glob.glob('po/view/*'),), ('conf', conf_files), ], zip_safe=False, packages=find_packages(), include_package_data=True, package_data = package_data, keywords = ( 'turbogears.app', 'translation localization internationalization vcs',), classifiers = [ 'Development Status :: 4 - Beta', 'Environment :: Web Environment', 'Framework :: TurboGears', 'Intended Audience :: Developers', 'License :: OSI Approved :: GNU General Public License (GPL)', 'Operating System :: OS Independent', 'Programming Language :: Python', 'Topic :: Software Development :: Localization', 'Topic :: Software Development :: Internationalization', 'Topic :: Software Development :: Libraries :: Python Modules', 'Natural Language :: German', 'Natural Language :: Greek', 'Natural Language :: English', 'Natural Language :: Hungarian', 'Natural Language :: Italian', 'Natural Language :: Malay', 'Natural Language :: Portuguese (Brazilian)', 'Natural Language :: Serbian', ], test_suite = 'nose.collector', )