Skip to content

Commit 8bf5329

Browse files
As I was making this change, and adapting the mypy codebase to include some new stubs, I realized that the requirements.txt files tell you to run pip-compile --output-file=test-requirements.txt --strip-extras --allow-unsafe test-requirements.in, and thus have an implicit undeclared requirement on pip-tools. I tried adding this to build-requirements.txt but that broke some things so I put it in a new extra called dev instead.
1 parent 66dd2c1 commit 8bf5329

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ python2 = []
6565
reports = ["lxml"]
6666
install-types = ["pip"]
6767
faster-cache = ["orjson"]
68+
dev = [
69+
"pip-tools", # Not strictly needed for building per se, but pip-compile from this package is needed if you want to update the requirement files. (Word on the street is you can also use uv pip compile instead.)
70+
"pip<24.3" # Needed to update the requirement files correctly with pip-tools ay ay ay https://github.com/jazzband/pip-tools/issues/2131
71+
]
6872

6973
[project.urls]
7074
Homepage = "https://www.mypy-lang.org/"

0 commit comments

Comments
 (0)