punchboot 2.2.0__tar.gz → 2.3.0__tar.gz

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 (36) hide show
  1. {punchboot-2.2.0 → punchboot-2.3.0}/PKG-INFO +1 -1
  2. {punchboot-2.2.0 → punchboot-2.3.0}/punchboot.egg-info/PKG-INFO +1 -1
  3. {punchboot-2.2.0 → punchboot-2.3.0}/pyproject.toml +20 -8
  4. {punchboot-2.2.0 → punchboot-2.3.0}/setup.py +3 -3
  5. {punchboot-2.2.0 → punchboot-2.3.0}/tools/punchboot/punchboot/__init__.py +1 -1
  6. {punchboot-2.2.0 → punchboot-2.3.0}/tools/punchboot/punchboot/__main__.py +193 -179
  7. {punchboot-2.2.0 → punchboot-2.3.0}/tools/punchboot/punchboot/helpers.py +13 -7
  8. punchboot-2.3.0/tools/punchboot/punchboot/partition.py +79 -0
  9. {punchboot-2.2.0 → punchboot-2.3.0}/tools/punchboot/punchboot/session.py +138 -122
  10. {punchboot-2.2.0 → punchboot-2.3.0}/tools/punchboot/punchboot/slc.py +7 -7
  11. punchboot-2.2.0/tools/punchboot/punchboot/partition.py +0 -59
  12. {punchboot-2.2.0 → punchboot-2.3.0}/LICENSE +0 -0
  13. {punchboot-2.2.0 → punchboot-2.3.0}/README.md +0 -0
  14. {punchboot-2.2.0 → punchboot-2.3.0}/punchboot.egg-info/SOURCES.txt +0 -0
  15. {punchboot-2.2.0 → punchboot-2.3.0}/punchboot.egg-info/dependency_links.txt +0 -0
  16. {punchboot-2.2.0 → punchboot-2.3.0}/punchboot.egg-info/entry_points.txt +0 -0
  17. {punchboot-2.2.0 → punchboot-2.3.0}/punchboot.egg-info/requires.txt +0 -0
  18. {punchboot-2.2.0 → punchboot-2.3.0}/punchboot.egg-info/top_level.txt +0 -0
  19. {punchboot-2.2.0 → punchboot-2.3.0}/setup.cfg +0 -0
  20. {punchboot-2.2.0 → punchboot-2.3.0}/src/lib/bpak.c +0 -0
  21. {punchboot-2.2.0 → punchboot-2.3.0}/src/wire.c +0 -0
  22. {punchboot-2.2.0 → punchboot-2.3.0}/tools/punchboot/api.c +0 -0
  23. {punchboot-2.2.0 → punchboot-2.3.0}/tools/punchboot/api_authentication.c +0 -0
  24. {punchboot-2.2.0 → punchboot-2.3.0}/tools/punchboot/api_board.c +0 -0
  25. {punchboot-2.2.0 → punchboot-2.3.0}/tools/punchboot/api_boot.c +0 -0
  26. {punchboot-2.2.0 → punchboot-2.3.0}/tools/punchboot/api_device.c +0 -0
  27. {punchboot-2.2.0 → punchboot-2.3.0}/tools/punchboot/api_misc.c +0 -0
  28. {punchboot-2.2.0 → punchboot-2.3.0}/tools/punchboot/api_partition.c +0 -0
  29. {punchboot-2.2.0 → punchboot-2.3.0}/tools/punchboot/api_slc.c +0 -0
  30. {punchboot-2.2.0 → punchboot-2.3.0}/tools/punchboot/api_stream.c +0 -0
  31. {punchboot-2.2.0 → punchboot-2.3.0}/tools/punchboot/error.c +0 -0
  32. {punchboot-2.2.0 → punchboot-2.3.0}/tools/punchboot/exceptions.c +0 -0
  33. {punchboot-2.2.0 → punchboot-2.3.0}/tools/punchboot/punchboot/py.typed +0 -0
  34. {punchboot-2.2.0 → punchboot-2.3.0}/tools/punchboot/python_wrapper.c +0 -0
  35. {punchboot-2.2.0 → punchboot-2.3.0}/tools/punchboot/socket.c +0 -0
  36. {punchboot-2.2.0 → punchboot-2.3.0}/tools/punchboot/usb.c +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: punchboot
3
- Version: 2.2.0
3
+ Version: 2.3.0
4
4
  Summary: Punchboot tools
