Mercurial > babel > mirror
annotate setup.py @ 582:3fd7fb953633 trunk
fix handling of messages containing '\\n' (#171)
author | fschwarz |
---|---|
date | Fri, 03 Aug 2012 22:41:49 +0000 |
parents | a97af7870185 |
children | c8bef607128c |
rev | line source |
---|---|
1 | 1 #!/usr/bin/env python |
2 # -*- coding: utf-8 -*- | |
3 # | |
530 | 4 # Copyright (C) 2007-2011 Edgewall Software |
1 | 5 # All rights reserved. |
6 # | |
7 # This software is licensed as described in the file COPYING, which | |
8 # you should have received as part of this distribution. The terms | |
9 # are also available at http://babel.edgewall.org/wiki/License. | |
10 # | |
11 # This software consists of voluntary contributions made by many | |
12 # individuals. For the exact contribution history, see the revision | |
13 # history and logs, available at http://babel.edgewall.org/log/. | |
14 | |
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 | 20 import sys |
21 | |
236 | 22 sys.path.append(os.path.join('doc', 'common')) |
23 try: | |
24 from doctools import build_doc, test_doc | |
25 except ImportError: | |
26 build_doc = test_doc = None | |
1 | 27 |
28 | |
29 setup( | |
30 name = 'Babel', | |
266 | 31 version = '1.0', |
1 | 32 description = 'Internationalization utilities', |
33 long_description = \ | |
34 """A collection of tools for internationalizing Python applications.""", | |
35 author = 'Edgewall Software', | |
36 author_email = 'info@edgewall.org', | |
37 license = 'BSD', | |
38 url = 'http://babel.edgewall.org/', | |
39 download_url = 'http://babel.edgewall.org/wiki/Download', | |
40 zip_safe = False, | |
41 | |
42 classifiers = [ | |
43 'Development Status :: 4 - Beta', | |
44 'Environment :: Web Environment', | |
45 'Intended Audience :: Developers', | |
46 'License :: OSI Approved :: BSD License', | |
47 'Operating System :: OS Independent', | |
48 'Programming Language :: Python', | |
49 'Topic :: Software Development :: Libraries :: Python Modules', | |
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 | 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 | 55 |
56 entry_points = """ | |
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 | 59 |
60 [distutils.commands] | |
160 | 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 | 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 | 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 | 76 javascript = babel.messages.extract:extract_javascript |
1 | 77 """, |
78 | |
79 cmdclass = {'build_doc': build_doc, 'test_doc': test_doc} | |
80 ) |