From 9c4ef46818ff00b8985a7349999d3945cce2a359 Mon Sep 17 00:00:00 2001 From: Dain Nilsson Date: Mon, 1 Jul 2024 11:00:11 +0200 Subject: [PATCH 1/3] Fix formatting when using older Python versions --- yubikit/management.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yubikit/management.py b/yubikit/management.py index 28e14889..c9ec4cb1 100644 --- a/yubikit/management.py +++ b/yubikit/management.py @@ -105,7 +105,7 @@ def _from_aid(cls, aid: AID) -> "CAPABILITY": def display_name(self) -> str: if self == 0: return "None" - if f"{self:b}".count("1") > 1: + if bin(self).count("1") > 1: i = 1 names = [] while i < self: From ab39c94413bd38bc18a7967ee118e92e376635b7 Mon Sep 17 00:00:00 2001 From: Dain Nilsson Date: Mon, 1 Jul 2024 11:27:57 +0200 Subject: [PATCH 2/3] Prepare 5.5.1 --- NEWS | 4 ++++ pyproject.toml | 2 +- ykman/__init__.py | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index dfa54bfc..cae76207 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,7 @@ +* Version 5.5.1 (released 2024-07-01) + * Bugfix: CLI - Don't use formatting that doesn't work on older Python versions. + Note: As the 5.5.0 installers bundle Python 3.12, this will be a source-only release. + * Version 5.5.0 (released 2024-06-26) * Add Secure Channel support to smartcard sessions. * Support extended APDUs in the "apdu" command (this is now the default). diff --git a/pyproject.toml b/pyproject.toml index fc7c05db..15d29df9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "yubikey-manager" -version = "5.5.1-dev.0" +version = "5.5.1" description = "Tool for managing your YubiKey configuration." authors = ["Dain Nilsson "] license = "BSD" diff --git a/ykman/__init__.py b/ykman/__init__.py index 4d981e66..5c4a7d04 100644 --- a/ykman/__init__.py +++ b/ykman/__init__.py @@ -25,4 +25,4 @@ # ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE # POSSIBILITY OF SUCH DAMAGE. -__version__ = "5.5.1-dev.0" +__version__ = "5.5.1" From a2dace091839c80af8c6a7a37d7227f292a1e131 Mon Sep 17 00:00:00 2001 From: Dain Nilsson Date: Mon, 1 Jul 2024 11:59:32 +0200 Subject: [PATCH 3/3] Bump version --- pyproject.toml | 2 +- ykman/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 15d29df9..e3286012 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "yubikey-manager" -version = "5.5.1" +version = "5.5.2-dev.0" description = "Tool for managing your YubiKey configuration." authors = ["Dain Nilsson "] license = "BSD" diff --git a/ykman/__init__.py b/ykman/__init__.py index 5c4a7d04..88eb9925 100644 --- a/ykman/__init__.py +++ b/ykman/__init__.py @@ -25,4 +25,4 @@ # ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE # POSSIBILITY OF SUCH DAMAGE. -__version__ = "5.5.1" +__version__ = "5.5.2-dev.0"