Change Log

All notable changes to this code base will be documented in this file, in every released version.

Version 2.13.0

Released:2020-10-20
Maintainer:Tom Schraitle

Features

  • PR #287: Document how to create subclass from VersionInfo

Bug Fixes

  • PR #283: Ensure equal versions have equal hashes. Version equality means for semver, that major, minor, patch, and prerelease parts are equal in both versions you compare. The build part is ignored.

Version 2.12.0

Released:2020-10-19
Maintainer:Tom Schraitle

Features

n/a

Bug Fixes

  • #291 (PR #292): Disallow negative numbers of major, minor, and patch for semver.VersionInfo

Additions

n/a

Deprecations

n/a

Version 2.11.0

Released:2020-10-17
Maintainer:Tom Schraitle

Features

n/a

Bug Fixes

  • #276 (PR #277): VersionInfo.parse should be a class method
    Also add authors and update changelog in #286
  • #274 (PR #275): Py2 vs. Py3 incompatibility TypeError

Additions

n/a

Deprecations

n/a

Version 2.10.2

Released:2020-06-15
Maintainer:Tom Schraitle

Features

#268: Increase coverage

Bug Fixes

  • #260 (PR #261): Fixed __getitem__ returning None on wrong parts
  • PR #263: Doc: Add missing “install” subcommand for openSUSE

Additions

n/a

Version 2.10.1

Released:2020-05-13
Maintainer:Tom Schraitle

Features

  • PR #249: Added release policy and version restriction in documentation to help our users which would like to stay on the major 2 release.
  • PR #250: Simplified installation semver on openSUSE with obs://.
  • PR #256: Made docstrings consistent

Bug Fixes

  • #251 (PR #254): Fixed return type of semver.VersionInfo.next_version to always return a VersionInfo instance.

Version 2.10.0

Released:2020-05-05
Maintainer:Tom Schraitle

Features

  • PR #138: Added __getitem__ magic method to semver.VersionInfo class. Allows to access a version like version[1].
  • PR #235: Improved documentation and shift focus on semver.VersionInfo instead of advertising the old and deprecated module-level functions.

Bug Fixes

  • #224 (PR #226): In setup.py, replaced in class clean, super(CleanCommand, self).run() with CleanCommand.run(self)
  • #244 (PR #245): Allow comparison with VersionInfo, tuple/list, dict, and string.

Additions

  • PR #228: Added better doctest integration

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 function semver.VersionInfo.to_dict())
    • semver.VersionInfo._astuple (use the new, public available function semver.VersionInfo.to_tuple())

    These deprecated functions will be removed in semver 3.

Version 2.9.1

Released:2020-02-16
Maintainer:Tom Schraitle

Features

Bug Fixes

  • #192 (PR #193): Fixed “pysemver” and “pysemver bump” when called without arguments

Version 2.9.0

Released:2019-10-30
Maintainer:Sébastien Celles <s.celles@gmail.com>

Features

Bug Fixes

  • #102: Fixed comparison between VersionInfo and tuple
  • #103: Disallow comparison between VersionInfo and string (and int)
  • #121 (PR #122): Use python3 instead of python3.4 in tox.ini
  • PR #123: Improved __repr__() and derive class name from type()
  • #128 (PR #129): Fixed wrong datatypes in docstring for semver.format_version()
  • #135 (PR #140): Converted prerelease and build to string
  • #136 (PR #151): Added testsuite to tarball
  • #154 (PR #155): Improved README description

Removals

Version 2.8.2

Released:2019-05-19
Maintainer:Sébastien Celles <s.celles@gmail.com>

Skipped, not released.

Version 2.8.1

Released:2018-07-09
Maintainer:Sébastien Celles <s.celles@gmail.com>

Features

  • #40 (PR #88): Added a static parse method to VersionInfo
  • #77 (PR #47): Converted multiple tests into pytest.mark.parametrize
  • #87, #94 (PR #93): Removed named tuple inheritance.
  • #89 (PR #90): Added doctests.

Bug Fixes

  • #98 (PR #99): Set prerelease and build to None by default
  • #96 (PR #97): Made VersionInfo immutable

Version 2.8.0

Released:2018-05-16
Maintainer:Sébastien Celles <s.celles@gmail.com>

Changes

  • #82 (PR #83): Renamed test.py to test_semver.py so py.test can autodiscover test file

Additions

Removals

  • #76 (PR #80): Removed Python 2.6 compatibility

Version 2.7.9

Released:2017-09-23
Maintainer:Kostiantyn Rybnikov <k-bx@k-bx.com>

Additions

Version 2.7.8

