faster-hexbytes 1.3.7__tar.gz → 1.3.9__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 (24) hide show
  1. {faster_hexbytes-1.3.7/faster_hexbytes.egg-info → faster_hexbytes-1.3.9}/PKG-INFO +5 -4
  2. {faster_hexbytes-1.3.7 → faster_hexbytes-1.3.9}/faster_hexbytes/main.py +1 -1
  3. {faster_hexbytes-1.3.7 → faster_hexbytes-1.3.9/faster_hexbytes.egg-info}/PKG-INFO +5 -4
  4. {faster_hexbytes-1.3.7 → faster_hexbytes-1.3.9}/faster_hexbytes.egg-info/SOURCES.txt +1 -0
  5. {faster_hexbytes-1.3.7 → faster_hexbytes-1.3.9}/faster_hexbytes.egg-info/requires.txt +3 -3
  6. {faster_hexbytes-1.3.7 → faster_hexbytes-1.3.9}/pyproject.toml +4 -4
  7. faster_hexbytes-1.3.9/scripts/ci/smoke_test_built_wheel.py +59 -0
  8. {faster_hexbytes-1.3.7 → faster_hexbytes-1.3.9}/setup.py +5 -4
  9. {faster_hexbytes-1.3.7 → faster_hexbytes-1.3.9}/LICENSE +0 -0
  10. {faster_hexbytes-1.3.7 → faster_hexbytes-1.3.9}/MANIFEST.in +0 -0
  11. {faster_hexbytes-1.3.7 → faster_hexbytes-1.3.9}/README.md +0 -0
  12. {faster_hexbytes-1.3.7 → faster_hexbytes-1.3.9}/faster_hexbytes/__init__.py +0 -0
  13. {faster_hexbytes-1.3.7 → faster_hexbytes-1.3.9}/faster_hexbytes/_utils.py +0 -0
  14. {faster_hexbytes-1.3.7 → faster_hexbytes-1.3.9}/faster_hexbytes/py.typed +0 -0
  15. {faster_hexbytes-1.3.7 → faster_hexbytes-1.3.9}/faster_hexbytes.egg-info/dependency_links.txt +0 -0
  16. {faster_hexbytes-1.3.7 → faster_hexbytes-1.3.9}/faster_hexbytes.egg-info/not-zip-safe +0 -0
  17. {faster_hexbytes-1.3.7 → faster_hexbytes-1.3.9}/faster_hexbytes.egg-info/top_level.txt +0 -0
  18. {faster_hexbytes-1.3.7 → faster_hexbytes-1.3.9}/scripts/benchmark/compare_benchmark_results.py +0 -0
  19. {faster_hexbytes-1.3.7 → faster_hexbytes-1.3.9}/scripts/benchmark/generate_benchmark_markdown.py +0 -0
  20. {faster_hexbytes-1.3.7 → faster_hexbytes-1.3.9}/scripts/benchmark/parse_benchmark_output.py +0 -0
  21. {faster_hexbytes-1.3.7 → faster_hexbytes-1.3.9}/scripts/release/test_package.py +0 -0
  22. {faster_hexbytes-1.3.7 → faster_hexbytes-1.3.9}/setup.cfg +0 -0
  23. {faster_hexbytes-1.3.7 → faster_hexbytes-1.3.9}/tests/core/test_hexbytes.py +0 -0
  24. {faster_hexbytes-1.3.7 → faster_hexbytes-1.3.9}/tests/core/test_import_and_version.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: faster_hexbytes
3
- Version: 1.3.7
3
+ Version: 1.3.9
4
4
  Summary: A faster fork of hexbytes: Python `bytes` subclass that decodes hex, with a readable console output. Implemented in C.
5
5
  Home-page: https://github.com/BobTheBuidler/faster-hexbytes
6
6
  Author: The Ethereum Foundation
@@ -25,6 +25,7 @@ Classifier: Programming Language :: Python :: 3.11
25
25
  Classifier: Programming Language :: Python :: 3.12
26
26
  Classifier: Programming Language :: Python :: 3.13
27
27
  Classifier: Programming Language :: Python :: 3.14
28
+ Classifier: Programming Language :: Python :: 3.15
28
29
  Requires-Python: >=3.10, <4
29
30
  Description-Content-Type: text/markdown
30
31
  License-File: LICENSE
@@ -35,7 +36,7 @@ Provides-Extra: dev
35
36
  Requires-Dist: build>=0.9.0; extra == "dev"
36
37
  Requires-Dist: bump_my_version>=0.19.0; extra == "dev"
37
38
  Requires-Dist: ipython; extra == "dev"
38
- Requires-Dist: mypy==1.20.0; extra == "dev"
39
+ Requires-Dist: mypy==2.4.0; extra == "dev"
39
40
  Requires-Dist: pre-commit>=3.4.0; extra == "dev"
40
41
  Requires-Dist: tox>=4.0.0; extra == "dev"
41
42
  Requires-Dist: twine; extra == "dev"
@@ -60,10 +61,10 @@ Requires-Dist: pytest>=7.0.0; extra == "test"
60
61
  Requires-Dist: pytest-xdist>=2.4.0; extra == "test"
