Commit 5241101d authored by Tim Peters's avatar Tim Peters

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

parent e745a089
......@@ -60,8 +60,8 @@ def main(args):
version, date = args
replace("setup.py",
r'version="\S+"',
'version="%s"' % version)
r'^VERSION = "\S+"$',
'VERSION = "%s"' % version)
replace("src/ZODB/__init__.py",
r'__version__ = "\S+"',
'__version__ = "%s"' % version)
......
......@@ -19,6 +19,8 @@ import sys
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__))
......@@ -27,9 +29,7 @@ def join(*parts):
relative_path = posixpath.join(*parts)
return local_full_path, relative_path
context = zpkgsetup.setup.SetupContext(
"ZODB3", "3.5.0a42", __file__)
context = zpkgsetup.setup.SetupContext("ZODB3", VERSION, __file__)
context.load_metadata(
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