Skip to content

Commit cecf23e

Browse files
odysseus0claude
andcommitted
build: migrate from Poetry to uv
- Convert pyproject.toml to PEP 621 format with hatchling backend - Use [dependency-groups] for dev dependencies - Replace poetry.lock with uv.lock - Update README with uv commands - Update linting instructions to use ruff 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent f99ddc3 commit cecf23e

5 files changed

Lines changed: 2427 additions & 2328 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,5 @@
2525
- Replaced lambda functions with list comprehensions for better readability.
2626
- Improved error handling in `FlashbotProvider` with specific exception types for timeouts and connection errors.
2727
- Added return type hints to `simulate()` and `extrapolate_timestamp()` methods.
28+
- Migrated from Poetry to uv for package management (PEP 621 compliant `pyproject.toml`).
2829

README.md

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,33 +32,26 @@ flashbot(w3, ETH_ACCOUNT_SIGNATURE, "https://relay-goerli.flashbots.net")
3232

3333
## Development and testing
3434

35-
Install [poetry](https://python-poetry.org/)
36-
37-
Poetry will automatically fix your venv and all packages needed.
35+
Install [uv](https://docs.astral.sh/uv/getting-started/installation/)
3836

3937
```sh
40-
poetry install
38+
uv sync --dev
4139
```
4240

43-
Tips: PyCharm has a poetry plugin
44-
4541
## Simple Testnet Example
4642

4743
See [examples/simple.py](./examples/simple.py) for environment variable definitions.
4844

4945
```sh
50-
poetry shell
5146
ETH_SENDER_KEY=<sender_private_key> \
5247
PROVIDER_URL=https://eth-holesky.g.alchemy.com/v2/<alchemy_key> \
5348
ETH_SIGNER_KEY=<signer_private_key> \
54-
python examples/simple.py
49+
uv run python examples/simple.py
5550
```
5651

5752
## Linting
5853

59-
It's advisable to run black with default rules for linting
60-
6154
```sh
62-
sudo pip install black # Black should be installed with a global entrypoint
63-
black .
55+
uv run ruff check .
56+
uv run ruff format .
6457
```

0 commit comments

Comments
 (0)