14
0
forked from pool/python-pyusb

Accepting request 936353 from home:pgajdos:python

- version update to 1.2.1
  Added:
  * core: implement Device.__eq__() (#147)
  Changed:
  * libusb0: implement is_kernel_driver_active() for FreeBSD and DragonFly BSD (#365)
  * libusb0: implement is_kernel_driver_active() for Mac OS (#374)
  Fixed:
  * core: make Device hashable again (PR #376)
  * setup: prevent installation on unsupported Python versions (PR #364)
  * control: fix undefined USBError (#372)
  * tests: fix legacy/hardware tests for Python 3.9 (#373)
- do not require pytest-runner for build, it is not needed

OBS-URL: https://build.opensuse.org/request/show/936353
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyusb?expand=0&rev=8
This commit is contained in:
2021-12-07 21:01:35 +00:00
committed by Git OBS Bridge
parent c4f20c8604
commit 294a3ee109
4 changed files with 22 additions and 6 deletions

View File

@@ -19,7 +19,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%global skip_python2 1
Name: python-pyusb
Version: 1.1.1
Version: 1.2.1
Release: 0
Summary: USB access on the Python language
# URL is incorrect on PyPI, gh#pyusb/pyusb#211
@@ -27,7 +27,7 @@ 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
BuildRequires: %{python_module pytest-runner}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools}
BuildRequires: dos2unix
@@ -57,7 +57,7 @@ find . -name "*.rst" -exec dos2unix {} +
%check
# 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'"
%pytest tests/test_find.py tests/test_util.py -k 'not FindDescriptorTest'
%files %{python_files}
%license LICENSE