#1 Change dependencies to work with the latest location of test.support module
Opened 2 months ago by lbalhar. Modified 2 months ago
rpms/ lbalhar/yubikey-piv-manager test.support_change  into  master

file modified
+6 -1

@@ -1,6 +1,6 @@ 

  Name:           yubikey-piv-manager

  Version:        1.4.2

- Release:        8%{?dist}

+ Release:        9%{?dist}

  Summary:        Tool for configuring your PIV-enabled YubiKey

  

  # BSD (2 clause)

@@ -31,6 +31,7 @@ 

  BuildRequires:  python%{python3_pkgversion}-devel

  BuildRequires:  python%{python3_pkgversion}-setuptools

  BuildRequires:  python%{python3_pkgversion}-pyside

+ BuildRequires:  python%{python3_pkgversion}-test

  Requires:       python%{python3_pkgversion}-pyside

  Requires:       python%{python3_pkgversion}-setuptools

  Requires:       yubico-piv-tool

@@ -73,6 +74,10 @@ 

  %{python3_sitelib}/*

  

  %changelog

+ * Wed Jul 17 2019 Lumír Balhar <lbalhar@redhat.com> - 1.4.2-9

+ - Change dependencies to work with the latest location of test.support module

+   https://fedoraproject.org/wiki/Changes/Move_test.support_module_to_python3-test_subpackage

+ 

  * Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.2-8

  - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

  

Change is documented here: https://fedoraproject.org/wiki/Changes/Move_test.support_module_to_python3-test_subpackage

This change of BR should fix the build in rawhide. However, it seems that this package does not build for a different reason:

+ cd yubikey-piv-manager-1.4.2
+ /usr/bin/python3 setup.py test
BUILDSTDERR: Traceback (most recent call last):
BUILDSTDERR:   File "setup.py", line 59, in <module>
BUILDSTDERR:     'Topic :: Utilities'
BUILDSTDERR:   File "/builddir/build/BUILD/yubikey-piv-manager-1.4.2/pivman/yubicommon/setup/__init__.py", line 126, in setup
BUILDSTDERR:     return _setup(**kwargs)
BUILDSTDERR:   File "/usr/lib/python3.7/site-packages/setuptools/__init__.py", line 145, in setup
BUILDSTDERR:     return distutils.core.setup(**attrs)
BUILDSTDERR:   File "/usr/lib64/python3.7/distutils/core.py", line 148, in setup
BUILDSTDERR:     dist.run_commands()
BUILDSTDERR:   File "/usr/lib64/python3.7/distutils/dist.py", line 966, in run_commands
BUILDSTDERR:     self.run_command(cmd)
BUILDSTDERR:   File "/usr/lib64/python3.7/distutils/dist.py", line 985, in run_command
BUILDSTDERR:     cmd_obj.run()
BUILDSTDERR:   File "/usr/lib/python3.7/site-packages/setuptools/command/test.py", line 229, in run
BUILDSTDERR:     self.run_tests()
BUILDSTDERR:   File "/usr/lib/python3.7/site-packages/setuptools/command/test.py", line 251, in run_tests
BUILDSTDERR:     exit=False,
BUILDSTDERR:   File "/usr/lib64/python3.7/unittest/main.py", line 100, in __init__
BUILDSTDERR:     self.parseArgs(argv)
BUILDSTDERR:   File "/usr/lib64/python3.7/unittest/main.py", line 147, in parseArgs
BUILDSTDERR:     self.createTests()
BUILDSTDERR:   File "/usr/lib64/python3.7/unittest/main.py", line 159, in createTests
BUILDSTDERR:     self.module)
BUILDSTDERR:   File "/usr/lib64/python3.7/unittest/loader.py", line 220, in loadTestsFromNames
BUILDSTDERR:     suites = [self.loadTestsFromName(name, module) for name in names]
BUILDSTDERR:   File "/usr/lib64/python3.7/unittest/loader.py", line 220, in <listcomp>
BUILDSTDERR:     suites = [self.loadTestsFromName(name, module) for name in names]
BUILDSTDERR:   File "/usr/lib64/python3.7/unittest/loader.py", line 191, in loadTestsFromName
BUILDSTDERR:     return self.loadTestsFromModule(obj)
BUILDSTDERR:   File "/usr/lib/python3.7/site-packages/setuptools/command/test.py", line 55, in loadTestsFromModule
BUILDSTDERR:     tests.append(self.loadTestsFromName(submodule))
BUILDSTDERR:   File "/usr/lib64/python3.7/unittest/loader.py", line 154, in loadTestsFromName
BUILDSTDERR:     module = __import__(module_name)
BUILDSTDERR:   File "/usr/lib64/python3.7/test/win_console_handler.py", line 11, in <module>
BUILDSTDERR:     from ctypes import wintypes, WINFUNCTYPE
BUILDSTDERR:   File "/usr/lib64/python3.7/ctypes/wintypes.py", line 20, in <module>
BUILDSTDERR:     class VARIANT_BOOL(ctypes._SimpleCData):
BUILDSTDERR: ValueError: _type_ 'v' not supported
BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.lI5hsu (%check)
BUILDSTDERR:     Bad exit status from /var/tmp/rpm-tmp.lI5hsu (%check)

I see that the package is deprecated and replaced by two new tools. If you want to keep it in Fedora, I am willing to help you fix it.