Skip to content

Commit cc2836b

Browse files
committed
Remove Python 3.9 support
1 parent 8581391 commit cc2836b

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

.github/workflows/check.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
job-name: "python-{0} {1}"
2828
run-cmd: "hatch test"
2929
runs-on: '["ubuntu-latest", "macos-latest", "windows-latest"]'
30-
python-version: '["3.9", "3.10", "3.11"]'
30+
python-version: '["3.10", "3.11", "3.12", "3.13"]'
3131
test-documentation:
3232
uses: ./.github/workflows/.hatch-run.yml
3333
with:

docs/source/about/changelog.rst

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Unreleased
2020
- :pull:`1113` - Added ``reactpy.ReactPyMiddleware`` that can be used to run ReactPy with any ASGI compatible framework.
2121
- :pull:`1113` - Added ``reactpy.ReactPyMiddleware`` that can be used to run ReactPy with any ASGI compatible framework.
2222
- :pull:`1113` - Added ``uvicorn`` and ``jinja`` installation extras (for example ``pip install reactpy[uvicorn,jinja]``).
23+
- :pull:`1113` - Added support for Python 3.12 and 3.13.
2324

2425
**Changed**
2526

@@ -43,6 +44,7 @@ Unreleased
4344
- :pull:`1113` - Removed ``reactpy.core.types`` module. Use ``reactpy.types`` instead.
4445
- :pull:`1113` - All backend related installation extras (such as ``pip install reactpy[starlette]``) have been removed.
4546
- :pull:`1113` - Removed deprecated function ``module_from_template``.
47+
- :pull:`1113` - Removed support for Python 3.9.
4648

4749
**Fixed**
4850

pyproject.toml

+3-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ extra-dependencies = [
101101
]
102102

103103
[[tool.hatch.envs.hatch-test.matrix]]
104-
python = ["3.9", "3.10", "3.11", "3.12"]
104+
python = ["3.10", "3.11", "3.12", "3.13"]
105105

106106
[tool.pytest.ini_options]
107107
addopts = """\
@@ -111,10 +111,12 @@ addopts = """\
111111
filterwarnings = """
112112
ignore::DeprecationWarning:uvicorn.*
113113
ignore::DeprecationWarning:websockets.*
114+
ignore::UserWarning:tests.test_core.test_vdom
114115
"""
115116
testpaths = "tests"
116117
xfail_strict = true
117118
asyncio_mode = "auto"
119+
asyncio_default_fixture_loop_scope = "function"
118120
log_cli_level = "INFO"
119121

120122
#######################################

src/reactpy/testing/backend.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,7 @@ async def __aexit__(
138138
msg = "Unexpected logged exception"
139139
raise LogAssertionError(msg) from logged_errors[0]
140140

141-
await asyncio.wait_for(
142-
self.webserver.shutdown(), timeout=REACTPY_TESTS_DEFAULT_TIMEOUT.current
143-
)
141+
await asyncio.wait_for(self.webserver.shutdown(), timeout=20)
144142

145143
async def restart(self) -> None:
146144
"""Restart the server"""

0 commit comments

Comments
 (0)