libusb 1.0.27.post1__zip → 1.0.27.post3__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.
Files changed (61) hide show
  1. {libusb-1.0.27.post1 → libusb-1.0.27.post3}/CHANGES.rst +9 -0
  2. {libusb-1.0.27.post1 → libusb-1.0.27.post3}/PKG-INFO +23 -14
  3. {libusb-1.0.27.post1 → libusb-1.0.27.post3}/README.rst +3 -2
  4. {libusb-1.0.27.post1 → libusb-1.0.27.post3}/docs/conf.py +1 -1
  5. {libusb-1.0.27.post1 → libusb-1.0.27.post3}/examples/_win32.py +28 -0
  6. {libusb-1.0.27.post1 → libusb-1.0.27.post3}/pyproject.toml +23 -24
  7. {libusb-1.0.27.post1 → libusb-1.0.27.post3}/src/libusb/__about__.py +0 -1
  8. {libusb-1.0.27.post1 → libusb-1.0.27.post3}/src/libusb/_platform/_linux/__init__.py +1 -1
  9. {libusb-1.0.27.post1 → libusb-1.0.27.post3}/src/libusb.egg-info/PKG-INFO +23 -14
  10. libusb-1.0.27.post3/src/libusb.egg-info/requires.txt +16 -0
  11. {libusb-1.0.27.post1 → libusb-1.0.27.post3}/tests/_win32.py +28 -0
  12. libusb-1.0.27.post1/src/libusb.egg-info/requires.txt +0 -16
  13. {libusb-1.0.27.post1 → libusb-1.0.27.post3}/.readthedocs.yml +0 -0
  14. {libusb-1.0.27.post1 → libusb-1.0.27.post3}/LICENSE +0 -0
  15. {libusb-1.0.27.post1 → libusb-1.0.27.post3}/MANIFEST.in +0 -0
  16. {libusb-1.0.27.post1 → libusb-1.0.27.post3}/docs/CHANGES.rst +0 -0
  17. {libusb-1.0.27.post1 → libusb-1.0.27.post3}/docs/README.rst +0 -0
  18. {libusb-1.0.27.post1 → libusb-1.0.27.post3}/docs/_static/libusb.png +0 -0
  19. {libusb-1.0.27.post1 → libusb-1.0.27.post3}/docs/_templates/.keep +0 -0
  20. {libusb-1.0.27.post1 → libusb-1.0.27.post3}/docs/index.rst +0 -0
  21. {libusb-1.0.27.post1 → libusb-1.0.27.post3}/examples/dpfp.py +0 -0
  22. {libusb-1.0.27.post1 → libusb-1.0.27.post3}/examples/dpfp_threaded.py +0 -0
  23. {libusb-1.0.27.post1 → libusb-1.0.27.post3}/examples/ezusb.py +0 -0
  24. {libusb-1.0.27.post1 → libusb-1.0.27.post3}/examples/fxload.py +0 -0
  25. {libusb-1.0.27.post1 → libusb-1.0.27.post3}/examples/hotplugtest.py +0 -0
  26. {libusb-1.0.27.post1 → libusb-1.0.27.post3}/examples/listdevs.py +0 -0
  27. {libusb-1.0.27.post1 → libusb-1.0.27.post3}/examples/sam3u_benchmark.py +0 -0
  28. {libusb-1.0.27.post1 → libusb-1.0.27.post3}/examples/testlibusb.py +0 -0
  29. {libusb-1.0.27.post1 → libusb-1.0.27.post3}/examples/xusb.py +0 -0
  30. {libusb-1.0.27.post1 → libusb-1.0.27.post3}/setup.cfg +0 -0
  31. {libusb-1.0.27.post1 → libusb-1.0.27.post3}/src/libusb/__config__.py +0 -0
  32. {libusb-1.0.27.post1 → libusb-1.0.27.post3}/src/libusb/__init__.py +0 -0
  33. {libusb-1.0.27.post1 → libusb-1.0.27.post3}/src/libusb/_config.py +0 -0
  34. {libusb-1.0.27.post1 → libusb-1.0.27.post3}/src/libusb/_dll.py +0 -0
  35. {libusb-1.0.27.post1 → libusb-1.0.27.post3}/src/libusb/_libusb.py +0 -0
  36. {libusb-1.0.27.post1 → libusb-1.0.27.post3}/src/libusb/_platform/__init__.py +0 -0
  37. {libusb-1.0.27.post1 → libusb-1.0.27.post3}/src/libusb/_platform/_linux/aarch64/libusb-1.0.so +0 -0
  38. {libusb-1.0.27.post1 → libusb-1.0.27.post3}/src/libusb/_platform/_linux/x64/libusb-1.0.so +0 -0
  39. {libusb-1.0.27.post1 → libusb-1.0.27.post3}/src/libusb/_platform/_linux/x86/libusb-1.0.so +0 -0
  40. {libusb-1.0.27.post1 → libusb-1.0.27.post3}/src/libusb/_platform/_macos/__init__.py +0 -0
  41. {libusb-1.0.27.post1 → libusb-1.0.27.post3}/src/libusb/_platform/_macos/x64/10.7/libusb-1.0.0.dylib +0 -0
  42. {libusb-1.0.27.post1 → libusb-1.0.27.post3}/src/libusb/_platform/_macos/x64/11.6/libusb-1.0.0.dylib +0 -0
  43. {libusb-1.0.27.post1 → libusb-1.0.27.post3}/src/libusb/_platform/_macos/x86/.keep +0 -0
  44. {libusb-1.0.27.post1 → libusb-1.0.27.post3}/src/libusb/_platform/_windows/__init__.py +0 -0
  45. {libusb-1.0.27.post1 → libusb-1.0.27.post3}/src/libusb/_platform/_windows/x64/libusb-1.0.dll +0 -0
  46. {libusb-1.0.27.post1 → libusb-1.0.27.post3}/src/libusb/_platform/_windows/x86/libusb-1.0.dll +0 -0
  47. {libusb-1.0.27.post1 → libusb-1.0.27.post3}/src/libusb/libusb.cfg +0 -0
  48. {libusb-1.0.27.post1 → libusb-1.0.27.post3}/src/libusb.egg-info/SOURCES.txt +0 -0
  49. {libusb-1.0.27.post1 → libusb-1.0.27.post3}/src/libusb.egg-info/dependency_links.txt +0 -0
  50. {libusb-1.0.27.post1 → libusb-1.0.27.post3}/src/libusb.egg-info/not-zip-safe +0 -0
  51. {libusb-1.0.27.post1 → libusb-1.0.27.post3}/src/libusb.egg-info/top_level.txt +0 -0
  52. {libusb-1.0.27.post1 → libusb-1.0.27.post3}/tests/__init__.py +0 -0
  53. {libusb-1.0.27.post1 → libusb-1.0.27.post3}/tests/__main__.py +0 -0
  54. {libusb-1.0.27.post1 → libusb-1.0.27.post3}/tests/data/.keep +0 -0
  55. {libusb-1.0.27.post1 → libusb-1.0.27.post3}/tests/test_main.py +0 -0
  56. {libusb-1.0.27.post1 → libusb-1.0.27.post3}/tests/testlib.py +0 -0
  57. {libusb-1.0.27.post1 → libusb-1.0.27.post3}/tests/tman_init_context.py +0 -0
  58. {libusb-1.0.27.post1 → libusb-1.0.27.post3}/tests/tman_set_option.py +0 -0
  59. {libusb-1.0.27.post1 → libusb-1.0.27.post3}/tests/tman_stress.py +0 -0
  60. {libusb-1.0.27.post1 → libusb-1.0.27.post3}/tests/tman_stress_mt.py +0 -0
  61. {libusb-1.0.27.post1 → libusb-1.0.27.post3}/tests/umockdev.py_ +0 -0
