From cf8bc5f71658e577f9db14e18f2dc4ac60dab23ac41ab073ac640e5ab4efd4aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 17 Apr 2019 08:46:24 +0000 Subject: [PATCH] Accepting request 694884 from home:jayvdb:branches:devel:languages:python - Activate tests using GitHub archive - Add fdupes - Add Requires libusb-1_0-1 OBS-URL: https://build.opensuse.org/request/show/694884 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyusb?expand=0&rev=3 --- python-pyusb.changes | 7 +++++++ python-pyusb.spec | 12 +++++++++--- pyusb-1.0.2.tar.gz | 4 ++-- 3 files changed, 18 insertions(+), 5 deletions(-) diff --git a/python-pyusb.changes b/python-pyusb.changes index 0da9a8f..13e046a 100644 --- a/python-pyusb.changes +++ b/python-pyusb.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Apr 17 01:30:00 UTC 2019 - John Vandenberg + +- Activate tests using GitHub archive +- Add fdupes +- Add Requires libusb-1_0-1 + ------------------------------------------------------------------- Tue Apr 16 11:33:37 CEST 2019 - Matej Cepl diff --git a/python-pyusb.spec b/python-pyusb.spec index feb2533..dc21ac0 100644 --- a/python-pyusb.spec +++ b/python-pyusb.spec @@ -25,10 +25,13 @@ Summary: USB access on the Python language License: BSD-3-Clause Group: Development/Languages/Python URL: https://github.com/pyusb/pyusb -Source: https://files.pythonhosted.org/packages/source/p/pyusb/pyusb-%{version}.tar.gz +Source: https://github.com/pyusb/pyusb/archive/v%{version}.tar.gz#/pyusb-%{version}.tar.gz +BuildRequires: %{python_module pytest-runner} BuildRequires: %{python_module setuptools} BuildRequires: dos2unix +BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: libusb-1_0-0 BuildArch: noarch Provides: python-usb = %{version}-%{release} Obsoletes: python-usb < %{version}-%{release} @@ -47,13 +50,16 @@ find . -name "*.rst" -exec dos2unix {} + %install %python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} %check -# Tests are neither available nor useable gh#pyusb/pyusb#235 +# Testing mostly requires a device, which is not mocked or emulated +# See https://github.com/pyusb/pyusb/issues/235 +%python_exec setup.py pytest --addopts="tests/test_find.py tests/test_util.py -k 'not FindDescriptorTest'" %files %{python_files} %license LICENSE -%doc ACKNOWLEDGEMENTS ChangeLog README.rst docs/* +%doc ACKNOWLEDGEMENTS README.rst docs/* %{python_sitelib}/* %changelog diff --git a/pyusb-1.0.2.tar.gz b/pyusb-1.0.2.tar.gz index 60a1c06..2bfedae 100644 --- a/pyusb-1.0.2.tar.gz +++ b/pyusb-1.0.2.tar.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:4e9b72cc4a4205ca64fbf1f3fff39a335512166c151ad103e55c8223ac147362 -size 54220 +oid sha256:49dfa601f28e9399df62004170cfb623197ad32d8399885b7f789775767b50c3 +size 68694