diff options
| author | Vincent Philippon <sindaewoh@gmail.com> | 2018-02-19 18:28:00 -0500 |
|---|---|---|
| committer | Vincent Philippon <sindaewoh@gmail.com> | 2018-02-19 18:28:00 -0500 |
| commit | 885402d3ffb3d77dca661487038aa88aaaa483cc (patch) | |
| tree | 4b05307a83e1a94a7b96d1f343939b286cee0dea | |
| parent | 271dee89e1ec9740c008f1938aa896616e164ede (diff) | |
| download | python-setuptools-git-885402d3ffb3d77dca661487038aa88aaaa483cc.tar.gz | |
Fix documentation inconsistency on version specifier
The `,` is the equivalent of an "and".
Also, the pkg_resources section documents and behave like this too:
```
>>> pkg_resources.Requirement('requests>1,>2').specifier.contains('1.2.3')
False
>>> pkg_resources.Requirement('requests>1,>2').specifier.contains('2.3.4')
True
```
| -rw-r--r-- | docs/setuptools.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/setuptools.txt b/docs/setuptools.txt index cebb6268..2425e100 100644 --- a/docs/setuptools.txt +++ b/docs/setuptools.txt @@ -571,7 +571,7 @@ project name or version identifier must be replaced with ``-``. Version specifiers for a given project are internally sorted into ascending version order, and used to establish what ranges of versions are acceptable. Adjacent redundant conditions are also consolidated (e.g. ``">1, >2"`` becomes -``">1"``, and ``"<2,<3"`` becomes ``"<3"``). ``"!="`` versions are excised from +``">2"``, and ``"<2,<3"`` becomes ``"<2"``). ``"!="`` versions are excised from the ranges they fall within. A project's version is then checked for membership in the resulting ranges. (Note that providing conflicting conditions for the same version (e.g. "<2,>=2" or "==2,!=2") is meaningless and may |
