Skip to content

Commit

Permalink
Get ready for release 6.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
rocky committed Nov 6, 2021
1 parent 995eb20 commit 3500731
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -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
=================

Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion xdis/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion xdis/version_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]])

0 comments on commit 3500731

Please sign in to comment.