[Checkins] SVN: zope.configuration/trunk/ Altered the setup.py file
to import and then use find_packages.
Alexander Heavner
alex at zope.com
Tue Feb 13 11:10:22 EST 2007
Log message for revision 72518:
Altered the setup.py file to import and then use find_packages.
__init__.py was altered to import in a differnet way.
The files that have been removed were no longer needed after switching
to eggs.
Changed:
D zope.configuration/trunk/CHANGES.txt
D zope.configuration/trunk/INSTALL.txt
D zope.configuration/trunk/README.txt
D zope.configuration/trunk/develop.py
D zope.configuration/trunk/setup.cfg.in
U zope.configuration/trunk/setup.py
U zope.configuration/trunk/src/zope/__init__.py
D zope.configuration/trunk/test.py
D zope.configuration/trunk/workspace/
-=-
Deleted: zope.configuration/trunk/CHANGES.txt
===================================================================
--- zope.configuration/trunk/CHANGES.txt 2007-02-13 16:02:12 UTC (rev 72517)
+++ zope.configuration/trunk/CHANGES.txt 2007-02-13 16:10:21 UTC (rev 72518)
@@ -1,32 +0,0 @@
-zope.configuration Package Changelog
-==========================
-
-zope.configuration version 3.2.1 (2006/03/26)
------------------------------------
-
-- Corresponds to the verison of the zope.configuration package shipped
- as part of the Zope 3.2.1 release.
-
-zope.configuration version 3.2.0 (2006/01/05)
------------------------------------
-
-- Corresponds to the verison of the zope.configuration package shipped
- as part of the Zope 3.2.0 release.
-
-zope.configuration version 3.1.0 (2005/10/03)
------------------------------------
-
-- Corresponds to the verison of the zope.configuration package shipped
- as part of the Zope 3.1.0 release.
-
-zope.configuration version 3.0.1 (2005/07/27)
------------------------------------
-
-- Corresponds to the verison of the zope.configuration package shipped
- as part of the Zope X3.0.1 release.
-
-zope.configuration version 3.0.0 (2004/11/07)
------------------------------------
-
-- Corresponds to the verison of the zope.configuration package shipped
- as part of the Zope X3.0.0 release.
Deleted: zope.configuration/trunk/INSTALL.txt
===================================================================
--- zope.configuration/trunk/INSTALL.txt 2007-02-13 16:02:12 UTC (rev 72517)
+++ zope.configuration/trunk/INSTALL.txt 2007-02-13 16:10:21 UTC (rev 72518)
@@ -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.configuration/trunk \
- src/zope.configuration
- $ cd src/zope.configuration
-
-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.configuration
- $ cd src/zope.configuration
- $ /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.configuration
-
-
Deleted: zope.configuration/trunk/README.txt
===================================================================
--- zope.configuration/trunk/README.txt 2007-02-13 16:02:12 UTC (rev 72517)
+++ zope.configuration/trunk/README.txt 2007-02-13 16:10:21 UTC (rev 72518)
@@ -1,45 +0,0 @@
-zope.configuration Package Readme
-=================================
-
-Overview
---------
-
-The zope configuration system provides an extensible system for
-supporting various kinds of configurations.
-
-It is based on the idea of configuration directives. Users of the
-configuration system provide configuration directives in some
-language that express configuration choices. The intent is that the
-language be pluggable. An XML language is provided by default.
-
-See 'src/zope/configuration/README.txt' for more information.
-
-Changes
--------
-
-See CHANGES.txt.
-
-Installation
-------------
-
-See INSTALL.txt.
-
-
-Developer Resources
--------------------
-
-- Subversion browser:
-
- http://svn.zope.org/zope.configuration/
-
-- Read-only Subversion checkout:
-
- $ svn co svn://svn.zope.org/repos/main/zope.configuration/trunk
-
-- Writable Subversion checkout:
-
- $ svn co svn://svn.zope.org/repos/main/zope.configuration/trunk
-
-- Note that the 'src/zope/configuration' 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.configuration/trunk/develop.py
===================================================================
--- zope.configuration/trunk/develop.py 2007-02-13 16:02:12 UTC (rev 72517)
+++ zope.configuration/trunk/develop.py 2007-02-13 16:10:21 UTC (rev 72518)
@@ -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.configuration/trunk/setup.cfg.in
===================================================================
--- zope.configuration/trunk/setup.cfg.in 2007-02-13 16:02:12 UTC (rev 72517)
+++ zope.configuration/trunk/setup.cfg.in 2007-02-13 16:10:21 UTC (rev 72518)
@@ -1,4 +0,0 @@
-
-[egg_info]
-tag_build = .dev
-tag_svn_revision = 1
Modified: zope.configuration/trunk/setup.py
===================================================================
--- zope.configuration/trunk/setup.py 2007-02-13 16:02:12 UTC (rev 72517)
+++ zope.configuration/trunk/setup.py 2007-02-13 16:10:21 UTC (rev 72518)
@@ -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.configuration',
- version='1.0',
+ version='1.1dev',
url='http://svn.zope.org/zope.configuration',
license='ZPL 2.1',
description='Zope Configuration (ZCML)',
@@ -40,11 +37,7 @@
language be pluggable. An XML language is provided by default.
''',
- packages=['zope',
- 'zope.configuration',
- 'zope.configuration.tests',
- 'zope.configuration.tests.samplepackage',
- ],
+ packages=find_packages('src'),
package_dir = {'': 'src'},
namespace_packages=['zope',],
Modified: zope.configuration/trunk/src/zope/__init__.py
===================================================================
--- zope.configuration/trunk/src/zope/__init__.py 2007-02-13 16:02:12 UTC (rev 72517)
+++ zope.configuration/trunk/src/zope/__init__.py 2007-02-13 16:10:21 UTC (rev 72518)
@@ -1,7 +1,9 @@
-# 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.configuration/trunk/test.py
===================================================================
--- zope.configuration/trunk/test.py 2007-02-13 16:02:12 UTC (rev 72517)
+++ zope.configuration/trunk/test.py 2007-02-13 16:10:21 UTC (rev 72518)
@@ -1,37 +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
-
-here = os.path.abspath(os.path.dirname(sys.argv[0]))
-src = os.path.join(here, '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.configuration',
- '--tests-pattern', '^tests$',
- ]
-
-sys.exit(testrunner.run(defaults))
-
More information about the Checkins
mailing list