Commit 50923d50 authored by Tim Peters's avatar Tim Peters

Teach release.py how to change the version # in setup.py again.

parent ec7a8e9e
...@@ -60,8 +60,8 @@ def main(args): ...@@ -60,8 +60,8 @@ def main(args):
version, date = args version, date = args
replace("setup.py", replace("setup.py",
r'version="\S+"', r'^VERSION = "\S+"$',
'version="%s"' % version) 'VERSION = "%s"' % version)
replace("src/ZODB/__init__.py", replace("src/ZODB/__init__.py",
r'__version__ = "\S+"', r'__version__ = "\S+"',
'__version__ = "%s"' % version) '__version__ = "%s"' % version)
......
...@@ -19,6 +19,8 @@ import sys ...@@ -19,6 +19,8 @@ import sys
import zpkgsetup.setup import zpkgsetup.setup
# Note that release.py must be able to recognize the VERSION line.
VERSION = "3.5a6"
here = os.path.dirname(os.path.abspath(__file__)) here = os.path.dirname(os.path.abspath(__file__))
...@@ -27,9 +29,7 @@ def join(*parts): ...@@ -27,9 +29,7 @@ def join(*parts):
relative_path = posixpath.join(*parts) relative_path = posixpath.join(*parts)
return local_full_path, relative_path return local_full_path, relative_path
context = zpkgsetup.setup.SetupContext("ZODB3", VERSION, __file__)
context = zpkgsetup.setup.SetupContext(
"ZODB3", "3.5.0a42", __file__)
context.load_metadata( context.load_metadata(
os.path.join(here, "PUBLICATION.cfg")) os.path.join(here, "PUBLICATION.cfg"))
......
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