-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
83 lines (76 loc) · 2.52 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
import os
import sys
import setuptools
from setuptools import setup, find_packages
setuptools.dist.Distribution(dict(setup_requires='Babel')) # for message_extractors line below (else warnings / errors)
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.md')).read()
CHANGES = open(os.path.join(here, 'CHANGES.txt')).read()
requires = [
'pyramid',
'pyramid_debugtoolbar',
'waitress',
'Babel',
'lingua',
'simplejson',
'pillow',
'colander',
'qrcode',
]
#
# eggs that you need if you're running a version of python lower than 2.7
#
if sys.version_info[:2] < (2, 7):
requires.extend(['argparse>=1.2.1', 'unittest2>=0.5.1'])
#
# eggs you need for development, but not production
#
dev_extras = (
'zc.buildout',
'coverage>=3.5.2',
'fabric>=1.4.3',
'zest.releaser>=3.37',
'nose'
)
# when you run: bin/py setup.py extract_messages
# the setup's 'message_extractors' will lookin in the following places for _('Translate me') strings
# this then creates a template (example.pot) of translation text ... which can then feed into a .po file for each language
# @see: http://babel.edgewall.org/wiki/Documentation/setup.html#id7
# @see: http://blog.abourget.net/2011/1/13/pyramid-and-mako:-how-to-do-i18n-the-pylons-way/
find_translation_strings_in_these_files = {'.' : [
('ott/**.py', 'python', None),
('ott/**/templates/**.html', 'mako', None),
('ott/**/templates/**.mako', 'mako', None),
('ott/**/static/**', 'ignore', None)
]
}
setup(
name='ott.gtfs',
version='0.1.0',
description='Open Transit Tools - GTFS',
long_description=README + '\n\n' + CHANGES,
classifiers=[
"Programming Language :: Python",
"Framework :: Pyramid",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
],
author="Open Transit Tools",
author_email="[email protected]",
dependency_links=('http://opentransittools.com',),
license="Mozilla-derived (http://opentransittools.com)",
url='http://opentransittools.com',
keywords='ott, otp, gtfs, transit',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
install_requires=requires,
extras_require=dict(dev=dev_extras),
message_extractors = find_translation_strings_in_these_files,
tests_require=requires,
test_suite="ott.gtfs",
entry_points="""\
[paste.app_factory]
main = ott.gtfs.pyramid.config:main
""",
)