[Checkins] SVN: Products.CMFActionIcons/trunk/setup.py - no need for the version.txt processing, we only use clean version numbers

Jens Vagelpohl jens at dataflake.org
Mon Aug 25 12:52:45 EDT 2008


Log message for revision 90232:
  - no need for the version.txt processing, we only use clean version numbers
  - change author email to the canonical list address
  - change homepage to package's PyPI page
  - change long_description so it contains useful information
  - flesh out installation requirements
  

Changed:
  U   Products.CMFActionIcons/trunk/setup.py

-=-
Modified: Products.CMFActionIcons/trunk/setup.py
===================================================================
--- Products.CMFActionIcons/trunk/setup.py	2008-08-25 16:50:20 UTC (rev 90231)
+++ Products.CMFActionIcons/trunk/setup.py	2008-08-25 16:52:44 UTC (rev 90232)
@@ -11,19 +11,16 @@
     f = open(os.path.join(package, name))
     return f.read()
 
-VERSION = _package_doc('version.txt').strip()
-if VERSION.startswith(NAME):
-    VERSION = VERSION[len(NAME):]
-while VERSION and VERSION[0] in '-_.':
-    VERSION = VERSION[1:]
-
-_boundary = '\n' + ('-' * 60) + '\n'
-README = (open(os.path.join(here, 'README.txt')).read()
-         + _boundary + _package_doc('README.txt')
+_boundary = '\n' + ('-' * 60) + '\n\n'
+README = ( _package_doc('README.txt')
+         + _boundary
+         + _package_doc('CHANGES.txt')
+         + _boundary
+         + "Download\n========"
          )
 
 setup(name='Products.%s' % NAME,
-      version=VERSION,
+      version=_package_doc('version.txt').strip(),
       description='Action icons product for the Zope Content Management Framework',
       long_description=README,
       classifiers=[
@@ -38,15 +35,18 @@
         ],
       keywords='web application server zope zope2 cmf',
       author="Zope Corporation and contributors",
-      author_email="zope-cmf at lists.zope.org",
-      url="http://www.zope.org/Products/CMF",
+      author_email="zope-cmf at zope.org",
+      url="http://pypi.python.org/pypi/Products.CMFActionIcons",
       license="ZPL 2.1 (http://www.zope.org/Resources/License/ZPL-2.1)",
       packages=find_packages(),
       include_package_data=True,
       namespace_packages=['Products'],
       zip_safe=False,
       install_requires=[
+          #'Zope >= 2.10.4',
           'setuptools',
+          'Products.CMFCore',
+          'Products.GenericSetup',
           ],
       entry_points="""
       [zope2.initialize]



More information about the Checkins mailing list