annotate setup.py @ 563:c6bc419cc32a trunk

fix spelling in comments
author fschwarz
date Sun, 25 Sep 2011 20:30:45 +0000
parents a97af7870185
children c8bef607128c
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 #
530
ca203b2af83c Update the copyright line.
jruigrok
parents: 398
diff changeset
4 # Copyright (C) 2007-2011 Edgewall Software
1
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
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
15 import os
12
e6ba3e878b10 * Removed pkg_resources/setuptools requirement from various places.
cmlenz
parents: 1
diff changeset
16 try:
e6ba3e878b10 * Removed pkg_resources/setuptools requirement from various places.
cmlenz
parents: 1
diff changeset
17 from setuptools import setup
e6ba3e878b10 * Removed pkg_resources/setuptools requirement from various places.
cmlenz
parents: 1
diff changeset
18 except ImportError:
e6ba3e878b10 * Removed pkg_resources/setuptools requirement from various places.
cmlenz
parents: 1
diff changeset
19 from distutils.core import setup
1
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
20 import sys
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
21
236
cf64577122b7 Documentation stuff moved to a shared repository.
cmlenz
parents: 233
diff changeset
22 sys.path.append(os.path.join('doc', 'common'))
cf64577122b7 Documentation stuff moved to a shared repository.
cmlenz
parents: 233
diff changeset
23 try:
cf64577122b7 Documentation stuff moved to a shared repository.
cmlenz
parents: 233
diff changeset
24 from doctools import build_doc, test_doc
cf64577122b7 Documentation stuff moved to a shared repository.
cmlenz
parents: 233
diff changeset
25 except ImportError:
cf64577122b7 Documentation stuff moved to a shared repository.
cmlenz
parents: 233
diff changeset
26 build_doc = test_doc = None
1
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
27
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
28
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
29 setup(
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
30 name = 'Babel',
266
7d9c0bd21750 Bump up version number on trunk.
cmlenz
parents: 236
diff changeset
31 version = '1.0',
1
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
32 description = 'Internationalization utilities',
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
33 long_description = \
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
34 """A collection of tools for internationalizing Python applications.""",
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
35 author = 'Edgewall Software',
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
36 author_email = 'info@edgewall.org',
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
37 license = 'BSD',
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
38 url = 'http://babel.edgewall.org/',
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
39 download_url = 'http://babel.edgewall.org/wiki/Download',
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
40 zip_safe = False,
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
41
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
42 classifiers = [
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
43 'Development Status :: 4 - Beta',
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
44 'Environment :: Web Environment',
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
45 'Intended Audience :: Developers',
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
46 'License :: OSI Approved :: BSD License',
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
47 'Operating System :: OS Independent',
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
48 'Programming Language :: Python',
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
49 'Topic :: Software Development :: Libraries :: Python Modules',
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
50 ],
54
7dbcbc3f07e0 Rename the `babel.catalog` package to `babel.messages` for consistency with the other package names.
cmlenz
parents: 52
diff changeset
51 packages = ['babel', 'babel.messages'],
233
da97a3138239 Upgraded to CLDR 1.5 and improved timezone formatting.
cmlenz
parents: 220
diff changeset
52 package_data = {'babel': ['global.dat', 'localedata/*.dat']},
1
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
53 test_suite = 'babel.tests.suite',
398
0cff53e65f87 Make the dependency on pytz for the tests explicit in `setup.py`.
cmlenz
parents: 339
diff changeset
54 tests_require = ['pytz'],
1
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
55
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
56 entry_points = """
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
57 [console_scripts]
189
cdb266cd9a19 Rename command-line script to avoid conflict with the OpenBabel project. Closes #34.
cmlenz
parents: 181
diff changeset
58 pybabel = babel.messages.frontend:main
1
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
59
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
60 [distutils.commands]
160
23005b4efc99 Add MO file generation. Closes #21.
cmlenz
parents: 141
diff changeset
61 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
62 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
63 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
64 update_catalog = babel.messages.frontend:update_catalog
1
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
65
49
37bd476dafe4 Support a `message_extractors` keyword argument directly in `setup()`. Closes #4.
cmlenz
parents: 40
diff changeset
66 [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
67 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
68
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
69 [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
70 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
71 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
72
1
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
73 [babel.extractors]
138
bd3b47492396 Genshi extraction method has moved to Genshi project. Closes #13.
cmlenz
parents: 116
diff changeset
74 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
75 python = babel.messages.extract:extract_python
339
93a896111488 Added !JavaScript extractor
aronacher
parents: 266
diff changeset
76 javascript = babel.messages.extract:extract_javascript
1
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
77 """,
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
78
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
79 cmdclass = {'build_doc': build_doc, 'test_doc': test_doc}
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
80 )
Copyright (C) 2012-2017 Edgewall Software