@@ -1,6 +1,15 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ 1.0.27.post3 (2024-10-09)
5
+ -------------------------
6
+ - Setup (dependencies) update.
7
+
8
+ 1.0.27.post2 (2024-09-30)
9
+ -------------------------
10
+ - Drop support for Python 3.8
11
+ - Setup (dependencies) update.
12
+
4
13
  1.0.27.post1 (2024-08-13)
5
14
  -------------------------
6
15
  - Add support for Python 3.13
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: libusb
3
- Version: 1.0.27.post1
3
+ Version: 1.0.27.post3
4
4
  Summary: Python binding for the libusb C library.
5
5
  Author: Adam Karpierz
6
6
  Author-email: adam@karpierz.net
@@ -21,7 +21,6 @@ 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.8
25
24
  Classifier: Programming Language :: Python :: 3.9
26
25
  Classifier: Programming Language :: Python :: 3.10
27
26
  Classifier: Programming Language :: Python :: 3.11
@@ -31,23 +30,23 @@ Classifier: Programming Language :: Python :: 3 :: Only
31
30
  Classifier: Programming Language :: Python :: Implementation :: CPython
32
31
  Classifier: Programming Language :: Python :: Implementation :: PyPy
33
32
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
34
- Requires-Python: <4.0.0,>=3.8.10
33
+ Requires-Python: <4.0.0,>=3.9.0
35
34
  Description-Content-Type: text/x-rst; charset=UTF-8
