Skip to content

Commit a1d1fe8

Browse files
committed
rename to reactpy-router
1 parent 8077994 commit a1d1fe8

20 files changed

+47
-47
lines changed

Diff for: .gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# --- JAVASCRIPT BUNDLES ---
22

3-
idom_router/bundle.js
3+
reactpy_router/bundle.js
44

55
# --- PYTHON IGNORE FILES ----
66

Diff for: MANIFEST.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
include README.md
2-
include idom_router/bundle.js
2+
include reactpy_router/bundle.js
33
include LICENSE

Diff for: README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
# idom-router
1+
# reactpy-router
22

3-
A URL router for IDOM
3+
A URL router for ReactPy
44

55
# Installation
66

77
Use `pip` to install this package:
88

99
```bash
10-
pip install idom-router
10+
pip install reactpy-router
1111
```
1212

1313
For a developer installation from source be sure to install [NPM](https://www.npmjs.com/) before running:
1414

1515
```bash
16-
git clone https://github.com/idom-team/idom-router
17-
cd idom-router
16+
git clone https://github.com/reactive-python/reactpy-router
17+
cd reactpy-router
1818
pip install -e . -r requirements.txt
1919
```
2020

@@ -45,16 +45,16 @@ like GitHub Actions.
4545

4646
# Releasing This Package
4747

48-
To release a new version of idom-router on PyPI:
48+
To release a new version of reactpy-router on PyPI:
4949

5050
1. Install [`twine`](https://twine.readthedocs.io/en/latest/) with `pip install twine`
51-
2. Update the `version = "x.y.z"` variable in `idom-router/__init__.py`
51+
2. Update the `version = "x.y.z"` variable in `reactpy-router/__init__.py`
5252
3. `git` add the changes to `__init__.py` and create a `git tag -a x.y.z -m 'comment'`
5353
4. Build the Python package with `python setup.py sdist bdist_wheel`
5454
5. Check the build artifacts `twine check --strict dist/*`
5555
6. Upload the build artifacts to [PyPI](https://pypi.org/) `twine upload dist/*`
5656

57-
To release a new version of `idom-router` on [NPM](https://www.npmjs.com/):
57+
To release a new version of `reactpy-router` on [NPM](https://www.npmjs.com/):
5858

5959
1. Update `js/package.json` with new npm package version
6060
2. Clean out prior builds `git clean -fdx`

Diff for: js/README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
# idom-router
1+
# reactpy-router
22

3-
A URL router for IDOM
3+
A URL router for ReactPy
44

55
# Package Installation
66

77
Requires [Node](https://nodejs.org/en/) to be installed:
88

99
```bash
10-
npm install --save idom-router
10+
npm install --save reactpy-router
1111
```
1212

1313
For a developer installation, `cd` into this directory and run:
@@ -18,5 +18,5 @@ npm run build
1818
```
1919

2020
This will install required dependencies and generate a Javascript bundle that is saved
21-
to `idom-router/bundle.js`` and is distributed with the
21+
to `reactpy-router/bundle.js`` and is distributed with the
2222
associated Python package.

Diff for: js/package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: js/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"name": "idom-router",
3-
"description": "A URL router for IDOM",
2+
"name": "reactpy-router",
3+
"description": "A URL router for ReactPy",
44
"author": "Ryan Morshead",
55
"repository": {
66
"type": "git",
7-
"url": "https://github.com/idom-team/idom-router"
7+
"url": "https://github.com/reactive-python/reactpy-router"
88
},
99
"main": "src/index.js",
1010
"files": [

Diff for: js/rollup.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import replace from "rollup-plugin-replace";
55
export default {
66
input: "src/index.js",
77
output: {
8-
file: "../idom_router/bundle.js",
8+
file: "../reactpy_router/bundle.js",
99
format: "esm",
1010
},
1111
plugins: [

Diff for: noxfile.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def test_style(session: Session) -> None:
3131
@session
3232
def test_types(session: Session) -> None:
3333
install_requirements(session, "check-types")
34-
session.run("mypy", "--strict", "idom_router")
34+
session.run("mypy", "--strict", "reactpy_router")
3535

3636

3737
@session
@@ -46,7 +46,7 @@ def test_suite(session: Session) -> None:
4646
session.log("Coverage won't be checked")
4747
session.install(".")
4848
else:
49-
posargs += ["--cov=idom_router", "--cov-report=term"]
49+
posargs += ["--cov=reactpy_router", "--cov-report=term"]
5050
session.install("-e", ".")
5151

5252
session.run("pytest", "tests", *posargs)
File renamed without changes.

Diff for: idom_router/core.py renamed to reactpy_router/core.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,21 @@
55
from typing import Any, Callable, Iterator, Sequence, TypeVar
66
from urllib.parse import parse_qs
77

8-
from idom import (
8+
from reactpy import (
99
component,
1010
create_context,
1111
use_context,
1212
use_location,
1313
use_memo,
1414
use_state,
1515
)
16-
from idom.backend.hooks import ConnectionContext, use_connection
17-
from idom.backend.types import Connection, Location
18-
from idom.core.types import VdomChild, VdomDict
19-
from idom.types import ComponentType, Context, Location
20-
from idom.web.module import export, module_from_file
16+
from reactpy.backend.hooks import ConnectionContext, use_connection
17+
from reactpy.backend.types import Connection, Location
18+
from reactpy.core.types import VdomChild, VdomDict
19+
from reactpy.types import ComponentType, Context, Location
20+
from reactpy.web.module import export, module_from_file
2121

22-
from idom_router.types import Route, RouteCompiler, Router, RouteResolver
22+
from reactpy_router.types import Route, RouteCompiler, Router, RouteResolver
2323

2424
R = TypeVar("R", bound=Route)
2525

@@ -114,7 +114,7 @@ def _match_route(
114114

115115

116116
_link = export(
117-
module_from_file("idom-router", file=Path(__file__).parent / "bundle.js"),
117+
module_from_file("reactpy-router", file=Path(__file__).parent / "bundle.js"),
118118
"Link",
119119
)
120120

Diff for: idom_router/simple.py renamed to reactpy_router/simple.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77
from typing_extensions import TypeAlias, TypedDict
88

9-
from idom_router.core import create_router
10-
from idom_router.types import Route
9+
from reactpy_router.core import create_router
10+
from reactpy_router.types import Route
1111

1212
__all__ = ["router"]
1313

Diff for: idom_router/types.py renamed to reactpy_router/types.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
from dataclasses import dataclass, field
44
from typing import Any, Sequence, TypeVar
55

6-
from idom.core.vdom import is_vdom
7-
from idom.types import ComponentType, Key
6+
from reactpy.core.vdom import is_vdom
7+
from reactpy.types import ComponentType, Key
88
from typing_extensions import Protocol, Self
99

1010

Diff for: requirements/check-style.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
black
22
flake8
33
flake8-print
4-
flake8_idom_hooks
4+
flake8_reactpy_hooks
55
isort

Diff for: requirements/check-types.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
mypy
2-
idom
2+
reactpy

Diff for: requirements/pkg-deps.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
idom >=1
1+
reactpy >=1
22
typing_extensions

Diff for: requirements/test-env.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ twine
22
pytest
33
pytest-asyncio
44
pytest-cov
5-
idom[testing,starlette]
5+
reactpy[testing,starlette]

Diff for: setup.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from setuptools.command.sdist import sdist
1111

1212
# the name of the project
13-
name = "idom_router"
13+
name = "reactpy_router"
1414

1515
# basic paths used to gather files
1616
here = os.path.abspath(os.path.dirname(__file__))
@@ -26,12 +26,12 @@
2626
"name": name,
2727
"python_requires": ">=3.7",
2828
"packages": find_packages(exclude=["tests*"]),
29-
"description": "A URL router for IDOM",
29+
"description": "A URL router for ReactPy",
3030
"author": "Ryan Morshead",
3131
"author_email": "[email protected]",
32-
"url": "https://github.com/idom-team/idom-router",
32+
"url": "https://github.com/reactive-python/reactpy-router",
3333
"platforms": "Linux, Mac OS X, Windows",
34-
"keywords": ["idom", "components"],
34+
"keywords": ["reactpy", "components"],
3535
"include_package_data": True,
3636
"zip_safe": False,
3737
"classifiers": [

Diff for: tests/conftest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import pytest
2-
from idom.testing import BackendFixture, DisplayFixture
32
from playwright.async_api import async_playwright
3+
from reactpy.testing import BackendFixture, DisplayFixture
44

55

66
def pytest_addoption(parser) -> None:

Diff for: tests/test_core.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
from idom import Ref, component, html, use_location
2-
from idom.testing import DisplayFixture
1+
from reactpy import Ref, component, html, use_location
2+
from reactpy.testing import DisplayFixture
33

4-
from idom_router import link, route, simple, use_params, use_query
4+
from reactpy_router import link, route, simple, use_params, use_query
55

66

77
async def test_simple_router(display: DisplayFixture):

Diff for: tests/test_simple.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
import pytest
55

6-
from idom_router.simple import parse_path
6+
from reactpy_router.simple import parse_path
77

88

99
def test_parse_path():

0 commit comments

Comments
 (0)