61
62
  Provides-Extra: benchmark
62
63
  Requires-Dist: pytest-benchmark; extra == "benchmark"
63
- Requires-Dist: pytest-codspeed<4.4,>=4.3; extra == "benchmark"
64
+ Requires-Dist: pytest-codspeed<5.1,>=5; extra == "benchmark"
64
65
  Requires-Dist: eth-typing; extra == "benchmark"
65
66
  Provides-Extra: codspeed
66
- Requires-Dist: pytest-codspeed<4.4,>=4.3; extra == "codspeed"
67
+ Requires-Dist: pytest-codspeed<5.1,>=5; extra == "codspeed"
67
68
  Requires-Dist: eth-typing; extra == "codspeed"
68
69
  Dynamic: author
69
70
  Dynamic: author-email
@@ -33,7 +33,7 @@ BytesLike = Union[bytes, str, bool, bytearray, int, memoryview]
33
33
  _bytes_new: Final = bytes.__new__
34
34
 
35
35
 
36
- @mypyc_attr(native_class=False, allow_interpreted_subclasses=True)
36
+ @mypyc_attr(native_class=False, acyclic=True, allow_interpreted_subclasses=True)
37
37
  class HexBytes(hexbytes.HexBytes):
38
38
  """
39
39
  Thin wrapper around the python built-in :class:`bytes` class.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: faster_hexbytes
3
- Version: 1.3.7
3
+ Version: 1.3.9
4
4
  Summary: A faster fork of hexbytes: Python `bytes` subclass that decodes hex, with a readable console output. Implemented in C.
5
5
  Home-page: https://github.com/BobTheBuidler/faster-hexbytes
6
6
  Author: The Ethereum Foundation
@@ -25,6 +25,7 @@ Classifier: Programming Language :: Python :: 3.11
25
25
  Classifier: Programming Language :: Python :: 3.12
26
26
  Classifier: Programming Language :: Python :: 3.13
27
27
  Classifier: Programming Language :: Python :: 3.14
28
+ Classifier: Programming Language :: Python :: 3.15
28
29
  Requires-Python: >=3.10, <4
29
30
  Description-Content-Type: text/markdown
30
31
  License-File: LICENSE
@@ -35,7 +36,7 @@ Provides-Extra: dev
35
36
  Requires-Dist: build>=0.9.0; extra == "dev"
36
37
  Requires-Dist: bump_my_version>=0.19.0; extra == "dev"
37
38
  Requires-Dist: ipython; extra == "dev"
38
- Requires-Dist: mypy==1.20.0; extra == "dev"
39
+ Requires-Dist: mypy==2.4.0; extra == "dev"
39
40
  Requires-Dist: pre-commit>=3.4.0; extra == "dev"
40
41
  Requires-Dist: tox>=4.0.0; extra == "dev"
41
42
  Requires-Dist: twine; extra == "dev"
@@ -60,10 +61,10 @@ Requires-Dist: pytest>=7.0.0; extra == "test"
60
61
  Requires-Dist: pytest-xdist>=2.4.0; extra == "test"
61
62
  Provides-Extra: benchmark
62
63
  Requires-Dist: pytest-benchmark; extra == "benchmark"
63
- Requires-Dist: pytest-codspeed<4.4,>=4.3; extra == "benchmark"
64
+ Requires-Dist: pytest-codspeed<5.1,>=5; extra == "benchmark"
64
65
  Requires-Dist: eth-typing; extra == "benchmark"
65
66
  Provides-Extra: codspeed
66
- Requires-Dist: pytest-codspeed<4.4,>=4.3; extra == "codspeed"
67
+ Requires-Dist: pytest-codspeed<5.1,>=5; extra == "codspeed"
67
68
  Requires-Dist: eth-typing; extra == "codspeed"
68
69
  Dynamic: author
69
70
  Dynamic: author-email
@@ -16,6 +16,7 @@ faster_hexbytes.egg-info/top_level.txt
16
16
  scripts/benchmark/compare_benchmark_results.py
17
17
  scripts/benchmark/generate_benchmark_markdown.py
18
18
  scripts/benchmark/parse_benchmark_output.py
19
+ scripts/ci/smoke_test_built_wheel.py
19
20
  scripts/release/test_package.py
20
21
  tests/core/test_hexbytes.py
21
22
  tests/core/test_import_and_version.py
@@ -4,18 +4,18 @@ typing-extensions<5,>=4.0.0
4
4
 
5
5
  [benchmark]
6
6
  pytest-benchmark
7
- pytest-codspeed<4.4,>=4.3
7
+ pytest-codspeed<5.1,>=5
8
8
  eth-typing
9
9
 
10
10
  [codspeed]
11
- pytest-codspeed<4.4,>=4.3
11
+ pytest-codspeed<5.1,>=5
12
12
  eth-typing
13
13
 
14
14
  [dev]
15
15
  build>=0.9.0
16
16
  bump_my_version>=0.19.0
17
17
  ipython
18
- mypy==1.20.0
18
+ mypy==2.4.0
19
19
  pre-commit>=3.4.0
20
20
  tox>=4.0.0
21
21
  twine
@@ -1,5 +1,5 @@
1
1
  [build-system]
2
- requires = ["setuptools", "wheel", "mypy[mypyc]==1.20.0", "hexbytes==1.3.1"]
2
+ requires = ["setuptools", "wheel", "mypy[mypyc]==2.4.0", "hexbytes==1.3.1"]
3
3
  build-backend = "setuptools.build_meta"
4
4
 
5
5
  [tool.autoflake]
@@ -13,8 +13,8 @@ force_grid_wrap = 1
13
13
  force_sort_within_sections = true
14
14
  force_to_top = "pytest"
15
15
  honor_noqa = true
16
- known_first_party = "hexbytes"
17
- known_third_party = "hypothesis"
16
+ known_first_party = "faster_hexbytes"
17
+ known_third_party = ["hexbytes", "hypothesis"]
18
18
  multi_line_output = 3
19
19
  profile = "black"
20
20
  use_parentheses = true
@@ -132,7 +132,7 @@ name = "Removals"
132
132
  showcontent = true
133
133
 
134
134
  [tool.bumpversion]
135
- current_version = "1.3.7"
135
+ current_version = "1.3.8"
136
136
  parse = """
