8 Commits

Author SHA256 Message Date
a220a7e19b Accepting request 1289275 from devel:languages:python
Forwarded request #1289264 from glaubitz

- Switch build system from setuptools to pyproject.toml
    * Add python-pip and python-wheel to BuildRequires
    * Replace %python_build with %pyproject_wheel
    * Replace %python_install with %pyproject_install
  - Use Python 3.11 on SLE-15 by default

OBS-URL: https://build.opensuse.org/request/show/1289275
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-libusb1?expand=0&rev=9
2025-07-01 09:34:16 +00:00
2bb81db574 Accepting request 1289264 from home:glaubitz:branches:devel:languages:python
- Switch build system from setuptools to pyproject.toml
  * Add python-pip and python-wheel to BuildRequires
  * Replace %python_build with %pyproject_wheel
  * Replace %python_install with %pyproject_install
- Use Python 3.11 on SLE-15 by default

OBS-URL: https://build.opensuse.org/request/show/1289264
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-libusb1?expand=0&rev=17
2025-06-30 12:58:34 +00:00
ab522b6521 Accepting request 1268608 from devel:languages:python
- update to 3.3.1:
  * Fix incorrect getFinalizer() reference in
    setPollFDNotifiers()
- update to 3.3.0:
  * Fix finalizer registration errors on pypi by using a thread-
    safe sequential number generator instead of relying on object
    id unicity and timely finalizer triggering.

OBS-URL: https://build.opensuse.org/request/show/1268608
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-libusb1?expand=0&rev=8
2025-04-11 17:27:22 +00:00
1e14c16560 - update to 3.3.1:
* Fix incorrect getFinalizer() reference in
    setPollFDNotifiers()
- update to 3.3.0:
  * Fix finalizer registration errors on pypi by using a thread-
    safe sequential number generator instead of relying on object
    id unicity and timely finalizer triggering.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-libusb1?expand=0&rev=15
2025-04-11 12:45:51 +00:00
6158867ab0 Accepting request 1239521 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1239521
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-libusb1?expand=0&rev=7
2025-01-22 15:39:27 +00:00
87f172bfe3 Accepting request 1239517 from home:glaubitz:branches:devel:languages:python
- Update to 3.2.0
  * Add example for scanning the complete device tree
  * Fix CRLF problem
  * testUSB1: Fix python 3.13 support
- Drop py313.patch, merged upstream

OBS-URL: https://build.opensuse.org/request/show/1239517
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-libusb1?expand=0&rev=13
2025-01-22 13:01:50 +00:00
5f804b14b4 Accepting request 1227781 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1227781
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-libusb1?expand=0&rev=6
2024-12-02 18:10:18 +00:00
1ebe4d70fd Accepting request 1227762 from home:mcalabkova:branches:devel:languages:python
- Add upstream py313.patch to fix build with new python

OBS-URL: https://build.opensuse.org/request/show/1227762
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-libusb1?expand=0&rev=11
2024-12-02 14:03:04 +00:00
4 changed files with 49 additions and 10 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4ee9b0a55f8bd0b3ea7017ae919a6c1f439af742c4a4b04543c5fd7af89b828c
size 83013

3
libusb1-3.3.1.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3951d360f2daf0e0eacf839e15d2d1d2f4f5e7830231eb3188eeffef2dd17bad
size 107600

View File

@@ -1,3 +1,37 @@
-------------------------------------------------------------------
Mon Jun 30 12:04:24 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Switch build system from setuptools to pyproject.toml
* Add python-pip and python-wheel to BuildRequires
* Replace %python_build with %pyproject_wheel
* Replace %python_install with %pyproject_install
- Use Python 3.11 on SLE-15 by default
-------------------------------------------------------------------
Fri Apr 11 12:45:26 UTC 2025 - Dirk Müller <dmueller@suse.com>
- update to 3.3.1:
* Fix incorrect getFinalizer() reference in
setPollFDNotifiers()
- update to 3.3.0:
* Fix finalizer registration errors on pypi by using a thread-
safe sequential number generator instead of relying on object
id unicity and timely finalizer triggering.
-------------------------------------------------------------------
Wed Jan 22 12:50:43 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 3.2.0
* Add example for scanning the complete device tree
* Fix CRLF problem
* testUSB1: Fix python 3.13 support
- Drop py313.patch, merged upstream
-------------------------------------------------------------------
Mon Dec 2 12:43:40 UTC 2024 - Markéta Machová <mmachova@suse.com>
- Add upstream py313.patch to fix build with new python
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Dec 8 08:19:05 UTC 2023 - Dirk Müller <dmueller@suse.com> Fri Dec 8 08:19:05 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-libusb1 # spec file for package python-libusb1
# #
# Copyright (c) 2023 SUSE LLC # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -16,9 +16,9 @@
# #
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?sle15_python_module_pythons}
Name: python-libusb1 Name: python-libusb1
Version: 3.1.0 Version: 3.3.1
Release: 0 Release: 0
Summary: Python wrapper for libusb-1.0 Summary: Python wrapper for libusb-1.0
# Relicensed from GPL to LGPLv2.1+ in May 2015 # Relicensed from GPL to LGPLv2.1+ in May 2015
@@ -26,7 +26,9 @@ Summary: Python wrapper for libusb-1.0
License: LGPL-2.1-or-later License: LGPL-2.1-or-later
URL: https://github.com/vpelletier/%{name} URL: https://github.com/vpelletier/%{name}
Source: https://files.pythonhosted.org/packages/source/l/libusb1/libusb1-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/l/libusb1/libusb1-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: libusb-1_0-0 >= 1.0.21 BuildRequires: libusb-1_0-0 >= 1.0.21
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
@@ -38,17 +40,17 @@ BuildArch: noarch
This is a pure python wrapper for libusb-1.0. This is a pure python wrapper for libusb-1.0.
%prep %prep
%setup -q -n libusb1-%{version} %autosetup -p1 -n libusb1-%{version}
sed -i '/wheel/d' setup.py sed -i '/wheel/d' setup.py
sed -i '1{/^#!/d}' examples/*.py sed -i '1{/^#!/d}' examples/*.py
chmod a-x examples/*.py chmod a-x examples/*.py
%build %build
%python_build %pyproject_wheel
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
@@ -57,6 +59,9 @@ chmod a-x examples/*.py
%files %{python_files} %files %{python_files}
%doc README.rst examples/ %doc README.rst examples/
%license COPYING.LESSER %license COPYING.LESSER
%{python_sitelib}/* %{python_sitelib}/libusb1.py
%{python_sitelib}/usb1
%pycache_only %{python_sitelib}/__pycache__/libusb1*
%{python_sitelib}/libusb1-%{version}*info
%changelog %changelog