setup: upgrade bundled version of darcsver to 1.7.1 to regain compatibility with Python 2.4

This commit is contained in:
Zooko O'Whielacronx 2010-11-14 00:26:20 -08:00
parent e03206cbdf
commit b55dd7c811
13 changed files with 8 additions and 2 deletions

View File

@ -1,6 +1,6 @@
Metadata-Version: 1.0 Metadata-Version: 1.0
Name: darcsver Name: darcsver
Version: 1.7.0 Version: 1.7.1
Summary: generate a version number from darcs history Summary: generate a version number from darcs history
Home-page: http://tahoe-lafs.org/trac/darcsver Home-page: http://tahoe-lafs.org/trac/darcsver
Author: Zooko O'Whielacronx Author: Zooko O'Whielacronx

View File

@ -6,7 +6,7 @@
# pyutil.version_class for a description of what the different fields mean. # pyutil.version_class for a description of what the different fields mean.
__pkgname__ = "darcsver" __pkgname__ = "darcsver"
verstr = "1.7.0" verstr = "1.7.1"
try: try:
from pyutil.version_class import Version as pyutil_Version from pyutil.version_class import Version as pyutil_Version
__version__ = pyutil_Version(verstr) __version__ = pyutil_Version(verstr)

View File

@ -23,6 +23,12 @@ def validate_versionfiles(dist, attr, value):
def validate_versionbodies(dist, attr, value): def validate_versionbodies(dist, attr, value):
return validate_string_or_iter_of_strings(dist, attr, value) return validate_string_or_iter_of_strings(dist, attr, value)
def all(iterator):
for thing in iterator:
if not thing:
return False
return True
PYTHON_VERSION_BODY=''' PYTHON_VERSION_BODY='''
# This is the version of this tree, as created by %(versiontool)s from the darcs patch # This is the version of this tree, as created by %(versiontool)s from the darcs patch
# information: the main version number is taken from the most recent release # information: the main version number is taken from the most recent release