Mercurial > babel > mirror
annotate setup.py @ 603:60f716236946 trunk
update Translations.load to use new parameter name ('fp' instead of 'fileobj'), regression introduced in r653
author | fschwarz |
---|---|
date | Wed, 22 Aug 2012 20:28:32 +0000 |
parents | c8bef607128c |
children |
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 |
589
c8bef607128c
no warnings when running setup.py without installed setuptools (#262)
fschwarz
parents:
562
diff
changeset
|
18 have_setuptools = True |
12
e6ba3e878b10
* Removed pkg_resources/setuptools requirement from various places.
cmlenz
parents:
1
diff
changeset
|
19 except ImportError: |
e6ba3e878b10
* Removed pkg_resources/setuptools requirement from various places.
cmlenz
parents:
1
diff
changeset
|
20 from distutils.core import setup |
589
c8bef607128c
no warnings when running setup.py without installed setuptools (#262)
fschwarz
parents:
562
diff
changeset
|
21 have_setuptools = False |
1 | 22 import sys |
23 | |
236 | 24 sys.path.append(os.path.join('doc', 'common')) |
25 try: | |
26 from doctools import build_doc, test_doc | |
27 except ImportError: | |
28 build_doc = test_doc = None | |
1 | 29 |
30 | |
589
c8bef607128c
no warnings when running setup.py without installed setuptools (#262)
fschwarz
parents:
562
diff
changeset
|
31 extra_arguments = dict() |
c8bef607128c
no warnings when running setup.py without installed setuptools (#262)
fschwarz
parents:
562
diff
changeset
|
32 if have_setuptools: |
c8bef607128c
no warnings when running setup.py without installed setuptools (#262)
fschwarz
parents:
562
diff
changeset
|
33 extra_arguments = dict( |
c8bef607128c
no warnings when running setup.py without installed setuptools (#262)
fschwarz
parents:
562
diff
changeset
|
34 zip_safe = False, |
c8bef607128c
no warnings when running setup.py without installed setuptools (#262)
fschwarz
parents:
562
diff
changeset
|
35 test_suite = 'babel.tests.suite', |
c8bef607128c
no warnings when running setup.py without installed setuptools (#262)
fschwarz
parents:
562
diff
changeset
|
36 tests_require = ['pytz'], |
c8bef607128c
no warnings when running setup.py without installed setuptools (#262)
fschwarz
parents:
562
diff
changeset
|
37 |
c8bef607128c
no warnings when running setup.py without installed setuptools (#262)
fschwarz
parents:
562
diff
changeset
|
38 entry_points = """ |
c8bef607128c
no warnings when running setup.py without installed setuptools (#262)
fschwarz
parents:
562
diff
changeset
|
39 [console_scripts] |
c8bef607128c
no warnings when running setup.py without installed setuptools (#262)
fschwarz
parents:
562
diff
changeset
|
40 pybabel = babel.messages.frontend:main |
c8bef607128c
no warnings when running setup.py without installed setuptools (#262)
fschwarz
parents:
562
diff
changeset
|
41 |
c8bef607128c
no warnings when running setup.py without installed setuptools (#262)
fschwarz
parents:
562
diff
changeset
|
42 [distutils.commands] |
c8bef607128c
no warnings when running setup.py without installed setuptools (#262)
fschwarz
parents:
562
diff
changeset
|
43 compile_catalog = babel.messages.frontend:compile_catalog |
c8bef607128c
no warnings when running setup.py without installed setuptools (#262)
fschwarz
parents:
562
diff
changeset
|
44 extract_messages = babel.messages.frontend:extract_messages |
c8bef607128c
no warnings when running setup.py without installed setuptools (#262)
fschwarz
parents:
562
diff
changeset
|
45 init_catalog = babel.messages.frontend:init_catalog |
c8bef607128c
no warnings when running setup.py without installed setuptools (#262)
fschwarz
parents:
562
diff
changeset
|
46 update_catalog = babel.messages.frontend:update_catalog |
c8bef607128c
no warnings when running setup.py without installed setuptools (#262)
fschwarz
parents:
562
diff
changeset
|
47 |
c8bef607128c
no warnings when running setup.py without installed setuptools (#262)
fschwarz
parents:
562
diff
changeset
|
48 [distutils.setup_keywords] |
c8bef607128c
no warnings when running setup.py without installed setuptools (#262)
fschwarz
parents:
562
diff
changeset
|
49 message_extractors = babel.messages.frontend:check_message_extractors |
c8bef607128c
no warnings when running setup.py without installed setuptools (#262)
fschwarz
parents:
562
diff
changeset
|
50 |
c8bef607128c
no warnings when running setup.py without installed setuptools (#262)
fschwarz
parents:
562
diff
changeset
|
51 [babel.checkers] |
c8bef607128c
no warnings when running setup.py without installed setuptools (#262)
fschwarz
parents:
562
diff
changeset
|
52 num_plurals = babel.messages.checkers:num_plurals |
c8bef607128c
no warnings when running setup.py without installed setuptools (#262)
fschwarz
parents:
562
diff
changeset
|
53 python_format = babel.messages.checkers:python_format |
c8bef607128c
no warnings when running setup.py without installed setuptools (#262)
fschwarz
parents:
562
diff
changeset
|
54 |
c8bef607128c
no warnings when running setup.py without installed setuptools (#262)
fschwarz
parents:
562
diff
changeset
|
55 [babel.extractors] |
c8bef607128c
no warnings when running setup.py without installed setuptools (#262)
fschwarz
parents:
562
diff
changeset
|
56 ignore = babel.messages.extract:extract_nothing |
c8bef607128c
no warnings when running setup.py without installed setuptools (#262)
fschwarz
parents:
562
diff
changeset
|
57 python = babel.messages.extract:extract_python |
c8bef607128c
no warnings when running setup.py without installed setuptools (#262)
fschwarz
parents:
562
diff
changeset
|
58 javascript = babel.messages.extract:extract_javascript |
c8bef607128c
no warnings when running setup.py without installed setuptools (#262)
fschwarz
parents:
562
diff
changeset
|
59 """, |
c8bef607128c
no warnings when running setup.py without installed setuptools (#262)
fschwarz
parents:
562
diff
changeset
|
60 ) |
c8bef607128c
no warnings when running setup.py without installed setuptools (#262)
fschwarz
parents:
562
diff
changeset
|
61 |
1 | 62 setup( |
63 name = 'Babel', | |
266 | 64 version = '1.0', |
1 | 65 description = 'Internationalization utilities', |
66 long_description = \ | |
67 """A collection of tools for internationalizing Python applications.""", | |
68 author = 'Edgewall Software', | |
69 author_email = 'info@edgewall.org', | |
70 license = 'BSD', | |
71 url = 'http://babel.edgewall.org/', | |
72 download_url = 'http://babel.edgewall.org/wiki/Download', | |
73 | |
74 classifiers = [ | |
75 'Development Status :: 4 - Beta', | |
76 'Environment :: Web Environment', | |
77 'Intended Audience :: Developers', | |
78 'License :: OSI Approved :: BSD License', | |
79 'Operating System :: OS Independent', | |
80 'Programming Language :: Python', | |
81 'Topic :: Software Development :: Libraries :: Python Modules', | |
82 ], | |
54
7dbcbc3f07e0
Rename the `babel.catalog` package to `babel.messages` for consistency with the other package names.
cmlenz
parents:
52
diff
changeset
|
83 packages = ['babel', 'babel.messages'], |
233
da97a3138239
Upgraded to CLDR 1.5 and improved timezone formatting.
cmlenz
parents:
220
diff
changeset
|
84 package_data = {'babel': ['global.dat', 'localedata/*.dat']}, |
1 | 85 |
589
c8bef607128c
no warnings when running setup.py without installed setuptools (#262)
fschwarz
parents:
562
diff
changeset
|
86 cmdclass = {'build_doc': build_doc, 'test_doc': test_doc}, |
1 | 87 |
589
c8bef607128c
no warnings when running setup.py without installed setuptools (#262)
fschwarz
parents:
562
diff
changeset
|
88 **extra_arguments |
1 | 89 ) |