[Checkins] SVN: zope.thread/trunk/ Changed the version number in setup.py. Used find_packages instead of listing

Alexander Heavner alex at zope.com
Wed Feb 14 16:45:08 EST 2007


Log message for revision 72587:
  Changed the version number in setup.py. Used find_packages instead of listing
  packages out.
  Removed setup.cfg.in, INSTALL.txt, develop.py, CHANGES.txt, test.py,
  MANIFEST.in and README.txt because they are no longer needed.
  Changed the try statement in __init__.py
  

Changed:
  _U  zope.thread/trunk/
  D   zope.thread/trunk/CHANGES.txt
  D   zope.thread/trunk/INSTALL.txt
  D   zope.thread/trunk/MANIFEST.in
  D   zope.thread/trunk/README.txt
  D   zope.thread/trunk/develop.py
  D   zope.thread/trunk/setup.cfg.in
  U   zope.thread/trunk/setup.py
  U   zope.thread/trunk/src/zope/__init__.py
  D   zope.thread/trunk/test.py

-=-

Property changes on: zope.thread/trunk
___________________________________________________________________
Name: svn:externals
   - workspace svn://svn.zope.org/repos/main/projectsupport/trunk/src/workspace

   + 


Deleted: zope.thread/trunk/CHANGES.txt
===================================================================
--- zope.thread/trunk/CHANGES.txt	2007-02-14 21:37:46 UTC (rev 72586)
+++ zope.thread/trunk/CHANGES.txt	2007-02-14 21:45:08 UTC (rev 72587)
@@ -1,24 +0,0 @@
-zope.thread Package Changelog
-=============================
-
-zope.thread version 3.2.0 (2006/01/05)
---------------------------------------
-
-- Corresponds to the verison of the zope.thread package shipped as part of
-  the Zope 3.2.0 release.
-
-- Packaging changes only.
-
-zope.thread version 3.1.0 (2005/10/03)
---------------------------------------
-
-- Corresponds to the verison of the zope.thread package shipped as part of
-  the Zope 3.1.0 release.
-
-- Coding style / documentation fixes only.
-
-zope.thread version 3.0.0 (2004/11/07)
---------------------------------------
-
-- Corresponds to the verison of the zope.thread package shipped as part of
-  the Zope X3.0.0 release.

Deleted: zope.thread/trunk/INSTALL.txt
===================================================================
--- zope.thread/trunk/INSTALL.txt	2007-02-14 21:37:46 UTC (rev 72586)
+++ zope.thread/trunk/INSTALL.txt	2007-02-14 21:45:08 UTC (rev 72587)
@@ -1,83 +0,0 @@
-Installing This Package
-=======================
-
-Prerequisites
--------------
-
-The installation steps below assume that you have the cool new 'setuptools'
-package installed in your Python.  Here is where to get it:
-
-  $ wget http://peak.telecommunity.com/dist/ez_setup.py
-  $ /path/to/your/python ez_setup.py # req. write access to 'site-packages'
-
-
-  - Docs for EasyInstall:
-    http://peak.telecommunity.com/DevCenter/EasyInstall
-
-  - Docs for setuptools:
-    http://peak.telecommunity.com/DevCenter/setuptools
-
-  - Docs for eggs:
-    http://peak.telecommunity.com/DevCenter/PythonEggs
-
-
-Installing a Development Checkout
----------------------------------
-
-Check out the package from subversion:
-
-  $ svn co svn+ssh://svn.zope.org/repos/main/zope.thread/trunk \
-    src/zope.thread
-  $ cd src/zope.thread
-
-Install it as a "devlopment egg" (which also installs its "hard"
-dependencies):
-
-  $ /path/to/your/python setup.py devel
-
-The installation of dependency eggs uses the 'setup.cfg' file in
-the checkout.  You can supply '--find-links' on the command line to
-point it at a non-standard package repository.
-
-
-Running the Tests
------------------
-
-To test the package, you will also need the 'zope.testing' package, which
-can't (yet) be automatically installed.  Eventually, you should be able to
-type:
-
-  $ /path/to/your/python setup.py test
-
-and have it install the "testing dependencies."  Today, the workaround
-is to install it manually:
-
-  $ /path/to/easy_install --find-links="...." zope.testing
-
-You can then run the tests (finally) from the checkout directory:
-
-  $ /path/to/your/python test.py
-    Running:
-      .............
-    Ran 13 tests with 0 failures and 0 errors in 0.094 seconds.
-
-
-Installing a Source Distribution
---------------------------------
-
-You can also install it from a source distribution:
-
-  $ /path/to/easy_install --find-links="...." -eb src zope.thread
-  $ cd src/zope.thread
-  $ /path/to/your/python setup.py devel
-
-
-Installing a Binary Egg
------------------------
-
-Install the package as a "binary egg" (which also installs its "hard"
-dependencies):
-
-  $ /path/to/easy_install --find-links="...." zope.thread
-
-

Deleted: zope.thread/trunk/MANIFEST.in
===================================================================
--- zope.thread/trunk/MANIFEST.in	2007-02-14 21:37:46 UTC (rev 72586)
+++ zope.thread/trunk/MANIFEST.in	2007-02-14 21:45:08 UTC (rev 72587)
@@ -1 +0,0 @@
-exclude setup.cfg

