[Checkins] SVN: zope.minmax/trunk/ Adjusted package setup to be closer to all the other packages.

Stephan Richter srichter at cosmos.phy.tufts.edu
Tue Oct 2 22:23:03 EDT 2007


Log message for revision 80521:
  Adjusted package setup to be closer to all the other packages.
  

Changed:
  U   zope.minmax/trunk/CHANGES.txt
  U   zope.minmax/trunk/README.txt
  U   zope.minmax/trunk/buildout.cfg
  U   zope.minmax/trunk/setup.py

-=-
Modified: zope.minmax/trunk/CHANGES.txt
===================================================================
--- zope.minmax/trunk/CHANGES.txt	2007-10-03 02:09:49 UTC (rev 80520)
+++ zope.minmax/trunk/CHANGES.txt	2007-10-03 02:23:03 UTC (rev 80521)
@@ -1,22 +1,22 @@
 Changes
 =======
 
-1.1 (unreleased)
+1.1 (2007-10-02)
 ----------------
 
-...
+- Refactored package setup.
 
 1.0 (2007-09-28)
 ----------------
 
-No further changes since 1.0b2
+- No further changes since 1.0b2
 
 1.0b2 (2007-07-09)
 ------------------
 
-Removed _p_independent method from AbstractValue class.
+- Removed ``_p_independent`` method from ``AbstractValue`` class.
 
 1.0b1 (2007-07-03)
 ------------------
 
-Initial release.
+- Initial release.

Modified: zope.minmax/trunk/README.txt
===================================================================
--- zope.minmax/trunk/README.txt	2007-10-03 02:09:49 UTC (rev 80520)
+++ zope.minmax/trunk/README.txt	2007-10-03 02:23:03 UTC (rev 80521)
@@ -1,3 +1,3 @@
 This package provides support for homogeneous values favoring maximum
 or minimum for ZODB conflict resolution.  See
-src/zope/minmax/minmax.txt for a detailed description.
+``src/zope/minmax/minmax.txt`` for a detailed description.

Modified: zope.minmax/trunk/buildout.cfg
===================================================================
--- zope.minmax/trunk/buildout.cfg	2007-10-03 02:09:49 UTC (rev 80520)
+++ zope.minmax/trunk/buildout.cfg	2007-10-03 02:23:03 UTC (rev 80521)
@@ -2,11 +2,9 @@
 develop = .
 parts = test py
 
-find-links = http://download.zope.org/distribution/
-
 [test]
 recipe = zc.recipe.testrunner
-eggs = zope.minmax
+eggs = zope.minmax [test]
 
 [py]
 recipe = zc.recipe.egg

Modified: zope.minmax/trunk/setup.py
===================================================================
--- zope.minmax/trunk/setup.py	2007-10-03 02:09:49 UTC (rev 80520)
+++ zope.minmax/trunk/setup.py	2007-10-03 02:23:03 UTC (rev 80521)
@@ -1,25 +1,63 @@
-from setuptools import setup
+##############################################################################
+#
+# Copyright (c) 2007 Zope Corporation 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 for zope.minmax package
+"""
+import os
+from setuptools import setup, find_packages
 
-long_description = (open("src/zope/minmax/minmax.txt").read() +
-                    '\n\n' +
-                    open("CHANGES.txt").read())
+def read(*rnames):
+    text = open(os.path.join(os.path.dirname(__file__), *rnames)).read()
+    return text
 
-setup(
-    name="zope.minmax",
-    version="1.1dev",
-    license="ZPL 2.1",
-    author="Zope Project",
-    author_email="zope3-dev at zope.org",
-    description="Homogeneous values favoring maximum or minimum for ZODB "
-                "conflict resolution",
-    long_description=long_description,
-    keywords="zope zope3",
-
-    namespace_packages=["zope"],
-    packages=["zope", "zope.minmax"],
-    package_dir={"": "src"},
-    include_package_data=True,
-    install_requires=["setuptools", "zope.interface", "ZODB3"],
-    tests_require=["zope.testing"],
-    zip_safe=False
-    )
+setup(name='zope.minmax',
+      version = '1.1.0',
+      author='Zope Corporation and Contributors',
+      author_email='zope3-dev at zope.org',
+      description=("Homogeneous values favoring maximum or minimum for ZODB "
+                   "conflict resolution"),
+      long_description=(
+          read('README.txt')
+          + '\n\n' +
+          'Detailed Documentation\n' +
+          '======================'
+          + '\n\n' +
+          read('src', 'zope', 'minmax', 'minmax.txt')
+          + '\n\n' +
+          read('CHANGES.txt')
+          ),
+      license='ZPL 2.1',
+      keywords=('zope3 zope zodb'),
+      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/zope.location/',
+      packages=find_packages('src'),
+      package_dir = {'': 'src'},
+      namespace_packages=['zope',],
+      extras_require=dict(
+          test=['zope.testing']),
+      install_requires=['setuptools',
+                        'zope.interface',
+                        'ZODB3',
+                        ],
+      include_package_data = True,
+      zip_safe = False,
+      )



More information about the Checkins mailing list