annotate setup.py @ 530:85e1beadacb0

Update the copyright line.
author jruigrok
date Sat, 05 Mar 2011 15:22:28 +0000
parents bedf755add6e
children
rev   line source
1
f71ca60f2a4a Import of initial code base.
cmlenz
parents:
diff changeset
1 #!/usr/bin/env python
f71ca60f2a4a Import of initial code base.
cmlenz
parents:
diff changeset
2 # -*- coding: utf-8 -*-
f71ca60f2a4a Import of initial code base.
cmlenz
parents:
diff changeset
3 #
530
85e1beadacb0 Update the copyright line.
jruigrok
parents: 398
diff changeset
4 # Copyright (C) 2007-2011 Edgewall Software
1
f71ca60f2a4a Import of initial code base.
cmlenz
parents:
diff changeset
5 # All rights reserved.
f71ca60f2a4a Import of initial code base.
cmlenz
parents:
diff changeset
6 #
f71ca60f2a4a Import of initial code base.
cmlenz
parents:
diff changeset
7 # This software is licensed as described in the file COPYING, which
f71ca60f2a4a Import of initial code base.
cmlenz
parents:
diff changeset
8 # you should have received as part of this distribution. The terms
f71ca60f2a4a Import of initial code base.
cmlenz
parents:
diff changeset
9 # are also available at http://babel.edgewall.org/wiki/License.
f71ca60f2a4a Import of initial code base.
cmlenz
parents:
diff changeset
10 #
f71ca60f2a4a Import of initial code base.
cmlenz
parents:
diff changeset
11 # This software consists of voluntary contributions made by many
f71ca60f2a4a Import of initial code base.
cmlenz
parents:
diff changeset
12 # individuals. For the exact contribution history, see the revision
f71ca60f2a4a Import of initial code base.
cmlenz
parents:
diff changeset
13 # history and logs, available at http://babel.edgewall.org/log/.
f71ca60f2a4a Import of initial code base.
cmlenz
parents:
diff changeset
14
12
a2c54ef107c2 * Removed pkg_resources/setuptools requirement from various places.
cmlenz
parents: 1
diff changeset
15 from distutils.cmd import Command
1
f71ca60f2a4a Import of initial code base.
cmlenz
parents:
diff changeset
16 import doctest
f71ca60f2a4a Import of initial code base.
cmlenz
parents:
diff changeset
17 from glob import glob
f71ca60f2a4a Import of initial code base.
cmlenz
parents:
diff changeset
18 import os
12
a2c54ef107c2 * Removed pkg_resources/setuptools requirement from various places.
cmlenz
parents: 1
diff changeset
19 try:
a2c54ef107c2 * Removed pkg_resources/setuptools requirement from various places.
cmlenz
parents: 1
diff changeset
20 from setuptools import setup
a2c54ef107c2 * Removed pkg_resources/setuptools requirement from various places.
cmlenz
parents: 1
diff changeset
21 except ImportError:
a2c54ef107c2 * Removed pkg_resources/setuptools requirement from various places.
cmlenz
parents: 1
diff changeset
22 from distutils.core import setup
1
f71ca60f2a4a Import of initial code base.
cmlenz
parents:
diff changeset
23 import sys
f71ca60f2a4a Import of initial code base.
cmlenz
parents:
diff changeset
24
236
49f2210150b7 Documentation stuff moved to a shared repository.
cmlenz
parents: 233
diff changeset
25 sys.path.append(os.path.join('doc', 'common'))
49f2210150b7 Documentation stuff moved to a shared repository.
cmlenz
parents: 233
diff changeset
26 try:
49f2210150b7 Documentation stuff moved to a shared repository.
cmlenz
parents: 233
diff changeset
27 from doctools import build_doc, test_doc
49f2210150b7 Documentation stuff moved to a shared repository.
cmlenz
parents: 233
diff changeset
28 except ImportError:
49f2210150b7 Documentation stuff moved to a shared repository.
cmlenz
parents: 233
diff changeset
29 build_doc = test_doc = None
1
f71ca60f2a4a Import of initial code base.
cmlenz
parents:
diff changeset
30
f71ca60f2a4a Import of initial code base.
cmlenz
parents:
diff changeset
31
f71ca60f2a4a Import of initial code base.
cmlenz
parents:
diff changeset
32 setup(
f71ca60f2a4a Import of initial code base.
cmlenz
parents:
diff changeset
33 name = 'Babel',
266
35c8a87a9839 Bump up version number on trunk.
cmlenz
parents: 236
diff changeset
34 version = '1.0',
1
f71ca60f2a4a Import of initial code base.
cmlenz
parents:
diff changeset
35 description = 'Internationalization utilities',
f71ca60f2a4a Import of initial code base.
cmlenz
parents:
diff changeset
36 long_description = \
f71ca60f2a4a Import of initial code base.
cmlenz
parents:
diff changeset
37 """A collection of tools for internationalizing Python applications.""",
f71ca60f2a4a Import of initial code base.
cmlenz
parents:
diff changeset
38 author = 'Edgewall Software',
f71ca60f2a4a Import of initial code base.
cmlenz
parents:
diff changeset
39 author_email = 'info@edgewall.org',
f71ca60f2a4a Import of initial code base.
cmlenz
parents:
diff changeset
40 license = 'BSD',
f71ca60f2a4a Import of initial code base.
cmlenz
parents:
diff changeset
41 url = 'http://babel.edgewall.org/',
f71ca60f2a4a Import of initial code base.
cmlenz
parents:
diff changeset
42 download_url = 'http://babel.edgewall.org/wiki/Download',
f71ca60f2a4a Import of initial code base.
cmlenz
parents:
diff changeset
43 zip_safe = False,
f71ca60f2a4a Import of initial code base.
cmlenz
parents:
diff changeset
44
f71ca60f2a4a Import of initial code base.
cmlenz
parents:
diff changeset
45 classifiers = [
f71ca60f2a4a Import of initial code base.
cmlenz
parents:
diff changeset
46 'Development Status :: 4 - Beta',
f71ca60f2a4a Import of initial code base.
cmlenz
parents:
diff changeset
47 'Environment :: Web Environment',
f71ca60f2a4a Import of initial code base.
cmlenz
parents:
diff changeset
48 'Intended Audience :: Developers',
f71ca60f2a4a Import of initial code base.
cmlenz
parents:
diff changeset
49 'License :: OSI Approved :: BSD License',
f71ca60f2a4a Import of initial code base.
cmlenz
parents:
diff changeset
50 'Operating System :: OS Independent',
f71ca60f2a4a Import of initial code base.
cmlenz
parents:
diff changeset
51 'Programming Language :: Python',
f71ca60f2a4a Import of initial code base.
cmlenz
parents:
diff changeset
52 'Topic :: Software Development :: Libraries :: Python Modules',
f71ca60f2a4a Import of initial code base.
cmlenz
parents:
diff changeset
53 ],
54
b3395b285104 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
bc22f5aef216 Upgraded to CLDR 1.5 and improved timezone formatting.
cmlenz
parents: 220
diff changeset
55 package_data = {'babel': ['global.dat', 'localedata/*.dat']},
1
f71ca60f2a4a Import of initial code base.
cmlenz
parents:
diff changeset
56 test_suite = 'babel.tests.suite',
398
bedf755add6e Make the dependency on pytz for the tests explicit in `setup.py`.
cmlenz
parents: 339
diff changeset
57 tests_require = ['pytz'],
1
f71ca60f2a4a Import of initial code base.
cmlenz
parents:
diff changeset
58
f71ca60f2a4a Import of initial code base.
cmlenz
parents:
diff changeset
59 entry_points = """
f71ca60f2a4a Import of initial code base.
cmlenz
parents:
diff changeset
60 [console_scripts]
189
e9136716b615 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
f71ca60f2a4a Import of initial code base.
cmlenz
parents:
diff changeset
62
f71ca60f2a4a Import of initial code base.
cmlenz
parents:
diff changeset
63 [distutils.commands]
160
80e51aabc440 Add MO file generation. Closes #21.
cmlenz
parents: 141
diff changeset
64 compile_catalog = babel.messages.frontend:compile_catalog
54
b3395b285104 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
9a1acb41e7dd 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
9a1acb41e7dd 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
f71ca60f2a4a Import of initial code base.
cmlenz
parents:
diff changeset
68
49
daf35e2ad044 Support a `message_extractors` keyword argument directly in `setup()`. Closes #4.
cmlenz
parents: 40
diff changeset
69 [distutils.setup_keywords]
54
b3395b285104 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
daf35e2ad044 Support a `message_extractors` keyword argument directly in `setup()`. Closes #4.
cmlenz
parents: 40
diff changeset
71
220
677147547e2d 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]
677147547e2d 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
677147547e2d 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
677147547e2d 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
f71ca60f2a4a Import of initial code base.
cmlenz
parents:
diff changeset
76 [babel.extractors]
138
2071e375cf29 Genshi extraction method has moved to Genshi project. Closes #13.
cmlenz
parents: 116
diff changeset
77 ignore = babel.messages.extract:extract_nothing
54
b3395b285104 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
6104e7967a12 Added !JavaScript extractor
aronacher
parents: 266
diff changeset
79 javascript = babel.messages.extract:extract_javascript
1
f71ca60f2a4a Import of initial code base.
cmlenz
parents:
diff changeset
80 """,
f71ca60f2a4a Import of initial code base.
cmlenz
parents:
diff changeset
81
f71ca60f2a4a Import of initial code base.
cmlenz
parents:
diff changeset
82 cmdclass = {'build_doc': build_doc, 'test_doc': test_doc}
f71ca60f2a4a Import of initial code base.
cmlenz
parents:
diff changeset
83 )
Copyright (C) 2012-2017 Edgewall Software