faster-hexbytes 1.3.7__tar.gz → 1.3.8__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.8}/PKG-INFO +4 -4
  2. {faster_hexbytes-1.3.7 → faster_hexbytes-1.3.8/faster_hexbytes.egg-info}/PKG-INFO +4 -4
  3. {faster_hexbytes-1.3.7 → faster_hexbytes-1.3.8}/faster_hexbytes.egg-info/SOURCES.txt +1 -0
  4. {faster_hexbytes-1.3.7 → faster_hexbytes-1.3.8}/faster_hexbytes.egg-info/requires.txt +3 -3
  5. {faster_hexbytes-1.3.7 → faster_hexbytes-1.3.8}/pyproject.toml +2 -2
  6. faster_hexbytes-1.3.8/scripts/ci/smoke_test_built_wheel.py +59 -0
  7. {faster_hexbytes-1.3.7 → faster_hexbytes-1.3.8}/setup.py +4 -4
  8. {faster_hexbytes-1.3.7 → faster_hexbytes-1.3.8}/LICENSE +0 -0
  9. {faster_hexbytes-1.3.7 → faster_hexbytes-1.3.8}/MANIFEST.in +0 -0
  10. {faster_hexbytes-1.3.7 → faster_hexbytes-1.3.8}/README.md +0 -0
  11. {faster_hexbytes-1.3.7 → faster_hexbytes-1.3.8}/faster_hexbytes/__init__.py +0 -0
  12. {faster_hexbytes-1.3.7 → faster_hexbytes-1.3.8}/faster_hexbytes/_utils.py +0 -0
  13. {faster_hexbytes-1.3.7 → faster_hexbytes-1.3.8}/faster_hexbytes/main.py +0 -0
  14. {faster_hexbytes-1.3.7 → faster_hexbytes-1.3.8}/faster_hexbytes/py.typed +0 -0
  15. {faster_hexbytes-1.3.7 → faster_hexbytes-1.3.8}/faster_hexbytes.egg-info/dependency_links.txt +0 -0
  16. {faster_hexbytes-1.3.7 → faster_hexbytes-1.3.8}/faster_hexbytes.egg-info/not-zip-safe +0 -0
  17. {faster_hexbytes-1.3.7 → faster_hexbytes-1.3.8}/faster_hexbytes.egg-info/top_level.txt +0 -0
  18. {faster_hexbytes-1.3.7 → faster_hexbytes-1.3.8}/scripts/benchmark/compare_benchmark_results.py +0 -0
  19. {faster_hexbytes-1.3.7 → faster_hexbytes-1.3.8}/scripts/benchmark/generate_benchmark_markdown.py +0 -0
  20. {faster_hexbytes-1.3.7 → faster_hexbytes-1.3.8}/scripts/benchmark/parse_benchmark_output.py +0 -0
  21. {faster_hexbytes-1.3.7 → faster_hexbytes-1.3.8}/scripts/release/test_package.py +0 -0
  22. {faster_hexbytes-1.3.7 → faster_hexbytes-1.3.8}/setup.cfg +0 -0
  23. {faster_hexbytes-1.3.7 → faster_hexbytes-1.3.8}/tests/core/test_hexbytes.py +0 -0
  24. {faster_hexbytes-1.3.7 → faster_hexbytes-1.3.8}/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.8
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
@@ -35,7 +35,7 @@ Provides-Extra: dev
35
35
  Requires-Dist: build>=0.9.0; extra == "dev"
36
36
  Requires-Dist: bump_my_version>=0.19.0; extra == "dev"
37
37
  Requires-Dist: ipython; extra == "dev"
38
- Requires-Dist: mypy==1.20.0; extra == "dev"
38
+ Requires-Dist: mypy==2.1.0; extra == "dev"
39
39
  Requires-Dist: pre-commit>=3.4.0; extra == "dev"
40
40
  Requires-Dist: tox>=4.0.0; extra == "dev"
41
41
  Requires-Dist: twine; extra == "dev"
@@ -60,10 +60,10 @@ Requires-Dist: pytest>=7.0.0; extra == "test"
60
60
  Requires-Dist: pytest-xdist>=2.4.0; extra == "test"
61
61
  Provides-Extra: benchmark
62
62
  Requires-Dist: pytest-benchmark; extra == "benchmark"
63
- Requires-Dist: pytest-codspeed<4.4,>=4.3; extra == "benchmark"
63
+ Requires-Dist: pytest-codspeed<5.1,>=5; extra == "benchmark"
64
64
  Requires-Dist: eth-typing; extra == "benchmark"
65
65
  Provides-Extra: codspeed
66
- Requires-Dist: pytest-codspeed<4.4,>=4.3; extra == "codspeed"
66
+ Requires-Dist: pytest-codspeed<5.1,>=5; extra == "codspeed"
67
67
  Requires-Dist: eth-typing; extra == "codspeed"
68
68
  Dynamic: author
69
69
  Dynamic: author-email
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: faster_hexbytes
3
- Version: 1.3.7
3
+ Version: 1.3.8
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
@@ -35,7 +35,7 @@ Provides-Extra: dev
35
35
  Requires-Dist: build>=0.9.0; extra == "dev"
36
36
  Requires-Dist: bump_my_version>=0.19.0; extra == "dev"
37
37
  Requires-Dist: ipython; extra == "dev"
38
- Requires-Dist: mypy==1.20.0; extra == "dev"
38
+ Requires-Dist: mypy==2.1.0; extra == "dev"
39
39
  Requires-Dist: pre-commit>=3.4.0; extra == "dev"
40
40
  Requires-Dist: tox>=4.0.0; extra == "dev"
41
41
  Requires-Dist: twine; extra == "dev"
@@ -60,10 +60,10 @@ Requires-Dist: pytest>=7.0.0; extra == "test"
60
60
  Requires-Dist: pytest-xdist>=2.4.0; extra == "test"
61
61
  Provides-Extra: benchmark
62
62
  Requires-Dist: pytest-benchmark; extra == "benchmark"
63
- Requires-Dist: pytest-codspeed<4.4,>=4.3; extra == "benchmark"
63
+ Requires-Dist: pytest-codspeed<5.1,>=5; extra == "benchmark"
64
64
  Requires-Dist: eth-typing; extra == "benchmark"
65
65
  Provides-Extra: codspeed
66
- Requires-Dist: pytest-codspeed<4.4,>=4.3; extra == "codspeed"
66
+ Requires-Dist: pytest-codspeed<5.1,>=5; extra == "codspeed"
67
67
  Requires-Dist: eth-typing; extra == "codspeed"
68
68
  Dynamic: author
69
69
  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.1.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.1.0", "hexbytes==1.3.1"]
3
3
  build-backend = "setuptools.build_meta"
4
4
 
5
5
  [tool.autoflake]
@@ -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.8"
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.1.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
  }
File without changes