Skip to content

Commit d3f5cf5

Browse files
committed
Switch from poetry to uv` with setuptools build-system
1 parent a9742fc commit d3f5cf5

File tree

5 files changed

+189
-190
lines changed

5 files changed

+189
-190
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,4 @@ missing
6969
.venv/
7070
__pycache__/
7171
logs/
72+
*.egg-info/

README.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,20 @@ Check out [REPRODUCING.md](REPRODUCING.md) for more detailed instructions.
5757
```shell
5858
python3 -m venv .venv
5959
```
60-
- Within that virtual environment, from the root directory of this repository, install the tooling with `pip install .`
61-
62-
Alternatively you can use Poetry to run tools directly, using `poetry run <tool>`.
60+
- Within that virtual environment, from the root directory of this repository, install the tooling with
61+
```shell
62+
pip install .
63+
```
64+
- Alternatively you can use `uv`; either
65+
```shell
66+
uv sync
67+
uv pip install -e .
68+
```
69+
to sync your environment, or
70+
```shell
71+
uv run <tool>
72+
```
73+
directly.
6374

6475
## What's in this testcase?
6576

poetry.lock

Lines changed: 0 additions & 172 deletions
This file was deleted.

pyproject.toml

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,10 @@
22
name = "curl-fuzzer-tools"
33
version = "0.1.0"
44
description = "Tooling for the curl-fuzzer repository"
5-
maintainers = [
6-
{name = "Max Dymond",email = "cmeister2@gmail.com"}
7-
]
8-
readme = "README.md"
95
requires-python = ">=3.9,<4"
10-
dependencies = [
11-
"scapy (>=2.6.1,<3.0.0)"
12-
]
6+
readme = "README.md"
137
license = { file = "LICENSE" }
8+
maintainers = [{ name = "Max Dymond", email = "cmeister2@gmail.com" }]
149
classifiers = [
1510
"Programming Language :: Python",
1611
"Programming Language :: Python :: 3",
@@ -27,20 +22,23 @@ classifiers = [
2722
"Topic :: Software Development :: Testing",
2823
"Typing :: Typed",
2924
]
30-
31-
[build-system]
32-
requires = ["poetry-core>=2.0.0,<3.0.0"]
33-
build-backend = "poetry.core.masonry.api"
34-
35-
[tool.poetry.group.dev.dependencies]
36-
mypy = "1.15.0"
37-
ruff = "0.9.10"
25+
dependencies = ["scapy (>=2.6.1,<3.0.0)"]
3826

3927
[project.scripts]
4028
read_corpus = "curl_fuzzer_tools.read_corpus:run"
4129
generate_corpus = "curl_fuzzer_tools.generate_corpus:run"
4230
corpus_to_pcap = "curl_fuzzer_tools.corpus_to_pcap:run"
4331

32+
[build-system]
33+
requires = ["setuptools>=61.0"]
34+
build-backend = "setuptools.build_meta"
35+
36+
[dependency-groups]
37+
dev = [
38+
"mypy==1.15.0",
39+
"ruff==0.9.10",
40+
]
41+
4442
[tool.mypy]
4543
warn_unused_configs = true
4644
disallow_untyped_defs = true

0 commit comments

Comments
 (0)