[Zodb-checkins] SVN: ZODB/trunk/ - switch to the zpkg trunk, and drop the code to walk the sources looking

Fred L. Drake, Jr. fdrake at gmail.com
Wed Aug 24 12:39:42 EDT 2005


Log message for revision 38070:
  - switch to the zpkg trunk, and drop the code to walk the sources looking
    for packaging metadata; zpkg can take care of that for us
  - restore the copyright year, which made sense
  - restore the VERSION constant and the comment I should have read
  

Changed:
  _U  ZODB/trunk/
  U   ZODB/trunk/setup.py

-=-

Property changes on: ZODB/trunk
___________________________________________________________________
Name: svn:externals
   - zpkgsetup svn://svn.zope.org/repos/main/zpkgtools/tags/0.9/zpkgsetup

   + zpkgsetup svn://svn.zope.org/repos/main/zpkgtools/trunk/zpkgsetup


Modified: ZODB/trunk/setup.py
===================================================================
--- ZODB/trunk/setup.py	2005-08-24 16:36:35 UTC (rev 38069)
+++ ZODB/trunk/setup.py	2005-08-24 16:39:42 UTC (rev 38070)
@@ -1,6 +1,6 @@
 #############################################################################
 #
-# Copyright (c) 2002 Zope Corporation and Contributors.
+# Copyright (c) 2005 Zope Corporation and Contributors.
 # All Rights Reserved.
 #
 # This software is subject to the provisions of the Zope Public License,
@@ -18,27 +18,18 @@
 import zpkgsetup.publication
 import zpkgsetup.setup
 
+# Note that release.py must be able to recognize the VERSION line.
+VERSION = "3.5.0a42"
 
+
 here = os.path.dirname(os.path.abspath(__file__))
 
 context = zpkgsetup.setup.SetupContext(
-    "ZODB", "3.5.0a42", __file__)
+    "ZODB", VERSION, __file__)
 
 context.load_metadata(
     os.path.join(here,
                  zpkgsetup.publication.PUBLICATION_CONF))
 
-for root, dirs, files in os.walk("src"):
-    for d in dirs[:]:
-        # drop sub-directories that are not Python packages:
-        initfn = os.path.join(root, d, "__init__.py")
-        if not os.path.isfile(initfn):
-            dirs.remove(d)
-    if zpkgsetup.package.PACKAGE_CONF in files:
-        # scan this directory as a package:
-        pkgname = root[4:].replace(os.path.sep, ".")
-        local_full_path = os.path.join(here, root)
-        relative_path = root.replace(os.path.sep, "/")
-        context.scan(pkgname, local_full_path, relative_path)
-
+context.walk_packages("src")
 context.setup()



More information about the Zodb-checkins mailing list