Mercurial > babel > old > mirror
annotate setup.py @ 374:0d84e90bf376
Remove some unused imports.
author | palgarvio |
---|---|
date | Mon, 30 Jun 2008 16:37:29 +0000 |
parents | 672b6b8e945d |
children | df4bda99cf8e |
rev | line source |
---|---|
3 | 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 | |
14
29ef15a6fd75
* Removed pkg_resources/setuptools requirement from various places.
cmlenz
parents:
3
diff
changeset
|
15 from distutils.cmd import Command |
3 | 16 import doctest |
17 from glob import glob | |
18 import os | |
14
29ef15a6fd75
* Removed pkg_resources/setuptools requirement from various places.
cmlenz
parents:
3
diff
changeset
|
19 try: |
29ef15a6fd75
* Removed pkg_resources/setuptools requirement from various places.
cmlenz
parents:
3
diff
changeset
|
20 from setuptools import setup |
29ef15a6fd75
* Removed pkg_resources/setuptools requirement from various places.
cmlenz
parents:
3
diff
changeset
|
21 except ImportError: |
29ef15a6fd75
* Removed pkg_resources/setuptools requirement from various places.
cmlenz
parents:
3
diff
changeset
|
22 from distutils.core import setup |
3 | 23 import sys |
24 | |
238 | 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 | |
3 | 30 |
31 | |
32 setup( | |
33 name = 'Babel', | |
268 | 34 version = '1.0', |
3 | 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 ], | |
56
27d55a07c897
Rename the `babel.catalog` package to `babel.messages` for consistency with the other package names.
cmlenz
parents:
54
diff
changeset
|
54 packages = ['babel', 'babel.messages'], |
235
d0cd235ede46
Upgraded to CLDR 1.5 and improved timezone formatting.
cmlenz
parents:
222
diff
changeset
|
55 package_data = {'babel': ['global.dat', 'localedata/*.dat']}, |
3 | 56 test_suite = 'babel.tests.suite', |
57 | |
58 entry_points = """ | |
59 [console_scripts] | |
191
a16401b8b989
Rename command-line script to avoid conflict with the OpenBabel project. Closes #34.
cmlenz
parents:
183
diff
changeset
|
60 pybabel = babel.messages.frontend:main |
3 | 61 |
62 [distutils.commands] | |
162 | 63 compile_catalog = babel.messages.frontend:compile_catalog |
56
27d55a07c897
Rename the `babel.catalog` package to `babel.messages` for consistency with the other package names.
cmlenz
parents:
54
diff
changeset
|
64 extract_messages = babel.messages.frontend:extract_messages |
183
e927dffc9ab4
The frontends now provide ways to update existing translations catalogs from a template. Closes #22.
cmlenz
parents:
162
diff
changeset
|
65 init_catalog = babel.messages.frontend:init_catalog |
e927dffc9ab4
The frontends now provide ways to update existing translations catalogs from a template. Closes #22.
cmlenz
parents:
162
diff
changeset
|
66 update_catalog = babel.messages.frontend:update_catalog |
3 | 67 |
51
3664c93860f1
Support a `message_extractors` keyword argument directly in `setup()`. Closes #4.
cmlenz
parents:
42
diff
changeset
|
68 [distutils.setup_keywords] |
56
27d55a07c897
Rename the `babel.catalog` package to `babel.messages` for consistency with the other package names.
cmlenz
parents:
54
diff
changeset
|
69 message_extractors = babel.messages.frontend:check_message_extractors |
51
3664c93860f1
Support a `message_extractors` keyword argument directly in `setup()`. Closes #4.
cmlenz
parents:
42
diff
changeset
|
70 |
222
bd8b1301b27e
Added infrastructure for adding catalog checkers, and implement a checker that validations Python format parameters in translations, closing #19.
cmlenz
parents:
191
diff
changeset
|
71 [babel.checkers] |
bd8b1301b27e
Added infrastructure for adding catalog checkers, and implement a checker that validations Python format parameters in translations, closing #19.
cmlenz
parents:
191
diff
changeset
|
72 num_plurals = babel.messages.checkers:num_plurals |
bd8b1301b27e
Added infrastructure for adding catalog checkers, and implement a checker that validations Python format parameters in translations, closing #19.
cmlenz
parents:
191
diff
changeset
|
73 python_format = babel.messages.checkers:python_format |
bd8b1301b27e
Added infrastructure for adding catalog checkers, and implement a checker that validations Python format parameters in translations, closing #19.
cmlenz
parents:
191
diff
changeset
|
74 |
3 | 75 [babel.extractors] |
140
3b3a487cc46f
Genshi extraction method has moved to Genshi project. Closes #13.
cmlenz
parents:
118
diff
changeset
|
76 ignore = babel.messages.extract:extract_nothing |
56
27d55a07c897
Rename the `babel.catalog` package to `babel.messages` for consistency with the other package names.
cmlenz
parents:
54
diff
changeset
|
77 python = babel.messages.extract:extract_python |
341 | 78 javascript = babel.messages.extract:extract_javascript |
3 | 79 """, |
80 | |
81 cmdclass = {'build_doc': build_doc, 'test_doc': test_doc} | |
82 ) |