test_main.py
7 KB
-
Fix PEP440 compatible release (`~=`) handling (#1815) · 950415ca
* Fix PEP440 compatible release (`~=`) handling PEP440 compatible release version range (`~=`) should have itself as a minimum value. Examples from [official doc](https://python.org/dev/peps/pep-0440/#compatible-release) (each pair is equivalent): ``` ~=2.2 >=2.2, ==2.* ~=1.4.5 >=1.4.5, ==1.4.* ~=2.2.post3 >=2.2.post3, ==2.* ~=1.4.5a4 >=1.4.5a4, ==1.4.* ``` In every case, lower bound is exactly same as the input version. Current incorrect behavior was originally introduced 2 years ago by commit c55d55a8, where it tried to reset patch version to 0 for tilde expression. Closes #1150. * Fix Black lint
Jongbin Park committed