Skip to content

Commit

Permalink
tweak pinning code
Browse files Browse the repository at this point in the history
  • Loading branch information
Zac-HD committed Nov 29, 2024
1 parent afc1d07 commit a6e697d
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 45 deletions.
4 changes: 2 additions & 2 deletions hypothesis-python/src/hypothesis/strategies/_internal/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1305,8 +1305,8 @@ def from_type_guarded(thing):
pass
if (hasattr(typing, "_TypedDictMeta") and type(thing) is typing._TypedDictMeta) or (
hasattr(types.typing_extensions, "_TypedDictMeta") # type: ignore
and type(thing) is types.typing_extensions._TypedDictMeta
): # type: ignore # pragma: no cover
and type(thing) is types.typing_extensions._TypedDictMeta # type: ignore
): # pragma: no cover

def _get_annotation_arg(key, annotation_type):
try:
Expand Down
14 changes: 7 additions & 7 deletions requirements/coverage.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ async-timeout==5.0.1
# via redis
attrs==24.1.0
# via
# -r /home/runner/work/hypothesis/hypothesis/requirements/test.in
# -r requirements/test.in
# hypothesis (hypothesis-python/setup.py)
black==24.10.0
# via -r requirements/coverage.in
click==8.1.7
# via
# -r requirements/coverage.in
# black
coverage[toml]==7.6.7
coverage[toml]==7.6.8
# via pytest-cov
dpcontracts==0.6.0
# via -r requirements/coverage.in
Expand Down Expand Up @@ -51,24 +51,24 @@ pandas==2.2.3
pathspec==0.12.1
# via black
pexpect==4.9.0
# via -r /home/runner/work/hypothesis/hypothesis/requirements/test.in
# via -r requirements/test.in
platformdirs==4.3.6
# via black
pluggy==1.5.0
# via pytest
ptyprocess==0.7.0
# via pexpect
pyarrow==18.0.0
pyarrow==18.1.0
# via -r requirements/coverage.in
pytest==8.3.3
# via
# -r /home/runner/work/hypothesis/hypothesis/requirements/test.in
# -r requirements/test.in
# pytest-cov
# pytest-xdist
pytest-cov==6.0.0
# via -r requirements/coverage.in
pytest-xdist==3.6.1
# via -r /home/runner/work/hypothesis/hypothesis/requirements/test.in
# via -r requirements/test.in
python-dateutil==2.9.0.post0
# via
# -r requirements/coverage.in
Expand All @@ -87,7 +87,7 @@ sortedcontainers==2.4.0
# via
# fakeredis
# hypothesis (hypothesis-python/setup.py)
tomli==2.1.0
tomli==2.2.1
# via
# black
# coverage
Expand Down
44 changes: 22 additions & 22 deletions requirements/fuzzing.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@
# ./build.sh upgrade-requirements
#
annotated-types==0.7.0
# via -r /home/runner/work/hypothesis/hypothesis/requirements/coverage.in
# via -r requirements/coverage.in
async-timeout==5.0.1
# via redis
attrs==24.1.0
# via
# -r /home/runner/work/hypothesis/hypothesis/requirements/test.in
# -r requirements/test.in
# hypothesis
# hypothesis (hypothesis-python/setup.py)
black==24.10.0
# via
# -r /home/runner/work/hypothesis/hypothesis/requirements/coverage.in
# -r requirements/coverage.in
# hypofuzz
# hypothesis
blinker==1.9.0
Expand All @@ -26,11 +26,11 @@ charset-normalizer==3.4.0
# via requests
click==8.1.7
# via
# -r /home/runner/work/hypothesis/hypothesis/requirements/coverage.in
# -r requirements/coverage.in
# black
# flask
# hypothesis
coverage[toml]==7.6.7
coverage[toml]==7.6.8
# via
# hypofuzz
# pytest-cov
Expand All @@ -43,7 +43,7 @@ dash-html-components==2.0.0
dash-table==5.0.0
# via dash
dpcontracts==0.6.0
# via -r /home/runner/work/hypothesis/hypothesis/requirements/coverage.in
# via -r requirements/coverage.in
exceptiongroup==1.2.2 ; python_version < "3.11"
# via
# hypothesis
Expand All @@ -52,12 +52,12 @@ exceptiongroup==1.2.2 ; python_version < "3.11"
execnet==2.1.1
# via pytest-xdist
fakeredis==2.26.1
# via -r /home/runner/work/hypothesis/hypothesis/requirements/coverage.in
# via -r requirements/coverage.in
flask==3.0.3
# via dash
hypofuzz==24.9.1
# via -r requirements/fuzzing.in
hypothesis[cli]==6.119.4
hypothesis[cli]==6.121.1
# via hypofuzz
idna==3.10
# via requests
Expand All @@ -70,10 +70,10 @@ itsdangerous==2.2.0
jinja2==3.1.4
# via flask
lark==1.2.2
# via -r /home/runner/work/hypothesis/hypothesis/requirements/coverage.in
# via -r requirements/coverage.in
libcst==1.5.1
# via
# -r /home/runner/work/hypothesis/hypothesis/requirements/coverage.in
# -r requirements/coverage.in
# hypofuzz
markdown-it-py==3.0.0
# via rich
Expand All @@ -89,7 +89,7 @@ nest-asyncio==1.6.0
# via dash
numpy==2.1.3
# via
# -r /home/runner/work/hypothesis/hypothesis/requirements/coverage.in
# -r requirements/coverage.in
# pandas
packaging==24.2
# via
Expand All @@ -98,12 +98,12 @@ packaging==24.2
# pytest
pandas==2.2.3
# via
# -r /home/runner/work/hypothesis/hypothesis/requirements/coverage.in
# -r requirements/coverage.in
# hypofuzz
pathspec==0.12.1
# via black
pexpect==4.9.0
# via -r /home/runner/work/hypothesis/hypothesis/requirements/test.in
# via -r requirements/test.in
platformdirs==4.3.6
# via black
plotly==5.24.1
Expand All @@ -114,27 +114,27 @@ psutil==6.1.0
# via hypofuzz
ptyprocess==0.7.0
# via pexpect
pyarrow==18.0.0
# via -r /home/runner/work/hypothesis/hypothesis/requirements/coverage.in
pyarrow==18.1.0
# via -r requirements/coverage.in
pygments==2.18.0
# via rich
pytest==8.3.3
# via
# -r /home/runner/work/hypothesis/hypothesis/requirements/test.in
# -r requirements/test.in
# hypofuzz
# pytest-cov
# pytest-xdist
pytest-cov==6.0.0
# via -r /home/runner/work/hypothesis/hypothesis/requirements/coverage.in
# via -r requirements/coverage.in
pytest-xdist==3.6.1
# via -r /home/runner/work/hypothesis/hypothesis/requirements/test.in
# via -r requirements/test.in
python-dateutil==2.9.0.post0
# via
# -r /home/runner/work/hypothesis/hypothesis/requirements/coverage.in
# -r requirements/coverage.in
# pandas
pytz==2024.2
# via
# -r /home/runner/work/hypothesis/hypothesis/requirements/coverage.in
# -r requirements/coverage.in
# pandas
pyyaml==6.0.2
# via libcst
Expand All @@ -159,14 +159,14 @@ sortedcontainers==2.4.0
# hypothesis (hypothesis-python/setup.py)
tenacity==9.0.0
# via plotly
tomli==2.1.0
tomli==2.2.1
# via
# black
# coverage
# pytest
typing-extensions==4.12.2
# via
# -r /home/runner/work/hypothesis/hypothesis/requirements/coverage.in
# -r requirements/coverage.in
# black
# dash
# fakeredis
Expand Down
2 changes: 1 addition & 1 deletion requirements/test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ pytest-xdist==3.6.1
# via -r requirements/test.in
sortedcontainers==2.4.0
# via hypothesis (hypothesis-python/setup.py)
tomli==2.1.0
tomli==2.2.1
# via pytest
26 changes: 13 additions & 13 deletions requirements/tools.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ asttokens==2.4.1
# via stack-data
attrs==24.1.0
# via
# -r /home/runner/work/hypothesis/hypothesis/requirements/test.in
# -r requirements/test.in
# hypothesis (hypothesis-python/setup.py)
autoflake==2.3.1
# via shed
Expand Down Expand Up @@ -50,9 +50,9 @@ colorama==0.4.6
# via tox
com2ann==0.3.0
# via shed
coverage==7.6.7
coverage==7.6.8
# via -r requirements/tools.in
cryptography==43.0.3
cryptography==44.0.0
# via
# secretstorage
# types-pyopenssl
Expand Down Expand Up @@ -151,7 +151,7 @@ mypy-extensions==1.0.0
# via
# black
# mypy
nh3==0.2.18
nh3==0.2.19
# via readme-renderer
nodeenv==1.9.1
# via pyright
Expand All @@ -171,11 +171,11 @@ parso==0.8.4
# via jedi
pathspec==0.12.1
# via black
pelican[markdown]==4.10.1
pelican[markdown]==4.10.2
# via -r requirements/tools.in
pexpect==4.9.0
# via
# -r /home/runner/work/hypothesis/hypothesis/requirements/test.in
# -r requirements/test.in
# ipython
pip-tools==7.4.1
# via -r requirements/tools.in
Expand Down Expand Up @@ -217,10 +217,10 @@ pyright==1.1.389
# via -r requirements/tools.in
pytest==8.3.3
# via
# -r /home/runner/work/hypothesis/hypothesis/requirements/test.in
# -r requirements/test.in
# pytest-xdist
pytest-xdist==3.6.1
# via -r /home/runner/work/hypothesis/hypothesis/requirements/test.in
# via -r requirements/test.in
python-dateutil==2.9.0.post0
# via
# -r requirements/tools.in
Expand Down Expand Up @@ -252,7 +252,7 @@ rich==13.9.4
# via
# pelican
# twine
ruff==0.8.0
ruff==0.8.1
# via -r requirements/tools.in
secretstorage==3.3.3
# via keyring
Expand Down Expand Up @@ -309,7 +309,7 @@ stack-data==0.6.3
# via ipython
tokenize-rt==6.1.0
# via pyupgrade
tomli==2.1.0
tomli==2.2.1
# via
# autoflake
# black
Expand Down Expand Up @@ -338,7 +338,7 @@ types-pytz==2024.2.0.20241003
# via -r requirements/tools.in
types-redis==4.6.0.20241004
# via -r requirements/tools.in
types-setuptools==75.5.0.20241122
types-setuptools==75.6.0.20241126
# via types-cffi
typing-extensions==4.12.2
# via
Expand All @@ -357,9 +357,9 @@ urllib3==2.2.3
# via
# requests
# twine
virtualenv==20.27.1
virtualenv==20.28.0
# via tox
watchfiles==0.24.0
watchfiles==1.0.0
# via pelican
wcwidth==0.2.13
# via prompt-toolkit
Expand Down
1 change: 1 addition & 0 deletions tooling/src/hypothesistooling/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ def compile_requirements(*, upgrade=False):
p = p.lower().replace("_", "-")
if re.fullmatch(r"[a-z-]+", p):
assert p + "==" in out_pkgs, f"Package `{p}` deleted from {out_file}"
out_file.write_text(out_pkgs.replace(f"{tools.ROOT}/", ""))


def update_python_versions():
Expand Down

0 comments on commit a6e697d

Please sign in to comment.