Mercurial > genshi > mirror
annotate setup.py @ 624:dc657447f352 trunk
Use packed version of jQuery to workaround !CherryPy bug [http://www.cherrypy.org/ticket/598 #598].
author | cmlenz |
---|---|
date | Fri, 31 Aug 2007 16:58:30 +0000 |
parents | eaf2a3171e12 |
children | ae54722b00d1 |
rev | line source |
---|---|
1 | 1 #!/usr/bin/env python |
2 # -*- coding: utf-8 -*- | |
3 # | |
596
badb5e5b7bb9
Follow-up to [708]. The added `extract_text` option wasn't actually being handled by the Babel extraction plugin.
cmlenz
parents:
585
diff
changeset
|
4 # Copyright (C) 2006-2007 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 | |
230 | 9 # are also available at http://genshi.edgewall.org/wiki/License. |
1 | 10 # |
11 # This software consists of voluntary contributions made by many | |
12 # individuals. For the exact contribution history, see the revision | |
230 | 13 # history and logs, available at http://genshi.edgewall.org/log/. |
1 | 14 |
382
2682dabbcd04
* Added documentation for the various stream event kinds.
cmlenz
parents:
336
diff
changeset
|
15 from distutils.cmd import Command |
541 | 16 from distutils.command.build_ext import build_ext |
17 from distutils.errors import CCompilerError | |
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 | 22 from setuptools import setup, Extension, Feature |
84
0a1843b2c096
Make dependency of the setup script on setuptools optional.
cmlenz
parents:
66
diff
changeset
|
23 except ImportError: |
541 | 24 from distutils.core import setup, Extension |
25 Feature = None | |
426 | 26 import sys |
1 | 27 |
585
db133252d1ff
Documentation stuff moved to a common shared repository.
cmlenz
parents:
541
diff
changeset
|
28 sys.path.append(os.path.join('doc', 'common')) |
db133252d1ff
Documentation stuff moved to a common shared repository.
cmlenz
parents:
541
diff
changeset
|
29 try: |
db133252d1ff
Documentation stuff moved to a common shared repository.
cmlenz
parents:
541
diff
changeset
|
30 from doctools import build_doc, test_doc |
db133252d1ff
Documentation stuff moved to a common shared repository.
cmlenz
parents:
541
diff
changeset
|
31 except ImportError: |
db133252d1ff
Documentation stuff moved to a common shared repository.
cmlenz
parents:
541
diff
changeset
|
32 build_doc = test_doc = None |
394 | 33 |
34 | |
541 | 35 class optional_build_ext(build_ext): |
36 # This class allows C extension building to fail. | |
37 def build_extension(self, ext): | |
38 try: | |
39 build_ext.build_extension(self, ext) | |
40 except CCompilerError, x: | |
41 print '*' * 70 | |
42 print """WARNING: | |
43 An optional C extension could not be compiled, speedups will not be | |
44 available.""" | |
45 print '*' * 70 | |
46 | |
47 | |
48 if Feature: | |
49 speedups = Feature( | |
50 "optionial C speed-enhancements", | |
51 standard = True, | |
52 ext_modules = [ | |
53 Extension('genshi._speedups', ['genshi/_speedups.c']), | |
54 ], | |
55 ) | |
56 else: | |
57 speedups = None | |
58 | |
1 | 59 setup( |
230 | 60 name = 'Genshi', |
455 | 61 version = '0.5', |
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
|
62 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
|
63 long_description = \ |
452 | 64 """Genshi is a Python library that provides an integrated set of |
65 components for parsing, generating, and processing HTML, XML or | |
66 other textual content for output generation on the web. The major | |
67 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
|
68 author = 'Edgewall Software', |
dcc9dc25bc59
Added changelog file, plus some README and setup tweaks.
cmlenz
parents:
145
diff
changeset
|
69 author_email = 'info@edgewall.org', |
dcc9dc25bc59
Added changelog file, plus some README and setup tweaks.
cmlenz
parents:
145
diff
changeset
|
70 license = 'BSD', |
230 | 71 url = 'http://genshi.edgewall.org/', |
256 | 72 download_url = 'http://genshi.edgewall.org/wiki/Download', |
148
dcc9dc25bc59
Added changelog file, plus some README and setup tweaks.
cmlenz
parents:
145
diff
changeset
|
73 zip_safe = True, |
dcc9dc25bc59
Added changelog file, plus some README and setup tweaks.
cmlenz
parents:
145
diff
changeset
|
74 |
124
a9a8db67bb5a
Add Trove classifiers and download URL to `setup.py`.
cmlenz
parents:
84
diff
changeset
|
75 classifiers = [ |
a9a8db67bb5a
Add Trove classifiers and download URL to `setup.py`.
cmlenz
parents:
84
diff
changeset
|
76 'Development Status :: 4 - Beta', |
a9a8db67bb5a
Add Trove classifiers and download URL to `setup.py`.
cmlenz
parents:
84
diff
changeset
|
77 'Environment :: Web Environment', |
a9a8db67bb5a
Add Trove classifiers and download URL to `setup.py`.
cmlenz
parents:
84
diff
changeset
|
78 'Intended Audience :: Developers', |
a9a8db67bb5a
Add Trove classifiers and download URL to `setup.py`.
cmlenz
parents:
84
diff
changeset
|
79 'License :: OSI Approved :: BSD License', |
a9a8db67bb5a
Add Trove classifiers and download URL to `setup.py`.
cmlenz
parents:
84
diff
changeset
|
80 'Operating System :: OS Independent', |
a9a8db67bb5a
Add Trove classifiers and download URL to `setup.py`.
cmlenz
parents:
84
diff
changeset
|
81 'Programming Language :: Python', |
a9a8db67bb5a
Add Trove classifiers and download URL to `setup.py`.
cmlenz
parents:
84
diff
changeset
|
82 'Topic :: Internet :: WWW/HTTP :: Dynamic Content', |
a9a8db67bb5a
Add Trove classifiers and download URL to `setup.py`.
cmlenz
parents:
84
diff
changeset
|
83 'Topic :: Software Development :: Libraries :: Python Modules', |
a9a8db67bb5a
Add Trove classifiers and download URL to `setup.py`.
cmlenz
parents:
84
diff
changeset
|
84 'Topic :: Text Processing :: Markup :: HTML', |
a9a8db67bb5a
Add Trove classifiers and download URL to `setup.py`.
cmlenz
parents:
84
diff
changeset
|
85 'Topic :: Text Processing :: Markup :: XML' |
a9a8db67bb5a
Add Trove classifiers and download URL to `setup.py`.
cmlenz
parents:
84
diff
changeset
|
86 ], |
215 | 87 keywords = ['python.templating.engines'], |
452 | 88 packages = ['genshi', 'genshi.filters', 'genshi.template'], |
230 | 89 test_suite = 'genshi.tests.suite', |
84
0a1843b2c096
Make dependency of the setup script on setuptools optional.
cmlenz
parents:
66
diff
changeset
|
90 |
530 | 91 extras_require = { |
92 'i18n': ['Babel>=0.8'], | |
93 'plugin': ['setuptools>=0.6a2'] | |
94 }, | |
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
|
95 entry_points = """ |
528
24df908da22d
Integrated [http://babel.edgewall.org/ Babel] message extraction plugin, and added I18n doc page.
cmlenz
parents:
508
diff
changeset
|
96 [babel.extractors] |
530 | 97 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
|
98 |
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
|
99 [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
|
100 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
|
101 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
|
102 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
|
103 """, |
382
2682dabbcd04
* Added documentation for the various stream event kinds.
cmlenz
parents:
336
diff
changeset
|
104 |
541 | 105 features = {'speedups': speedups}, |
106 cmdclass = {'build_doc': build_doc, 'test_doc': test_doc, | |
107 'build_ext': optional_build_ext} | |
1 | 108 ) |