Released:2017-08-25
Maintainer:Kostiantyn Rybnikov <k-bx@k-bx.com>
  • #62: Support custom default names for pre and build

Version 2.7.7

Released:2017-05-25
Maintainer:Kostiantyn Rybnikov <k-bx@k-bx.com>
  • #54 (PR #55): Added comparision between VersionInfo objects
  • PR #56: Added support for Python 3.6

Version 2.7.2

Released:2016-11-08
Maintainer:Kostiantyn Rybnikov <k-bx@k-bx.com>

Additions

Bug Fixes

  • #37: Removed trailing zeros from prelease doesn’t allow to parse 0 pre-release version

  • Refine parsing to conform more strictly to SemVer 2.0.0.

    SemVer 2.0.0 specification §9 forbids leading zero on identifiers in the prerelease version.

Version 2.6.0

Released:2016-06-08
Maintainer:Kostiantyn Rybnikov <k-bx@k-bx.com>

Removals

  • Remove comparison of build component.

    SemVer 2.0.0 specification recommends that build component is ignored in comparisons.

Version 2.5.0

Released:2016-05-25
Maintainer:Kostiantyn Rybnikov <k-bx@k-bx.com>

Additions

  • Support matching ‘not equal’ with “!=”.

Changes

  • Made separate builds for tests on Travis CI.

Version 2.4.2

Released:2016-05-16
Maintainer:Kostiantyn Rybnikov <k-bx@k-bx.com>

Changes

  • Migrated README document to reStructuredText format.
  • Used Setuptools for distribution management.
  • Migrated test cases to Py.test.
  • Added configuration for Tox test runner.

Version 2.4.1

Released:2016-03-04
Maintainer:Kostiantyn Rybnikov <k-bx@k-bx.com>

Additions

  • #23: Compared build component of a version.

Version 2.4.0

Released:2016-02-12
Maintainer:Kostiantyn Rybnikov <k-bx@k-bx.com>

Bug Fixes

  • #21: Compared alphanumeric components correctly.

Version 2.3.1

Released:2016-01-30
Maintainer:Kostiantyn Rybnikov <k-bx@k-bx.com>

Additions

  • Declared granted license name in distribution metadata.

Version 2.3.0

Released:2016-01-29
Maintainer:Kostiantyn Rybnikov <k-bx@k-bx.com>

Additions

  • Added functions to increment prerelease and build components in a version.

Version 2.2.1

Released:2015-08-04
Maintainer:Kostiantyn Rybnikov <k-bx@k-bx.com>

Bug Fixes

  • Corrected comparison when any component includes zero.

Version 2.2.0

Released:2015-06-21
Maintainer:Kostiantyn Rybnikov <k-bx@k-bx.com>

Additions

  • Add functions to determined minimum and maximum version.
  • Add code examples for recently-added functions.

Version 2.1.2

Released:2015-05-23
Maintainer:Kostiantyn Rybnikov <k-bx@k-bx.com>

Bug Fixes

  • Restored current README document to distribution manifest.

Version 2.1.1

Released:2015-05-23
Maintainer:Kostiantyn Rybnikov <k-bx@k-bx.com>

Bug Fixes

  • Removed absent document from distribution manifest.

Version 2.1.0

Released:2015-05-22
Maintainer:Kostiantyn Rybnikov <k-bx@k-bx.com>

Additions

  • Documented installation instructions.
  • Documented project home page.
  • Added function to format a version string from components.
  • Added functions to increment specific components in a version.

Changes

  • Migrated README document to Markdown format.

Bug Fixes

  • Corrected code examples in README document.

Version 2.0.2

Released:2015-04-14
Maintainer:Konstantine Rybnikov <k-bx@k-bx.com>

Additions

  • Added configuration for Travis continuous integration.
  • Explicitly declared supported Python versions.

Version 2.0.1

Released:2014-09-24
Maintainer:Konstantine Rybnikov <k-bx@k-bx.com>

Bug Fixes

  • #9: Fixed comparison of equal version strings.

Version 2.0.0

Released:2014-05-24
Maintainer:Konstantine Rybnikov <k-bx@k-bx.com>

Additions

  • Grant license in this code base under BSD 3-clause license terms.

Changes

  • Update parser to SemVer standard 2.0.0.
  • Ignore build component for comparison.

Version 0.0.2

Released:2012-05-10
Maintainer:Konstantine Rybnikov <k-bx@k-bx.com>

Changes

  • Use standard library Distutils for distribution management.

Version 0.0.1

Released:2012-04-28
Maintainer:Konstantine Rybnikov <kost-bebix@yandex.ru>
  • Initial release.