Skip to content

Commit

Permalink
1.0.26b4 (2022-08-25)
Browse files Browse the repository at this point in the history
---------------------
- | Downgrade of included shared libraries for Linux:
  | libusb v.1.0.26 -> v.1.0.24 (for now based on Debian's 11 (bullseye)),
  | because of loading issues of v.1.0.26 from Debian's 12 (bookworm)
  | shared libraries.
- Setup update.
  • Loading branch information
karpierz committed Aug 25, 2022
1 parent b99750b commit 689886d
Show file tree
Hide file tree
Showing 11 changed files with 102 additions and 88 deletions.
8 changes: 8 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
Changelog
=========

1.0.26b4 (2022-08-25)
---------------------
- | Downgrade of included shared libraries for Linux:
| libusb v.1.0.26 -> v.1.0.24 (for now based on Debian's 11 (bullseye)),
| because of loading issues of v.1.0.26 from Debian's 12 (bookworm)
| shared libraries.
- Setup update.

1.0.26b3 (2022-07-25)
---------------------
- Setup update (currently based mainly on pyproject.toml).
Expand Down
20 changes: 12 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ requires = ['setuptools>=63.2.0', 'wheel>=0.37.1', 'packaging>=21.3.0', 'tox>=3.

[project]
name = 'libusb'
version = '1.0.26b3'
version = '1.0.26b4'
description = 'Python binding for the libusb C library.'
license = { text = 'zlib/libpng License ; https://opensource.org/licenses/Zlib' }
authors = [
Expand Down Expand Up @@ -43,10 +43,7 @@ requires-python = '>=3.7.0,<4.0.0'
dependencies = [
# mandatory
'setuptools>=63.2.0',
'packaging>=21.3.0',
'importlib-resources>=5.7.1',
'importlib-metadata>=4.12.0',
'pkg_about>=1.0.6',
'pkg_about>=1.0.7',
# others
]
dynamic = ['readme']
Expand Down Expand Up @@ -89,12 +86,12 @@ platforms = ['any']
zip-safe = false

[tool.setuptools.packages.find]
namespaces = true
namespaces = false
where = ['src']

[tool.setuptools.package-dir]
'' = 'src'
#libusb.tests = 'tests'
#'libusb.tests' = 'tests'

[tool.setuptools.package-data]
libusb = [
Expand Down Expand Up @@ -148,10 +145,17 @@ ignore = ['E126','E203','E221','E251','E302','E701','E702','E731',
'E122','E127','E128','E222','E272','E241','E266','E226','E704',
'D100','D101','D102','D103','D104','D400','D401','D202',
'N806','N802','N803','N801',
'I100']
'I100','W503','F401']
# (e.g. 'E4','W') default: 'E121','E123','126','226','E24','704'
#select =
#select = ['E','W','F','N','I']
per-file-ignores = [
'*/libusb/_libusb.py: E305', # ,D204
'*/libusb/_platform/__init__.py: E305',
'*/libusb/_platform/_windows/__init__.py: E305',
'*/libusb/_platform/_macos/__init__.py: E305',
'*/libusb/_platform/_linux/__init__.py: E305',
]
output-file = '.tox/lint/flake8out.txt'
count = true
#show-pep8,
Expand Down
10 changes: 5 additions & 5 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ commands =
{envpython} -m coverage html
deps =
{[testenv]deps}
coverage>=6.4.2
coverage>=6.4.4
diff-cover>=6.5.1

[testenv:docs]
Expand All @@ -81,7 +81,7 @@ setenv =
commands =
{[testenv]commands}
{[testenv:docs]commands}
{envpython} -c "from setuptools import setup ; setup()" sdist
{envpython} -c "from setuptools import setup ; setup()" --quiet sdist --formats=zip
{envpython} -c "from setuptools import setup ; setup()" --quiet bdist_wheel
# check out for PyPi
{envpython} -m twine check dist/*
Expand Down Expand Up @@ -114,8 +114,8 @@ commands =
extras =
deps =
{[testenv]deps}
flake8>=4.0.1
flake8-pyproject>=0.9.0
flake8>=5.0.4
flake8-pyproject>=1.1.0.post0
flake8-docstrings>=1.6.0
pep8-naming>=0.12.1
pep8-naming>=0.13.2
flake8-builtins>=1.5.3
4 changes: 2 additions & 2 deletions src/libusb/_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def set_config(fglobals, **cfg_dict):
for key in to_remove: config.pop(key, None)
# Reload
for mod_name in tuple(sys.modules):
if (mod_name.startswith(package_name + ".") and
mod_name != config_name):
if (mod_name.startswith(package_name + ".")
and mod_name != config_name): # noqa: E129
del sys.modules[mod_name]
importlib.reload(sys.modules[package_name])

0 comments on commit 689886d

Please sign in to comment.