annotate setup.py @ 609:01a75fec90f0 stable-0.9.x tip

merge r661 from trunk into 0.9 maintenance branch
author fschwarz
date Mon, 15 Oct 2012 20:04:21 +0000
parents a77788477cab
children
rev   line source
1
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
1 #!/usr/bin/env python
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
2 # -*- coding: utf-8 -*-
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
3 #
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
4 # Copyright (C) 2007 Edgewall Software
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
5 # All rights reserved.
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
6 #
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
7 # This software is licensed as described in the file COPYING, which
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
8 # you should have received as part of this distribution. The terms
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
9 # are also available at http://babel.edgewall.org/wiki/License.
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
10 #
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
11 # This software consists of voluntary contributions made by many
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
12 # individuals. For the exact contribution history, see the revision
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
13 # history and logs, available at http://babel.edgewall.org/log/.
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
14
12
e6ba3e878b10 * Removed pkg_resources/setuptools requirement from various places.
cmlenz
parents: 1
diff changeset
15 from distutils.cmd import Command
1
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
16 import doctest
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
17 from glob import glob
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
18 import os
12
e6ba3e878b10 * Removed pkg_resources/setuptools requirement from various places.
cmlenz
parents: 1
diff changeset
19 try:
e6ba3e878b10 * Removed pkg_resources/setuptools requirement from various places.
cmlenz
parents: 1
diff changeset
20 from setuptools import setup
e6ba3e878b10 * Removed pkg_resources/setuptools requirement from various places.
cmlenz
parents: 1
diff changeset
21 except ImportError:
e6ba3e878b10 * Removed pkg_resources/setuptools requirement from various places.
cmlenz
parents: 1
diff changeset
22 from distutils.core import setup
1
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
23 import sys
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
24
236
cf64577122b7 Documentation stuff moved to a shared repository.
cmlenz
parents: 233
diff changeset
25 sys.path.append(os.path.join('doc', 'common'))
cf64577122b7 Documentation stuff moved to a shared repository.
cmlenz
parents: 233
diff changeset
26 try:
cf64577122b7 Documentation stuff moved to a shared repository.
cmlenz
parents: 233
diff changeset
27 from doctools import build_doc, test_doc
cf64577122b7 Documentation stuff moved to a shared repository.
cmlenz
parents: 233
diff changeset
28 except ImportError:
cf64577122b7 Documentation stuff moved to a shared repository.
cmlenz
parents: 233
diff changeset
29 build_doc = test_doc = None
1
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
30
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
31
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
32 setup(
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
33 name = 'Babel',
462
a77788477cab This is 0.9.6 development.
jruigrok
parents: 457
diff changeset
34 version = '0.9.6',
1
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
35 description = 'Internationalization utilities',
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
36 long_description = \
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
37 """A collection of tools for internationalizing Python applications.""",
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
38 author = 'Edgewall Software',
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
39 author_email = 'info@edgewall.org',
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
40 license = 'BSD',
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
41 url = 'http://babel.edgewall.org/',
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
42 download_url = 'http://babel.edgewall.org/wiki/Download',
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
43 zip_safe = False,
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
44
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
45 classifiers = [
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
46 'Development Status :: 4 - Beta',
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
47 'Environment :: Web Environment',
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
48 'Intended Audience :: Developers',
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
49 'License :: OSI Approved :: BSD License',
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
50 'Operating System :: OS Independent',
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
51 'Programming Language :: Python',
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
52 'Topic :: Software Development :: Libraries :: Python Modules',
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
53 ],
54
7dbcbc3f07e0 Rename the `babel.catalog` package to `babel.messages` for consistency with the other package names.
cmlenz
parents: 52
diff changeset
54 packages = ['babel', 'babel.messages'],
233
da97a3138239 Upgraded to CLDR 1.5 and improved timezone formatting.
cmlenz
parents: 220
diff changeset
55 package_data = {'babel': ['global.dat', 'localedata/*.dat']},
1
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
56 test_suite = 'babel.tests.suite',
400
cdf6daa1e3cc Ported [438] and [439] back to 0.9.x branch.
cmlenz
parents: 383
diff changeset
57 tests_require = ['pytz'],
1
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
58
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
59 entry_points = """
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
60 [console_scripts]
189
cdb266cd9a19 Rename command-line script to avoid conflict with the OpenBabel project. Closes #34.
cmlenz
parents: 181
diff changeset
61 pybabel = babel.messages.frontend:main
1
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
62
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
63 [distutils.commands]
160
23005b4efc99 Add MO file generation. Closes #21.
cmlenz
parents: 141
diff changeset
64 compile_catalog = babel.messages.frontend:compile_catalog
54
7dbcbc3f07e0 Rename the `babel.catalog` package to `babel.messages` for consistency with the other package names.
cmlenz
parents: 52
diff changeset
65 extract_messages = babel.messages.frontend:extract_messages
181
8a762ce37bf7 The frontends now provide ways to update existing translations catalogs from a template. Closes #22.
cmlenz
parents: 160
diff changeset
66 init_catalog = babel.messages.frontend:init_catalog
8a762ce37bf7 The frontends now provide ways to update existing translations catalogs from a template. Closes #22.
cmlenz
parents: 160
diff changeset
67 update_catalog = babel.messages.frontend:update_catalog
1
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
68
49
37bd476dafe4 Support a `message_extractors` keyword argument directly in `setup()`. Closes #4.
cmlenz
parents: 40
diff changeset
69 [distutils.setup_keywords]
54
7dbcbc3f07e0 Rename the `babel.catalog` package to `babel.messages` for consistency with the other package names.
cmlenz
parents: 52
diff changeset
70 message_extractors = babel.messages.frontend:check_message_extractors
49
37bd476dafe4 Support a `message_extractors` keyword argument directly in `setup()`. Closes #4.
cmlenz
parents: 40
diff changeset
71
220
97b4b289e792 Added infrastructure for adding catalog checkers, and implement a checker that validations Python format parameters in translations, closing #19.
cmlenz
parents: 189
diff changeset
72 [babel.checkers]
97b4b289e792 Added infrastructure for adding catalog checkers, and implement a checker that validations Python format parameters in translations, closing #19.
cmlenz
parents: 189
diff changeset
73 num_plurals = babel.messages.checkers:num_plurals
97b4b289e792 Added infrastructure for adding catalog checkers, and implement a checker that validations Python format parameters in translations, closing #19.
cmlenz
parents: 189
diff changeset
74 python_format = babel.messages.checkers:python_format
97b4b289e792 Added infrastructure for adding catalog checkers, and implement a checker that validations Python format parameters in translations, closing #19.
cmlenz
parents: 189
diff changeset
75
1
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
76 [babel.extractors]
138
bd3b47492396 Genshi extraction method has moved to Genshi project. Closes #13.
cmlenz
parents: 116
diff changeset
77 ignore = babel.messages.extract:extract_nothing
54
7dbcbc3f07e0 Rename the `babel.catalog` package to `babel.messages` for consistency with the other package names.
cmlenz
parents: 52
diff changeset
78 python = babel.messages.extract:extract_python
346
5e58ea360a5c Merged revisions [358:360], [364:370], [373:378], [380:382] from [source:trunk].
cmlenz
parents: 287
diff changeset
79 javascript = babel.messages.extract:extract_javascript
1
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
80 """,
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
81
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
82 cmdclass = {'build_doc': build_doc, 'test_doc': test_doc}
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
83 )
Copyright (C) 2012-2017 Edgewall Software