Skip to content

Commit 4658004

Browse files
committed
clean-up, sync settings with core, and bump versions
1 parent 112512c commit 4658004

File tree

3 files changed

+18
-13
lines changed

3 files changed

+18
-13
lines changed

pyproject.toml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ readme = "README.md"
1313
keywords = ["React", "ReactJS", "ReactPy", "components"]
1414
license = "MIT"
1515
authors = [{ name = "Mark Bakhit", email = "archiethemonger@gmail.com" }]
16-
requires-python = ">=3.9"
16+
requires-python = ">=3.11"
1717
classifiers = [
18-
"Programming Language :: Python :: 3.9",
19-
"Programming Language :: Python :: 3.10",
2018
"Programming Language :: Python :: 3.11",
2119
"Programming Language :: Python :: 3.12",
20+
"Programming Language :: Python :: 3.13",
21+
"Programming Language :: Python :: 3.14",
2222
"Operating System :: OS Independent",
2323
"Intended Audience :: Developers",
2424
"Intended Audience :: Science/Research",
@@ -29,7 +29,7 @@ classifiers = [
2929
"Typing :: Typed",
3030
]
3131
dependencies = [
32-
"reactpy[asgi]>=2.0.0b10, <3.0.0",
32+
"reactpy[asgi]>=2.0.0b10, <3.0.0",
3333
"typing_extensions",
3434
"jsonpointer==3.*",
3535
]
@@ -50,6 +50,7 @@ artifacts = ["/src/reactpy_router/static/"]
5050

5151
[tool.hatch.metadata]
5252
license-files = { paths = ["LICENSE.md"] }
53+
allow-direct-references = true
5354

5455
[tool.hatch.envs.default]
5556
installer = "uv"
@@ -77,16 +78,16 @@ extra-dependencies = [
7778
"orjson",
7879
]
7980
randomize = true
80-
matrix-name-format = "{variable}-{value}"
8181

8282
[[tool.hatch.envs.hatch-test.matrix]]
83-
python = ["3.9", "3.10", "3.11", "3.12"]
83+
python = ["3.11", "3.12", "3.13", "3.14"]
8484

8585
[tool.pytest.ini_options]
86-
addopts = """\
87-
--strict-config
88-
--strict-markers
89-
"""
86+
addopts = ["--strict-config", "--strict-markers"]
87+
filterwarnings = """
88+
ignore::DeprecationWarning:uvicorn.*
89+
ignore::DeprecationWarning:websockets.*
90+
"""
9091

9192
#######################################
9293
# >>> Hatch Documentation Scripts <<< #
@@ -137,6 +138,10 @@ type_check = ["pyright src"]
137138
detached = true
138139

139140
[tool.hatch.envs.javascript.scripts]
141+
build = [
142+
'bun install --cwd "src/js"',
143+
'bun build "src/js/src/index.ts" --outfile "src/reactpy_router/static/bundle.js" --minify',
144+
]
140145
check = ['bun install --cwd "src/js"', 'bun run --cwd "src/js" check']
141146
fix = ['bun install --cwd "src/js"', ' bun run --cwd "src/js" format']
142147

src/reactpy_router/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "2.0.0"
1+
__version__ = "3.0.0b1"
22

33

44
from reactpy_router.components import link, navigate, route

src/reactpy_router/routers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
from logging import getLogger
77
from typing import TYPE_CHECKING, Any, Union, cast
88

9-
from reactpy import component, use_memo, use_state
10-
from reactpy.core.hooks import ConnectionContext, use_connection
9+
from reactpy import component, use_connection, use_memo, use_state
10+
from reactpy.core.hooks import ConnectionContext
1111
from reactpy.types import Component, Connection, Location, VdomDict
1212

1313
from reactpy_router.components import History

0 commit comments

Comments
 (0)