annotate setup.py @ 1021:323d592690da trunk

Disable the speedups C extension on CPython >= 3.3 since Genshi doesn't support the new Unicode C API yet.
author hodgestar
date Sun, 16 Feb 2014 18:32:21 +0000
parents 480cf1be291a
children
rev   line source
1
5479aae32f5a Initial import.
cmlenz
parents:
diff changeset
1 #!/usr/bin/env python
5479aae32f5a Initial import.
cmlenz
parents:
diff changeset
2 # -*- coding: utf-8 -*-
5479aae32f5a Initial import.
cmlenz
parents:
diff changeset
3 #
897
64f04a2c5e66 Update changelog and copyright years.
cmlenz
parents: 866
diff changeset
4 # Copyright (C) 2006-2010 Edgewall Software
1
5479aae32f5a Initial import.
cmlenz
parents:
diff changeset
5 # All rights reserved.
5479aae32f5a Initial import.
cmlenz
parents:
diff changeset
6 #
5479aae32f5a Initial import.
cmlenz
parents:
diff changeset
7 # This software is licensed as described in the file COPYING, which
5479aae32f5a Initial import.
cmlenz
parents:
diff changeset
8 # you should have received as part of this distribution. The terms
230
84168828b074 Renamed Markup to Genshi in repository.
cmlenz
parents: 215
diff changeset
9 # are also available at http://genshi.edgewall.org/wiki/License.
1
5479aae32f5a Initial import.
cmlenz
parents:
diff changeset
10 #
5479aae32f5a Initial import.
cmlenz
parents:
diff changeset
11 # This software consists of voluntary contributions made by many
5479aae32f5a Initial import.
cmlenz
parents:
diff changeset
12 # individuals. For the exact contribution history, see the revision
230
84168828b074 Renamed Markup to Genshi in repository.
cmlenz
parents: 215
diff changeset
13 # history and logs, available at http://genshi.edgewall.org/log/.
1
5479aae32f5a Initial import.
cmlenz
parents:
diff changeset
14
382
2682dabbcd04 * Added documentation for the various stream event kinds.
cmlenz
parents: 336
diff changeset
15 from distutils.cmd import Command
541
773d8c470e82 Merged cspeedups branch into trunk.
cmlenz
parents: 530
diff changeset
16 from distutils.command.build_ext import build_ext
673
ae54722b00d1 Ignore missing compiler errors on Windows. Fixes #174 and #165.
athomas
parents: 599
diff changeset
17 from distutils.errors import CCompilerError, DistutilsPlatformError
382
2682dabbcd04 * Added documentation for the various stream event kinds.
cmlenz
parents: 336
diff changeset
18 import doctest
2682dabbcd04 * Added documentation for the various stream event kinds.
cmlenz
parents: 336
diff changeset
19 from glob import glob
2682dabbcd04 * Added documentation for the various stream event kinds.
cmlenz
parents: 336
diff changeset
20 import os
84
0a1843b2c096 Make dependency of the setup script on setuptools optional.
cmlenz
parents: 66
diff changeset
21 try:
541
773d8c470e82 Merged cspeedups branch into trunk.
cmlenz
parents: 530
diff changeset
22 from setuptools import setup, Extension, Feature
786
291700beaa94 Set zip_safe to False if the c speedup module is successfully built. Closes #252.
jonas
parents: 749
diff changeset
23 from setuptools.command.bdist_egg import bdist_egg
84
0a1843b2c096 Make dependency of the setup script on setuptools optional.
cmlenz
parents: 66
diff changeset
24 except ImportError:
541
773d8c470e82 Merged cspeedups branch into trunk.
cmlenz
parents: 530
diff changeset
25 from distutils.core import setup, Extension
773d8c470e82 Merged cspeedups branch into trunk.
cmlenz
parents: 530
diff changeset
26 Feature = None
786
291700beaa94 Set zip_safe to False if the c speedup module is successfully built. Closes #252.
jonas
parents: 749
diff changeset
27 bdist_egg = None
426
a1955bc39924 Add epydoc-based API doc generation to the build.
cmlenz
parents: 394
diff changeset
28 import sys
1
5479aae32f5a Initial import.
cmlenz
parents:
diff changeset
29
585
db133252d1ff Documentation stuff moved to a common shared repository.
cmlenz
parents: 541
diff changeset
30 sys.path.append(os.path.join('doc', 'common'))
db133252d1ff Documentation stuff moved to a common shared repository.
cmlenz
parents: 541
diff changeset
31 try:
db133252d1ff Documentation stuff moved to a common shared repository.
cmlenz
parents: 541
diff changeset
32 from doctools import build_doc, test_doc
db133252d1ff Documentation stuff moved to a common shared repository.
cmlenz
parents: 541
diff changeset
33 except ImportError:
db133252d1ff Documentation stuff moved to a common shared repository.
cmlenz
parents: 541
diff changeset
34 build_doc = test_doc = None
394
cab6b0256019 Minor doc fixes.
cmlenz
parents: 382
diff changeset
35
786
291700beaa94 Set zip_safe to False if the c speedup module is successfully built. Closes #252.
jonas
parents: 749
diff changeset
36 _speedup_available = False
394
cab6b0256019 Minor doc fixes.
cmlenz
parents: 382
diff changeset
37
954
353ecf97bf61 Make --with-speedups the default for Pythons other than PyPy.
hodgestar
parents: 929
diff changeset
38 is_pypy = hasattr(sys, 'pypy_version_info')
897
64f04a2c5e66 Update changelog and copyright years.
cmlenz
parents: 866
diff changeset
39
541
773d8c470e82 Merged cspeedups branch into trunk.
cmlenz
parents: 530
diff changeset
40 class optional_build_ext(build_ext):
773d8c470e82 Merged cspeedups branch into trunk.
cmlenz
parents: 530
diff changeset
41 # This class allows C extension building to fail.
673
ae54722b00d1 Ignore missing compiler errors on Windows. Fixes #174 and #165.
athomas
parents: 599
diff changeset
42 def run(self):
ae54722b00d1 Ignore missing compiler errors on Windows. Fixes #174 and #165.
athomas
parents: 599
diff changeset
43 try:
ae54722b00d1 Ignore missing compiler errors on Windows. Fixes #174 and #165.
athomas
parents: 599
diff changeset
44 build_ext.run(self)
929
d010a80ebb4f Merge r1137 from py3k: add 2to3 build infrastructure to setup.py (this pulls the tests into the source distribution so that tests can be run after building with 2to3)
hodgestar
parents: 901
diff changeset
45 except DistutilsPlatformError:
d010a80ebb4f Merge r1137 from py3k: add 2to3 build infrastructure to setup.py (this pulls the tests into the source distribution so that tests can be run after building with 2to3)
hodgestar
parents: 901
diff changeset
46 _etype, e, _tb = sys.exc_info()
795
f5076e2a9786 Apply some patches for build from #165.
cmlenz
parents: 786
diff changeset
47 self._unavailable(e)
673
ae54722b00d1 Ignore missing compiler errors on Windows. Fixes #174 and #165.
athomas
parents: 599
diff changeset
48
541
773d8c470e82 Merged cspeedups branch into trunk.
cmlenz
parents: 530
diff changeset
49 def build_extension(self, ext):
773d8c470e82 Merged cspeedups branch into trunk.
cmlenz
parents: 530
diff changeset
50 try:
773d8c470e82 Merged cspeedups branch into trunk.
cmlenz
parents: 530
diff changeset
51 build_ext.build_extension(self, ext)
786
291700beaa94 Set zip_safe to False if the c speedup module is successfully built. Closes #252.
jonas
parents: 749
diff changeset
52 global _speedup_available
291700beaa94 Set zip_safe to False if the c speedup module is successfully built. Closes #252.
jonas
parents: 749
diff changeset
53 _speedup_available = True
929
d010a80ebb4f Merge r1137 from py3k: add 2to3 build infrastructure to setup.py (this pulls the tests into the source distribution so that tests can be run after building with 2to3)
hodgestar
parents: 901
diff changeset
54 except CCompilerError:
d010a80ebb4f Merge r1137 from py3k: add 2to3 build infrastructure to setup.py (this pulls the tests into the source distribution so that tests can be run after building with 2to3)
hodgestar
parents: 901
diff changeset
55 _etype, e, _tb = sys.exc_info()
795
f5076e2a9786 Apply some patches for build from #165.
cmlenz
parents: 786
diff changeset
56 self._unavailable(e)
673
ae54722b00d1 Ignore missing compiler errors on Windows. Fixes #174 and #165.
athomas
parents: 599
diff changeset
57
795
f5076e2a9786 Apply some patches for build from #165.
cmlenz
parents: 786
diff changeset
58 def _unavailable(self, exc):
853
f33ecf3c319e Convert a bunch of print statements to py3k compatible syntax.
cmlenz
parents: 795
diff changeset
59 print('*' * 70)
f33ecf3c319e Convert a bunch of print statements to py3k compatible syntax.
cmlenz
parents: 795
diff changeset
60 print("""WARNING:
541
773d8c470e82 Merged cspeedups branch into trunk.
cmlenz
parents: 530
diff changeset
61 An optional C extension could not be compiled, speedups will not be
853
f33ecf3c319e Convert a bunch of print statements to py3k compatible syntax.
cmlenz
parents: 795
diff changeset
62 available.""")
f33ecf3c319e Convert a bunch of print statements to py3k compatible syntax.
cmlenz
parents: 795
diff changeset
63 print('*' * 70)
f33ecf3c319e Convert a bunch of print statements to py3k compatible syntax.
cmlenz
parents: 795
diff changeset
64 print(exc)
541
773d8c470e82 Merged cspeedups branch into trunk.
cmlenz
parents: 530
diff changeset
65
773d8c470e82 Merged cspeedups branch into trunk.
cmlenz
parents: 530
diff changeset
66
773d8c470e82 Merged cspeedups branch into trunk.
cmlenz
parents: 530
diff changeset
67 if Feature:
1021
323d592690da Disable the speedups C extension on CPython >= 3.3 since Genshi doesn't support the new Unicode C API yet.
hodgestar
parents: 988
diff changeset
68 # Optional C extension module for speeding up Genshi:
323d592690da Disable the speedups C extension on CPython >= 3.3 since Genshi doesn't support the new Unicode C API yet.
hodgestar
parents: 988
diff changeset
69 # Not activated by default on:
323d592690da Disable the speedups C extension on CPython >= 3.3 since Genshi doesn't support the new Unicode C API yet.
hodgestar
parents: 988
diff changeset
70 # - PyPy (where it harms performance)
323d592690da Disable the speedups C extension on CPython >= 3.3 since Genshi doesn't support the new Unicode C API yet.
hodgestar
parents: 988
diff changeset
71 # - CPython >= 3.3 (the new Unicode C API is not supported yet)
541
773d8c470e82 Merged cspeedups branch into trunk.
cmlenz
parents: 530
diff changeset
72 speedups = Feature(
866
ab619331489a Build without speedups by default.
cmlenz
parents: 853
diff changeset
73 "optional C speed-enhancements",
1021
323d592690da Disable the speedups C extension on CPython >= 3.3 since Genshi doesn't support the new Unicode C API yet.
hodgestar
parents: 988
diff changeset
74 standard = not is_pypy and sys.version_info < (3, 3),
541
773d8c470e82 Merged cspeedups branch into trunk.
cmlenz
parents: 530
diff changeset
75 ext_modules = [
773d8c470e82 Merged cspeedups branch into trunk.
cmlenz
parents: 530
diff changeset
76 Extension('genshi._speedups', ['genshi/_speedups.c']),
773d8c470e82 Merged cspeedups branch into trunk.
cmlenz
parents: 530
diff changeset
77 ],
773d8c470e82 Merged cspeedups branch into trunk.
cmlenz
parents: 530
diff changeset
78 )
773d8c470e82 Merged cspeedups branch into trunk.
cmlenz
parents: 530
diff changeset
79 else:
773d8c470e82 Merged cspeedups branch into trunk.
cmlenz
parents: 530
diff changeset
80 speedups = None
773d8c470e82 Merged cspeedups branch into trunk.
cmlenz
parents: 530
diff changeset
81
786
291700beaa94 Set zip_safe to False if the c speedup module is successfully built. Closes #252.
jonas
parents: 749
diff changeset
82
291700beaa94 Set zip_safe to False if the c speedup module is successfully built. Closes #252.
jonas
parents: 749
diff changeset
83 # Setuptools need some help figuring out if the egg is "zip_safe" or not
291700beaa94 Set zip_safe to False if the c speedup module is successfully built. Closes #252.
jonas
parents: 749
diff changeset
84 if bdist_egg:
291700beaa94 Set zip_safe to False if the c speedup module is successfully built. Closes #252.
jonas
parents: 749
diff changeset
85 class my_bdist_egg(bdist_egg):
291700beaa94 Set zip_safe to False if the c speedup module is successfully built. Closes #252.
jonas
parents: 749
diff changeset
86 def zip_safe(self):
291700beaa94 Set zip_safe to False if the c speedup module is successfully built. Closes #252.
jonas
parents: 749
diff changeset
87 return not _speedup_available and bdist_egg.zip_safe(self)
291700beaa94 Set zip_safe to False if the c speedup module is successfully built. Closes #252.
jonas
parents: 749
diff changeset
88
291700beaa94 Set zip_safe to False if the c speedup module is successfully built. Closes #252.
jonas
parents: 749
diff changeset
89
291700beaa94 Set zip_safe to False if the c speedup module is successfully built. Closes #252.
jonas
parents: 749
diff changeset
90 cmdclass = {'build_doc': build_doc, 'test_doc': test_doc,
291700beaa94 Set zip_safe to False if the c speedup module is successfully built. Closes #252.
jonas
parents: 749
diff changeset
91 'build_ext': optional_build_ext}
291700beaa94 Set zip_safe to False if the c speedup module is successfully built. Closes #252.
jonas
parents: 749
diff changeset
92 if bdist_egg:
291700beaa94 Set zip_safe to False if the c speedup module is successfully built. Closes #252.
jonas
parents: 749
diff changeset
93 cmdclass['bdist_egg'] = my_bdist_egg
291700beaa94 Set zip_safe to False if the c speedup module is successfully built. Closes #252.
jonas
parents: 749
diff changeset
94
795
f5076e2a9786 Apply some patches for build from #165.
cmlenz
parents: 786
diff changeset
95
929
d010a80ebb4f Merge r1137 from py3k: add 2to3 build infrastructure to setup.py (this pulls the tests into the source distribution so that tests can be run after building with 2to3)
hodgestar
parents: 901
diff changeset
96 # Use 2to3 if we're running under Python 3 (with Distribute)
d010a80ebb4f Merge r1137 from py3k: add 2to3 build infrastructure to setup.py (this pulls the tests into the source distribution so that tests can be run after building with 2to3)
hodgestar
parents: 901
diff changeset
97 extra = {}
d010a80ebb4f Merge r1137 from py3k: add 2to3 build infrastructure to setup.py (this pulls the tests into the source distribution so that tests can be run after building with 2to3)
hodgestar
parents: 901
diff changeset
98 if sys.version_info >= (3,):
d010a80ebb4f Merge r1137 from py3k: add 2to3 build infrastructure to setup.py (this pulls the tests into the source distribution so that tests can be run after building with 2to3)
hodgestar
parents: 901
diff changeset
99 extra['use_2to3'] = True
d010a80ebb4f Merge r1137 from py3k: add 2to3 build infrastructure to setup.py (this pulls the tests into the source distribution so that tests can be run after building with 2to3)
hodgestar
parents: 901
diff changeset
100 extra['convert_2to3_doctests'] = []
d010a80ebb4f Merge r1137 from py3k: add 2to3 build infrastructure to setup.py (this pulls the tests into the source distribution so that tests can be run after building with 2to3)
hodgestar
parents: 901
diff changeset
101 extra['use_2to3_fixers'] = ['fixes']
d010a80ebb4f Merge r1137 from py3k: add 2to3 build infrastructure to setup.py (this pulls the tests into the source distribution so that tests can be run after building with 2to3)
hodgestar
parents: 901
diff changeset
102 # Install genshi template tests
d010a80ebb4f Merge r1137 from py3k: add 2to3 build infrastructure to setup.py (this pulls the tests into the source distribution so that tests can be run after building with 2to3)
hodgestar
parents: 901
diff changeset
103 extra['include_package_data'] = True
988
480cf1be291a Always include the test packages (otherwise sdists built on Python 2 don't work on Python 3 which is unexpected and confusing).
hodgestar
parents: 986
diff changeset
104
480cf1be291a Always include the test packages (otherwise sdists built on Python 2 don't work on Python 3 which is unexpected and confusing).
hodgestar
parents: 986
diff changeset
105
480cf1be291a Always include the test packages (otherwise sdists built on Python 2 don't work on Python 3 which is unexpected and confusing).
hodgestar
parents: 986
diff changeset
106 # include tests for python3 setup.py test (needed when creating
480cf1be291a Always include the test packages (otherwise sdists built on Python 2 don't work on Python 3 which is unexpected and confusing).
hodgestar
parents: 986
diff changeset
107 # source distributions on python2 too so that they work on python3)
480cf1be291a Always include the test packages (otherwise sdists built on Python 2 don't work on Python 3 which is unexpected and confusing).
hodgestar
parents: 986
diff changeset
108 packages = [
480cf1be291a Always include the test packages (otherwise sdists built on Python 2 don't work on Python 3 which is unexpected and confusing).
hodgestar
parents: 986
diff changeset
109 'genshi', 'genshi.filters', 'genshi.template',
480cf1be291a Always include the test packages (otherwise sdists built on Python 2 don't work on Python 3 which is unexpected and confusing).
hodgestar
parents: 986
diff changeset
110 'genshi.tests', 'genshi.filters.tests',
480cf1be291a Always include the test packages (otherwise sdists built on Python 2 don't work on Python 3 which is unexpected and confusing).
hodgestar
parents: 986
diff changeset
111 'genshi.template.tests',
480cf1be291a Always include the test packages (otherwise sdists built on Python 2 don't work on Python 3 which is unexpected and confusing).
hodgestar
parents: 986
diff changeset
112 'genshi.template.tests.templates',
480cf1be291a Always include the test packages (otherwise sdists built on Python 2 don't work on Python 3 which is unexpected and confusing).
hodgestar
parents: 986
diff changeset
113 ]
929
d010a80ebb4f Merge r1137 from py3k: add 2to3 build infrastructure to setup.py (this pulls the tests into the source distribution so that tests can be run after building with 2to3)
hodgestar
parents: 901
diff changeset
114
d010a80ebb4f Merge r1137 from py3k: add 2to3 build infrastructure to setup.py (this pulls the tests into the source distribution so that tests can be run after building with 2to3)
hodgestar
parents: 901
diff changeset
115
1
5479aae32f5a Initial import.
cmlenz
parents:
diff changeset
116 setup(
230
84168828b074 Renamed Markup to Genshi in repository.
cmlenz
parents: 215
diff changeset
117 name = 'Genshi',
986
97fcc9f0e191 Bump version number and add new section to ChangeLog.
hodgestar
parents: 978
diff changeset
118 version = '0.8',
599
eaf2a3171e12 Get rid of the previously overemphasized term ?stream-based? in the tagline, which seems to turn some people off.
cmlenz
parents: 596
diff changeset
119 description = 'A toolkit for generation of output for the web',
148
dcc9dc25bc59 Added changelog file, plus some README and setup tweaks.
cmlenz
parents: 145
diff changeset
120 long_description = \
452
a89368769b82 Add `filters` package in `setup.py`.
cmlenz
parents: 426
diff changeset
121 """Genshi is a Python library that provides an integrated set of
a89368769b82 Add `filters` package in `setup.py`.
cmlenz
parents: 426
diff changeset
122 components for parsing, generating, and processing HTML, XML or
a89368769b82 Add `filters` package in `setup.py`.
cmlenz
parents: 426
diff changeset
123 other textual content for output generation on the web. The major
a89368769b82 Add `filters` package in `setup.py`.
cmlenz
parents: 426
diff changeset
124 feature is a template language, which is heavily inspired by Kid.""",
148
dcc9dc25bc59 Added changelog file, plus some README and setup tweaks.
cmlenz
parents: 145
diff changeset
125 author = 'Edgewall Software',
dcc9dc25bc59 Added changelog file, plus some README and setup tweaks.
cmlenz
parents: 145
diff changeset
126 author_email = 'info@edgewall.org',
dcc9dc25bc59 Added changelog file, plus some README and setup tweaks.
cmlenz
parents: 145
diff changeset
127 license = 'BSD',
230
84168828b074 Renamed Markup to Genshi in repository.
cmlenz
parents: 215
diff changeset
128 url = 'http://genshi.edgewall.org/',
256
693a228bf1c7 Fix download URL.
cmlenz
parents: 255
diff changeset
129 download_url = 'http://genshi.edgewall.org/wiki/Download',
148
dcc9dc25bc59 Added changelog file, plus some README and setup tweaks.
cmlenz
parents: 145
diff changeset
130
124
a9a8db67bb5a Add Trove classifiers and download URL to `setup.py`.
cmlenz
parents: 84
diff changeset
131 classifiers = [
a9a8db67bb5a Add Trove classifiers and download URL to `setup.py`.
cmlenz
parents: 84
diff changeset
132 'Development Status :: 4 - Beta',
a9a8db67bb5a Add Trove classifiers and download URL to `setup.py`.
cmlenz
parents: 84
diff changeset
133 'Environment :: Web Environment',
a9a8db67bb5a Add Trove classifiers and download URL to `setup.py`.
cmlenz
parents: 84
diff changeset
134 'Intended Audience :: Developers',
a9a8db67bb5a Add Trove classifiers and download URL to `setup.py`.
cmlenz
parents: 84
diff changeset
135 'License :: OSI Approved :: BSD License',
a9a8db67bb5a Add Trove classifiers and download URL to `setup.py`.
cmlenz
parents: 84
diff changeset
136 'Operating System :: OS Independent',
a9a8db67bb5a Add Trove classifiers and download URL to `setup.py`.
cmlenz
parents: 84
diff changeset
137 'Programming Language :: Python',
978
06e89bc81d6d Add Python 2 trove classifier so it's clear that Python 2 is still supported.
hodgestar
parents: 954
diff changeset
138 'Programming Language :: Python :: 2',
929
d010a80ebb4f Merge r1137 from py3k: add 2to3 build infrastructure to setup.py (this pulls the tests into the source distribution so that tests can be run after building with 2to3)
hodgestar
parents: 901
diff changeset
139 'Programming Language :: Python :: 3',
124
a9a8db67bb5a Add Trove classifiers and download URL to `setup.py`.
cmlenz
parents: 84
diff changeset
140 'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
a9a8db67bb5a Add Trove classifiers and download URL to `setup.py`.
cmlenz
parents: 84
diff changeset
141 'Topic :: Software Development :: Libraries :: Python Modules',
a9a8db67bb5a Add Trove classifiers and download URL to `setup.py`.
cmlenz
parents: 84
diff changeset
142 'Topic :: Text Processing :: Markup :: HTML',
a9a8db67bb5a Add Trove classifiers and download URL to `setup.py`.
cmlenz
parents: 84
diff changeset
143 'Topic :: Text Processing :: Markup :: XML'
a9a8db67bb5a Add Trove classifiers and download URL to `setup.py`.
cmlenz
parents: 84
diff changeset
144 ],
215
94120e6b0ce4 A couple of minor XPath fixes.
cmlenz
parents: 189
diff changeset
145 keywords = ['python.templating.engines'],
929
d010a80ebb4f Merge r1137 from py3k: add 2to3 build infrastructure to setup.py (this pulls the tests into the source distribution so that tests can be run after building with 2to3)
hodgestar
parents: 901
diff changeset
146 packages = packages,
230
84168828b074 Renamed Markup to Genshi in repository.
cmlenz
parents: 215
diff changeset
147 test_suite = 'genshi.tests.suite',
84
0a1843b2c096 Make dependency of the setup script on setuptools optional.
cmlenz
parents: 66
diff changeset
148
530
78039a4c2f57 Add extra for I18n.
cmlenz
parents: 528
diff changeset
149 extras_require = {
78039a4c2f57 Add extra for I18n.
cmlenz
parents: 528
diff changeset
150 'i18n': ['Babel>=0.8'],
78039a4c2f57 Add extra for I18n.
cmlenz
parents: 528
diff changeset
151 'plugin': ['setuptools>=0.6a2']
78039a4c2f57 Add extra for I18n.
cmlenz
parents: 528
diff changeset
152 },
4
49364e784c47 Added first stab of an implementation of the !TurboGears [http://www.turbogears.org/docs/plugins/template.html plugin API for template engines], and also a !TurboGears-based example using this plugin. Both written by Matt Good.
cmlenz
parents: 1
diff changeset
153 entry_points = """
528
24df908da22d Integrated [http://babel.edgewall.org/ Babel] message extraction plugin, and added I18n doc page.
cmlenz
parents: 508
diff changeset
154 [babel.extractors]
530
78039a4c2f57 Add extra for I18n.
cmlenz
parents: 528
diff changeset
155 genshi = genshi.filters.i18n:extract[i18n]
528
24df908da22d Integrated [http://babel.edgewall.org/ Babel] message extraction plugin, and added I18n doc page.
cmlenz
parents: 508
diff changeset
156
4
49364e784c47 Added first stab of an implementation of the !TurboGears [http://www.turbogears.org/docs/plugins/template.html plugin API for template engines], and also a !TurboGears-based example using this plugin. Both written by Matt Good.
cmlenz
parents: 1
diff changeset
157 [python.templating.engines]
336
7763f7aec949 Refactoring: `genshi.template` is now a package, it was getting way to crowded in that file.
cmlenz
parents: 265
diff changeset
158 genshi = genshi.template.plugin:MarkupTemplateEnginePlugin[plugin]
7763f7aec949 Refactoring: `genshi.template` is now a package, it was getting way to crowded in that file.
cmlenz
parents: 265
diff changeset
159 genshi-markup = genshi.template.plugin:MarkupTemplateEnginePlugin[plugin]
7763f7aec949 Refactoring: `genshi.template` is now a package, it was getting way to crowded in that file.
cmlenz
parents: 265
diff changeset
160 genshi-text = genshi.template.plugin:TextTemplateEnginePlugin[plugin]
4
49364e784c47 Added first stab of an implementation of the !TurboGears [http://www.turbogears.org/docs/plugins/template.html plugin API for template engines], and also a !TurboGears-based example using this plugin. Both written by Matt Good.
cmlenz
parents: 1
diff changeset
161 """,
382
2682dabbcd04 * Added documentation for the various stream event kinds.
cmlenz
parents: 336
diff changeset
162
541
773d8c470e82 Merged cspeedups branch into trunk.
cmlenz
parents: 530
diff changeset
163 features = {'speedups': speedups},
929
d010a80ebb4f Merge r1137 from py3k: add 2to3 build infrastructure to setup.py (this pulls the tests into the source distribution so that tests can be run after building with 2to3)
hodgestar
parents: 901
diff changeset
164 cmdclass = cmdclass,
d010a80ebb4f Merge r1137 from py3k: add 2to3 build infrastructure to setup.py (this pulls the tests into the source distribution so that tests can be run after building with 2to3)
hodgestar
parents: 901
diff changeset
165
d010a80ebb4f Merge r1137 from py3k: add 2to3 build infrastructure to setup.py (this pulls the tests into the source distribution so that tests can be run after building with 2to3)
hodgestar
parents: 901
diff changeset
166 **extra
1
5479aae32f5a Initial import.
cmlenz
parents:
diff changeset
167 )
Copyright (C) 2012-2017 Edgewall Software