diff options
author | PJ Eby <distutils-sig@python.org> | 2005-11-04 05:38:22 +0000 |
---|---|---|
committer | PJ Eby <distutils-sig@python.org> | 2005-11-04 05:38:22 +0000 |
commit | 8312542db5a016d80d7e35951fc7991bace1368c (patch) | |
tree | d2f3da9a1e3ed43a3b14032dc67fd95b7c48874e /setuptools.txt | |
parent | 12022171055a008a3dbd9e9eb38e249452414a5a (diff) | |
download | external_python_setuptools-8312542db5a016d80d7e35951fc7991bace1368c.tar.gz external_python_setuptools-8312542db5a016d80d7e35951fc7991bace1368c.tar.bz2 external_python_setuptools-8312542db5a016d80d7e35951fc7991bace1368c.zip |
Made ``egg_info --tag-svn-revision`` fall back to extracting the
revision number from ``PKG-INFO`` in case it is being run on a
source distribution of a snapshot taken from a Subversion-based
project. That is, if a project builds an sdist with
--tag-svn-revision in setup.cfg, then the built sdist will
create binaries with the same version number as the checkout
that was used to create the sdist.
--HG--
branch : setuptools
extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041396
Diffstat (limited to 'setuptools.txt')
-rwxr-xr-x | setuptools.txt | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/setuptools.txt b/setuptools.txt index 41a2499c..97f51f20 100755 --- a/setuptools.txt +++ b/setuptools.txt @@ -1471,10 +1471,11 @@ added in the following order: Append NAME to the project's version string. Due to the way setuptools processes "pre-release" version suffixes beginning with the letters "a" through "e" (like "alpha", "beta", and "candidate"), you will usually want - to use a tag like "build" or "dev", as this will cause the version number + to use a tag like ".build" or ".dev", as this will cause the version number to be considered *lower* than the project's default version. (If you want to make the version number *higher* than the default version, you can - always leave off --tag-build and use one or both of the following options.) + always leave off --tag-build and then use one or both of the following + options.) ``--tag-svn-revision, -r`` If the current directory is a Subversion checkout (i.e. has a ``.svn`` @@ -1483,6 +1484,16 @@ added in the following order: modification to the current directory, as obtained from the ``svn info`` command. + If the current directory is not a Subversion checkout, the command will + look for a ``PKG-INFO`` file instead, and try to find the revision number + from that, by looking for a "-rNNNN" string at the end of the version + number. (This is so that building a package from a source distribution of + a Subversion snapshot will produce a binary with the correct version + number.) + + If there is no ``PKG-INFO`` file, or the version number contained therein + does not end with ``-r`` and a number, then ``-r0`` is used. + ``--tag-date, -d`` Add a date stamp of the form "-YYYYMMDD" (e.g. "-20050528") to the project's version number. @@ -1951,6 +1962,10 @@ Release Notes/Change History * Made ``develop`` command accept all the same options as ``easy_install``, and use the ``easy_install`` command's configuration settings as defaults. + * Made ``egg_info --tag-svn-revision`` fall back to extracting the revision + number from ``PKG-INFO`` in case it is being run on a source distribution of + a snapshot taken from a Subversion-based project. + 0.6a5 * Fixed missing gui/cli .exe files in distribution. Fixed bugs in tests. |