36
35
  License-File: LICENSE
37
- Requires-Dist: setuptools>=72.2.0
38
- Requires-Dist: pkg-about>=1.1.8
36
+ Requires-Dist: setuptools>=75.1.0
37
+ Requires-Dist: pkg-about>=1.2.1
39
38
  Provides-Extra: doc
40
- Requires-Dist: Sphinx>=7.1.2; extra == "doc"
41
- Requires-Dist: sphinx-toolbox>=3.7.0; extra == "doc"
42
- Requires-Dist: sphinx-tabs>=3.4.5; extra == "doc"
39
+ Requires-Dist: Sphinx>=7.4.7; extra == "doc"
40
+ Requires-Dist: sphinx-toolbox>=3.8.0; extra == "doc"
41
+ Requires-Dist: sphinx-tabs>=3.4.7; extra == "doc"
43
42
  Requires-Dist: sphinx-copybutton>=0.5.2; extra == "doc"
44
43
  Requires-Dist: sphinxcontrib-spelling>=8.0.0; extra == "doc"
45
- Requires-Dist: sphinx-lint>=0.9.1; extra == "doc"
44
+ Requires-Dist: sphinx-lint>=1.0.0; extra == "doc"
46
45
  Requires-Dist: restructuredtext-lint>=1.4.0; extra == "doc"
47
- Requires-Dist: nbsphinx>=0.9.4; extra == "doc"
46
+ Requires-Dist: nbsphinx>=0.9.5; extra == "doc"
48
47
  Provides-Extra: test
49
- Requires-Dist: deepdiff>=7.0.1; extra == "test"
50
- Requires-Dist: rich>=13.7.1; extra == "test"
48
+ Requires-Dist: deepdiff>=8.0.1; extra == "test"
49
+ Requires-Dist: rich>=13.9.2; extra == "test"
51
50
 
52
51
  libusb
53
52
  ======
@@ -126,7 +125,7 @@ Installation
126
125
 
127
126
  Prerequisites:
128
127
 
129
- + Python 3.8 or higher
128
+ + Python 3.9 or higher
130
129
 
131
130
  * https://www.python.org/
132
131
  * with C libusb 1.0.27 is a primary test environment.
@@ -176,7 +175,7 @@ or on development mode:
176
175
  License
177
176
  =======
178
177
 
179
- | Copyright (c) 2016-2024 Adam Karpierz
178
+ | |copyright|
180
179
  | Licensed under the zlib/libpng License
181
180
  | https://opensource.org/license/zlib
182
181
  | Please refer to the accompanying LICENSE file.
@@ -188,6 +187,7 @@ Authors
188
187
 
189
188
  .. |package| replace:: libusb
190
189
  .. |package_bold| replace:: **libusb**
190
+ .. |copyright| replace:: Copyright (c) 2016-2024 Adam Karpierz
191
191
  .. |respository| replace:: https://github.com/karpierz/libusb.git
192
192
  .. _Development page: https://github.com/karpierz/libusb
193
193
  .. _PyPI record: https://pypi.org/project/libusb/
@@ -197,6 +197,15 @@ Authors
197
197
  Changelog
198
198
  =========
199
199
 
200
+ 1.0.27.post3 (2024-10-09)
201
+ -------------------------
202
+ - Setup (dependencies) update.
203
+
204
+ 1.0.27.post2 (2024-09-30)
205
+ -------------------------
206
+ - Drop support for Python 3.8
207
+ - Setup (dependencies) update.
208
+
200
209
  1.0.27.post1 (2024-08-13)
201
210
  -------------------------
202
211
  - Add support for Python 3.13