Deleted: zope.thread/trunk/README.txt
===================================================================
--- zope.thread/trunk/README.txt	2007-02-14 21:37:46 UTC (rev 72586)
+++ zope.thread/trunk/README.txt	2007-02-14 21:45:08 UTC (rev 72587)
@@ -1,38 +0,0 @@
-zope.thread Package Readme
-==========================
-
-Overview
---------
-
-This package supplies a mechoanism for storing "thread-global" values,
-such as the site manager discovered during URL traversal.
-
-Changes
--------
-
-See CHANGES.txt.
-
-Installation
-------------
-
-See INSTALL.txt.
-
-
-Developer Resources
--------------------
-
-- Subversion browser:
-
-  http://svn.zope.org/zope.thread/
-
-- Read-only Subversion checkout:
-
-  $ svn co svn://svn.zope.org/repos/main/zope.thread/trunk
-
-- Writable Subversion checkout:
-
-  $ svn co svn://svn.zope.org/repos/main/zope.thread/trunk
-
-- Note that the 'src/zope/thread' package is acutally a 'svn:externals' link
-  to the corresponding package in the Zope3 trunk (or to a specific tag,
-  for released versions of the package).

Deleted: zope.thread/trunk/develop.py
===================================================================
--- zope.thread/trunk/develop.py	2007-02-14 21:37:46 UTC (rev 72586)
+++ zope.thread/trunk/develop.py	2007-02-14 21:45:08 UTC (rev 72587)
@@ -1,21 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2004 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.
-#
-##############################################################################
-"""Workspace configuration wrapper script
-
-$Id$
-"""
-
-import workspace.develop
-
-workspace.develop.main()

Deleted: zope.thread/trunk/setup.cfg.in
===================================================================
--- zope.thread/trunk/setup.cfg.in	2007-02-14 21:37:46 UTC (rev 72586)
+++ zope.thread/trunk/setup.cfg.in	2007-02-14 21:45:08 UTC (rev 72587)
@@ -1,6 +0,0 @@
-[development]
-depends = zope.testing
-
-[egg_info]
-tag_build = .dev
-tag_svn_revision = 1

Modified: zope.thread/trunk/setup.py
===================================================================
--- zope.thread/trunk/setup.py	2007-02-14 21:37:46 UTC (rev 72586)
+++ zope.thread/trunk/setup.py	2007-02-14 21:45:08 UTC (rev 72587)
@@ -18,13 +18,10 @@
 
 import os
 
-try:
-    from setuptools import setup, Extension
-except ImportError, e:
-    from distutils.core import setup, Extension
+from setuptools import setup, Extension, find_packages
 
 setup(name='zope.thread',
-      version='3.3-dev',
+      version='3.3dev',
       url='http://svn.zope.org/zope.thread',
       license='ZPL 2.1',
       description='Zope3 Thread-Local Storage',
@@ -34,7 +31,7 @@
                        '"thread-local" values, such as the site manager '
                        'discovered during URL traversal.',
       
-      packages=['zope', 'zope.thread'],
+      packages=find_packages('src'),
       package_dir = {'': 'src'},
 
       ext_modules=[Extension("zope.thread._zope_thread",

Modified: zope.thread/trunk/src/zope/__init__.py
===================================================================
--- zope.thread/trunk/src/zope/__init__.py	2007-02-14 21:37:46 UTC (rev 72586)
+++ zope.thread/trunk/src/zope/__init__.py	2007-02-14 21:45:08 UTC (rev 72587)
@@ -1,7 +1,8 @@
-# namespace package boilerplate
+# this is a namespace package
 try:
-    __import__('pkg_resources').declare_namespace(__name__)
-except ImportError, e:
-    from pkgutil import extend_path
-    __path__ = extend_path(__path__, __name__)
+    import pkg_resources
+    pkg_resources.declare_namespace(__name__)
+except ImportError:
+    import pkgutil
+    __path__ = pkgutil.extend_path(__path__, __name__)
 

Deleted: zope.thread/trunk/test.py
===================================================================
--- zope.thread/trunk/test.py	2007-02-14 21:37:46 UTC (rev 72586)
+++ zope.thread/trunk/test.py	2007-02-14 21:45:08 UTC (rev 72587)
@@ -1,36 +0,0 @@
-#!/usr/bin/env python
-##############################################################################
-#
-# Copyright (c) 2006 Zope Corporation and Contributors.
-# All Rights Reserved.
-#
-# This software is subject to the provisions of the Zope Public License,
-# Version 2.0 (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.
-#
-##############################################################################
-"""Sample test script using zope.testing.testrunner
-
-see zope.testing testrunner.txt
-
-$Id$
-"""
-
-import os, sys
-
-src = os.path.join(os.path.split(sys.argv[0])[0], 'src')
-sys.path.insert(0, src) # put at beginning to avoid one in site_packages
-
-from zope.testing import testrunner
-
-defaults = [
-    '--path', src,
-    '--package', 'zope.thread',
-    '--tests-pattern', '^tests$',
-    ]
-
-sys.exit(testrunner.run(defaults))
-



More information about the Checkins mailing list