Skip to content

Commit cc0c813

Browse files
authored
Merge pull request #4485 from tybug/liam-update-deps
Update pinned dependencies (manual)
2 parents 524d63b + f50920e commit cc0c813

File tree

29 files changed

+105
-68
lines changed

29 files changed

+105
-68
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,8 @@ jobs:
239239
NODE_VERSION: 22
240240
# Note that the versions below are updated by `update_pyodide_versions()` in our weekly cronjob.
241241
# The versions of pyodide-build and the Pyodide runtime may differ.
242-
PYODIDE_VERSION: 0.27.5
243-
PYODIDE_BUILD_VERSION: 0.30.0
242+
PYODIDE_VERSION: 0.27.7
243+
PYODIDE_BUILD_VERSION: 0.30.5
244244
PYTHON_VERSION: 3.12.7
245245
steps:
246246
- uses: actions/checkout@v3

build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ if [ -n "${GITHUB_ACTIONS-}" ] || [ -n "${CODESPACES-}" ] ; then
2525
else
2626
# Otherwise, we install it from scratch
2727
# NOTE: tooling keeps this version in sync with ci_version in tooling
28-
"$SCRIPTS/ensure-python.sh" 3.10.17
29-
PYTHON=$(pythonloc 3.10.17)/bin/python
28+
"$SCRIPTS/ensure-python.sh" 3.10.18
29+
PYTHON=$(pythonloc 3.10.18)/bin/python
3030
fi
3131

3232
TOOL_REQUIREMENTS="$ROOT/requirements/tools.txt"

hypothesis-python/RELEASE.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
RELEASE_TYPE: patch
2+
3+
This patch updates our vendored `list of top-level domains <https://www.iana.org/domains/root/db>`__,
4+
which is used by the provisional :func:`~hypothesis.provisional.domains` strategy.