@@ -75,7 +75,7 @@ Installation
75
75
 
76
76
  Prerequisites:
77
77
 
78
- + Python 3.8 or higher
78
+ + Python 3.9 or higher
79
79
 
80
80
  * https://www.python.org/
81
81
  * with C libusb 1.0.27 is a primary test environment.
@@ -125,7 +125,7 @@ or on development mode:
125
125
  License
126
126
  =======
127
127
 
128
- | Copyright (c) 2016-2024 Adam Karpierz
128
+ | |copyright|
129
129
  | Licensed under the zlib/libpng License
130
130
  | https://opensource.org/license/zlib
131
131
  | Please refer to the accompanying LICENSE file.
@@ -137,6 +137,7 @@ Authors
137
137
 
138
138
  .. |package| replace:: libusb
139
139
  .. |package_bold| replace:: **libusb**
140
+ .. |copyright| replace:: Copyright (c) 2016-2024 Adam Karpierz
140
141
  .. |respository| replace:: https://github.com/karpierz/libusb.git
141
142
  .. _Development page: https://github.com/karpierz/libusb
142
143
  .. _PyPI record: https://pypi.org/project/libusb/
@@ -34,7 +34,7 @@ release = about.__version__
34
34
 
35
35
  # If your documentation needs a minimal Sphinx version, state it here.
36
36
  #
37
- needs_sphinx = '3.4.3'
37
+ needs_sphinx = '7.4.7'
38
38
 
39
39
  # Add any Sphinx extension module names here, as strings. They can be
40
40
  # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
@@ -146,4 +146,32 @@ SetSystemTime = windll.kernel32.SetSystemTime
146
146
  SetSystemTime.restype = BOOL
147
147
  SetSystemTime.argtypes = [LPSYSTEMTIME]
148
148
 
149
+ # http://posted-stuff.blogspot.com/2009/07/iocp-based-sockets-with-ctypes-in_22.html
150
+
151
+ WSADESCRIPTION_LEN = 256
152
+ WSASYS_STATUS_LEN = 128
153
+
154
+ class WSADATA(ctypes.Structure):
155
+ _fields_ = [
156
+ ("wVersion", WORD),
157
+ ("wHighVersion", WORD),
158
+ ("szDescription", ctypes.c_char * (WSADESCRIPTION_LEN + 1)),
159
+ ("szSystemStatus", ctypes.c_char * (WSASYS_STATUS_LEN + 1)),
160
+ ("iMaxSockets", ctypes.c_ushort),
161
+ ("iMaxUdpDg", ctypes.c_ushort),
162
+ ("lpVendorInfo", ctypes.c_char_p),
163
+ ]
164
+
165
+ LPWSADATA = ctypes.POINTER(WSADATA)
166
+
167
+ WSAStartup = windll.Ws2_32.WSAStartup
168
+ WSAStartup.restype = ctypes.c_int
169
+ WSAStartup.argtypes = [WORD, LPWSADATA]
170
+
171
+ WSACleanup = windll.Ws2_32.WSACleanup
172
+ WSACleanup.restype = ctypes.c_int
173
+ WSACleanup.argtypes = []
174
+
175
+ def MAKEWORD(blow, bhigh): return (bhigh << 8) + blow
176
+
149
177
  del ctypes
@@ -3,11 +3,11 @@
3
3
 
4
4
  [build-system]
5
5
  build-backend = 'setuptools.build_meta'
6
- requires = ['setuptools>=72.2.0', 'wheel>=0.44.0', 'packaging>=24.1.0', 'tox>=4.18.0']
6
+ requires = ['setuptools>=75.1.0', 'wheel>=0.44.0', 'packaging>=24.1.0', 'tox>=4.21.2']
7
7
 
8
8
  [project]
9
9
  name = 'libusb'
10
- version = '1.0.27.post1'
10
+ version = '1.0.27.post3'
11
11
  description = 'Python binding for the libusb C library.'
12
12
  urls.Homepage = 'https://pypi.org/project/libusb/'
13
13
  urls.Documentation = 'https://libusb.readthedocs.io/'
