Hello community, here is the log from the commit of package python-pyusb for openSUSE:Factory checked in at 2019-05-13 14:49:26 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pyusb (Old) and /work/SRC/openSUSE:Factory/.python-pyusb.new.5148 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pyusb" Mon May 13 14:49:26 2019 rev:2 rq:701016 version:1.0.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pyusb/python-pyusb.changes 2019-04-19 18:37:37.571127032 +0200 +++ /work/SRC/openSUSE:Factory/.python-pyusb.new.5148/python-pyusb.changes 2019-05-13 14:49:29.702630793 +0200 @@ -1,0 +2,7 @@ +Wed Apr 17 01:30:00 UTC 2019 - John Vandenberg <jay...@gmail.com> + +- Activate tests using GitHub archive +- Add fdupes +- Add Requires libusb-1_0-1 + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pyusb.spec ++++++ --- /var/tmp/diff_new_pack.5SwBHc/_old 2019-05-13 14:49:31.374635005 +0200 +++ /var/tmp/diff_new_pack.5SwBHc/_new 2019-05-13 14:49:31.374635005 +0200 @@ -25,10 +25,13 @@ 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 @@ %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 ++++++ pyusb-1.0.2.tar.gz ++++++ ++++ 2644 lines of diff (skipped)