From 3500731d1cc6f64468c8424bc03f9a526ea5d881 Mon Sep 17 00:00:00 2001 From: rocky Date: Fri, 5 Nov 2021 19:45:15 -0400 Subject: [PATCH] Get ready for release 6.0.3 --- NEWS.md | 7 +++++++ README.rst | 2 +- xdis/version.py | 2 +- xdis/version_info.py | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/NEWS.md b/NEWS.md index a5d83c51..9eec51fc 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,10 @@ +6.0.2 2021-11-05 +================= + +* xasm format fixes +* more Python version tuple compare conversions +* add `version_str_to_tuple()` to convert the other way. This is useful in xasm, for example. + 6.0.2 2021-10-29 ================= diff --git a/README.rst b/README.rst index d6ae3811..7818ed62 100644 --- a/README.rst +++ b/README.rst @@ -43,7 +43,7 @@ Python running lots of Python versions. When installing, except for the most recent versions of Python, use the Python egg or wheel that matches that version, e.g. ``xdis-6.0.2-py3.3.egg``, ``xdis-6.0.2-py33-none-any.whl``. -Of course for version sthat pre-date wheel's, like Python 2.6, you will have to use eggs. +Of course for versions that pre-date wheel's, like Python 2.6, you will have to use eggs. To install older versions for from source in git use the branch ``python-2.4-to-2.7`` for Python versions from 2.4 to 2.7, diff --git a/xdis/version.py b/xdis/version.py index c5000491..d9c3bd41 100644 --- a/xdis/version.py +++ b/xdis/version.py @@ -4,4 +4,4 @@ # well as importing into Python. That's why there is no # space around "=" below. # fmt: off -__version__="6.0.3.dev0" # noqa +__version__="6.0.3" # noqa diff --git a/xdis/version_info.py b/xdis/version_info.py index d5b4e489..c37e1d5f 100644 --- a/xdis/version_info.py +++ b/xdis/version_info.py @@ -50,5 +50,5 @@ def version_tuple_to_str(version_tuple=PYTHON_VERSION_TRIPLE, start=0, end=3, de """ return delimiter.join([str(v) for v in version_tuple[start:end]]) -def version_str_to_tuple(python_version: str, len=2): +def version_str_to_tuple(python_version: str, len=2) -> tuple: return tuple([int(v) for v in python_version.split(".")[:len]])