Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-nitrokey for openSUSE:Factory
checked in at 2025-12-10 15:30:38
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-nitrokey (Old)
and /work/SRC/openSUSE:Factory/.python-nitrokey.new.1939 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-nitrokey"
Wed Dec 10 15:30:38 2025 rev:7 rq:1321701 version:0.4.2
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-nitrokey/python-nitrokey.changes
2025-08-25 20:39:44.552224394 +0200
+++
/work/SRC/openSUSE:Factory/.python-nitrokey.new.1939/python-nitrokey.changes
2025-12-10 15:31:24.620478658 +0100
@@ -1,0 +2,8 @@
+Tue Dec 9 06:41:40 UTC 2025 - Johannes Kastl
<[email protected]>
+
+- update to 0.4.2:
+ * nitrokey.trussed: Add optional model argument for list and open
+ functions.
+
+
+-------------------------------------------------------------------
Old:
----
nitrokey-0.4.1.tar.gz
New:
----
nitrokey-0.4.2.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-nitrokey.spec ++++++
--- /var/tmp/diff_new_pack.Nq7gz5/_old 2025-12-10 15:31:25.300507329 +0100
+++ /var/tmp/diff_new_pack.Nq7gz5/_new 2025-12-10 15:31:25.304507498 +0100
@@ -18,7 +18,7 @@
%{?sle15_python_module_pythons}
Name: python-nitrokey
-Version: 0.4.1
+Version: 0.4.2
Release: 0
Summary: Nitrokey Python SDK
License: Apache-2.0
@@ -39,10 +39,12 @@
BuildRequires: %{python_module requests >= 2 with %python-requests < 3}
BuildRequires: %{python_module semver >= 3 with %python-semver < 4}
BuildRequires: %{python_module tlv8 >= 0.10 with %python-tlv8 < 0.11}
+BuildRequires: %{python_module wrapt}
#
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-cryptography >= 41
+Requires: python-wrapt
Requires: (python-crcmod >= 1.7 with python-crcmod < 2)
Requires: (python-fido2 >= 1.1.2 with python-fido2 < 3)
Requires: (python-hidapi >= 0.14 with python-hidapi < 0.15)
++++++ nitrokey-0.4.1.tar.gz -> nitrokey-0.4.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/nitrokey-0.4.1/PKG-INFO new/nitrokey-0.4.2/PKG-INFO
--- old/nitrokey-0.4.1/PKG-INFO 1970-01-01 01:00:00.000000000 +0100
+++ new/nitrokey-0.4.2/PKG-INFO 1970-01-01 01:00:00.000000000 +0100
@@ -1,18 +1,20 @@
-Metadata-Version: 2.3
+Metadata-Version: 2.4
Name: nitrokey
-Version: 0.4.1
+Version: 0.4.2
Summary: Nitrokey Python SDK
-License: Apache-2.0 or MIT
+License-Expression: Apache-2.0 OR MIT
+License-File: LICENSES/Apache-2.0.txt
+License-File: LICENSES/MIT.txt
Author: Nitrokey
Author-email: [email protected]
Requires-Python: >=3.10, <4
Classifier: Intended Audience :: Developers
-Classifier: License :: Other/Proprietary License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
+Classifier: Programming Language :: Python :: 3.14
Requires-Dist: crcmod (>=1.7,<2)
Requires-Dist: cryptography (>=41)
Requires-Dist: fido2 (>=1.1.2,<3)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/nitrokey-0.4.1/pyproject.toml
new/nitrokey-0.4.2/pyproject.toml
--- old/nitrokey-0.4.1/pyproject.toml 1970-01-01 01:00:00.000000000 +0100
+++ new/nitrokey-0.4.2/pyproject.toml 1970-01-01 01:00:00.000000000 +0100
@@ -4,7 +4,7 @@
[project]
name = "nitrokey"
-version = "0.4.1"
+version = "0.4.2"
description = "Nitrokey Python SDK"
authors = [
{ name = "Nitrokey", email = "[email protected]" },
@@ -69,6 +69,9 @@
"cffi >=1.14.1",
"typing-extensions >=4.1",
"urllib3 >= 2",
+
+ # fake-winreg does not work with wrapt v2 so we need to add an additional
upper bound
+ "wrapt <2",
]
[tool.black]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/nitrokey-0.4.1/src/nitrokey/trussed/__init__.py
new/nitrokey-0.4.2/src/nitrokey/trussed/__init__.py
--- old/nitrokey-0.4.1/src/nitrokey/trussed/__init__.py 1970-01-01
01:00:00.000000000 +0100
+++ new/nitrokey-0.4.2/src/nitrokey/trussed/__init__.py 1970-01-01
01:00:00.000000000 +0100
@@ -23,26 +23,41 @@
from ._utils import Version as Version # noqa: F401
-def list() -> List[TrussedBase]:
- from nitrokey.nk3 import list as list_nk3
- from nitrokey.nkpk import list as list_nkpk
-
+def list(*, model: Optional[Model] = None) -> List[TrussedBase]:
devices: List[TrussedBase] = []
- devices.extend(list_nk3())
- devices.extend(list_nkpk())
+
+ if model is None or model == Model.NK3:
+ from nitrokey import nk3
+
+ devices.extend(nk3.list())
+
+ if model is None or model == Model.NKPK:
+ from nitrokey import nkpk
+
+ devices.extend(nkpk.list())
+
return devices
-def open(path: str) -> Optional[TrussedBase]:
- from nitrokey.nk3 import open as open_nk3
- from nitrokey.nkpk import open as open_nkpk
-
- nk3 = open_nk3(path)
- nkpk = open_nkpk(path)
- if nk3 and nkpk:
+def open(path: str, *, model: Optional[Model] = None) -> Optional[TrussedBase]:
+ devices: List[TrussedBase] = []
+
+ if model is None or model == Model.NK3:
+ from nitrokey import nk3
+
+ nk3_device = nk3.open(path)
+ if nk3_device is not None:
+ devices.append(nk3_device)
+
+ if model is None or model == Model.NKPK:
+ from nitrokey import nkpk
+
+ nkpk_device = nkpk.open(path)
+ if nkpk_device is not None:
+ devices.append(nkpk_device)
+
+ if len(devices) > 1:
raise Exception(f"Found multiple devices at path {path}")
- if nk3:
- return nk3
- if nkpk:
- return nkpk
+ if len(devices) == 1:
+ return devices[0]
return None
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/nitrokey-0.4.1/src/nitrokey/trussed/updates.py
new/nitrokey-0.4.2/src/nitrokey/trussed/updates.py
--- old/nitrokey-0.4.1/src/nitrokey/trussed/updates.py 1970-01-01
01:00:00.000000000 +0100
+++ new/nitrokey-0.4.2/src/nitrokey/trussed/updates.py 1970-01-01
01:00:00.000000000 +0100
@@ -62,7 +62,7 @@
return (
"Not enough space on the internal filesystem to perform the
firmware"
" update. See the release notes for more information:"
- "
https://github.com/Nitrokey/nitrokey-3-firmware/releases/tag/v1.8.2-test.20250312"
+ "
https://github.com/Nitrokey/nitrokey-3-firmware/releases/tag/v1.8.2"
)
if self == Warning.MISSING_STATUS:
return (