[Checkins] SVN: z3c.form/branches/fieldsandcontentproviders/setup.py PEP 8

Godefroid Chapelle gotcha at bubblenet.be
Thu Jul 1 06:44:21 EDT 2010


Log message for revision 114043:
  PEP 8
  integrate contentprovider into long description
  remove escape of html
  

Changed:
  U   z3c.form/branches/fieldsandcontentproviders/setup.py

-=-
Modified: z3c.form/branches/fieldsandcontentproviders/setup.py
===================================================================
--- z3c.form/branches/fieldsandcontentproviders/setup.py	2010-07-01 10:37:37 UTC (rev 114042)
+++ z3c.form/branches/fieldsandcontentproviders/setup.py	2010-07-01 10:44:21 UTC (rev 114043)
@@ -16,14 +16,15 @@
 $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)
     for name in ('README.txt',
@@ -35,32 +36,33 @@
                  '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 at 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 at 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',
@@ -70,17 +72,17 @@
         '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',
@@ -93,16 +95,16 @@
             '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',
@@ -122,5 +124,5 @@
         #'zope.site' or 'zope.app.component',
         'zope.traversing',
         ],
-    zip_safe = False,
+    zip_safe=False,
     )



More information about the checkins mailing list