Change Log¶
Changes for the upcoming release can be found in the “changelog.d” directory in our repository.
Version 3.0.0-dev.1¶
- Released
2020-10-26
- Maintainer
Tom Schraitle
Deprecations¶
PR #290: For semver 3.0.0-alpha0:
Remove anything related to Python2
In
tox.ini
and.travis.yml
Remove targets py27, py34, py35, and pypy. Add py38, py39, and nightly (allow to fail)In
setup.py
simplified file and removeTox
andClean
classesRemove old Python versions (2.7, 3.4, 3.5, and pypy) from Travis
#234: In
setup.py
simplified file and removeTox
andClean
classes
Features¶
PR #290: Create semver 3.0.0-alpha0
Update
README.rst
, mention maintenance branchmaint/v2
.Remove old code mainly used for Python2 compatibility, adjusted code to support Python3 features.
Split test suite into separate files under
tests/
directoryAdjust and update
setup.py
. Requires Python >=3.6.* Extract metadata directly from source (affects all the__version__
,__author__
etc. variables)
#270: Configure Towncrier (PR #273:)
Add
changelog.d/.gitignore
to keep this directoryCreate
changelog.d/README.rst
with some descriptionsAdd
changelog.d/_template.rst
as Towncrier templateAdd
[tool.towncrier]
section inpyproject.toml
Add “changelog” target into
tox.ini
. Use it like tox -e changelog -- CMD whereasCMD
is a Towncrier command. The default tox -e changelog calls Towncrier to create a draft of the changelog file and output it to stdout.Update documentation and add include a new section “Changelog” included from
changelog.d/README.rst
.
#276: Document how to create a sublass from
VersionInfo
class
Version 2.13.0¶
- Released
2020-10-20
- Maintainer
Tom Schraitle
Bug Fixes¶
PR #283: Ensure equal versions have equal hashes. Version equality means for semver, that
major
,minor
,patch
, andprerelease
parts are equal in both versions you compare. Thebuild
part is ignored.
Additions¶
n/a
Deprecations¶
n/a
Version 2.12.0¶
- Released
2020-10-19
- Maintainer
Tom Schraitle
Bug Fixes¶
#291 (PR #292): Disallow negative numbers of
major
,minor
, andpatch
forsemver.VersionInfo
Version 2.11.0¶
- Released
2020-10-17
- Maintainer
Tom Schraitle
Version 2.10.0¶
- Released
2020-05-05
- Maintainer
Tom Schraitle
Features¶
PR #138: Added
__getitem__
magic method tosemver.VersionInfo
class. Allows to access a version likeversion[1]
.PR #235: Improved documentation and shift focus on
semver.VersionInfo
instead of advertising the old and deprecated module-level functions.PR #230: Add version information in some functions:
Use
.. versionadded::
RST directive in docstrings to make it more visible when something was addedMinor wording fix in docstrings (versions -> version strings)
Bug Fixes¶
Deprecations¶
#225 (PR #229): Output a DeprecationWarning for the following functions:
semver.parse
semver.parse_version_info
semver.format_version
semver.bump_{major,minor,patch,prerelease,build}
semver.finalize_version
semver.replace
semver.VersionInfo._asdict
(use the new, public available functionsemver.VersionInfo.to_dict()
)semver.VersionInfo._astuple
(use the new, public available functionsemver.VersionInfo.to_tuple()
)
These deprecated functions will be removed in semver 3.
Version 2.9.1¶
- Released
2020-02-16
- Maintainer
Tom Schraitle
Features¶
#177 (PR #178): Fixed repository and CI links (moved https://github.com/k-bx/python-semver/ repository to https://github.com/python-semver/python-semver/)
PR #179: Added note about moving this project to the new python-semver organization on GitHub
#187 (PR #188): Added logo for python-semver organization and documentation
#196 (PR #197): Added distribution specific installation instructions
#208 (PR #209): Introduce new function
semver.VersionInfo.isvalid()
and extend pysemver with check subcommandPR #212: Improve docstrings according to PEP257
Version 2.9.0¶
- Released
2019-10-30
- Maintainer
Sébastien Celles <s.celles@gmail.com>
Features¶
#104 (PR #125): Added iterator to
semver.VersionInfo()
PR #120: Improved test_immutable function with properties
PR #125: Created
setup.cfg
for pytest and tox#144 (PR #156): Added
semver.replace()
andsemver.VersionInfo.replace()
functionsPR #157: Introduce
conftest.py
to improve doctestsPR #165: Improved code coverage
PR #166: Reworked
.gitignore
file#167 (PR #168): Introduced global constant
SEMVER_SPEC_VERSION
Version 2.8.2¶
- Released
2019-05-19
- Maintainer
Sébastien Celles <s.celles@gmail.com>
Skipped, not released.