hypothesis-python/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ pandas = ["pandas>=1.1"]
111111
pytest = ["pytest>=4.6"]
112112
dpcontracts = ["dpcontracts>=0.4"]
113113
redis = ["redis>=3.0.0"]
114-
crosshair = ["hypothesis-crosshair>=0.0.23", "crosshair-tool>=0.0.88"]
114+
crosshair = ["hypothesis-crosshair>=0.0.24", "crosshair-tool>=0.0.93"]
115115
# zoneinfo is an odd one: every dependency is platform-conditional.
116116
zoneinfo = ["tzdata>=2025.2; sys_platform == 'win32' or sys_platform == 'emscripten'"]
117117
# We only support Django versions with upstream support - see
@@ -121,7 +121,7 @@ zoneinfo = ["tzdata>=2025.2; sys_platform == 'win32' or sys_platform == 'emscrip
121121
django = ["django>=4.2"]
122122
watchdog = ["watchdog>=4.0.0"]
123123
# Avoid changing this by hand. This is automatically updated by update_changelog_and_version
124-
all = ["black>=19.10b0", "click>=7.0", "crosshair-tool>=0.0.88", "django>=4.2", "dpcontracts>=0.4", "hypothesis-crosshair>=0.0.23", "lark>=0.10.1", "libcst>=0.3.16", "numpy>=1.19.3", "pandas>=1.1", "pytest>=4.6", "python-dateutil>=1.4", "pytz>=2014.1", "redis>=3.0.0", "rich>=9.0.0", "tzdata>=2025.2; sys_platform == 'win32' or sys_platform == 'emscripten'", "watchdog>=4.0.0"]
124+
all = ["black>=19.10b0", "click>=7.0", "crosshair-tool>=0.0.93", "django>=4.2", "dpcontracts>=0.4", "hypothesis-crosshair>=0.0.24", "lark>=0.10.1", "libcst>=0.3.16", "numpy>=1.19.3", "pandas>=1.1", "pytest>=4.6", "python-dateutil>=1.4", "pytz>=2014.1", "redis>=3.0.0", "rich>=9.0.0", "tzdata>=2025.2; sys_platform == 'win32' or sys_platform == 'emscripten'", "watchdog>=4.0.0"]
125125

126126
[tool.setuptools.dynamic]
127127
version = {attr = "hypothesis.version.__version__"}

hypothesis-python/scripts/other-tests.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ $PYTEST tests/redis/
3333
pip uninstall -y redis fakeredis
3434

3535
$PYTEST tests/typing_extensions/
36-
if [[ "$HYPOTHESIS_PROFILE" != "crosshair" ]]; then
37-
pip uninstall -y typing_extensions
36+
if [ "$HYPOTHESIS_PROFILE" != "crosshair" ] && [ "$(python -c 'import sys; print(sys.version_info[:2] > (3, 10))')" = "True" ]; then
37+
pip uninstall -y typing-extensions
3838
fi
3939

4040
pip install "$(grep 'annotated-types==' ../requirements/coverage.txt)"

hypothesis-python/src/hypothesis/_settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ class settings(metaclass=settingsMeta):
460460
"default",
461461
max_examples=100,
462462
derandomize=False,
463-
database=not_set, # see settings.database for details
463+
database=not_set, # see settings.database for the default database
464464
verbosity=Verbosity.normal,
465465
phases=tuple(Phase),
466466
stateful_step_count=50,

hypothesis-python/src/hypothesis/database.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,16 @@ def __call__(self, *args: Any, **kwargs: Any) -> "ExampleDatabase":
138138
# downstream ExampleDatabase subclasses too.
139139
if "sphinx" in sys.modules:
140140
try:
141-
from sphinx.ext.autodoc import _METACLASS_CALL_BLACKLIST
141+
import sphinx.ext.autodoc
142142

143-
_METACLASS_CALL_BLACKLIST.append("hypothesis.database._EDMeta.__call__")
143+
signature = "hypothesis.database._EDMeta.__call__"
144+
# _METACLASS_CALL_BLACKLIST is a frozenset in later sphinx versions
145+
if isinstance(sphinx.ext.autodoc._METACLASS_CALL_BLACKLIST, frozenset):
146+
sphinx.ext.autodoc._METACLASS_CALL_BLACKLIST = (
147+
sphinx.ext.autodoc._METACLASS_CALL_BLACKLIST | {signature}
148+
)
149+
else:
150+
sphinx.ext.autodoc._METACLASS_CALL_BLACKLIST.append(signature)
144151
except Exception:
145152
pass
146153

hypothesis-python/src/hypothesis/extra/ghostwriter.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@
9090
from typing import (
9191
Any,
9292
Callable,
93-
DefaultDict,
9493
ForwardRef,
9594
NamedTuple,
9695
Optional,
@@ -886,7 +885,7 @@ def _make_test_body(
886885
def _annotate_args(
887886
argnames: Iterable[str], funcs: Iterable[Callable], imports: ImportSet
888887
) -> Iterable[str]:
889-
arg_parameters: DefaultDict[str, set[Any]] = defaultdict(set)
888+
arg_parameters: defaultdict[str, set[Any]] = defaultdict(set)
890889
for func in funcs:
891890
try:
892891
params = tuple(get_signature(func, eval_str=True).parameters.values())

hypothesis-python/src/hypothesis/internal/conjecture/datatree.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
# obtain one at https://mozilla.org/MPL/2.0/.
1010

1111
import math
12-
from collections.abc import Generator
12+
from collections.abc import Generator, Set
1313
from random import Random
14-
from typing import TYPE_CHECKING, AbstractSet, Final, Optional, Union, cast
14+
from typing import TYPE_CHECKING, Final, Optional, Union, cast
1515

1616
import attr
1717

@@ -431,7 +431,7 @@ class TreeNode:
431431
is_exhausted: bool = attr.ib(default=False, init=False)
432432

433433
@property
434-
def forced(self) -> AbstractSet[int]:
434+
def forced(self) -> Set[int]:
435435
if not self.__forced:
436436
return EMPTY
437437
return self.__forced

hypothesis-python/src/hypothesis/internal/conjecture/engine.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from datetime import timedelta
2020
from enum import Enum
2121
from random import Random, getrandbits
22-
from typing import Callable, Final, List, Literal, NoReturn, Optional, Union, cast
22+
from typing import Callable, Final, Literal, NoReturn, Optional, Union, cast
2323

2424
from hypothesis import HealthCheck, Phase, Verbosity, settings as Settings
2525
from hypothesis._settings import local_settings, note_deprecation
@@ -108,7 +108,7 @@ class HealthCheckState:
108108
valid_examples: int = field(default=0)
109109
invalid_examples: int = field(default=0)
110110
overrun_examples: int = field(default=0)
111-
draw_times: "defaultdict[str, List[float]]" = field(
111+
draw_times: defaultdict[str, list[float]] = field(
112112
default_factory=lambda: defaultdict(list)
113113
)
114114

0 commit comments

Comments
 (0)