From 7d3ec8414944aa2c19e7521e51033370d563360c Mon Sep 17 00:00:00 2001 From: Tom Schraitle Date: Sat, 17 Oct 2020 13:34:27 +0200 Subject: [PATCH] Prepare 2.11.0 release (#288) * #274 / #275 String Types Py2 vs. Py3 compatibility * #277 Turn VersionInfo.parse into classmethod to allow subclasses * #286 Add author and update changelog for #276/#277 --- CHANGELOG.rst | 11 ++++++----- semver.py | 6 +++++- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index e5736f33..46a94ee3 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -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 -------- @@ -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 @@ -123,7 +124,7 @@ Additions Deprecations --------- +------------ * :gh:`225` (:pr:`229`): Output a DeprecationWarning for the following functions: - ``semver.parse`` diff --git a/semver.py b/semver.py index 4797d61d..1e15a08d 100644 --- a/semver.py +++ b/semver.py @@ -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"] @@ -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') pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy