Skip to content

Commit 8b50386

Browse files
committed
removed pip from requirements file
1 parent b19b51d commit 8b50386

File tree

3 files changed

+28
-22
lines changed

3 files changed

+28
-22
lines changed

requirements.dev.txt

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,41 +4,41 @@
44
# via -r requirements.dev.in
55
alabaster==1.0.0
66
# via sphinx
7-
astroid==3.3.10
7+
astroid==3.3.11
88
# via pylint
99
babel==2.17.0
1010
# via sphinx
1111
black==25.1.0
1212
# via -r requirements.dev.in
13-
build==1.2.2.post1
13+
build==1.3.0
1414
# via pip-tools
15-
certifi==2025.6.15
15+
certifi==2025.8.3
1616
# via requests
1717
cfgv==3.4.0
1818
# via pre-commit
19-
charset-normalizer==3.4.2
19+
charset-normalizer==3.4.3
2020
# via requests
2121
click==8.2.1
2222
# via
2323
# black
2424
# pip-tools
25-
coverage==7.9.1
25+
coverage==7.10.6
2626
# via
2727
# coveralls
2828
# pytest-cov
2929
coveralls==4.0.1
3030
# via -r requirements.dev.in
3131
dill==0.4.0
3232
# via pylint
33-
distlib==0.3.9
33+
distlib==0.4.0
3434
# via virtualenv
3535
docopt==0.6.2
3636
# via coveralls
3737
docutils==0.21.2
3838
# via sphinx
39-
filelock==3.18.0
39+
filelock==3.19.1
4040
# via virtualenv
41-
identify==2.6.12
41+
identify==2.6.14
4242
# via pre-commit
4343
idna==3.10
4444
# via requests
@@ -54,7 +54,7 @@ markupsafe==3.0.2
5454
# via jinja2
5555
mccabe==0.7.0
5656
# via pylint
57-
mypy==1.16.1
57+
mypy==1.18.1
5858
# via -r requirements.dev.in
5959
mypy-extensions==1.1.0
6060
# via
@@ -72,11 +72,10 @@ pathspec==0.12.1
7272
# via
7373
# black
7474
# mypy
75-
pip==25.1.1
7675
# via pip-tools
77-
pip-tools==7.4.1
76+
pip-tools==7.5.0
7877
# via -r requirements.dev.in
79-
platformdirs==4.3.8
78+
platformdirs==4.4.0
8079
# via
8180
# black
8281
# pylint
@@ -85,29 +84,29 @@ pluggy==1.6.0
8584
# via
8685
# pytest
8786
# pytest-cov
88-
pre-commit==4.2.0
87+
pre-commit==4.3.0
8988
# via -r requirements.dev.in
9089
pydocstyle==6.3.0
9190
# via -r requirements.dev.in
9291
pygments==2.19.2
9392
# via
9493
# pytest
9594
# sphinx
96-
pylint==3.3.7
95+
pylint==3.3.8
9796
# via -r requirements.dev.in
9897
pyproject-hooks==1.2.0
9998
# via
10099
# build
101100
# pip-tools
102-
pytest==8.4.1
101+
pytest==8.4.2
103102
# via
104103
# -r requirements.dev.in
105104
# pytest-cov
106-
pytest-cov==6.2.1
105+
pytest-cov==7.0.0
107106
# via -r requirements.dev.in
108107
pyyaml==6.0.2
109108
# via pre-commit
110-
requests==2.32.4
109+
requests==2.32.5
111110
# via
112111
# -r requirements.in
113112
# coveralls
@@ -137,11 +136,11 @@ sphinxcontrib-serializinghtml==2.0.0
137136
# via sphinx
138137
tomlkit==0.13.3
139138
# via pylint
140-
typing-extensions==4.14.0
139+
typing-extensions==4.15.0
141140
# via mypy
142141
urllib3==2.5.0
143142
# via requests
144-
virtualenv==20.31.2
143+
virtualenv==20.34.0
145144
# via pre-commit
146145
wheel==0.45.1
147146
# via pip-tools

requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# This file was autogenerated by uv via the following command:
22
# uv pip compile requirements.in --output-file=requirements.txt
3-
certifi==2025.6.15
3+
certifi==2025.8.3
44
# via requests
5-
charset-normalizer==3.4.2
5+
charset-normalizer==3.4.3
66
# via requests
77
idna==3.10
88
# via requests
9-
requests==2.32.4
9+
requests==2.32.5
1010
# via -r requirements.in
1111
urllib3==2.5.0
1212
# via requests

tasks.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,13 @@ def compile_requirements(c: Context):
3232
c.run("uv pip compile requirements.in --output-file=requirements.txt --upgrade")
3333
reqs_time = subprocess.check_output(["date", "+%s"]).decode().strip()
3434
c.run("uv pip compile requirements.dev.in --output-file=requirements.dev.txt --upgrade")
35+
36+
# Remove pip from requirements.dev.txt to avoid triggering self-modification defence in Windows
37+
with open("requirements.dev.txt") as f:
38+
filtered_lines = [line for line in f if not line.startswith("pip==")]
39+
with open("requirements.dev.txt", "w") as f:
40+
f.writelines(filtered_lines)
41+
3542
end_time = subprocess.check_output(["date", "+%s"]).decode().strip()
3643
print(f"Req's compilation time: {int(reqs_time) - int(start_time)} seconds")
3744
print(f"Req's dev compilation time: {int(end_time) - int(reqs_time)} seconds")

0 commit comments

Comments
 (0)