commit 1335352b8dbceee98ec4be22683eae5b2323a9be5796acc4d331595cfed3ec0e Author: Nico Krapp Date: Tue Aug 12 13:32:45 2025 +0000 I think this fix request 1298997 Source validator failed. Try "osc service runall source_validator" ERROR: '' is not a date (python-pyusb/python-pyusb.changes:209) Please fix with your own tools or try /usr/lib/obs/service/source_validators/helpers/fix_changelog OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyusb?expand=0&rev=11 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-pyusb.changes b/python-pyusb.changes new file mode 100644 index 0000000..fb60628 --- /dev/null +++ b/python-pyusb.changes @@ -0,0 +1,206 @@ +------------------------------------------------------------------- +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 + +- 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 + +------------------------------------------------------------------- +Sun May 9 16:47:59 UTC 2021 - Dirk Müller + +- update to 1.1.1: + * python 3.9 support + * bugfixes + +------------------------------------------------------------------- +Wed Apr 17 01:30:00 UTC 2019 - John Vandenberg + +- Activate tests using GitHub archive +- Add fdupes +- Add Requires libusb-1_0-1 + +------------------------------------------------------------------- +Tue Apr 16 11:33:37 CEST 2019 - Matej Cepl + +- Rename package according to the Python Packaging policy to + python-pyusb (because that's the name of the package on PyPI). +- Clean SPEC file. + +------------------------------------------------------------------- +Tue Dec 4 12:55:43 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + +------------------------------------------------------------------- +Fri Oct 13 15:54:26 UTC 2017 - arun@gmx.de + +- specfile: + * require setuptools + * update tar-ball name (lowercase) + * update url + * added Changelog to %doc + +- update to version 1.0.2: + * Add deploy script for automated deployment. + * Revert "[ADD] pyusb module to satisfy setuptools" + * [ADD] pyusb module to satisfy setuptools + * enable building as a wheel by using setuptools + +- changes from version 1.0.1: + * Update version to 1.0.1. After changes in zc.buildout/setuptools + the tarball name needs to match case sensitive the package name + defined in setup.py + * Add message for new maintainer. + * [docs] Add section in faq for libusb Windows installation. + * [docs] Fix tutorial link in faq. + * .gitignore pyusb.egg-info + * Add topic about configuration selection and handling to FAQ. + * Update libusb website. + * Use python syntax highlighting + * legacy: Fix a few typos in help text + * legacy: set Bus.location and Device.devnum + * usb/libloader.py: load_locate_library parameter documentation + * Remove the quick packaging job, note availability of package in + Debian + * Quick Debian packaging + * Fix setup.py for v1.0.0 + * Typo fix: replace LibaryException with LibraryException. + +------------------------------------------------------------------- +Fri Sep 1 18:10:33 UTC 2017 - jengelh@inai.de + +- Remove future plans/visions from description. + +------------------------------------------------------------------- +Wed Aug 30 23:52:59 UTC 2017 - toddrme2178@gmail.com + +- singlespec auto-conversion +- Use pypi source URL. + +------------------------------------------------------------------- +Wed Sep 28 15:55:34 UTC 2016 - stefan.bruens@rwth-aachen.de + +- update to release version 1.0.0 + +------------------------------------------------------------------- +Fri Jun 6 17:38:18 UTC 2014 - arun@gmx.de + +- update to version 1.0.0b1 + * Isochronous transfer for libusb 1.0 (by David Halter). + * Experimental OpenUSB support. + * Documentation update. + * PYUSB_DEBUG_LEVEL environment variable is now called PYUSB_DEBUG. + * Legacy module nwo groups according to their bus. + * Version information available for apps (by Chris Clark). + * Faster read operation (by themperek). + * Tox support (by ponty). + * Support for port number info (by Stefano Di Martino). + * Several bug fixes (please, check the Changelog file). + +- spec file: removed Changelog from %files section +- spec file: removed --record-rpm=INSTALLED_FILES + +------------------------------------------------------------------- +Tue Jan 22 17:33:43 UTC 2013 - joop.boonen@opensuse.org + +- Build version 1.0.0a3 + + Fixed: find() function returns -1 when not findind a substring. + + PATH_MAX is 1024 for all *BSD machines. + + Fixed type in libusb0 backend. + + Fixed: correct PATH_MAX for Darwin/Mac OSX. + + Fixed: correct value of PATH_MAX for FreeBSD + + Renamed libusb01 backend to libusb0. + + Renamed libusb10 backend to libusb1 + libusb 1.0 and libusbx probably will have backward compatibility across + all 1.x version, so there is no point in calling the backend libusb10, + since it should work with all 1.x series of the library. + + Limit zeroth string descriptor request to 254 bytes + This string descriptor cannot be longer than 255 bytes anyway, since + its length is defined by its first byte. + Also, the libusb code warns "Some devices choke on size > 255". + Since each language code is two byte long, only an even + number of bytes makes sense, so request only 254 bytes. + + Makes legacy byteWrite() and interruptWrite() more compatible with pyusb 0.4.x + PyUSB 0.4 has a very flexible input buffer treatment. This change does + not mimic it for all, but make legacy module more close to it. + + Fix "localtion/location" typo. + + Limit get_string() length to string descriptor length + Use the length as reported by the first byte of the descriptor. + Otherwise (at least for some backend/kernel combinations) the buffer + length provided by the user would be used instead, and NUL characters + would be appended to the returned string. + This also makes the legacy getString() function compatible with + pyusb 0.4. + + Return deviceVersion and usbVersion as strings + PyUSB 0.4 sets deviceVerion and usbVersion attributes as strings. So do + it for the legacy module. + + Fixed syntax errors for Python 2.4 + + Merge pull request #4 from JNRowe/master + Very minor fixes to tutorial + + Use __ suffix for inline links in reST. + Very minor, but stops docutils issuing a unreferenced link warning. + + Fixed alternate_setting in tutorial. + Typo and missing dev parameter. + + patch for data loss + + Fixed configuration indexing in the tutorial + + Updated ACKNOWLEDGEMENTS file. + + Fixed: allow Interface objects as parameters for kernel driver functions + + Fixed: do not used version_info named parameters to preserve backward compatibility + +------------------------------------------------------------------- +Thu Jan 3 18:01:44 UTC 2013 - toddrme2178@gmail.com + +- Fix building on SLES + +------------------------------------------------------------------- +Tue Apr 17 10:38:37 UTC 2012 - joop.boonen@opensuse.org + +- Build version 1.0.0a2 +- Included coded fixes + - MANIFEST.in: Removed old test firmware from manifest file + - usb/backend/libusb10.py, usb/backend/openusb.py: Fixed: use None + when errno value is not available + - tests/utils.py: Fixed Python 3 string test case for ctrl_transfer + In Python 3, string is 4 bytes long, so ctrl_transfer test case was + failing with 'Broken error' message. This was caused because control + buffer in the benchmark firmware can only hold 8 bytes, thus it + could not handle more than a two character length string. + - usb/backend/libusb01.py: Fixed correct device enumeration for + libusb01 backend + +------------------------------------------------------------------- +Thu Mar 31 16:49:15 UTC 2011 - prusnak@opensuse.org + +- remove tests from the tarball + - they are not used during the build and contain firmware files + with unknown licenses + +------------------------------------------------------------------- +Tue Mar 29 13:23:31 UTC 2011 - prusnak@opensuse.org + +- updated to 1.0.0 alpha 1 + - implemented standard control requests + - finish implementation of 0.4 API emulation + - documentation update + - tutorial update + +------------------------------------------------------------------- +Mon Dec 20 20:37:31 UTC 2010 - prusnak@opensuse.org + +- created package (1.0.0 alpha 0) diff --git a/python-pyusb.spec b/python-pyusb.spec new file mode 100644 index 0000000..045137a --- /dev/null +++ b/python-pyusb.spec @@ -0,0 +1,68 @@ +# +# spec file for package python-pyusb +# +# 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 +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: python-pyusb +Version: 1.3.1 +Release: 0 +Summary: USB access on the Python language +# URL is incorrect on PyPI, gh#pyusb/pyusb#211 +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 +Requires: libusb-1_0-0 +BuildArch: noarch +Provides: python-usb = %{version}-%{release} +Obsoletes: python-usb < %{version}-%{release} +%python_subpackages + +%description +Provides USB access to the Python language. + +%prep +%setup -q -n pyusb-%{version} +# Convert dos format files to unix format +find . -name "*.rst" -exec dos2unix {} + + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +# Testing mostly requires a device, which is not mocked or emulated +# See https://github.com/pyusb/pyusb/issues/235 +%pytest tests/test_find.py tests/test_util.py -k 'not FindDescriptorTest' + +%files %{python_files} +%license LICENSE +%doc ACKNOWLEDGEMENTS README.rst docs/* +%{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 new file mode 100644 index 0000000..bc1f494 --- /dev/null +++ b/pyusb-1.2.1.tar.gz @@ -0,0 +1,3 @@ +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