Commit cdcfa60e authored by Fred Drake's avatar Fred Drake

- 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
parent 8220a4cb
############################################################################# #############################################################################
# #
# Copyright (c) 2002 Zope Corporation and Contributors. # Copyright (c) 2005 Zope Corporation and Contributors.
# All Rights Reserved. # All Rights Reserved.
# #
# This software is subject to the provisions of the Zope Public License, # This software is subject to the provisions of the Zope Public License,
...@@ -18,27 +18,18 @@ import zpkgsetup.package ...@@ -18,27 +18,18 @@ import zpkgsetup.package
import zpkgsetup.publication import zpkgsetup.publication
import zpkgsetup.setup 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__)) here = os.path.dirname(os.path.abspath(__file__))
context = zpkgsetup.setup.SetupContext( context = zpkgsetup.setup.SetupContext(
"ZODB", "3.5.0a42", __file__) "ZODB", VERSION, __file__)
context.load_metadata( context.load_metadata(
os.path.join(here, os.path.join(here,
zpkgsetup.publication.PUBLICATION_CONF)) zpkgsetup.publication.PUBLICATION_CONF))
for root, dirs, files in os.walk("src"): context.walk_packages("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.setup() context.setup()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment