[Python-checkins] python/nondist/sandbox/setuptools pkg_resources.py, 1.37, 1.38
pje@users.sourceforge.net
pje at users.sourceforge.net
Fri Jul 8 06:46:00 CEST 2005
Update of /cvsroot/python/python/nondist/sandbox/setuptools
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15749
Modified Files:
pkg_resources.py
Log Message:
The "egg_info" command now always sets the distribution metadata to "safe"
forms of the distribution name and version, so that distribution files will
be generated with parseable names (i.e., ones that don't include '-' in the
name or version). Also, this means that if you use the various ``--tag``
options of "egg_info", any distributions generated will use the tags in the
version, not just egg distributions.
Index: pkg_resources.py
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/setuptools/pkg_resources.py,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -d -r1.37 -r1.38
--- pkg_resources.py 7 Jul 2005 01:53:57 -0000 1.37
+++ pkg_resources.py 8 Jul 2005 04:45:57 -0000 1.38
@@ -1299,7 +1299,7 @@
except AttributeError:
for line in self._get_metadata('PKG-INFO'):
if line.lower().startswith('version:'):
- self._version = line.split(':',1)[1].strip()
+ self._version = safe_version(line.split(':',1)[1].strip())
return self._version
else:
raise AttributeError(
More information about the Python-checkins
mailing list