Skip to content

Commit 7cdf4a3

Browse files
authored
chore(tooling,deps): require minimum uv version (#1904)
* style: autoformat pyproject.toml * chore(tooling): enforce min uv version in pyproject.toml * docs: update changelog * docs(tooling): bump required `uv` version in docs
1 parent 0f7c73a commit 7cdf4a3

File tree

4 files changed

+24
-5
lines changed

4 files changed

+24
-5
lines changed

docs/CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,23 @@ Test fixtures for use by clients are available for each release on the [Github r
1010

1111
- Python 3.10 support was removed in this release ([#1808](https://github.com/ethereum/execution-spec-tests/pull/1808)).
1212

13+
#### 💥 Important Change for EEST developers
14+
15+
- @ethereum/execution-spec-tests now requires `uv>=0.7.0` ([#1904](https://github.com/ethereum/execution-spec-tests/pull/1904)). If your version of `uv` is too old, please proceed as following.
16+
17+
If `uv` was curl-installed (recommended), please run:
18+
19+
```bash
20+
uv self update
21+
```
22+
23+
If `uv` was pip-installed, then:
24+
25+
```bash
26+
pip uninstall uv
27+
curl -LsSf https://astral.sh/uv/install.sh | sh
28+
```
29+
1330
#### 💥 Important Change for test contributors
1431

1532
- EEST no longer allows usage of Yul code in Python tests. From now on, please make use of our opcode wrapper. Yul code is now only allowed in the "static tests" located in `./tests/static/` (these are test cases defined by JSON and YAML files instead of Python test functions that were originally maintained in [ethereum/tests](https://github.com/ethereum/tests)).
@@ -93,6 +110,7 @@ Users can select any of the artifacts depending on their testing needs for their
93110
- 🔀 Move `TransactionType` enum from test file to proper module location in `ethereum_test_types.transaction_types` for better code organization and reusability ([#1763](https://github.com/ethereum/execution-spec-tests/pull/1673)).
94111
- ✨ Opcode classes now validate keyword arguments and raise `ValueError` with clear error messages ([#1739](https://github.com/ethereum/execution-spec-tests/pull/1739), [#1856](https://github.com/ethereum/execution-spec-tests/pull/1856)).
95112
- ✨ All commands (`fill`, `consume`, `execute`) now work without having to clone the repository, e.g. `uv run --with git+https://github.com/ethereum/execution-spec-tests.git consume` now works from any folder ([#1863](https://github.com/ethereum/execution-spec-tests/pull/1863)).
113+
- 🔀 Enforce a minimum version of `uv>=0.7.0` ([#1904](https://github.com/ethereum/execution-spec-tests/pull/1904)).
96114

97115
### 🧪 Test Cases
98116

docs/dev/deps_and_packaging.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
EEST uses [`uv`](https://docs.astral.sh/uv/) to manage and pin its dependencies.
44

5-
Please use `uv>=0.7.0` to ensure `uv` writes `uv.lock` files with consistent fields and formatting (see [ethereum/execution-spec-tests#1597]https://github.com/ethereum/execution-spec-tests/pull/1597).
5+
A minimum version of `uv>=0.7.0` is required to ensure `uv` writes `uv.lock` files with consistent fields and formatting (see [ethereum/execution-spec-tests#1597](https://github.com/ethereum/execution-spec-tests/pull/1597)).
66

77
## Managing Dependencies
88

docs/getting_started/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
The tools provided by [execution-spec-tests](https://github.com/ethereum/execution-spec-tests) use `uv` ([docs.astral.sh/uv](https://docs.astral.sh/uv/)) to manage their dependencies and virtual environment.
66

7-
It's typically recommended to use the latest version of `uv`, currently `uv>=0.5.22` is required.
7+
It's typically recommended to use the latest version of `uv`, currently `uv>=0.7.0` is required.
88

99
The latest version of `uv` can be installed via `curl` (recommended; can self-update via `uv self update`) or pip (requires Python, can't self-update):
1010

pyproject.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,7 @@ exclude = ["tests/static/**"]
117117
[tool.setuptools.package-data]
118118
ethereum_test_forks = ["forks/contracts/*.bin"]
119119
"pytest_plugins.execute" = ["eth_config/networks.yml"]
120-
"pytest_plugins" = [
121-
"eels_resolutions.json"
122-
]
120+
"pytest_plugins" = ["eels_resolutions.json"]
123121
"cli.eest.make" = ["templates/*.j2"]
124122
"cli.pytest_commands" = ["pytest_ini_files/*.ini"]
125123

@@ -153,5 +151,8 @@ skip = ".venv,__pycache__,.git,build,dist,*.pyc,*.lock"
153151
check-filenames = true
154152
ignore-words-list = "ingenuous"
155153

154+
[tool.uv]
155+
required-version = ">=0.7.0"
156+
156157
[tool.uv.sources]
157158
ethereum-spec-evm-resolver = { git = "https://github.com/spencer-tb/ethereum-spec-evm-resolver", rev = "ee273e7344e24a739ebfbf0ea1f758530c4d032b" }

0 commit comments

Comments
 (0)