From f4deb39f28053b750e47609d0511225c48f9fb4a836c1e628529fc35251e71d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 4 Mar 2025 16:27:36 +0000 Subject: [PATCH] Accepting request 1250142 from home:fstegmeier:branches:devel:languages:python - Update to 1.3.1 * core: fix a regression in ctrl_transfer where supplied read buffers were discarded (#528, #530) OBS-URL: https://build.opensuse.org/request/show/1250142 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyusb?expand=0&rev=9 --- python-pyusb.changes | 7 +++++++ python-pyusb.spec | 15 ++++++++------- pyusb-1.2.1.tar.gz | 3 --- pyusb-1.3.1.tar.gz | 3 +++ 4 files changed, 18 insertions(+), 10 deletions(-) delete mode 100644 pyusb-1.2.1.tar.gz create mode 100644 pyusb-1.3.1.tar.gz diff --git a/python-pyusb.changes b/python-pyusb.changes index 4b8b59c..ce2059a 100644 --- a/python-pyusb.changes +++ b/python-pyusb.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Mar 4 16:19:46 UTC 2025 - Felix Stegmeier + +- Update to 1.3.1 + * core: fix a regression in ctrl_transfer where supplied read buffers were discarded (#528, #530) + + ------------------------------------------------------------------- Tue Dec 7 19:54:08 UTC 2021 - pgajdos@suse.com diff --git a/python-pyusb.spec b/python-pyusb.spec index dedd005..045137a 100644 --- a/python-pyusb.spec +++ b/python-pyusb.spec @@ -1,7 +1,7 @@ # # spec file for package python-pyusb # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,10 +16,8 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%global skip_python2 1 Name: python-pyusb -Version: 1.2.1 +Version: 1.3.1 Release: 0 Summary: USB access on the Python language # URL is incorrect on PyPI, gh#pyusb/pyusb#211 @@ -27,9 +25,11 @@ 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 pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: dos2unix BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -48,10 +48,10 @@ Provides USB access to the Python language. find . -name "*.rst" -exec dos2unix {} + %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -62,6 +62,7 @@ find . -name "*.rst" -exec dos2unix {} + %files %{python_files} %license LICENSE %doc ACKNOWLEDGEMENTS README.rst docs/* -%{python_sitelib}/* +%{python_sitelib}/usb +%{python_sitelib}/pyusb-%{version}*info %changelog diff --git a/pyusb-1.2.1.tar.gz b/pyusb-1.2.1.tar.gz deleted file mode 100644 index bc1f494..0000000 --- a/pyusb-1.2.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a4cc7404a203144754164b8b40994e2849fde1cfff06b08492f12fff9d9de7b9 -size 75292 diff --git a/pyusb-1.3.1.tar.gz b/pyusb-1.3.1.tar.gz new file mode 100644 index 0000000..b77b80f --- /dev/null +++ b/pyusb-1.3.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3af070b607467c1c164f49d5b0caabe8ac78dbed9298d703a8dbf9df4052d17e +size 77281