@@ -32,7 +32,6 @@ classifiers = [
32
32
  'Natural Language :: Polish',
33
33
  'Programming Language :: Python',
34
34
  'Programming Language :: Python :: 3',
35
- 'Programming Language :: Python :: 3.8',
36
35
  'Programming Language :: Python :: 3.9',
37
36
  'Programming Language :: Python :: 3.10',
38
37
  'Programming Language :: Python :: 3.11',
@@ -43,28 +42,28 @@ classifiers = [
43
42
  'Programming Language :: Python :: Implementation :: PyPy',
44
43
  'Topic :: Software Development :: Libraries :: Python Modules',
45
44
  ]
46
- requires-python = '>=3.8.10,<4.0.0'
45
+ requires-python = '>=3.9.0,<4.0.0'
47
46
  dependencies = [
48
47
  # mandatory
49
- 'setuptools>=72.2.0',
50
- 'pkg-about>=1.1.8',
48
+ 'setuptools>=75.1.0',
49
+ 'pkg-about>=1.2.1',
51
50
  # others
52
51
  ]
53
52
  dynamic = ['readme']
54
53
  [project.optional-dependencies]
55
54
  doc = [
56
- 'Sphinx>=7.1.2',
57
- 'sphinx-toolbox>=3.7.0',
58
- 'sphinx-tabs>=3.4.5',
55
+ 'Sphinx>=7.4.7',
56
+ 'sphinx-toolbox>=3.8.0',
57
+ 'sphinx-tabs>=3.4.7',
59
58
  'sphinx-copybutton>=0.5.2',
60
59
  'sphinxcontrib-spelling>=8.0.0',
61
- 'sphinx-lint>=0.9.1',
60
+ 'sphinx-lint>=1.0.0',
62
61
  'restructuredtext-lint>=1.4.0',
63
- 'nbsphinx>=0.9.4',
62
+ 'nbsphinx>=0.9.5',
64
63
  ]
65
64
  test = [
66
- 'deepdiff>=7.0.1',
67
- 'rich>=13.7.1',
65
+ 'deepdiff>=8.0.1',
66
+ 'rich>=13.9.2',
68
67
  ]
69
68
 
70
69
  [project.scripts]
@@ -174,28 +173,28 @@ count = true
174
173
  [tool.tox]
175
174
  legacy_tox_ini = """
176
175
  [tox]
177
- envlist = py{38,39,310,311,312,313}, pypy{39,310}, docs
176
+ envlist = py{39,310,311,312,313}, pypy{39,310}, docs
178
177
  labels =
179
- py = py{38,39,310,311,312,313}, pypy{39,310}
178
+ py = py{39,310,311,312,313}, pypy{39,310}
180
179
  prepare = prepare
181
180
  coverage = coverage
182
181
  lint = lint
183
182
  docs = docs
184
- build = py{38,39,310,311,312,313}, pypy{39,310}, docs, build
185
- deploy = py{38,39,310,311,312,313}, pypy{39,310}, docs, build, publish
186
- minversion = 4.18.0
183
+ build = py{39,310,311,312,313}, pypy{39,310}, docs, build
184
+ deploy = py{39,310,311,312,313}, pypy{39,310}, docs, build, publish
185
+ minversion = 4.21.2
187
186
  skip_missing_interpreters = true
188
187
  requires =
189
188
  {[base]deps}
190
- virtualenv>=20.26.3
191
- tox-backtick>=0.4.6
189
+ virtualenv>=20.26.6
190
+ tox-backtick>=0.5.1
192
191
  tox-tags>=0.2.0
193
192
 
194
193
  [base]
195
194
  basepython = python3.12
196
195
  deps =
197
196
  pip>=24.2.0
198
- setuptools>=72.2.0
197
+ setuptools>=75.1.0
199
198
  wheel>=0.44.0
200
199
  packagesubdir = libusb
201
200
 
@@ -228,9 +227,9 @@ commands =
228
227
  {envpython} -m coverage html
229
228
  deps =
230
229
  {[testenv]deps}
231
- coverage>=7.6.1
230
+ coverage>=7.6.2
232
231
  covdefaults>=2.3.0
233
- diff-cover>=9.1.1
232
+ diff-cover>=9.2.0
234
233
 
235
234
  [testenv:docs]
236
235
  basepython = {[base]basepython}
@@ -244,7 +243,7 @@ extras = doc
244
243
  deps =
245
244
 
246
245
  [testenv:build]
247
- depends = py{38,39,310,311,312,313}, pypy{39,310}, docs
246
+ depends = py{39,310,311,312,313}, pypy{39,310}, docs
248
247
  basepython = {[base]basepython}
249
248
  setenv =
250
249
  {[testenv]setenv}
@@ -2,4 +2,3 @@
2
2
  # SPDX-License-Identifier: Zlib
3
3
 
4
4
  __import__("pkg_about").about()
5
- __copyright__ = f"Copyright (c) 2016-2024 {__author__}" # noqa
@@ -19,7 +19,7 @@ try:
19
19
  if DLL_PATH is None or DLL_PATH in ("", "None"):
20
20
  raise ImportError()
21
21
  except ImportError:
22
- DLL_PATH = os.path.join(arch_dir, "libusb-1.0.so") # libusb-1.0.so.0.3.0
22
+ DLL_PATH = os.path.join(arch_dir, "libusb-1.0.so")
23
23
 
24
24
  from ctypes import CDLL as DLL # noqa: E402
25
25
  from _ctypes import dlclose # noqa: E402
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: libusb
3
- Version: 1.0.27.post1
3
+ Version: 1.0.27.post3
4
4
  Summary: Python binding for the libusb C library.
5
5
  Author: Adam Karpierz
6
6
  Author-email: adam@karpierz.net
@@ -21,7 +21,6 @@ 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.8
25
24
  Classifier: Programming Language :: Python :: 3.9
26
25
  Classifier: Programming Language :: Python :: 3.10
27
26
  Classifier: Programming Language :: Python :: 3.11
@@ -31,23 +30,23 @@ Classifier: Programming Language :: Python :: 3 :: Only
31
30
  Classifier: Programming Language :: Python :: Implementation :: CPython
32
31
  Classifier: Programming Language :: Python :: Implementation :: PyPy
33
32
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
34
- Requires-Python: <4.0.0,>=3.8.10
33
+ Requires-Python: <4.0.0,>=3.9.0
35
34
  Description-Content-Type: text/x-rst; charset=UTF-8
36
35
  License-File: LICENSE
37
- Requires-Dist: setuptools>=72.2.0
38
- Requires-Dist: pkg-about>=1.1.8
36
+ Requires-Dist: setuptools>=75.1.0
37
+ Requires-Dist: pkg-about>=1.2.1
39
38
  Provides-Extra: doc
40
- Requires-Dist: Sphinx>=7.1.2; extra == "doc"
41
- Requires-Dist: sphinx-toolbox>=3.7.0; extra == "doc"
42
- Requires-Dist: sphinx-tabs>=3.4.5; extra == "doc"
39
+ Requires-Dist: Sphinx>=7.4.7; extra == "doc"
40
+ Requires-Dist: sphinx-toolbox>=3.8.0; extra == "doc"
41
+ Requires-Dist: sphinx-tabs>=3.4.7; extra == "doc"
43
42
  Requires-Dist: sphinx-copybutton>=0.5.2; extra == "doc"
44
43
  Requires-Dist: sphinxcontrib-spelling>=8.0.0; extra == "doc"
45
- Requires-Dist: sphinx-lint>=0.9.1; extra == "doc"
44
+ Requires-Dist: sphinx-lint>=1.0.0; extra == "doc"
46
45
  Requires-Dist: restructuredtext-lint>=1.4.0; extra == "doc"
47
- Requires-Dist: nbsphinx>=0.9.4; extra == "doc"
46
+ Requires-Dist: nbsphinx>=0.9.5; extra == "doc"
48
47
  Provides-Extra: test
49
- Requires-Dist: deepdiff>=7.0.1; extra == "test"
50
- Requires-Dist: rich>=13.7.1; extra == "test"
48
+ Requires-Dist: deepdiff>=8.0.1; extra == "test"
49
+ Requires-Dist: rich>=13.9.2; extra == "test"
51
50
 
52
51
  libusb
53
52
  ======
@@ -126,7 +125,7 @@ Installation
126
125
 
127
126
  Prerequisites:
128
127
 
129
- + Python 3.8 or higher
128
+ + Python 3.9 or higher
130
129
 
131
130
  * https://www.python.org/
132
131
  * with C libusb 1.0.27 is a primary test environment.
@@ -176,7 +175,7 @@ or on development mode:
176
175
  License
177
176
  =======
178
177
 
179
- | Copyright (c) 2016-2024 Adam Karpierz
178
+ | |copyright|
180
179
  | Licensed under the zlib/libpng License
181
180
  | https://opensource.org/license/zlib
182
181
  | Please refer to the accompanying LICENSE file.
@@ -188,6 +187,7 @@ Authors
188
187
 
189
188
  .. |package| replace:: libusb
190
189
  .. |package_bold| replace:: **libusb**
190
+ .. |copyright| replace:: Copyright (c) 2016-2024 Adam Karpierz
191
191
  .. |respository| replace:: https://github.com/karpierz/libusb.git
192
192
  .. _Development page: https://github.com/karpierz/libusb
193
193
  .. _PyPI record: https://pypi.org/project/libusb/
@@ -197,6 +197,15 @@ Authors
197
197
  Changelog
198
198
  =========
199
199
 
200
+ 1.0.27.post3 (2024-10-09)
201
+ -------------------------
202
+ - Setup (dependencies) update.
203
+
204
+ 1.0.27.post2 (2024-09-30)
205
+ -------------------------
206
+ - Drop support for Python 3.8
207
+ - Setup (dependencies) update.
208
+
200
209
  1.0.27.post1 (2024-08-13)
201
210
  -------------------------
202
211
  - Add support for Python 3.13
@@ -0,0 +1,16 @@
1
+ setuptools>=75.1.0
2
+ pkg-about>=1.2.1
3
+
4
+ [doc]
5
+ Sphinx>=7.4.7
6
+ sphinx-toolbox>=3.8.0
7
+ sphinx-tabs>=3.4.7
8
+ sphinx-copybutton>=0.5.2
9
+ sphinxcontrib-spelling>=8.0.0
10
+ sphinx-lint>=1.0.0
11
+ restructuredtext-lint>=1.4.0
12
+ nbsphinx>=0.9.5
13
+
14
+ [test]
15
+ deepdiff>=8.0.1
16
+ rich>=13.9.2
@@ -146,4 +146,32 @@ SetSystemTime = windll.kernel32.SetSystemTime
146
146
  SetSystemTime.restype = BOOL
147
147
  SetSystemTime.argtypes = [LPSYSTEMTIME]
148
148
 
149
+ # http://posted-stuff.blogspot.com/2009/07/iocp-based-sockets-with-ctypes-in_22.html
150
+
151
+ WSADESCRIPTION_LEN = 256
152
+ WSASYS_STATUS_LEN = 128
153
+
154
+ class WSADATA(ctypes.Structure):
155
+ _fields_ = [
156
+ ("wVersion", WORD),
157
+ ("wHighVersion", WORD),
158
+ ("szDescription", ctypes.c_char * (WSADESCRIPTION_LEN + 1)),
159
+ ("szSystemStatus", ctypes.c_char * (WSASYS_STATUS_LEN + 1)),
160
+ ("iMaxSockets", ctypes.c_ushort),
161
+ ("iMaxUdpDg", ctypes.c_ushort),
162
+ ("lpVendorInfo", ctypes.c_char_p),
163
+ ]
164
+
165
+ LPWSADATA = ctypes.POINTER(WSADATA)
166
+
167
+ WSAStartup = windll.Ws2_32.WSAStartup
168
+ WSAStartup.restype = ctypes.c_int
169
+ WSAStartup.argtypes = [WORD, LPWSADATA]
170
+
171
+ WSACleanup = windll.Ws2_32.WSACleanup
172
+ WSACleanup.restype = ctypes.c_int
173
+ WSACleanup.argtypes = []
174
+
175
+ def MAKEWORD(blow, bhigh): return (bhigh << 8) + blow
176
+
149
177
  del ctypes
@@ -1,16 +0,0 @@
1
- setuptools>=72.2.0
2
- pkg-about>=1.1.8
3
-
4
- [doc]
5
- Sphinx>=7.1.2
6
- sphinx-toolbox>=3.7.0
7
- sphinx-tabs>=3.4.5
8
- sphinx-copybutton>=0.5.2
9
- sphinxcontrib-spelling>=8.0.0
10
- sphinx-lint>=0.9.1
11
- restructuredtext-lint>=1.4.0
12
- nbsphinx>=0.9.4
13
-
14
- [test]
15
- deepdiff>=7.0.1
16
- rich>=13.7.1
File without changes
File without changes
File without changes