Skip to content

Commit

Permalink
PEP 8
Browse files Browse the repository at this point in the history
integrate contentprovider into long description
remove escape of html
  • Loading branch information
gotcha committed Jul 1, 2010
1 parent 8ab5f62 commit 2c6824b
Showing 1 changed file with 30 additions and 28 deletions.
58 changes: 30 additions & 28 deletions setup.py
Expand Up @@ -16,13 +16,14 @@
$Id$
"""
import os
import xml.sax.saxutils
from setuptools import setup, find_packages


def read(*rnames):
text = open(os.path.join(os.path.dirname(__file__), *rnames)).read()
text = unicode(text, 'utf-8').encode('ascii', 'xmlcharrefreplace')
return xml.sax.saxutils.escape(text)
return text


chapters = '\n'.join(
[read('src', 'z3c', 'form', name)
Expand All @@ -35,32 +36,33 @@ def read(*rnames):
'zcml.txt',
'validator.txt',
'widget.txt',
'contentprovider.txt',
'action.txt',
'value.txt',
'datamanager.txt',
'converter.txt',
'term.txt',
'util.txt')])
'util.txt',
)])


setup (
setup(
name='z3c.form',
version = '2.3.5dev',
author = "Stephan Richter, Roger Ineichen and the Zope Community",
author_email = "zope-dev@zope.org",
description = "An advanced form and widget framework for Zope 3",
version='2.3.5dev',
author="Stephan Richter, Roger Ineichen and the Zope Community",
author_email="zope-dev@zope.org",
description="An advanced form and widget framework for Zope 3",
long_description=(
read('README.txt')
+ '\n\n' +
'Detailed Documentation\n'
'**********************\n'
+ '\n' + chapters
+ '\n\n' +
read('CHANGES.txt')
),
license = "ZPL 2.1",
keywords = "zope3 form widget",
classifiers = [
+ '\n\n'
+ read('CHANGES.txt')),
license="ZPL 2.1",
keywords="zope3 form widget",
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Intended Audience :: Developers',
Expand All @@ -70,17 +72,17 @@ def read(*rnames):
'Operating System :: OS Independent',
'Topic :: Internet :: WWW/HTTP',
'Framework :: Zope3'],
url = 'http://pypi.python.org/pypi/z3c.form',
packages = find_packages('src'),
include_package_data = True,
package_dir = {'':'src'},
namespace_packages = ['z3c'],
extras_require = dict(
extra = [
url='http://pypi.python.org/pypi/z3c.form',
packages=find_packages('src'),
include_package_data=True,
package_dir={'': 'src'},
namespace_packages=['z3c'],
extras_require=dict(
extra=[
'z3c.pt >= 1.0b4',
'z3c.ptcompat',
],
test = [
test=[
'lxml >= 2.1.1',
'z3c.coverage',
'z3c.template',
Expand All @@ -93,16 +95,16 @@ def read(*rnames):
'zope.app.testing',
'zope.testing',
],
zope34 = [
zope34=[
'zope.app.component',
],
latest = [
latest=[
'zope.site',
],
adding = ['zope.app.container'],
docs = ['z3c.recipe.sphinxdoc'],
adding=['zope.app.container'],
docs=['z3c.recipe.sphinxdoc'],
),
install_requires = [
install_requires=[
'setuptools',
'zope.browser',
'zope.component',
Expand All @@ -122,5 +124,5 @@ def read(*rnames):
#'zope.site' or 'zope.app.component',
'zope.traversing',
],
zip_safe = False,
zip_safe=False,
)

0 comments on commit 2c6824b

Please sign in to comment.