[Checkins] SVN: Products.CMFTopic/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:54:06 EDT 2008
Log message for revision 90236:
- 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.CMFTopic/trunk/setup.py
-=-
Modified: Products.CMFTopic/trunk/setup.py
===================================================================
--- Products.CMFTopic/trunk/setup.py 2008-08-25 16:53:30 UTC (rev 90235)
+++ Products.CMFTopic/trunk/setup.py 2008-08-25 16:54:06 UTC (rev 90236)
@@ -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='Topic 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.CMFTopic",
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.CMFDefault',
+ 'Products.GenericSetup',
],
entry_points="""
[zope2.initialize]
More information about the Checkins
mailing list