Skip to content

Commit a6e697d

Browse files
committed
tweak pinning code
1 parent afc1d07 commit a6e697d

File tree

6 files changed

+46
-45
lines changed

6 files changed

+46
-45
lines changed

hypothesis-python/src/hypothesis/strategies/_internal/core.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1305,8 +1305,8 @@ def from_type_guarded(thing):
13051305
pass
13061306
if (hasattr(typing, "_TypedDictMeta") and type(thing) is typing._TypedDictMeta) or (
13071307
hasattr(types.typing_extensions, "_TypedDictMeta") # type: ignore
1308-
and type(thing) is types.typing_extensions._TypedDictMeta
1309-
): # type: ignore # pragma: no cover
1308+
and type(thing) is types.typing_extensions._TypedDictMeta # type: ignore
1309+
): # pragma: no cover
13101310

13111311
def _get_annotation_arg(key, annotation_type):
13121312
try:

requirements/coverage.txt

+7-7
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ async-timeout==5.0.1
1010
# via redis
1111
attrs==24.1.0
1212
# via
13-
# -r /home/runner/work/hypothesis/hypothesis/requirements/test.in
13+
# -r requirements/test.in
1414
# hypothesis (hypothesis-python/setup.py)
1515
black==24.10.0
1616
# via -r requirements/coverage.in
1717
click==8.1.7
1818
# via
1919
# -r requirements/coverage.in
2020
# black
21-
coverage[toml]==7.6.7
21+
coverage[toml]==7.6.8
2222
# via pytest-cov
2323
dpcontracts==0.6.0
2424
# via -r requirements/coverage.in
@@ -51,24 +51,24 @@ pandas==2.2.3
5151
pathspec==0.12.1
5252
# via black
5353
pexpect==4.9.0
54-
# via -r /home/runner/work/hypothesis/hypothesis/requirements/test.in
54+
# via -r requirements/test.in
5555
platformdirs==4.3.6
5656
# via black
5757
pluggy==1.5.0
5858
# via pytest
5959
ptyprocess==0.7.0
6060
# via pexpect
61-
pyarrow==18.0.0
61+
pyarrow==18.1.0
6262
# via -r requirements/coverage.in
6363
pytest==8.3.3
6464
# via
65-
# -r /home/runner/work/hypothesis/hypothesis/requirements/test.in
65+
# -r requirements/test.in
6666
# pytest-cov
6767
# pytest-xdist
6868
pytest-cov==6.0.0
6969
# via -r requirements/coverage.in
7070
pytest-xdist==3.6.1
71-
# via -r /home/runner/work/hypothesis/hypothesis/requirements/test.in
71+
# via -r requirements/test.in
7272
python-dateutil==2.9.0.post0
7373
# via
7474
# -r requirements/coverage.in
@@ -87,7 +87,7 @@ sortedcontainers==2.4.0
8787
# via
8888
# fakeredis
8989
# hypothesis (hypothesis-python/setup.py)
90-
tomli==2.1.0
90+
tomli==2.2.1
9191
# via
9292
# black
9393
# coverage

requirements/fuzzing.txt

+22-22
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@
55
# ./build.sh upgrade-requirements
66
#
77
annotated-types==0.7.0
8-
# via -r /home/runner/work/hypothesis/hypothesis/requirements/coverage.in
8+
# via -r requirements/coverage.in
99
async-timeout==5.0.1
1010
# via redis
1111
attrs==24.1.0
1212
# via
13-
# -r /home/runner/work/hypothesis/hypothesis/requirements/test.in
13+
# -r requirements/test.in
1414
# hypothesis
1515
# hypothesis (hypothesis-python/setup.py)
1616
black==24.10.0
1717
# via
18-
# -r /home/runner/work/hypothesis/hypothesis/requirements/coverage.in
18+
# -r requirements/coverage.in
1919
# hypofuzz
2020
# hypothesis
2121
blinker==1.9.0
@@ -26,11 +26,11 @@ charset-normalizer==3.4.0
2626
# via requests
2727
click==8.1.7
2828
# via
29-
# -r /home/runner/work/hypothesis/hypothesis/requirements/coverage.in
29+
# -r requirements/coverage.in
3030
# black
3131
# flask
3232
# hypothesis
33-
coverage[toml]==7.6.7
33+
coverage[toml]==7.6.8
3434
# via
3535
# hypofuzz
3636
# pytest-cov
@@ -43,7 +43,7 @@ dash-html-components==2.0.0
4343
dash-table==5.0.0
4444
# via dash
4545
dpcontracts==0.6.0
46-
# via -r /home/runner/work/hypothesis/hypothesis/requirements/coverage.in
46+
# via -r requirements/coverage.in
4747
exceptiongroup==1.2.2 ; python_version < "3.11"
4848
# via
4949
# hypothesis
@@ -52,12 +52,12 @@ exceptiongroup==1.2.2 ; python_version < "3.11"
5252
execnet==2.1.1
5353
# via pytest-xdist
5454
fakeredis==2.26.1
55-
# via -r /home/runner/work/hypothesis/hypothesis/requirements/coverage.in
55+
# via -r requirements/coverage.in
5656
flask==3.0.3
5757
# via dash
5858
hypofuzz==24.9.1
5959
# via -r requirements/fuzzing.in
60-
hypothesis[cli]==6.119.4
60+
hypothesis[cli]==6.121.1
6161
# via hypofuzz
6262
idna==3.10
6363
# via requests
@@ -70,10 +70,10 @@ itsdangerous==2.2.0
7070
jinja2==3.1.4
7171
# via flask
7272
lark==1.2.2
73-
# via -r /home/runner/work/hypothesis/hypothesis/requirements/coverage.in
73+
# via -r requirements/coverage.in
7474
libcst==1.5.1
7575
# via
76-
# -r /home/runner/work/hypothesis/hypothesis/requirements/coverage.in
76+
# -r requirements/coverage.in
7777
# hypofuzz
7878
markdown-it-py==3.0.0
7979
# via rich
@@ -89,7 +89,7 @@ nest-asyncio==1.6.0
8989
# via dash
9090
numpy==2.1.3
9191
# via
92-
# -r /home/runner/work/hypothesis/hypothesis/requirements/coverage.in
92+
# -r requirements/coverage.in
9393
# pandas
9494
packaging==24.2
9595
# via
@@ -98,12 +98,12 @@ packaging==24.2
9898
# pytest
9999
pandas==2.2.3
100100
# via
101-
# -r /home/runner/work/hypothesis/hypothesis/requirements/coverage.in
101+
# -r requirements/coverage.in
102102
# hypofuzz
103103
pathspec==0.12.1
104104
# via black
105105
pexpect==4.9.0
106-
# via -r /home/runner/work/hypothesis/hypothesis/requirements/test.in
106+
# via -r requirements/test.in
107107
platformdirs==4.3.6
108108
# via black
109109
plotly==5.24.1
@@ -114,27 +114,27 @@ psutil==6.1.0
114114
# via hypofuzz
115115
ptyprocess==0.7.0
116116
# via pexpect
117-
pyarrow==18.0.0
118-
# via -r /home/runner/work/hypothesis/hypothesis/requirements/coverage.in
117+
pyarrow==18.1.0
118+
# via -r requirements/coverage.in
119119
pygments==2.18.0
120120
# via rich
121121
pytest==8.3.3
122122
# via
123-
# -r /home/runner/work/hypothesis/hypothesis/requirements/test.in
123+
# -r requirements/test.in
124124
# hypofuzz
125125
# pytest-cov
126126
# pytest-xdist
127127
pytest-cov==6.0.0
128-
# via -r /home/runner/work/hypothesis/hypothesis/requirements/coverage.in
128+
# via -r requirements/coverage.in
129129
pytest-xdist==3.6.1
130-
# via -r /home/runner/work/hypothesis/hypothesis/requirements/test.in
130+
# via -r requirements/test.in
131131
python-dateutil==2.9.0.post0
132132
# via
133-
# -r /home/runner/work/hypothesis/hypothesis/requirements/coverage.in
133+
# -r requirements/coverage.in
134134
# pandas
135135
pytz==2024.2
136136
# via
137-
# -r /home/runner/work/hypothesis/hypothesis/requirements/coverage.in
137+
# -r requirements/coverage.in
138138
# pandas
139139
pyyaml==6.0.2
140140
# via libcst
@@ -159,14 +159,14 @@ sortedcontainers==2.4.0
159159
# hypothesis (hypothesis-python/setup.py)
160160
tenacity==9.0.0
161161
# via plotly
162-
tomli==2.1.0
162+
tomli==2.2.1
163163
# via
164164
# black
165165
# coverage
166166
# pytest
167167
typing-extensions==4.12.2
168168
# via
169-
# -r /home/runner/work/hypothesis/hypothesis/requirements/coverage.in
169+
# -r requirements/coverage.in
170170
# black
171171
# dash
172172
# fakeredis

requirements/test.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ pytest-xdist==3.6.1
3232
# via -r requirements/test.in
3333
sortedcontainers==2.4.0
3434
# via hypothesis (hypothesis-python/setup.py)
35-
tomli==2.1.0
35+
tomli==2.2.1
3636
# via pytest

requirements/tools.txt

+13-13
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ asttokens==2.4.1
1414
# via stack-data
1515
attrs==24.1.0
1616
# via
17-
# -r /home/runner/work/hypothesis/hypothesis/requirements/test.in
17+
# -r requirements/test.in
1818
# hypothesis (hypothesis-python/setup.py)
1919
autoflake==2.3.1
2020
# via shed
@@ -50,9 +50,9 @@ colorama==0.4.6
5050
# via tox
5151
com2ann==0.3.0
5252
# via shed
53-
coverage==7.6.7
53+
coverage==7.6.8
5454
# via -r requirements/tools.in
55-
cryptography==43.0.3
55+
cryptography==44.0.0
5656
# via
5757
# secretstorage
5858
# types-pyopenssl
@@ -151,7 +151,7 @@ mypy-extensions==1.0.0
151151
# via
152152
# black
153153
# mypy
154-
nh3==0.2.18
154+
nh3==0.2.19
155155
# via readme-renderer
156156
nodeenv==1.9.1
157157
# via pyright
@@ -171,11 +171,11 @@ parso==0.8.4
171171
# via jedi
172172
pathspec==0.12.1
173173
# via black
174-
pelican[markdown]==4.10.1
174+
pelican[markdown]==4.10.2
175175
# via -r requirements/tools.in
176176
pexpect==4.9.0
177177
# via
178-
# -r /home/runner/work/hypothesis/hypothesis/requirements/test.in
178+
# -r requirements/test.in
179179
# ipython
180180
pip-tools==7.4.1
181181
# via -r requirements/tools.in
@@ -217,10 +217,10 @@ pyright==1.1.389
217217
# via -r requirements/tools.in
218218
pytest==8.3.3
219219
# via
220-
# -r /home/runner/work/hypothesis/hypothesis/requirements/test.in
220+
# -r requirements/test.in
221221
# pytest-xdist
222222
pytest-xdist==3.6.1
223-
# via -r /home/runner/work/hypothesis/hypothesis/requirements/test.in
223+
# via -r requirements/test.in
224224
python-dateutil==2.9.0.post0
225225
# via
226226
# -r requirements/tools.in
@@ -252,7 +252,7 @@ rich==13.9.4
252252
# via
253253
# pelican
254254
# twine
255-
ruff==0.8.0
255+
ruff==0.8.1
256256
# via -r requirements/tools.in
257257
secretstorage==3.3.3
258258
# via keyring
@@ -309,7 +309,7 @@ stack-data==0.6.3
309309
# via ipython
310310
tokenize-rt==6.1.0
311311
# via pyupgrade
312-
tomli==2.1.0
312+
tomli==2.2.1
313313
# via
314314
# autoflake
315315
# black
@@ -338,7 +338,7 @@ types-pytz==2024.2.0.20241003
338338
# via -r requirements/tools.in
339339
types-redis==4.6.0.20241004
340340
# via -r requirements/tools.in
341-
types-setuptools==75.5.0.20241122
341+
types-setuptools==75.6.0.20241126
342342
# via types-cffi
343343
typing-extensions==4.12.2
344344
# via
@@ -357,9 +357,9 @@ urllib3==2.2.3
357357
# via
358358
# requests
359359
# twine
360-
virtualenv==20.27.1
360+
virtualenv==20.28.0
361361
# via tox
362-
watchfiles==0.24.0
362+
watchfiles==1.0.0
363363
# via pelican
364364
wcwidth==0.2.13
365365
# via prompt-toolkit

tooling/src/hypothesistooling/__main__.py

+1
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ def compile_requirements(*, upgrade=False):
267267
p = p.lower().replace("_", "-")
268268
if re.fullmatch(r"[a-z-]+", p):
269269
assert p + "==" in out_pkgs, f"Package `{p}` deleted from {out_file}"
270+
out_file.write_text(out_pkgs.replace(f"{tools.ROOT}/", ""))
270271

271272

272273
def update_python_versions():

0 commit comments

Comments
 (0)