libusb 1.0.26b5__zip → 1.0.26rc2__zip
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {libusb-1.0.26b5 → libusb-1.0.26rc2}/.readthedocs.yml +1 -1
- {libusb-1.0.26b5 → libusb-1.0.26rc2}/CHANGES.rst +12 -0
- {libusb-1.0.26b5 → libusb-1.0.26rc2}/LICENSE +1 -1
- {libusb-1.0.26b5 → libusb-1.0.26rc2}/MANIFEST.in +1 -1
- {libusb-1.0.26b5 → libusb-1.0.26rc2}/PKG-INFO +35 -11
- {libusb-1.0.26b5 → libusb-1.0.26rc2}/README.rst +5 -5
- {libusb-1.0.26b5 → libusb-1.0.26rc2}/docs/conf.py +1 -0
- {libusb-1.0.26b5 → libusb-1.0.26rc2}/examples/dpfp.py +2 -2
- {libusb-1.0.26b5 → libusb-1.0.26rc2}/examples/dpfp_threaded.py +1 -1
- {libusb-1.0.26b5 → libusb-1.0.26rc2}/examples/ezusb.py +1 -1
- {libusb-1.0.26b5 → libusb-1.0.26rc2}/examples/fxload.py +1 -1
- {libusb-1.0.26b5 → libusb-1.0.26rc2}/examples/hotplugtest.py +1 -1
- {libusb-1.0.26b5 → libusb-1.0.26rc2}/examples/listdevs.py +1 -1
- {libusb-1.0.26b5 → libusb-1.0.26rc2}/examples/testlibusb.py +2 -2
- {libusb-1.0.26b5 → libusb-1.0.26rc2}/examples/win32.py +1 -1
- {libusb-1.0.26b5 → libusb-1.0.26rc2}/examples/xusb.py +1 -1
- {libusb-1.0.26b5 → libusb-1.0.26rc2}/pyproject.toml +64 -59
- libusb-1.0.26rc2/setup.cfg +4 -0
- {libusb-1.0.26b5 → libusb-1.0.26rc2}/src/libusb/__about__.py +2 -2
- {libusb-1.0.26b5 → libusb-1.0.26rc2}/src/libusb/__init__.py +2 -2
- {libusb-1.0.26b5 → libusb-1.0.26rc2}/src/libusb/_config.py +1 -1
- {libusb-1.0.26b5 → libusb-1.0.26rc2}/src/libusb/_dll.py +1 -1
- {libusb-1.0.26b5 → libusb-1.0.26rc2}/src/libusb/_libusb.py +1 -1
- {libusb-1.0.26b5 → libusb-1.0.26rc2}/src/libusb/_platform/__init__.py +1 -1
- {libusb-1.0.26b5 → libusb-1.0.26rc2}/src/libusb/_platform/_linux/__init__.py +4 -2
- libusb-1.0.26rc2/src/libusb/_platform/_linux/aarch64/libusb-1.0.so +0 -0
- {libusb-1.0.26b5 → libusb-1.0.26rc2}/src/libusb/_platform/_macos/__init__.py +1 -1
- {libusb-1.0.26b5 → libusb-1.0.26rc2}/src/libusb/_platform/_windows/__init__.py +1 -1
- {libusb-1.0.26b5 → libusb-1.0.26rc2}/src/libusb.egg-info/PKG-INFO +35 -11
- {libusb-1.0.26b5 → libusb-1.0.26rc2}/src/libusb.egg-info/SOURCES.txt +2 -2
- libusb-1.0.26rc2/src/libusb.egg-info/requires.txt +17 -0
- {libusb-1.0.26b5 → libusb-1.0.26rc2}/tests/__init__.py +1 -1
- {libusb-1.0.26b5 → libusb-1.0.26rc2}/tests/__main__.py +1 -1
- {libusb-1.0.26b5 → libusb-1.0.26rc2}/tests/test_main.py +1 -1
- {libusb-1.0.26b5 → libusb-1.0.26rc2}/tests/testlib.py +1 -1
- libusb-1.0.26b5/tests/stress.py → libusb-1.0.26rc2/tests/tman_stress.py +1 -1
- libusb-1.0.26b5/setup.cfg +0 -11
- libusb-1.0.26b5/src/libusb.egg-info/requires.txt +0 -14
- {libusb-1.0.26b5 → libusb-1.0.26rc2}/docs/CHANGES.rst +0 -0
- {libusb-1.0.26b5 → libusb-1.0.26rc2}/docs/README.rst +0 -0
- {libusb-1.0.26b5 → libusb-1.0.26rc2}/docs/_static/libusb.png +0 -0
- {libusb-1.0.26b5 → libusb-1.0.26rc2}/docs/_templates/.keep +0 -0
- {libusb-1.0.26b5 → libusb-1.0.26rc2}/docs/index.rst +0 -0
- {libusb-1.0.26b5 → libusb-1.0.26rc2}/examples/sam3u_benchmark.py +0 -0
- {libusb-1.0.26b5 → libusb-1.0.26rc2}/src/libusb/__config__.py +0 -0
- {libusb-1.0.26b5 → libusb-1.0.26rc2}/src/libusb/_platform/_linux/x64/libusb-1.0.so +0 -0
- {libusb-1.0.26b5 → libusb-1.0.26rc2}/src/libusb/_platform/_linux/x86/libusb-1.0.so +0 -0
- {libusb-1.0.26b5 → libusb-1.0.26rc2}/src/libusb/_platform/_macos/x64/10.7/libusb-1.0.0.dylib +0 -0
- {libusb-1.0.26b5 → libusb-1.0.26rc2}/src/libusb/_platform/_macos/x64/11.6/libusb-1.0.0.dylib +0 -0
- {libusb-1.0.26b5 → libusb-1.0.26rc2}/src/libusb/_platform/_macos/x86/.keep +0 -0
- {libusb-1.0.26b5 → libusb-1.0.26rc2}/src/libusb/_platform/_windows/x64/libusb-1.0.dll +0 -0
- {libusb-1.0.26b5 → libusb-1.0.26rc2}/src/libusb/_platform/_windows/x86/libusb-1.0.dll +0 -0
- {libusb-1.0.26b5 → libusb-1.0.26rc2}/src/libusb/libusb.cfg +0 -0
- {libusb-1.0.26b5 → libusb-1.0.26rc2}/src/libusb.egg-info/dependency_links.txt +0 -0
- {libusb-1.0.26b5 → libusb-1.0.26rc2}/src/libusb.egg-info/not-zip-safe +0 -0
- {libusb-1.0.26b5 → libusb-1.0.26rc2}/src/libusb.egg-info/top_level.txt +0 -0
- {libusb-1.0.26b5 → libusb-1.0.26rc2}/tests/data/.keep +0 -0
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
Changelog
|
|
2
2
|
=========
|
|
3
3
|
|
|
4
|
+
1.0.26rc2 (2023-12-20)
|
|
5
|
+
----------------------
|
|
6
|
+
- Add linux aarch64 support.
|
|
7
|
+
|
|
8
|
+
1.0.26rc1 (2023-12-15)
|
|
9
|
+
----------------------
|
|
10
|
+
- Add support for Python 3.12
|
|
11
|
+
- Drop support for Python 3.7
|
|
12
|
+
- Add support for PyPy 3.10
|
|
13
|
+
- Drop support for PyPy 3.7 and 3.8
|
|
14
|
+
- Copyright year update.
|
|
15
|
+
|
|
4
16
|
1.0.26b5 (2022-09-10)
|
|
5
17
|
---------------------
|
|
6
18
|
- Tox configuration has been moved to pyproject.toml
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: libusb
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.26rc2
|
|
4
4
|
Summary: Python binding for the libusb C library.
|
|
5
5
|
Author: Adam Karpierz
|
|
6
6
|
Author-email: adam@karpierz.net
|
|
@@ -14,28 +14,40 @@ Project-URL: Source, https://github.com/karpierz/libusb
|
|
|
14
14
|
Project-URL: Issues, https://github.com/karpierz/libusb/issues
|
|
15
15
|
Keywords: usb,libusb
|
|
16
16
|
Platform: any
|
|
17
|
-
Classifier: Development Status ::
|
|
17
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
18
18
|
Classifier: Intended Audience :: Developers
|
|
19
19
|
Classifier: License :: OSI Approved :: zlib/libpng License
|
|
20
20
|
Classifier: Operating System :: OS Independent
|
|
21
21
|
Classifier: Natural Language :: Polish
|
|
22
22
|
Classifier: Programming Language :: Python
|
|
23
23
|
Classifier: Programming Language :: Python :: 3
|
|
24
|
-
Classifier: Programming Language :: Python :: 3.7
|
|
25
24
|
Classifier: Programming Language :: Python :: 3.8
|
|
26
25
|
Classifier: Programming Language :: Python :: 3.9
|
|
27
26
|
Classifier: Programming Language :: Python :: 3.10
|
|
28
27
|
Classifier: Programming Language :: Python :: 3.11
|
|
28
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
29
29
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
30
30
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
31
31
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
32
|
-
Classifier: Programming Language :: Python :: Implementation :: Stackless
|
|
33
32
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
34
|
-
Requires-Python: <4.0.0,>=3.
|
|
33
|
+
Requires-Python: <4.0.0,>=3.8.1
|
|
35
34
|
Description-Content-Type: text/x-rst; charset=UTF-8
|
|
35
|
+
License-File: LICENSE
|
|
36
|
+
Requires-Dist: setuptools>=68.2.2
|
|
37
|
+
Requires-Dist: pkg_about>=1.1.0
|
|
36
38
|
Provides-Extra: doc
|
|
39
|
+
Requires-Dist: docutils<0.20,>=0.18.1; extra == "doc"
|
|
40
|
+
Requires-Dist: Sphinx>=7.1.2; extra == "doc"
|
|
41
|
+
Requires-Dist: sphinx-toolbox>=3.5.0; extra == "doc"
|
|
42
|
+
Requires-Dist: sphinx-tabs>=3.4.1; extra == "doc"
|
|
43
|
+
Requires-Dist: sphinx-copybutton>=0.5.1; extra == "doc"
|
|
44
|
+
Requires-Dist: sphinxcontrib-spelling>=7.7.0; extra == "doc"
|
|
45
|
+
Requires-Dist: sphinx-lint>=0.6.7; extra == "doc"
|
|
46
|
+
Requires-Dist: restructuredtext-lint>=1.4.0; extra == "doc"
|
|
47
|
+
Requires-Dist: nbsphinx>=0.8.10; extra == "doc"
|
|
37
48
|
Provides-Extra: test
|
|
38
|
-
|
|
49
|
+
Requires-Dist: deepdiff>=6.7.1; extra == "test"
|
|
50
|
+
Requires-Dist: rich>=13.7.0; extra == "test"
|
|
39
51
|
|
|
40
52
|
libusb
|
|
41
53
|
======
|
|
@@ -114,10 +126,10 @@ Installation
|
|
|
114
126
|
|
|
115
127
|
Prerequisites:
|
|
116
128
|
|
|
117
|
-
+ Python 3.
|
|
129
|
+
+ Python 3.8 or higher
|
|
118
130
|
|
|
119
131
|
* https://www.python.org/
|
|
120
|
-
*
|
|
132
|
+
* with C libusb 1.0.26 is a primary test environment.
|
|
121
133
|
|
|
122
134
|
+ pip and setuptools
|
|
123
135
|
|
|
@@ -139,7 +151,7 @@ Prerequisites:
|
|
|
139
151
|
|
|
140
152
|
python -m pip install --upgrade tox
|
|
141
153
|
|
|
142
|
-
Visit `
|
|
154
|
+
Visit `Development page`_.
|
|
143
155
|
|
|
144
156
|
Installation from sources:
|
|
145
157
|
|
|
@@ -164,7 +176,7 @@ or on development mode:
|
|
|
164
176
|
License
|
|
165
177
|
=======
|
|
166
178
|
|
|
167
|
-
| Copyright (c) 2016-
|
|
179
|
+
| Copyright (c) 2016-2024 Adam Karpierz
|
|
168
180
|
| Licensed under the zlib/libpng License
|
|
169
181
|
| https://opensource.org/licenses/Zlib
|
|
170
182
|
| Please refer to the accompanying LICENSE file.
|
|
@@ -177,13 +189,25 @@ Authors
|
|
|
177
189
|
.. |package| replace:: libusb
|
|
178
190
|
.. |package_bold| replace:: **libusb**
|
|
179
191
|
.. |respository| replace:: https://github.com/karpierz/libusb.git
|
|
180
|
-
..
|
|
192
|
+
.. _Development page: https://github.com/karpierz/libusb
|
|
181
193
|
.. _PyPI record: https://pypi.org/project/libusb/
|
|
182
194
|
.. _Documentation: https://libusb.readthedocs.io/
|
|
183
195
|
|
|
184
196
|
Changelog
|
|
185
197
|
=========
|
|
186
198
|
|
|
199
|
+
1.0.26rc2 (2023-12-20)
|
|
200
|
+
----------------------
|
|
201
|
+
- Add linux aarch64 support.
|
|
202
|
+
|
|
203
|
+
1.0.26rc1 (2023-12-15)
|
|
204
|
+
----------------------
|
|
205
|
+
- Add support for Python 3.12
|
|
206
|
+
- Drop support for Python 3.7
|
|
207
|
+
- Add support for PyPy 3.10
|
|
208
|
+
- Drop support for PyPy 3.7 and 3.8
|
|
209
|
+
- Copyright year update.
|
|
210
|
+
|
|
187
211
|
1.0.26b5 (2022-09-10)
|
|
188
212
|
---------------------
|
|
189
213
|
- Tox configuration has been moved to pyproject.toml
|
|
@@ -75,10 +75,10 @@ Installation
|
|
|
75
75
|
|
|
76
76
|
Prerequisites:
|
|
77
77
|
|
|
78
|
-
+ Python 3.
|
|
78
|
+
+ Python 3.8 or higher
|
|
79
79
|
|
|
80
80
|
* https://www.python.org/
|
|
81
|
-
*
|
|
81
|
+
* with C libusb 1.0.26 is a primary test environment.
|
|
82
82
|
|
|
83
83
|
+ pip and setuptools
|
|
84
84
|
|
|
@@ -100,7 +100,7 @@ Prerequisites:
|
|
|
100
100
|
|
|
101
101
|
python -m pip install --upgrade tox
|
|
102
102
|
|
|
103
|
-
Visit `
|
|
103
|
+
Visit `Development page`_.
|
|
104
104
|
|
|
105
105
|
Installation from sources:
|
|
106
106
|
|
|
@@ -125,7 +125,7 @@ or on development mode:
|
|
|
125
125
|
License
|
|
126
126
|
=======
|
|
127
127
|
|
|
128
|
-
| Copyright (c) 2016-
|
|
128
|
+
| Copyright (c) 2016-2024 Adam Karpierz
|
|
129
129
|
| Licensed under the zlib/libpng License
|
|
130
130
|
| https://opensource.org/licenses/Zlib
|
|
131
131
|
| Please refer to the accompanying LICENSE file.
|
|
@@ -138,6 +138,6 @@ Authors
|
|
|
138
138
|
.. |package| replace:: libusb
|
|
139
139
|
.. |package_bold| replace:: **libusb**
|
|
140
140
|
.. |respository| replace:: https://github.com/karpierz/libusb.git
|
|
141
|
-
..
|
|
141
|
+
.. _Development page: https://github.com/karpierz/libusb
|
|
142
142
|
.. _PyPI record: https://pypi.org/project/libusb/
|
|
143
143
|
.. _Documentation: https://libusb.readthedocs.io/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2016-
|
|
1
|
+
# Copyright (c) 2016-2024 Adam Karpierz
|
|
2
2
|
# Licensed under the zlib/libpng License
|
|
3
3
|
# https://opensource.org/licenses/Zlib
|
|
4
4
|
|
|
@@ -45,7 +45,7 @@ if defined("DPFP_THREADED"):
|
|
|
45
45
|
|
|
46
46
|
def semaphore_create() -> semaphore_t:
|
|
47
47
|
name = "/org.libusb.example.dpfp_threaded:%d" % int(getpid())
|
|
48
|
-
semaphore: semaphore_t = sem_open(name, O_CREAT | O_EXCL, 0, 0)
|
|
48
|
+
semaphore: semaphore_t = sem_open(name, O_CREAT | O_EXCL, 0, 0)
|
|
49
49
|
if semaphore == SEM_FAILED:
|
|
50
50
|
return NULL;
|
|
51
51
|
# Remove semaphore so that it does not persist after process exits
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2016-
|
|
1
|
+
# Copyright (c) 2016-2024 Adam Karpierz
|
|
2
2
|
# Licensed under the zlib/libpng License
|
|
3
3
|
# https://opensource.org/licenses/Zlib
|
|
4
4
|
|
|
@@ -229,7 +229,7 @@ def test_wrapped_device(device_name: str) -> int:
|
|
|
229
229
|
print("Testing wrapped devices is not supported on your platform")
|
|
230
230
|
return 1
|
|
231
231
|
|
|
232
|
-
|
|
232
|
+
|
|
233
233
|
def main(argv=sys.argv[1:]):
|
|
234
234
|
|
|
235
235
|
global verbose
|
|
@@ -1,15 +1,20 @@
|
|
|
1
|
-
# Copyright (c) 2016-
|
|
1
|
+
# Copyright (c) 2016-2024 Adam Karpierz
|
|
2
2
|
# Licensed under the zlib/libpng License
|
|
3
3
|
# https://opensource.org/licenses/Zlib
|
|
4
4
|
|
|
5
5
|
[build-system]
|
|
6
6
|
build-backend = 'setuptools.build_meta'
|
|
7
|
-
requires = ['setuptools>=
|
|
7
|
+
requires = ['setuptools>=68.2.2', 'wheel>=0.41.3', 'packaging>=23.2.0', 'tox>=3.28.0,<4']
|
|
8
8
|
|
|
9
9
|
[project]
|
|
10
10
|
name = 'libusb'
|
|
11
|
-
version = '1.0.
|
|
11
|
+
version = '1.0.26rc2'
|
|
12
12
|
description = 'Python binding for the libusb C library.'
|
|
13
|
+
urls.Homepage = 'https://pypi.org/project/libusb/'
|
|
14
|
+
urls.Documentation = 'https://libusb.readthedocs.io/'
|
|
15
|
+
urls.Download = 'https://pypi.org/project/libusb/'
|
|
16
|
+
urls.Source = 'https://github.com/karpierz/libusb'
|
|
17
|
+
urls.Issues = 'https://github.com/karpierz/libusb/issues'
|
|
13
18
|
license = { text = 'zlib/libpng License ; https://opensource.org/licenses/Zlib' }
|
|
14
19
|
authors = [
|
|
15
20
|
{ name = 'Adam Karpierz' },
|
|
@@ -21,57 +26,53 @@ maintainers = [
|
|
|
21
26
|
]
|
|
22
27
|
keywords = ['usb', 'libusb']
|
|
23
28
|
classifiers = [
|
|
24
|
-
'Development Status ::
|
|
29
|
+
'Development Status :: 5 - Production/Stable',
|
|
25
30
|
'Intended Audience :: Developers',
|
|
26
31
|
'License :: OSI Approved :: zlib/libpng License',
|
|
27
32
|
'Operating System :: OS Independent',
|
|
28
33
|
'Natural Language :: Polish',
|
|
29
34
|
'Programming Language :: Python',
|
|
30
35
|
'Programming Language :: Python :: 3',
|
|
31
|
-
'Programming Language :: Python :: 3.7',
|
|
32
36
|
'Programming Language :: Python :: 3.8',
|
|
33
37
|
'Programming Language :: Python :: 3.9',
|
|
34
38
|
'Programming Language :: Python :: 3.10',
|
|
35
39
|
'Programming Language :: Python :: 3.11',
|
|
40
|
+
'Programming Language :: Python :: 3.12',
|
|
36
41
|
'Programming Language :: Python :: 3 :: Only',
|
|
37
42
|
'Programming Language :: Python :: Implementation :: CPython',
|
|
38
43
|
'Programming Language :: Python :: Implementation :: PyPy',
|
|
39
|
-
'Programming Language :: Python :: Implementation :: Stackless',
|
|
40
44
|
'Topic :: Software Development :: Libraries :: Python Modules',
|
|
41
45
|
]
|
|
42
|
-
requires-python = '>=3.
|
|
46
|
+
requires-python = '>=3.8.1,<4.0.0'
|
|
43
47
|
dependencies = [
|
|
44
48
|
# mandatory
|
|
45
|
-
'setuptools>=
|
|
46
|
-
'pkg_about>=1.0
|
|
49
|
+
'setuptools>=68.2.2',
|
|
50
|
+
'pkg_about>=1.1.0',
|
|
47
51
|
# others
|
|
48
52
|
]
|
|
49
53
|
dynamic = ['readme']
|
|
50
54
|
[project.optional-dependencies]
|
|
51
55
|
doc = [
|
|
52
|
-
'docutils>=0.
|
|
53
|
-
'Sphinx>=
|
|
56
|
+
'docutils>=0.18.1,<0.20',
|
|
57
|
+
'Sphinx>=7.1.2',
|
|
58
|
+
'sphinx-toolbox>=3.5.0',
|
|
54
59
|
'sphinx-tabs>=3.4.1',
|
|
55
|
-
'
|
|
56
|
-
'sphinxcontrib-spelling>=7.
|
|
60
|
+
'sphinx-copybutton>=0.5.1',
|
|
61
|
+
'sphinxcontrib-spelling>=7.7.0',
|
|
62
|
+
'sphinx-lint>=0.6.7',
|
|
57
63
|
'restructuredtext-lint>=1.4.0',
|
|
58
|
-
'nbsphinx>=0.8.
|
|
64
|
+
'nbsphinx>=0.8.10',
|
|
59
65
|
]
|
|
60
66
|
test = [
|
|
61
|
-
'deepdiff>=
|
|
67
|
+
'deepdiff>=6.7.1',
|
|
68
|
+
'rich>=13.7.0',
|
|
62
69
|
]
|
|
63
|
-
[project.urls]
|
|
64
|
-
Homepage = 'https://pypi.org/project/libusb/'
|
|
65
|
-
Documentation = 'https://libusb.readthedocs.io/'
|
|
66
|
-
Download = 'https://pypi.org/project/libusb/'
|
|
67
|
-
Source = 'https://github.com/karpierz/libusb'
|
|
68
|
-
Issues = 'https://github.com/karpierz/libusb/issues'
|
|
69
70
|
|
|
70
71
|
[project.scripts]
|
|
71
|
-
#libusb = 'libusb.__main__:main'
|
|
72
|
+
#'libusb' = 'libusb.__main__:main'
|
|
72
73
|
|
|
73
74
|
[project.gui-scripts]
|
|
74
|
-
#libusb-gui = 'libusb:main_gui'
|
|
75
|
+
#'libusb-gui' = 'libusb:main_gui'
|
|
75
76
|
|
|
76
77
|
#[project.entry-points.'libusb.magical']
|
|
77
78
|
#epoint = 'libusb:main_epoint'
|
|
@@ -119,6 +120,7 @@ exclude_lines = [
|
|
|
119
120
|
# Regexes
|
|
120
121
|
# Have to re-enable the standard pragma
|
|
121
122
|
'pragma: no cover',
|
|
123
|
+
'pragma: nocover',
|
|
122
124
|
'if\s+self\.debug\s+:',
|
|
123
125
|
'if\s+__debug__\s+:',
|
|
124
126
|
'raise (AssertionError|NotImplementedError)',
|
|
@@ -150,11 +152,12 @@ ignore = ['E126','E203','E221','E251','E302','E701','E702','E731',
|
|
|
150
152
|
#select =
|
|
151
153
|
#select = ['E','W','F','N','I']
|
|
152
154
|
per-file-ignores = [
|
|
153
|
-
'
|
|
154
|
-
'
|
|
155
|
-
'
|
|
156
|
-
'
|
|
157
|
-
'
|
|
155
|
+
'_libusb.py: E305',
|
|
156
|
+
'__init__.py: E305',
|
|
157
|
+
#'_platform/__init__.py: E305',
|
|
158
|
+
#'_platform/_windows/__init__.py: E305',
|
|
159
|
+
#'_platform/_macos/__init__.py: E305',
|
|
160
|
+
#'_platform/_linux/__init__.py: E305',
|
|
158
161
|
]
|
|
159
162
|
output-file = '.tox/lint/flake8out.txt'
|
|
160
163
|
count = true
|
|
@@ -170,22 +173,22 @@ count = true
|
|
|
170
173
|
[tool.tox]
|
|
171
174
|
legacy_tox_ini = """
|
|
172
175
|
[tox]
|
|
173
|
-
envlist = py{
|
|
174
|
-
minversion = 3.
|
|
175
|
-
isolated_build =
|
|
176
|
+
envlist = py{38,39,310,311,312}, pypy{39,310}, docs
|
|
177
|
+
minversion = 3.28.0,<4
|
|
178
|
+
isolated_build = true
|
|
176
179
|
skip_missing_interpreters = true
|
|
177
180
|
requires =
|
|
181
|
+
{[base]setup_requires}
|
|
178
182
|
tox-venv>=0.4.0
|
|
179
183
|
tox-backticks>=0.3.0
|
|
180
184
|
tox-tags>=0.2.0
|
|
181
185
|
tox-run-before>=0.1.0
|
|
182
|
-
{[base]setup_requires}
|
|
183
186
|
|
|
184
187
|
[base]
|
|
185
188
|
setup_requires =
|
|
186
|
-
pip>=
|
|
187
|
-
setuptools>=
|
|
188
|
-
wheel>=0.
|
|
189
|
+
pip>=23.3.1
|
|
190
|
+
setuptools>=68.2.2
|
|
191
|
+
wheel>=0.41.3
|
|
189
192
|
packagesubdir = libusb
|
|
190
193
|
|
|
191
194
|
[testenv]
|
|
@@ -198,7 +201,7 @@ deps =
|
|
|
198
201
|
{[base]setup_requires}
|
|
199
202
|
|
|
200
203
|
[testenv:prepare]
|
|
201
|
-
basepython = python3.
|
|
204
|
+
basepython = python3.11
|
|
202
205
|
skip_install = true
|
|
203
206
|
allowlist_externals =
|
|
204
207
|
cmd
|
|
@@ -207,7 +210,7 @@ commands =
|
|
|
207
210
|
cmd /C if exist .build.cmd .build.cmd
|
|
208
211
|
|
|
209
212
|
[testenv:coverage]
|
|
210
|
-
basepython = python3.
|
|
213
|
+
basepython = python3.11
|
|
211
214
|
commands =
|
|
212
215
|
{envpython} -m coverage erase
|
|
213
216
|
-{envpython} -B -m coverage run -m tests {posargs}
|
|
@@ -215,30 +218,31 @@ commands =
|
|
|
215
218
|
{envpython} -m coverage html
|
|
216
219
|
deps =
|
|
217
220
|
{[testenv]deps}
|
|
218
|
-
coverage>=
|
|
219
|
-
diff-cover>=6.
|
|
221
|
+
coverage>=7.3.2
|
|
222
|
+
diff-cover>=7.6.0
|
|
220
223
|
|
|
221
224
|
[testenv:docs]
|
|
222
|
-
basepython = python3.
|
|
225
|
+
basepython = python3.11
|
|
223
226
|
commands =
|
|
227
|
+
{envpython} -m sphinxlint --ignore .tox --ignore build --ignore dist
|
|
224
228
|
#{envpython} -m sphinx.apidoc -f {envsitepackagesdir}/{[base]packagesubdir}
|
|
225
|
-
{envpython} -
|
|
226
|
-
{envpython} -
|
|
227
|
-
{envpython} -
|
|
229
|
+
{envpython} -m sphinx.cmd.build -W -a -b html -E ./docs ./build/docs/html
|
|
230
|
+
{envpython} -m sphinx.cmd.build -W -a -b linkcheck ./docs ./build/docs/html
|
|
231
|
+
{envpython} -m sphinx.cmd.build -W -a -b doctest ./docs ./build/docs/html
|
|
228
232
|
extras = doc
|
|
229
233
|
deps =
|
|
230
234
|
|
|
231
235
|
[testenv:build]
|
|
232
|
-
basepython = python3.
|
|
236
|
+
basepython = python3.11
|
|
233
237
|
setenv =
|
|
234
|
-
PKG_PVER=`{envpython} -c "import platform ; print(''.join(platform.python_version_tuple()[:2]))" 2> nul`
|
|
235
|
-
PKG_NAME=`{envpython} -c "import warnings ; warnings.filterwarnings('ignore') ;import setuptools ; setuptools._distutils.core._setup_stop_after='config' ; print(setuptools.setup().metadata.get_name(), end='')" 2> nul`
|
|
236
|
-
PKG_DIST=`{envpython} -c "import warnings ; warnings.filterwarnings('ignore') ;import setuptools ; setuptools._distutils.core._setup_stop_after='config' ; print(setuptools.setup().metadata.get_fullname(), end='')" 2> nul`
|
|
238
|
+
PKG_PVER=`{envpython} -c "import platform ; print(''.join(platform.python_version_tuple()[:2]), end='')" 2> nul`
|
|
239
|
+
PKG_NAME=`{envpython} -c "import warnings ; warnings.filterwarnings('ignore') ; import setuptools ; setuptools._distutils.core._setup_stop_after='config' ; print(setuptools.setup().metadata.get_name(), end='')" 2> nul`
|
|
240
|
+
PKG_DIST=`{envpython} -c "import warnings ; warnings.filterwarnings('ignore') ; import setuptools ; setuptools._distutils.core._setup_stop_after='config' ; print(setuptools.setup().metadata.get_fullname(), end='')" 2> nul`
|
|
237
241
|
commands =
|
|
238
242
|
{[testenv]commands}
|
|
239
243
|
{[testenv:docs]commands}
|
|
240
|
-
{envpython} -c "from setuptools import setup ; setup()" --quiet sdist --formats=zip
|
|
241
|
-
{envpython} -c "from setuptools import setup ; setup()" --quiet bdist_wheel
|
|
244
|
+
{envpython} -c "import warnings ; warnings.filterwarnings('ignore') ; from setuptools import setup ; setup()" --quiet sdist --formats=zip
|
|
245
|
+
{envpython} -c "import warnings ; warnings.filterwarnings('ignore') ; from setuptools import setup ; setup()" --quiet bdist_wheel
|
|
242
246
|
# check out for PyPi
|
|
243
247
|
{envpython} -m twine check dist/*
|
|
244
248
|
extras =
|
|
@@ -247,10 +251,10 @@ extras =
|
|
|
247
251
|
deps =
|
|
248
252
|
{[testenv]deps}
|
|
249
253
|
{[testenv:docs]deps}
|
|
250
|
-
twine>=4.0.
|
|
254
|
+
twine>=4.0.2
|
|
251
255
|
|
|
252
256
|
[testenv:publish]
|
|
253
|
-
basepython = python3.
|
|
257
|
+
basepython = python3.11
|
|
254
258
|
setenv =
|
|
255
259
|
{[testenv:build]setenv}
|
|
256
260
|
commands =
|
|
@@ -261,18 +265,19 @@ extras =
|
|
|
261
265
|
{[testenv:build]extras}
|
|
262
266
|
deps =
|
|
263
267
|
{[testenv:build]deps}
|
|
264
|
-
twine>=4.0.
|
|
268
|
+
twine>=4.0.2
|
|
265
269
|
|
|
266
270
|
[testenv:lint]
|
|
267
|
-
basepython = python3.
|
|
271
|
+
basepython = python3.11
|
|
268
272
|
commands =
|
|
269
|
-
{envpython} -m
|
|
273
|
+
{envpython} -m flake8 {envsitepackagesdir}/{[base]packagesubdir}/
|
|
270
274
|
extras =
|
|
271
275
|
deps =
|
|
272
276
|
{[testenv]deps}
|
|
273
|
-
flake8>=
|
|
274
|
-
flake8-pyproject>=1.
|
|
275
|
-
flake8-docstrings>=1.
|
|
276
|
-
pep8-naming>=0.13.
|
|
277
|
-
flake8-builtins>=
|
|
277
|
+
flake8>=6.1.0
|
|
278
|
+
flake8-pyproject>=1.2.3
|
|
279
|
+
flake8-docstrings>=1.7.0
|
|
280
|
+
pep8-naming>=0.13.3
|
|
281
|
+
flake8-builtins>=2.2.0
|
|
282
|
+
flake8-deprecated>=2.2.1
|
|
278
283
|
"""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# Copyright (c) 2016-
|
|
1
|
+
# Copyright (c) 2016-2024 Adam Karpierz
|
|
2
2
|
# Licensed under the zlib/libpng License
|
|
3
3
|
# https://opensource.org/licenses/Zlib
|
|
4
4
|
|
|
5
5
|
__import__("pkg_about").about()
|
|
6
|
-
__copyright__ = f"Copyright (c) 2016-
|
|
6
|
+
__copyright__ = f"Copyright (c) 2016-2024 {__author__}" # noqa
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright (c) 2016-
|
|
1
|
+
# Copyright (c) 2016-2024 Adam Karpierz
|
|
2
2
|
# Licensed under the zlib/libpng License
|
|
3
3
|
# https://opensource.org/licenses/Zlib
|
|
4
4
|
|
|
@@ -6,4 +6,4 @@ from .__about__ import * ; del __about__ # noqa
|
|
|
6
6
|
from . import __config__ ; del __config__
|
|
7
7
|
from .__config__ import set_config as config
|
|
8
8
|
|
|
9
|
-
from ._libusb import * # noqa
|
|
9
|
+
from ._libusb import * ; del _libusb # noqa
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
# Copyright (c) 2016-
|
|
1
|
+
# Copyright (c) 2016-2024 Adam Karpierz
|
|
2
2
|
# Licensed under the zlib/libpng License
|
|
3
3
|
# https://opensource.org/licenses/Zlib
|
|
4
4
|
|
|
5
5
|
import sys
|
|
6
6
|
import os
|
|
7
|
+
import platform
|
|
7
8
|
import ctypes as ct
|
|
8
9
|
|
|
9
10
|
this_dir = os.path.dirname(os.path.abspath(__file__))
|
|
10
11
|
is_32bit = (sys.maxsize <= 2**32)
|
|
11
|
-
arch = "
|
|
12
|
+
arch = ("aarch64" if platform.machine() == "aarch64"
|
|
13
|
+
else "x86" if is_32bit else "x64")
|
|
12
14
|
arch_dir = os.path.join(this_dir, arch)
|
|
13
15
|
|
|
14
16
|
try:
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: libusb
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.26rc2
|
|
4
4
|
Summary: Python binding for the libusb C library.
|
|
5
5
|
Author: Adam Karpierz
|
|
6
6
|
Author-email: adam@karpierz.net
|
|
@@ -14,28 +14,40 @@ Project-URL: Source, https://github.com/karpierz/libusb
|
|
|
14
14
|
Project-URL: Issues, https://github.com/karpierz/libusb/issues
|
|
15
15
|
Keywords: usb,libusb
|
|
16
16
|
Platform: any
|
|
17
|
-
Classifier: Development Status ::
|
|
17
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
18
18
|
Classifier: Intended Audience :: Developers
|
|
19
19
|
Classifier: License :: OSI Approved :: zlib/libpng License
|
|
20
20
|
Classifier: Operating System :: OS Independent
|
|
21
21
|
Classifier: Natural Language :: Polish
|
|
22
22
|
Classifier: Programming Language :: Python
|
|
23
23
|
Classifier: Programming Language :: Python :: 3
|
|
24
|
-
Classifier: Programming Language :: Python :: 3.7
|
|
25
24
|
Classifier: Programming Language :: Python :: 3.8
|
|
26
25
|
Classifier: Programming Language :: Python :: 3.9
|
|
27
26
|
Classifier: Programming Language :: Python :: 3.10
|
|
28
27
|
Classifier: Programming Language :: Python :: 3.11
|
|
28
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
29
29
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
30
30
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
31
31
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
32
|
-
Classifier: Programming Language :: Python :: Implementation :: Stackless
|
|
33
32
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
34
|
-
Requires-Python: <4.0.0,>=3.
|
|
33
|
+
Requires-Python: <4.0.0,>=3.8.1
|
|
35
34
|
Description-Content-Type: text/x-rst; charset=UTF-8
|
|
35
|
+
License-File: LICENSE
|
|
36
|
+
Requires-Dist: setuptools>=68.2.2
|
|
37
|
+
Requires-Dist: pkg_about>=1.1.0
|
|
36
38
|
Provides-Extra: doc
|
|
39
|
+
Requires-Dist: docutils<0.20,>=0.18.1; extra == "doc"
|
|
40
|
+
Requires-Dist: Sphinx>=7.1.2; extra == "doc"
|
|
41
|
+
Requires-Dist: sphinx-toolbox>=3.5.0; extra == "doc"
|
|
42
|
+
Requires-Dist: sphinx-tabs>=3.4.1; extra == "doc"
|
|
43
|
+
Requires-Dist: sphinx-copybutton>=0.5.1; extra == "doc"
|
|
44
|
+
Requires-Dist: sphinxcontrib-spelling>=7.7.0; extra == "doc"
|
|
45
|
+
Requires-Dist: sphinx-lint>=0.6.7; extra == "doc"
|
|
46
|
+
Requires-Dist: restructuredtext-lint>=1.4.0; extra == "doc"
|
|
47
|
+
Requires-Dist: nbsphinx>=0.8.10; extra == "doc"
|
|
37
48
|
Provides-Extra: test
|
|
38
|
-
|
|
49
|
+
Requires-Dist: deepdiff>=6.7.1; extra == "test"
|
|
50
|
+
Requires-Dist: rich>=13.7.0; extra == "test"
|
|
39
51
|
|
|
40
52
|
libusb
|
|
41
53
|
======
|
|
@@ -114,10 +126,10 @@ Installation
|
|
|
114
126
|
|
|
115
127
|
Prerequisites:
|
|
116
128
|
|
|
117
|
-
+ Python 3.
|
|
129
|
+
+ Python 3.8 or higher
|
|
118
130
|
|
|
119
131
|
* https://www.python.org/
|
|
120
|
-
*
|
|
132
|
+
* with C libusb 1.0.26 is a primary test environment.
|
|
121
133
|
|
|
122
134
|
+ pip and setuptools
|
|
123
135
|
|
|
@@ -139,7 +151,7 @@ Prerequisites:
|
|
|
139
151
|
|
|
140
152
|
python -m pip install --upgrade tox
|
|
141
153
|
|
|
142
|
-
Visit `
|
|
154
|
+
Visit `Development page`_.
|
|
143
155
|
|
|
144
156
|
Installation from sources:
|
|
145
157
|
|
|
@@ -164,7 +176,7 @@ or on development mode:
|
|
|
164
176
|
License
|
|
165
177
|
=======
|
|
166
178
|
|
|
167
|
-
| Copyright (c) 2016-
|
|
179
|
+
| Copyright (c) 2016-2024 Adam Karpierz
|
|
168
180
|
| Licensed under the zlib/libpng License
|
|
169
181
|
| https://opensource.org/licenses/Zlib
|
|
170
182
|
| Please refer to the accompanying LICENSE file.
|
|
@@ -177,13 +189,25 @@ Authors
|
|
|
177
189
|
.. |package| replace:: libusb
|
|
178
190
|
.. |package_bold| replace:: **libusb**
|
|
179
191
|
.. |respository| replace:: https://github.com/karpierz/libusb.git
|
|
180
|
-
..
|
|
192
|
+
.. _Development page: https://github.com/karpierz/libusb
|
|
181
193
|
.. _PyPI record: https://pypi.org/project/libusb/
|
|
182
194
|
.. _Documentation: https://libusb.readthedocs.io/
|
|
183
195
|
|
|
184
196
|
Changelog
|
|
185
197
|
=========
|
|
186
198
|
|
|
199
|
+
1.0.26rc2 (2023-12-20)
|
|
200
|
+
----------------------
|
|
201
|
+
- Add linux aarch64 support.
|
|
202
|
+
|
|
203
|
+
1.0.26rc1 (2023-12-15)
|
|
204
|
+
----------------------
|
|
205
|
+
- Add support for Python 3.12
|
|
206
|
+
- Drop support for Python 3.7
|
|
207
|
+
- Add support for PyPy 3.10
|
|
208
|
+
- Drop support for PyPy 3.7 and 3.8
|
|
209
|
+
- Copyright year update.
|
|
210
|
+
|
|
187
211
|
1.0.26b5 (2022-09-10)
|
|
188
212
|
---------------------
|
|
189
213
|
- Tox configuration has been moved to pyproject.toml
|
|
@@ -4,7 +4,6 @@ LICENSE
|
|
|
4
4
|
MANIFEST.in
|
|
5
5
|
README.rst
|
|
6
6
|
pyproject.toml
|
|
7
|
-
setup.cfg
|
|
8
7
|
docs/CHANGES.rst
|
|
9
8
|
docs/README.rst
|
|
10
9
|
docs/conf.py
|
|
@@ -36,6 +35,7 @@ src/libusb.egg-info/requires.txt
|
|
|
36
35
|
src/libusb.egg-info/top_level.txt
|
|
37
36
|
src/libusb/_platform/__init__.py
|
|
38
37
|
src/libusb/_platform/_linux/__init__.py
|
|
38
|
+
src/libusb/_platform/_linux/aarch64/libusb-1.0.so
|
|
39
39
|
src/libusb/_platform/_linux/x64/libusb-1.0.so
|
|
40
40
|
src/libusb/_platform/_linux/x86/libusb-1.0.so
|
|
41
41
|
src/libusb/_platform/_macos/__init__.py
|
|
@@ -47,7 +47,7 @@ src/libusb/_platform/_windows/x64/libusb-1.0.dll
|
|
|
47
47
|
src/libusb/_platform/_windows/x86/libusb-1.0.dll
|
|
48
48
|
tests/__init__.py
|
|
49
49
|
tests/__main__.py
|
|
50
|
-
tests/stress.py
|
|
51
50
|
tests/test_main.py
|
|
52
51
|
tests/testlib.py
|
|
52
|
+
tests/tman_stress.py
|
|
53
53
|
tests/data/.keep
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
setuptools>=68.2.2
|
|
2
|
+
pkg_about>=1.1.0
|
|
3
|
+
|
|
4
|
+
[doc]
|
|
5
|
+
docutils<0.20,>=0.18.1
|
|
6
|
+
Sphinx>=7.1.2
|
|
7
|
+
sphinx-toolbox>=3.5.0
|
|
8
|
+
sphinx-tabs>=3.4.1
|
|
9
|
+
sphinx-copybutton>=0.5.1
|
|
10
|
+
sphinxcontrib-spelling>=7.7.0
|
|
11
|
+
sphinx-lint>=0.6.7
|
|
12
|
+
restructuredtext-lint>=1.4.0
|
|
13
|
+
nbsphinx>=0.8.10
|
|
14
|
+
|
|
15
|
+
[test]
|
|
16
|
+
deepdiff>=6.7.1
|
|
17
|
+
rich>=13.7.0
|
libusb-1.0.26b5/setup.cfg
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{libusb-1.0.26b5 → libusb-1.0.26rc2}/src/libusb/_platform/_macos/x64/10.7/libusb-1.0.0.dylib
RENAMED
|
File without changes
|
{libusb-1.0.26b5 → libusb-1.0.26rc2}/src/libusb/_platform/_macos/x64/11.6/libusb-1.0.0.dylib
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|