[Checkins] SVN: zope.deferredimport/trunk/ Altered the setup.py file to import find_packages and to then use it.

Alexander Heavner alex at zope.com
Tue Feb 13 11:54:36 EST 2007


Log message for revision 72527:
  Altered the setup.py file to import find_packages and to then use it.
  The files that have been removed were no longer needed.
  

Changed:
  D   zope.deferredimport/trunk/CHANGES.txt
  D   zope.deferredimport/trunk/INSTALL.txt
  D   zope.deferredimport/trunk/MANIFEST.in
  D   zope.deferredimport/trunk/README.txt
  D   zope.deferredimport/trunk/setup.cfg.in
  U   zope.deferredimport/trunk/setup.py

-=-
Deleted: zope.deferredimport/trunk/CHANGES.txt
===================================================================
--- zope.deferredimport/trunk/CHANGES.txt	2007-02-13 16:50:14 UTC (rev 72526)
+++ zope.deferredimport/trunk/CHANGES.txt	2007-02-13 16:54:35 UTC (rev 72527)
@@ -1,3 +0,0 @@
-zope.deferredimport Package Changelog
-=====================================
-

Deleted: zope.deferredimport/trunk/INSTALL.txt
===================================================================
--- zope.deferredimport/trunk/INSTALL.txt	2007-02-13 16:50:14 UTC (rev 72526)
+++ zope.deferredimport/trunk/INSTALL.txt	2007-02-13 16:54:35 UTC (rev 72527)
@@ -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.deferredimport/trunk \
-    src/zope.deferredimport
-  $ cd src/zope.deferredimport
-
-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 16 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.deferredimport
-  $ cd src/zope.proxy
-  $ /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.proxy
-
-

Deleted: zope.deferredimport/trunk/MANIFEST.in
===================================================================
--- zope.deferredimport/trunk/MANIFEST.in	2007-02-13 16:50:14 UTC (rev 72526)
+++ zope.deferredimport/trunk/MANIFEST.in	2007-02-13 16:54:35 UTC (rev 72527)
@@ -1 +0,0 @@
-exclude setup.cfg

Deleted: zope.deferredimport/trunk/README.txt
===================================================================
--- zope.deferredimport/trunk/README.txt	2007-02-13 16:50:14 UTC (rev 72526)
+++ zope.deferredimport/trunk/README.txt	2007-02-13 16:54:35 UTC (rev 72527)
@@ -1,49 +0,0 @@
-zope.deferredimport Package Readme
-==================================
-
-Overview
---------
-
-Often, especially for package modules, you want to import names for
-convenience, but not actually perform the imports until necessary.
-The zope.deferredimport package provided facilities for defining names
-in modules that will be imported from somewhere else when used.  You
-can also cause deprecation warnings to be issued when a variable is
-used, but we'll get to that later.
-
-The zope.deferredimport.define function can be used to define one or
-more names to be imported when they are accessed.  Simply provide
-names as keyword arguments with import specifiers as values.  The
-import specifiers are given as strings of the form "module:name",
-where module is the dotted name of the module and name is a, possibly
-dotted, name of an object within the module.
-
-Changes
--------
-
-See CHANGES.txt.
-
-Installation
-------------
-
-See INSTALL.txt.
-
-
-Developer Resources
--------------------
-
-- Subversion browser:
-
-  http://svn.zope.org/zope.deferredimport/
-
-- Read-only Subversion checkout:
-
-  $ svn co svn://svn.zope.org/repos/main/zope.deferredimport/trunk
-
-- Writable Subversion checkout:
-
-  $ svn co svn+ssh://userid@svn.zope.org/repos/main/zope.deferredimport/trunk
-
-- Note that the 'src/zope/deferredimport' 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.deferredimport/trunk/setup.cfg.in
===================================================================
--- zope.deferredimport/trunk/setup.cfg.in	2007-02-13 16:50:14 UTC (rev 72526)
+++ zope.deferredimport/trunk/setup.cfg.in	2007-02-13 16:54:35 UTC (rev 72527)
@@ -1,6 +0,0 @@
-[development]
-depends = zope.testing
-
-[egg_info]
-tag_build = .dev
-tag_svn_revision = 1

Modified: zope.deferredimport/trunk/setup.py
===================================================================
--- zope.deferredimport/trunk/setup.py	2007-02-13 16:50:14 UTC (rev 72526)
+++ zope.deferredimport/trunk/setup.py	2007-02-13 16:54:35 UTC (rev 72527)
@@ -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, find_packages
 
 setup(name='zope.deferredimport',
-      version='3.3-dev',
+      version='3.3dev',
       url='http://svn.zope.org/zope.deferredimport',
       license='ZPL 2.1',
       description='Zope Deferredimport',
@@ -39,7 +36,7 @@
                        "the module and name is a, possibly dotted, name of"
                        "an object within the module.",
 
-      packages=['zope', 'zope.deferredimport'],
+      packages=find_packages('src'),
       package_dir = {'': 'src'},
 
       namespace_packages=['zope',],



More information about the Checkins mailing list