Mercurial > babel > mirror
annotate setup.py @ 492:ac8961d40e61 experimental-babel3
Commit the resulting files after a 2to3 -nvw run.
author | jruigrok |
---|---|
date | Thu, 15 Apr 2010 14:20:11 +0000 |
parents | 0cff53e65f87 |
children | ca203b2af83c |
rev | line source |
---|---|
1 | 1 #!/usr/bin/env python |
2 # -*- coding: utf-8 -*- | |
3 # | |
4 # Copyright (C) 2007 Edgewall Software | |
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 | |
12
e6ba3e878b10
* Removed pkg_resources/setuptools requirement from various places.
cmlenz
parents:
1
diff
changeset
|
15 from distutils.cmd import Command |
1 | 16 import doctest |
17 from glob import glob | |
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 | 23 import sys |
24 | |
236 | 25 sys.path.append(os.path.join('doc', 'common')) |
26 try: | |
27 from doctools import build_doc, test_doc | |
28 except ImportError: | |
29 build_doc = test_doc = None | |
1 | 30 |
31 | |
32 setup( | |
33 name = 'Babel', | |
266 | 34 version = '1.0', |
1 | 35 description = 'Internationalization utilities', |
36 long_description = \ | |
37 """A collection of tools for internationalizing Python applications.""", | |
38 author = 'Edgewall Software', | |
39 author_email = 'info@edgewall.org', | |
40 license = 'BSD', | |
41 url = 'http://babel.edgewall.org/', | |
42 download_url = 'http://babel.edgewall.org/wiki/Download', | |
43 zip_safe = False, | |
44 | |
45 classifiers = [ | |
46 'Development Status :: 4 - Beta', | |
47 'Environment :: Web Environment', | |
48 'Intended Audience :: Developers', | |
49 'License :: OSI Approved :: BSD License', | |
50 'Operating System :: OS Independent', | |
51 'Programming Language :: Python', | |
52 'Topic :: Software Development :: Libraries :: Python Modules', | |
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 | 56 test_suite = 'babel.tests.suite', |
398
0cff53e65f87
Make the dependency on pytz for the tests explicit in `setup.py`.
cmlenz
parents:
339
diff
changeset
|
57 tests_require = ['pytz'], |
1 | 58 |
59 entry_points = """ | |
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 | 62 |
63 [distutils.commands] | |
160 | 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 | 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 | 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 |
339 | 79 javascript = babel.messages.extract:extract_javascript |
1 | 80 """, |
81 | |
82 cmdclass = {'build_doc': build_doc, 'test_doc': test_doc} | |
83 ) |