annotate setup.py @ 589:c8bef607128c trunk

no warnings when running setup.py without installed setuptools (#262)
author fschwarz
date Wed, 08 Aug 2012 12:36:03 +0000
parents a97af7870185
children
rev   line source
1
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
1 #!/usr/bin/env python
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
2 # -*- coding: utf-8 -*-
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
3 #
530
ca203b2af83c Update the copyright line.
jruigrok
parents: 398
diff changeset
4 # Copyright (C) 2007-2011 Edgewall Software
1
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
5 # All rights reserved.
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
6 #
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
7 # This software is licensed as described in the file COPYING, which
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
8 # you should have received as part of this distribution. The terms
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
9 # are also available at http://babel.edgewall.org/wiki/License.
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
10 #
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
11 # This software consists of voluntary contributions made by many
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
12 # individuals. For the exact contribution history, see the revision
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
13 # history and logs, available at http://babel.edgewall.org/log/.
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
14
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
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
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
22 import sys
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
23
236
cf64577122b7 Documentation stuff moved to a shared repository.
cmlenz
parents: 233
diff changeset
24 sys.path.append(os.path.join('doc', 'common'))
cf64577122b7 Documentation stuff moved to a shared repository.
cmlenz
parents: 233
diff changeset
25 try:
cf64577122b7 Documentation stuff moved to a shared repository.
cmlenz
parents: 233
diff changeset
26 from doctools import build_doc, test_doc
cf64577122b7 Documentation stuff moved to a shared repository.
cmlenz
parents: 233
diff changeset
27 except ImportError:
cf64577122b7 Documentation stuff moved to a shared repository.
cmlenz
parents: 233
diff changeset
28 build_doc = test_doc = None
1
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
29
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
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
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
62 setup(
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
63 name = 'Babel',
266
7d9c0bd21750 Bump up version number on trunk.
cmlenz
parents: 236
diff changeset
64 version = '1.0',
1
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
65 description = 'Internationalization utilities',
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
66 long_description = \
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
67 """A collection of tools for internationalizing Python applications.""",
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
68 author = 'Edgewall Software',
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
69 author_email = 'info@edgewall.org',
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
70 license = 'BSD',
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
71 url = 'http://babel.edgewall.org/',
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
72 download_url = 'http://babel.edgewall.org/wiki/Download',
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
73
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
74 classifiers = [
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
75 'Development Status :: 4 - Beta',
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
76 'Environment :: Web Environment',
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
77 'Intended Audience :: Developers',
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
78 'License :: OSI Approved :: BSD License',
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
79 'Operating System :: OS Independent',
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
80 'Programming Language :: Python',
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
81 'Topic :: Software Development :: Libraries :: Python Modules',
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
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
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
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
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
87
589
c8bef607128c no warnings when running setup.py without installed setuptools (#262)
fschwarz
parents: 562
diff changeset
88 **extra_arguments
1
7870274479f5 Import of initial code base.
cmlenz
parents:
diff changeset
89 )
Copyright (C) 2012-2017 Edgewall Software