137
137
  (?P<major>\\d+)
138
138
  \\.(?P<minor>\\d+)
@@ -0,0 +1,59 @@
1
+ from __future__ import annotations
2
+
3
+ import shutil
4
+ import subprocess
5
+ import sys
6
+ import tempfile
7
+ from pathlib import Path
8
+
9
+
10
+ PROJECT_ROOT = Path(__file__).resolve().parents[2]
11
+ BUILD_DIR = PROJECT_ROOT / "build"
12
+ DIST_DIR = PROJECT_ROOT / "dist"
13
+ WHEEL_PATTERN = "faster_hexbytes-*.whl"
14
+ PACKAGE_IMPORT = "faster_hexbytes"
15
+
16
+
17
+ def run_python(*args: str, cwd: Path = PROJECT_ROOT) -> None:
18
+ subprocess.run((sys.executable, *args), cwd=cwd, check=True)
19
+
20
+
21
+ def clean_build_artifacts() -> None:
22
+ for path in (BUILD_DIR, DIST_DIR):
23
+ if path.exists():
24
+ shutil.rmtree(path)
25
+
26
+
27
+ def find_built_wheel() -> Path:
28
+ wheels = sorted(DIST_DIR.glob(WHEEL_PATTERN))
29
+ if len(wheels) == 1:
30
+ return wheels[0]
31
+
32
+ found = ", ".join(wheel.name for wheel in wheels) or "none"
33
+ raise SystemExit(
34
+ f"Expected exactly one {WHEEL_PATTERN} in {DIST_DIR}, found {found}."
35
+ )
36
+
37
+
38
+ def main() -> None:
39
+ clean_build_artifacts()
40
+ run_python("-m", "build")
41
+
42
+ wheel = find_built_wheel()
43
+ print(f"Installing wheel: {wheel.name}")
44
+ run_python(
45
+ "-m",
46
+ "pip",
47
+ "install",
48
+ "--upgrade",
49
+ str(wheel),
50
+ "--progress-bar",
51
+ "off",
52
+ )
53
+
54
+ with tempfile.TemporaryDirectory() as tmpdir:
55
+ run_python("-c", f"import {PACKAGE_IMPORT}", cwd=Path(tmpdir))
56
+
57
+
58
+ if __name__ == "__main__":
59
+ main()
@@ -7,7 +7,7 @@ from setuptools import (
7
7
  from mypyc.build import mypycify
8
8
 
9
9
 
10
- version = "1.3.7"
10
+ version = "1.3.9"
11
11
  hexbytes_version = "1.3.1"
12
12
 
13
13
  extras_require = {
@@ -15,7 +15,7 @@ extras_require = {
15
15
  "build>=0.9.0",
16
16
  "bump_my_version>=0.19.0",
17
17
  "ipython",
18
- "mypy==1.20.0",
18
+ "mypy==2.4.0",
19
19
  "pre-commit>=3.4.0",
20
20
  "tox>=4.0.0",
21
21
  "twine",
@@ -35,11 +35,11 @@ extras_require = {
35
35
  ],
36
36
  "benchmark": [
37
37
  "pytest-benchmark",
38
- "pytest-codspeed>=4.3,<4.4",
38
+ "pytest-codspeed>=5,<5.1",
39
39
  "eth-typing",
40
40
  ],
41
41
  "codspeed": [
42
- "pytest-codspeed>=4.3,<4.4",
42
+ "pytest-codspeed>=5,<5.1",
43
43
  "eth-typing",
44
44
  ],
45
45
  }
@@ -124,5 +124,6 @@ setup(
124
124
  "Programming Language :: Python :: 3.12",
125
125
  "Programming Language :: Python :: 3.13",
126
126
  "Programming Language :: Python :: 3.14",
127
+ "Programming Language :: Python :: 3.15",
127
128
  ],
128
129
  )
File without changes