]> git.pld-linux.org Git - packages/yubikey-manager.git/commitdiff
- updated tests running and dependencies master
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 4 Feb 2024 07:39:35 +0000 (08:39 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 4 Feb 2024 07:39:57 +0000 (08:39 +0100)
yubikey-manager.spec

index 2bbf62b43ab8be1c0e82c776a8cd54ec38c05177..3f61b7dbcecf3c97b4d7e99510f5064cabc5d445 100644 (file)
@@ -1,10 +1,11 @@
 #
 # Conditional build:
-%bcond_with    tests           # unit tests (broken as of 1.0.1)
+%bcond_without tests           # unit tests
 
 Summary:       Tool for managing your YubiKey configuration
 Summary(pl.UTF-8):     Narzędzie do zarządzania urządzeniami YubiKey
 Name:          yubikey-manager
+# versions 5.1+ use poetry buildsystem
 Version:       5.0.1
 Release:       1
 License:       BSD
@@ -12,20 +13,24 @@ Group:              Applications/System
 Source0:       https://developers.yubico.com/yubikey-manager/Releases/yubikey_manager-%{version}.tar.gz
 # Source0-md5: 8686ea7e4d633da9e9318e5e8c22c699
 URL:           https://developers.yubico.com/yubikey-manager/
-BuildRequires: python3-modules >= 1:3.6
+BuildRequires: python3-modules >= 1:3.7
 BuildRequires: python3-setuptools
 BuildRequires: rpmbuild(macros) >= 1.714
 %if %{with tests}
-BuildRequires: python3-cryptography
-BuildRequires: python3-fido2 >= 1.0.0
-BuildRequires: python3-mock
-BuildRequires: python3-pyOpenSSL
-BuildRequires: python3-pyscard
-BuildRequires: python3-pyusb
-BuildRequires: python3-six
+BuildRequires: python3-click >= 8.0
+BuildRequires: python3-click < 9
+BuildRequires: python3-cryptography >= 3.0
+BuildRequires: python3-cryptography < 42
+BuildRequires: python3-fido2 >= 1.0
+BuildRequires: python3-fido2 < 2
+BuildRequires: python3-keyring >= 23.4
+BuildRequires: python3-keyring >= 24
+BuildRequires: python3-makefun >= 1.9.5
+BuildRequires: python3-pyscard >= 2.0
+BuildRequires: python3-pyscard < 3
+BuildRequires: python3-pytest >= 7.2
 %endif
-Requires:      python3-fido2 >= 1.0.0
-Requires:      python3-modules >= 1:3.6
+Requires:      python3-modules >= 1:3.7
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -43,7 +48,8 @@ urządzeń YubiKey.
 %py3_build
 
 %if %{with tests}
-%{__python3} -m unittest discover -s tests
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+%{__python3} -m pytest tests
 %endif
 
 %install
This page took 0.190242 seconds and 4 git commands to generate.