Skip to content

Commit ffc7f38

Browse files
committed
rename to reactpy
1 parent 974923c commit ffc7f38

File tree

12 files changed

+37
-34
lines changed

12 files changed

+37
-34
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ __pycache__
77

88
# --- content generated by tests ---
99
test-repo
10-
idom
10+
reactpy

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2020 idom-team
3+
Copyright (c) 2020 reactive-python
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
# IDOM Package Cookiecutter
1+
# ReactPy Package Cookiecutter
22

3-
![Test](https://github.com/idom-team/idom-package-cookiecutter/workflows/Test/badge.svg?branch=main)
3+
![Test](https://github.com/reactive-python/reactpy-package-cookiecutter/workflows/Test/badge.svg?branch=main)
44

5-
A [`cookiecutter`](https://cookiecutter.readthedocs.io/en/1.7.2/README.html) template for packaging Javascript components with IDOM
5+
A [`cookiecutter`](https://cookiecutter.readthedocs.io/en/1.7.2/README.html) template for packaging Javascript components with ReactPy
66

7-
# About IDOM
7+
# About ReactPy
88

9-
IDOM is a framework for creating highly interactive web pages purely in Python. However,
10-
IDOM also provides a way to natively interface with the Javascript ecosystem. This
9+
ReactPy is a framework for creating highly interactive web pages purely in Python. However,
10+
ReactPy also provides a way to natively interface with the Javascript ecosystem. This
1111
repository defines a basic template for creating packages wich distribute Javascript for
12-
use in IDOM-based applications.
12+
use in ReactPy-based applications.
1313

14-
For more information about IDOM refer to its [documentation](https://idom-docs.herokuapp.com/docs/index.html).
14+
For more information about ReactPy refer to its [documentation](https://reactpy-docs.herokuapp.com/docs/index.html).
1515

1616
# Usage
1717

@@ -24,7 +24,7 @@ pip install cookiecutter
2424
Then use this repostory template as a cookiecutter to initalize a repository:
2525

2626
```bash
27-
cookiecutter https://github.com/idom-team/idom-react-component-cookiecutter.git
27+
cookiecutter https://github.com/reactive-python/reactpy-react-component-cookiecutter.git
2828
```
2929

3030
As the template is being constructed you will be prompted to fill out the following information:

cookiecutter.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
"repository_url": "",
77
"python_package_name": "",
88
"npm_package_name": "",
9-
"project_short_description": "A custom component library for IDOM"
9+
"project_short_description": "A custom component library for ReactPy"
1010
}

noxfile.py

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,24 @@ def wrapper(session: Session) -> None:
2828
return decorator
2929

3030

31-
def install_latest_idom(session_func: SessionFunc) -> SessionFunc:
32-
# install the latest version of IDOM by pulling it from the main repo
31+
def install_latest_reactpy(session_func: SessionFunc) -> SessionFunc:
32+
# install the latest version of ReactPy by pulling it from the main repo
3333

3434
@wraps(session_func)
3535
def wrapper(session: Session) -> None:
3636
try:
3737
session.run(
38-
"git", "clone", "https://github.com/idom-team/idom.git", external=True
38+
"git",
39+
"clone",
40+
"https://github.com/reactive-python/reactpy.git",
41+
external=True,
3942
)
40-
session.install("./idom[testing,starlette]")
43+
session.install("./reactpy[testing,starlette]")
4144
session_func(session)
4245
finally:
43-
idom_dir = HERE / "idom"
44-
if idom_dir.exists():
45-
rmtree(idom_dir)
46+
reactpy_dir = HERE / "reactpy"
47+
if reactpy_dir.exists():
48+
rmtree(reactpy_dir)
4649

4750
return wrapper
4851

@@ -55,7 +58,7 @@ def test(session: Session) -> None:
5558

5659
@session
5760
@build_test_repo()
58-
@install_latest_idom
61+
@install_latest_reactpy
5962
def test_suite(session: Session) -> None:
6063
session.chdir("test-repo")
6164
session.run("playwright", "install", "chromium")

test-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ default_context:
66
repository_url: "https://test.com"
77
python_package_name: "testpypkg"
88
npm_package_name: "testjspkg"
9-
project_short_description: "A custom component library for IDOM"
9+
project_short_description: "A custom component library for ReactPy"

{{cookiecutter.repository_name}}/js/package-lock.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
twine
22
pytest
33
pytest-asyncio
4-
idom[testing,starlette]
4+
reactpy[testing,starlette]

{{cookiecutter.repository_name}}/setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@
2626
package = {
2727
"name": name,
2828
"python_requires": ">=3.7",
29-
"install_requires": ["idom>=0.39.0"],
29+
"install_requires": ["reactpy>=0.39.0"],
3030
"packages": find_packages(exclude=["tests*"]),
3131
"description": "{{ cookiecutter.project_short_description }}",
3232
"author": "{{ cookiecutter.author_name }}",
3333
"author_email": "{{ cookiecutter.author_email }}",
3434
"url": "{{ cookiecutter.repository_url }}",
3535
"platforms": "Linux, Mac OS X, Windows",
36-
"keywords": ["idom", "components"],
36+
"keywords": ["reactpy", "components"],
3737
"include_package_data": True,
3838
"zip_safe": False,
3939
"classifiers": [

{{cookiecutter.repository_name}}/tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import pytest
22
from playwright.async_api import async_playwright
3-
from idom.testing import DisplayFixture, BackendFixture
3+
from reactpy.testing import DisplayFixture, BackendFixture
44

55

66
def pytest_addoption(parser) -> None:

0 commit comments

Comments
 (0)