Skip to content

Commit a6f7d23

Browse files
authored
rename to reactpy-router (#15)
1 parent 8077994 commit a6f7d23

20 files changed

+47
-47
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
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

MANIFEST.in

Lines changed: 1 addition & 1 deletion
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

README.md

Lines changed: 8 additions & 8 deletions
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`

js/README.md

Lines changed: 4 additions & 4 deletions
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.

js/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/package.json

Lines changed: 3 additions & 3 deletions
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": [

js/rollup.config.js

Lines changed: 1 addition & 1 deletion
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: [

noxfile.py

Lines changed: 2 additions & 2 deletions
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.

idom_router/core.py renamed to reactpy_router/core.py

Lines changed: 8 additions & 8 deletions
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

0 commit comments

Comments
 (0)