forked from pool/python-pyusb
Accepting request 701016 from devel:languages:python
- Activate tests using GitHub archive - Add fdupes - Add Requires libusb-1_0-1 OBS-URL: https://build.opensuse.org/request/show/701016 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyusb?expand=0&rev=2
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 17 01:30:00 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
|
||||
|
||||
- Activate tests using GitHub archive
|
||||
- Add fdupes
|
||||
- Add Requires libusb-1_0-1
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Apr 16 11:33:37 CEST 2019 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
|
@@ -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
|
||||
|
@@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4e9b72cc4a4205ca64fbf1f3fff39a335512166c151ad103e55c8223ac147362
|
||||
size 54220
|
||||
oid sha256:49dfa601f28e9399df62004170cfb623197ad32d8399885b7f789775767b50c3
|
||||
size 68694
|
||||
|
Reference in New Issue
Block a user