Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ All notable changes to this code base will be documented in this file,
in every released version.


Version 2.11.0 (WIP)
====================
Version 2.11.0
==============

:Released: n/a
:Maintainer: n/a
:Released: 2020-10-17
:Maintainer: Tom Schraitle

Features
--------
Expand All @@ -23,6 +23,7 @@ Bug Fixes
---------

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


Expand Down Expand Up @@ -123,7 +124,7 @@ Additions


Deprecations
--------
------------
* :gh:`225` (:pr:`229`): Output a DeprecationWarning for the following functions:

- ``semver.parse``
Expand Down
6 changes: 5 additions & 1 deletion semver.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
PY3 = sys.version_info[0] == 3


__version__ = "2.10.2"
__version__ = "2.11.0"
__author__ = "Kostiantyn Rybnikov"
__author_email__ = "k-bx@k-bx.com"
__maintainer__ = ["Sebastien Celles", "Tom Schraitle"]
Expand Down Expand Up @@ -698,6 +698,10 @@ def parse(cls, version):
:raises: :class:`ValueError`
:rtype: :class:`VersionInfo`

.. versionchanged:: 2.11.0
Changed method from static to classmethod to
allow subclasses.

>>> semver.VersionInfo.parse('3.4.5-pre.2+build.4')
VersionInfo(major=3, minor=4, patch=5, \
prerelease='pre.2', build='build.4')
Expand Down