3.0.0-dev.3
Related pr: #315
-
Released
2022-01-20 -
Maintainer
Tom Schraitle
Documentation: https://python-semver.rtfd.io/en/3.0.0-dev.3/
Full Changelog: 3.0.0-dev.2...3.0.0-dev.3
Bug Fixes
- #310: Rework API documentation. Follow a more “semi-manual” attempt and add
auto directives intodocs/api.rst.
Improved Documentation
-
#312: Rework “Usage” section.
- Rename
VersionInfotoVersionclass, but keep the old name as alias - Remove
semver.prefix in doctests to make examples shorter - Correct some references to dunder methods like
__getitem__(),__gt__()etc. - Remove inconsistencies and mention module level function as deprecated and discouraged from using
- Make empty
super()call insemverwithvprefix.pyexample
- Rename
-
#315: Improve release procedure text
-
#337: Improve documentation for semver max/min
Trivial/Internal Changes
-
#309: Some (private) functions from the
semver.versionmodule has been changed.
The following functions got renamed as it is only useful inside the Version class:- function
semver.version.comparatorgot renamed tosemver.version._comparator() - function
semver.version.cmpgot renamed tosemver.version._cmp()
The following functions got integrated into the
Versionclass:- function
semver.version._nat_cmdas a class method - function
semver.version.ensure_str
- function
-
#313: Correct
tox.inifor changelog entry to skip installation for semver. This should speed up the execution of towncrier. -
#316: Comparisons of Version class and other types return now a
NotImplementedconstant instead of aTypeErrorexception.The
NotImplementedsection of the Python documentation recommends returning this constant when comparing with__gt__,__lt__, and other comparison operators to “to indicate that the operation is not implemented with respect to the other type”. -
#319: Introduce stages in
.travis.yml. -
#322: Switch from Travis CI to GitHub Actions.
-
#347: Support Python 3.10 in GitHub Action and other config files.
-
Start supporting Python 3.10
Contributors
(in alphabetical order)
- @mzjp2 (new contributor)
- @tlaferriere
Thanks to all! ❤️