5
5
  Home-page: https://github.com/jonasblixt/punchboot
6
6
  Author: Jonas Blixt
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: punchboot
3
- Version: 2.2.0
3
+ Version: 2.3.0
4
4
  Summary: Punchboot tools
5
5
  Home-page: https://github.com/jonasblixt/punchboot
6
6
  Author: Jonas Blixt
@@ -3,15 +3,30 @@ line-length = 100
3
3
  extend-exclude = [
4
4
  "pki",
5
5
  "doc",
6
- "scripts/genconfig.py",
7
- "scripts/kconfiglib.py",
8
- "scripts/menuconfig.py",
6
+ "scripts/**",
9
7
  ]
10
8
  target-version = "py38"
11
9
 
12
10
  [tool.ruff.lint]
13
11
  # See: https://docs.astral.sh/ruff/rules/ for details
14
- select = ["D", "N", "F", "W", "E", "I", "SIM", "PTH", "PERF"]
12
+ select = ["ALL"]
13
+ ignore = [
14
+ "COM812", # Conflicts with the formatter
15
+ "ISC001", # Conflicts with the formatter
16
+ "ANN101", # "missing-type-self"
17
+ "PLE0605", # ruff does not handle += in __all__
18
+ "FBT", # don't care for these at the moment
19
+ "PT001", # https://github.com/astral-sh/ruff/issues/8796#issuecomment-1825907715
20
+ "PT004", # https://github.com/astral-sh/ruff/issues/8796#issuecomment-1825907715
21
+ "PT005", # https://github.com/astral-sh/ruff/issues/8796#issuecomment-1825907715
22
+ "PT023", # https://github.com/astral-sh/ruff/issues/8796#issuecomment-1825907715
23
+ ]
24
+
25
+ pyupgrade.keep-runtime-typing = true
26
+ pylint.max-args = 8
27
+
28
+ [tool.ruff.lint.pydocstyle]
29
+ convention = "pep257"
15
30
 
16
31
  [tool.ruff.format]
17
32
  quote-style = "double"
@@ -19,9 +34,6 @@ indent-style = "space"
19
34
  skip-magic-trailing-comma = false
20
35
  line-ending = "auto"
21
36
 
22
- [tool.ruff.lint.pydocstyle]
23
- convention = "pep257"
24
-
25
37
  [tool.mypy]
26
38
  warn_return_any = true
27
39
  exclude = [
@@ -53,4 +65,4 @@ environment = "PB_MACOS_ARCH=x86_64"
53
65
 
54
66
  [tool.cibuildwheel.macos]
55
67
  archs = ["x86_64", "arm64"]
56
- repair-wheel-command = "DYLD_LIBRARY_PATH=libusb_{delocate_archs}/1.0.26/lib delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel}"
68
+ repair-wheel-command = "DYLD_LIBRARY_PATH=libusb_{delocate_archs}/1.0.27/lib delocate-wheel --require-target-macos-version 12.0 --require-archs {delocate_archs} -w {dest_dir} -v {wheel}"
@@ -4,7 +4,7 @@ import os
4
4
  import platform
5
5
  from pathlib import Path
6
6
 
7
- from setuptools import Extension, setup # type: ignore
7
+ from setuptools import Extension, setup # type: ignore # noqa: PGH003
8
8
 
9
9
  pb_base_path: str = "tools/punchboot"
10
10
  plat: str = platform.system()
@@ -20,8 +20,8 @@ elif plat == "Darwin":
20
20
  # get target arch here when cross compiling wheels.
21
21
  _target_arch = os.environ["PB_MACOS_ARCH"]
22
22
  _libraries = ["usb-1.0"]
23
- _library_dirs = [f"libusb_{_target_arch}/1.0.26/lib"]
24
- _include_dirs = ["include", f"libusb_{_target_arch}/1.0.26/include"]
23
+ _library_dirs = [f"libusb_{_target_arch}/1.0.27/lib"]
24
+ _include_dirs = ["include", f"libusb_{_target_arch}/1.0.27/include"]
25
25
  else:
26
26
  _libraries = ["usb-1.0"]
27
27
  _library_dirs = []
@@ -1,6 +1,6 @@
1
1
  """Punchboot."""
2
2
 
3
- from _punchboot import ( # type: ignore # noqa: F401
3
+ from _punchboot import ( # type: ignore[import-not-found] # noqa: F401
4
4
  ArgumentError,
5
5
  AuthenticationError,
6
6
  CommandError,