Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Moved z3c.pt include to extras_require chameleon. This makes the pa…
…ckage independent from chameleon and friends and allows to include this dependencies in your own project. - Upgrade to chameleon 2.0 template engine and use the newest z3c.pt and z3c.ptcompat packages adjusted to work with chameleon 2.0. See the notes from the z3c.ptcompat package: Update z3c.ptcompat implementation to use component-based template engine configuration, plugging directly into the Zope Toolkit framework. The z3c.ptcompat package no longer provides template classes, or ZCML directives; you should import directly from the ZTK codebase. Note that the ``PREFER_Z3C_PT`` environment option has been rendered obsolete; instead, this is now managed via component configuration. Also note that the chameleon CHAMELEON_CACHE environment value changed from True/False to a path. Skip this property if you don't like to use a cache. None or False defined in buildout environment section doesn't work. At least with chameleon <= 2.5.4 Attention: You need to include the configure.zcml file from z3c.ptcompat for enable the z3c.pt template engine. The configure.zcml will plugin the template engine. Also remove any custom built hooks which will import z3c.ptcompat in your tests or other places.
- Loading branch information
Showing
10 changed files
with
212 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,31 @@ | ||
[buildout] | ||
develop = . | ||
parts = test | ||
parts = test coverage-test coverage-report | ||
versions = versions | ||
|
||
[versions] | ||
z3c.pt = 1.2.1 | ||
Chameleon = 1.2.13 | ||
lxml = 2.3 # no windows release for 3.2.1 | ||
|
||
|
||
[test-environment] | ||
CHAMELEON_DEBUG = False | ||
|
||
|
||
[test] | ||
recipe = zc.recipe.testrunner | ||
eggs = z3c.macro [test] | ||
environment = test-environment | ||
|
||
[test-environment] | ||
CHAMELEON_DEBUG = False | ||
CHAMELEON_CACHE = False | ||
|
||
[coverage-test] | ||
recipe = zc.recipe.testrunner | ||
eggs = z3c.macro [test] | ||
defaults = ['--coverage', '../../coverage'] | ||
environment = test-environment | ||
|
||
|
||
[coverage-report] | ||
recipe = zc.recipe.egg | ||
eggs = z3c.coverage | ||
scripts = coveragereport | ||
arguments = ('parts/coverage', 'parts/coverage/report') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,79 +1,84 @@ | ||
############################################################################## | ||
# | ||
# Copyright (c) 2007 Zope Foundation and Contributors. | ||
# All Rights Reserved. | ||
# | ||
# This software is subject to the provisions of the Zope Public License, | ||
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. | ||
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED | ||
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS | ||
# FOR A PARTICULAR PURPOSE. | ||
# | ||
############################################################################## | ||
"""Setup | ||
$Id$ | ||
""" | ||
import os | ||
from setuptools import setup, find_packages | ||
|
||
def read(*rnames): | ||
return open(os.path.join(os.path.dirname(__file__), *rnames)).read() | ||
|
||
setup( | ||
name='z3c.macro', | ||
version='1.3.1dev', | ||
author = "Roger Ineichen and the Zope Community", | ||
author_email = "zope-dev@zope.org", | ||
description = "Simpler definition of ZPT macros.", | ||
long_description=( | ||
read('README.txt') | ||
+ '\n\n' + | ||
'Detailed Documentation\n' | ||
'======================\n' | ||
+ '\n\n' + | ||
read('src', 'z3c', 'macro', 'README.txt') | ||
+ '\n\n' + | ||
read('src', 'z3c', 'macro', 'zcml.txt') | ||
+ '\n\n' + | ||
read('CHANGES.txt') | ||
), | ||
license = "ZPL 2.1", | ||
keywords = "zope3 macro pagetemplate zpt", | ||
classifiers = [ | ||
'Development Status :: 5 - Production/Stable', | ||
'Environment :: Web Environment', | ||
'Intended Audience :: Developers', | ||
'License :: OSI Approved :: Zope Public License', | ||
'Programming Language :: Python', | ||
'Natural Language :: English', | ||
'Operating System :: OS Independent', | ||
'Topic :: Internet :: WWW/HTTP', | ||
'Framework :: Zope3'], | ||
url = 'http://pypi.python.org/pypi/z3c.macro', | ||
packages = find_packages('src'), | ||
package_dir = {'':'src'}, | ||
namespace_packages = ['z3c'], | ||
extras_require = dict( | ||
test = ['z3c.template', | ||
'z3c.pt>=1.0b4', | ||
'lxml>=2.1.1', | ||
'zope.browserpage>=3.12', | ||
'zope.app.testing', | ||
'zope.testing'], | ||
), | ||
install_requires = [ | ||
'setuptools', | ||
'zope.component', | ||
'zope.configuration', | ||
'zope.interface', | ||
'zope.pagetemplate', | ||
'zope.publisher', | ||
'zope.schema', | ||
'zope.tales', | ||
'z3c.ptcompat[zpt]', | ||
], | ||
include_package_data = True, | ||
zip_safe = False, | ||
) | ||
############################################################################## | ||
# | ||
# Copyright (c) 2007 Zope Foundation and Contributors. | ||
# All Rights Reserved. | ||
# | ||
# This software is subject to the provisions of the Zope Public License, | ||
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. | ||
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED | ||
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS | ||
# FOR A PARTICULAR PURPOSE. | ||
# | ||
############################################################################## | ||
"""Setup | ||
$Id$ | ||
""" | ||
import os | ||
from setuptools import setup, find_packages | ||
|
||
def read(*rnames): | ||
return open(os.path.join(os.path.dirname(__file__), *rnames)).read() | ||
|
||
setup( | ||
name='z3c.macro', | ||
version='1.4.0', | ||
author = "Roger Ineichen and the Zope Community", | ||
author_email = "zope-dev@zope.org", | ||
description = "Simpler definition of ZPT macros.", | ||
long_description=( | ||
read('README.txt') | ||
+ '\n\n' + | ||
'Detailed Documentation\n' | ||
'======================\n' | ||
+ '\n\n' + | ||
read('src', 'z3c', 'macro', 'README.txt') | ||
+ '\n\n' + | ||
read('src', 'z3c', 'macro', 'zcml.txt') | ||
+ '\n\n' + | ||
read('CHANGES.txt') | ||
), | ||
license = "ZPL 2.1", | ||
keywords = "zope3 macro pagetemplate zpt", | ||
classifiers = [ | ||
'Development Status :: 5 - Production/Stable', | ||
'Environment :: Web Environment', | ||
'Intended Audience :: Developers', | ||
'License :: OSI Approved :: Zope Public License', | ||
'Programming Language :: Python', | ||
'Natural Language :: English', | ||
'Operating System :: OS Independent', | ||
'Topic :: Internet :: WWW/HTTP', | ||
'Framework :: Zope3'], | ||
url = 'http://pypi.python.org/pypi/z3c.macro', | ||
packages = find_packages('src'), | ||
package_dir = {'':'src'}, | ||
namespace_packages = ['z3c'], | ||
extras_require = dict( | ||
test = [ | ||
'z3c.pt >= 2.1', | ||
'z3c.ptcompat>=1.0', | ||
'z3c.template', | ||
'zope.app.testing', | ||
'zope.browserpage>=3.12', | ||
'zope.testing', | ||
], | ||
chameleon = [ | ||
'z3c.pt >= 2.1', | ||
'z3c.ptcompat>=1.0', | ||
], | ||
), | ||
install_requires = [ | ||
'setuptools', | ||
'zope.component', | ||
'zope.configuration', | ||
'zope.interface', | ||
'zope.pagetemplate >= 3.6.2' | ||
'zope.publisher', | ||
'zope.schema', | ||
'zope.tales', | ||
], | ||
include_package_data = True, | ||
zip_safe = False, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.