[Checkins] SVN: zope.lifecycleevent/trunk/ Updated the version
number in setup.py and imported find_packages and then used
Alexander Heavner
alex at zope.com
Tue Feb 13 16:01:24 EST 2007
Log message for revision 72552:
Updated the version number in setup.py and imported find_packages and then used
it.
INSTALL.txt, CHANGES.txt, test.py, MANIFEST.in and README.txt because they were
no longer needed.
Changed:
D zope.lifecycleevent/trunk/CHANGES.txt
D zope.lifecycleevent/trunk/INSTALL.txt
D zope.lifecycleevent/trunk/MANIFEST.in
D zope.lifecycleevent/trunk/README.txt
D zope.lifecycleevent/trunk/setup.cfg.in
U zope.lifecycleevent/trunk/setup.py
U zope.lifecycleevent/trunk/src/zope/__init__.py
D zope.lifecycleevent/trunk/test.py
-=-
Deleted: zope.lifecycleevent/trunk/CHANGES.txt
===================================================================
--- zope.lifecycleevent/trunk/CHANGES.txt 2007-02-13 20:50:15 UTC (rev 72551)
+++ zope.lifecycleevent/trunk/CHANGES.txt 2007-02-13 21:01:23 UTC (rev 72552)
@@ -1,2 +0,0 @@
-zope.lifecycleevent Package Changelog
-=====================================
Deleted: zope.lifecycleevent/trunk/INSTALL.txt
===================================================================
--- zope.lifecycleevent/trunk/INSTALL.txt 2007-02-13 20:50:15 UTC (rev 72551)
+++ zope.lifecycleevent/trunk/INSTALL.txt 2007-02-13 21:01:23 UTC (rev 72552)
@@ -1,80 +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.lifecycleevent/trunk \
- src/zope.lifecycleevent
- $ cd src/zope.lifecycleevent
-
-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.lifecycleevent
- $ cd src/zope.lifecycleevent
- $ /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.lifecycleevent
Deleted: zope.lifecycleevent/trunk/MANIFEST.in
===================================================================
--- zope.lifecycleevent/trunk/MANIFEST.in 2007-02-13 20:50:15 UTC (rev 72551)
+++ zope.lifecycleevent/trunk/MANIFEST.in 2007-02-13 21:01:23 UTC (rev 72552)
@@ -1 +0,0 @@
-exclude setup.cfg
Deleted: zope.lifecycleevent/trunk/README.txt
===================================================================
--- zope.lifecycleevent/trunk/README.txt 2007-02-13 20:50:15 UTC (rev 72551)
+++ zope.lifecycleevent/trunk/README.txt 2007-02-13 21:01:23 UTC (rev 72552)
@@ -1,43 +0,0 @@
-zope.lifecycleevent Package Readme
-==================================
-
-Overview
---------
-
-In Zope 3, events are used by components to inform each other about
-relevant new objects and object modifications.
-
-To keep all subscribers up to date it is indispensable that the life
-cycle of an object is accompanied by various events.
-
-For more details, see src/zope/lifecycleevent/README.txt
-
-Changes
--------
-
-See CHANGES.txt.
-
-Installation
-------------
-
-See INSTALL.txt.
-
-
-Developer Resources
--------------------
-
-- Subversion browser:
-
- http://svn.zope.org/zope.lifecycleevent/
-
-- Read-only Subversion checkout:
-
- $ svn co svn://svn.zope.org/repos/main/zope.lifecycleevent/trunk
-
-- Writable Subversion checkout:
-
- $ svn co svn+ssh://userid@svn.zope.org/repos/main/zope.lifecycleevent/trunk
-
-- Note that the 'src/zope/lifecycleevent 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.lifecycleevent/trunk/setup.cfg.in
===================================================================
--- zope.lifecycleevent/trunk/setup.cfg.in 2007-02-13 20:50:15 UTC (rev 72551)
+++ zope.lifecycleevent/trunk/setup.cfg.in 2007-02-13 21:01:23 UTC (rev 72552)
@@ -1,6 +0,0 @@
-[development]
-depends = zope.testing
-
-[egg_info]
-tag_build = .dev
-tag_svn_revision = 1
Modified: zope.lifecycleevent/trunk/setup.py
===================================================================
--- zope.lifecycleevent/trunk/setup.py 2007-02-13 20:50:15 UTC (rev 72551)
+++ zope.lifecycleevent/trunk/setup.py 2007-02-13 21:01:23 UTC (rev 72552)
@@ -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.lifecycleevent',
- version='3.4-dev',
+ version='3.4dev',
url='http://svn.zope.org/zope.lifecycleevent',
license='ZPL 2.1',
description='Zope lifecycleevent',
@@ -34,7 +31,7 @@
"to inform each other about relevant new"
"objects and object modifications.",
- packages=['zope', 'zope.lifecycleevent'],
+ packages=find_packages('src'),
package_dir = {'': 'src'},
namespace_packages=['zope',],
Modified: zope.lifecycleevent/trunk/src/zope/__init__.py
===================================================================
--- zope.lifecycleevent/trunk/src/zope/__init__.py 2007-02-13 20:50:15 UTC (rev 72551)
+++ zope.lifecycleevent/trunk/src/zope/__init__.py 2007-02-13 21:01:23 UTC (rev 72552)
@@ -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.lifecycleevent/trunk/test.py
===================================================================
--- zope.lifecycleevent/trunk/test.py 2007-02-13 20:50:15 UTC (rev 72551)
+++ zope.lifecycleevent/trunk/test.py 2007-02-13 21:01:23 UTC (rev 72552)
@@ -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.lifecycleevent',
- '--tests-pattern', '^tests$',
- ]
-
-sys.exit(testrunner.run(defaults))
-
More information about the Checkins
mailing list