diff options
| author | PJ Eby <distutils-sig@python.org> | 2005-09-24 19:48:28 +0000 |
|---|---|---|
| committer | PJ Eby <distutils-sig@python.org> | 2005-09-24 19:48:28 +0000 |
| commit | 9159d6d8471cb8020cc870c8f5e549246c010f3f (patch) | |
| tree | 71358f5d9d0eb744699cedf525dab1566309e510 /pkg_resources.txt | |
| parent | 88c77fe952cfe6eb8caa65c1c6ae709a2e7fbc55 (diff) | |
| download | external_python_setuptools-9159d6d8471cb8020cc870c8f5e549246c010f3f.tar.gz external_python_setuptools-9159d6d8471cb8020cc870c8f5e549246c010f3f.tar.bz2 external_python_setuptools-9159d6d8471cb8020cc870c8f5e549246c010f3f.zip | |
Fix a problem with inconsistent quoting of "extras", reported by Ian
Bicking on the distutils-sig.
--HG--
branch : setuptools
extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041253
Diffstat (limited to 'pkg_resources.txt')
| -rwxr-xr-x | pkg_resources.txt | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/pkg_resources.txt b/pkg_resources.txt index 4540c994..e9e5286d 100755 --- a/pkg_resources.txt +++ b/pkg_resources.txt @@ -522,7 +522,10 @@ Requirements Parsing or indexing. ``extras`` - A tuple of names of "extras" that this requirement calls for. + A tuple of names of "extras" that this requirement calls for. (These will + be all-lowercase and normalized using the ``safe_extra()`` parsing utility + function, so they may not exactly equal the extras the requirement was + created with.) Entry Points @@ -1413,6 +1416,12 @@ Parsing Utilities are generating a filename from this you should replace any "-" characters in the output with underscores. +``safe_extra(extra)`` + Return a "safe" form of an extra's name, suitable for use in a requirement + string or a setup script's ``extras_require`` keyword. This routine is + similar to ``safe_name()`` except that non-alphanumeric runs are replaced + by a single underbar (``_``), and the result is lowercased. + Platform Utilities ------------------ @@ -1479,6 +1488,10 @@ File/Path Utilities Release Notes/Change History ---------------------------- +0.6a3 + * Added ``safe_extra()`` parsing utility routine, and use it for Requirement, + EntryPoint, and Distribution objects' extras handling. + 0.6a1 * Enhanced performance of ``require()`` and related operations when all requirements are already in the working set, and enhanced performance of |
