diff options
| author | Diego Ramirez <dr01191115@gmail.com> | 2021-09-14 08:22:34 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-14 08:22:34 -0500 |
| commit | fbfd7bc0f3b86352c748ab6fea0713391fcfa563 (patch) | |
| tree | 9ab7d3e742e51a78c856311eb1af18d92dec0102 /docs | |
| parent | 0168ac6e13dda1dbc9ec36b30a9c90e3b662a763 (diff) | |
| download | python-setuptools-git-fbfd7bc0f3b86352c748ab6fea0713391fcfa563.tar.gz | |
Document the version coparisons
Document how the legacy versions and non-legacy versions are compared.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/userguide/distribution.rst | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/docs/userguide/distribution.rst b/docs/userguide/distribution.rst index 377f7bb4..5888a819 100644 --- a/docs/userguide/distribution.rst +++ b/docs/userguide/distribution.rst @@ -161,7 +161,10 @@ without Cython. Specifying Your Project's Version --------------------------------- -Setuptools can work well with most versioning schemes; there are, however, a +Setuptools can work well with most versioning schemes. Over the years, +setuptools has tried to closely follow the +`PEP 440 <https://www.python.org/dev/peps/pep-0440/>`_ scheme, but it +also supports legacy versions. There are, however, a few special things to watch out for, in order to ensure that setuptools and other tools can always tell what version of your package is newer than another version. Knowing these things will also help you correctly specify what @@ -181,9 +184,13 @@ tag. Pre-release tags make a version be considered *older* than the version they are appended to. So, revision ``2.4`` is *newer* than revision ``2.4c1``, which in turn is newer than ``2.4b1`` or ``2.4a1``. Postrelease tags make a version be considered *newer* than the version they are appended to. So, -revisions like ``2.4-1`` and ``2.4pl3`` are newer than ``2.4``, but are *older* +revisions like ``2.4-1`` is newer than ``2.4``, but *older* than ``2.4.1`` (which has a higher release number). +In the case of legacy versions (for example, ``2.4pl1``) are always considered +older than non-legacy versions. Taking that in count, a version ``2.4pl1`` +is *older* than ``2.4`` + A pre-release tag is a series of letters that are alphabetically before "final". Some examples of prerelease tags would include ``alpha``, ``beta``, ``a``, ``c``, ``dev``, and so on. You do not have to place a dot or dash |
