Skip to content

Commit e0699cb

Browse files
committed
Rename simple-yjs-widget > yjs-widget-controls
1 parent c51a3f6 commit e0699cb

15 files changed

Lines changed: 50 additions & 50 deletions

File tree

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,5 +126,5 @@ yjs_widgets/_version.py
126126
.yarn/
127127

128128
# Generated code and extension
129-
examples/simple-yjs-widget/simple_yjs_widget/_version.py
130-
examples/simple-yjs-widget/simple_yjs_widget/labextension/
129+
examples/yjs-widget-controls/yjs_widget_controls/_version.py
130+
examples/yjs-widget-controls/yjs_widget_controls/labextension/

examples/simple-yjs-widget/install.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

examples/simple-yjs-widget/CONTRIBUTING.md renamed to examples/yjs-widget-controls/CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The `jlpm` command is JupyterLab's pinned version of
1010

1111
```bash
1212
# Clone the repo to your local environment
13-
# Change directory to the simple-yjs-widget directory
13+
# Change directory to the yjs-widget-controls directory
1414
# Install package in development mode
1515
pip install -e .
1616
# Link your development version of the extension with JupyterLab
@@ -39,12 +39,12 @@ jupyter lab build --minimize=False
3939
### Development uninstall
4040

4141
```bash
42-
pip uninstall simple-yjs-widget
42+
pip uninstall yjs-widget-controls
4343
```
4444

4545
In development mode, you will also need to remove the symlink created by `jupyter labextension develop`
4646
command. To find its location, you can run `jupyter labextension list` to figure out where the `labextensions`
47-
folder is located. Then you can remove the symlink named `simple-yjs-widget` within that folder.
47+
folder is located. Then you can remove the symlink named `yjs-widget-controls` within that folder.
4848

4949
### Packaging the extension
5050

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

88
## Installation
99

10-
You can install simple-yjs-widget using pip:
10+
You can install yjs-widget-controls using pip:
1111

1212
```bash
1313
pip install .
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"packageManager": "python",
3+
"packageName": "yjs-widget-controls",
4+
"uninstallInstructions": "Use your Python package manager (pip, conda, etc.) to uninstall the package yjs-widget-controls"
5+
}
File renamed without changes.
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "simple-yjs-widget",
2+
"name": "yjs-widget-controls",
33
"version": "0.1.0",
44
"description": "A JupyterLab extension using yjs-widgets.",
55
"keywords": [
@@ -8,7 +8,7 @@
88
"jupyterlab-extension",
99
"yjs"
1010
],
11-
"homepage": "https://github.com/QuantStack/yjs-widgets/examples/simple-yjs-widget",
11+
"homepage": "https://github.com/QuantStack/yjs-widgets/examples/yjs-widget-controls",
1212
"bugs": {
1313
"url": "https://github.com/QuantStack/yjs-widgets/issues"
1414
},
@@ -34,7 +34,7 @@
3434
"build:lib": "tsc",
3535
"clean": "jlpm run clean:lib",
3636
"clean:lib": "rimraf lib tsconfig.tsbuildinfo",
37-
"clean:labextension": "rimraf simple-yjs-widget/labextension simple-yjs-widget/_version.py",
37+
"clean:labextension": "rimraf yjs-widget-controls/labextension yjs-widget-controls/_version.py",
3838
"clean:all": "jlpm run clean:lib && jlpm run clean:labextension",
3939
"eslint": "eslint . --ext .ts,.tsx --fix",
4040
"eslint:check": "eslint . --ext .ts,.tsx",
@@ -80,7 +80,7 @@
8080
},
8181
"jupyterlab": {
8282
"extension": true,
83-
"outputDir": "simple_yjs_widget/labextension",
83+
"outputDir": "yjs_widget_controls/labextension",
8484
"webpackConfig": "./extension.webpack.config.js",
8585
"sharedPackages": {
8686
"yjs-widgets": {

examples/simple-yjs-widget/pyproject.toml renamed to examples/yjs-widget-controls/pyproject.toml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ requires = [
88

99

1010
[project]
11-
name = "simple_yjs_widget"
11+
name = "yjs_widget_controls"
1212
readme = "README.md"
1313
license = { file = "LICENSE" }
1414
requires-python = ">=3.7"
@@ -42,24 +42,24 @@ source = "nodejs"
4242
fields = ["description", "authors", "urls"]
4343

4444
[tool.hatch.build.target.sdist]
45-
artifacts = ["simple_yjs_widget/labextension"]
45+
artifacts = ["yjs_widget_controls/labextension"]
4646
exclude = [".github", "binder"]
4747

4848
[tool.hatch.build.targets.wheel.shared-data]
49-
"install.json" = "share/jupyter/labextensions/simple-yjs-widget/install.json"
50-
"simple_yjs_widget/labextension" = "share/jupyter/labextensions/simple-yjs-widget"
49+
"install.json" = "share/jupyter/labextensions/yjs-widget-controls/install.json"
50+
"yjs_widget_controls/labextension" = "share/jupyter/labextensions/yjs-widget-controls"
5151

5252
[tool.hatch.build.hooks.version]
53-
path = "simple_yjs_widget/_version.py"
53+
path = "yjs_widget_controls/_version.py"
5454

5555
[tool.hatch.build.hooks.jupyter-builder]
5656
dependencies = ["hatch-jupyter-builder>=0.5"]
5757
build-function = "hatch_jupyter_builder.npm_builder"
5858
ensured-targets = [
59-
"simple_yjs_widget/labextension/static/style.js",
60-
"simple_yjs_widget/labextension/package.json",
59+
"yjs_widget_controls/labextension/static/style.js",
60+
"yjs_widget_controls/labextension/package.json",
6161
]
62-
skip-if-exists = ["simple_yjs_widget/labextension/static/style.js"]
62+
skip-if-exists = ["yjs_widget_controls/labextension/static/style.js"]
6363

6464
[tool.hatch.build.hooks.jupyter-builder.build-kwargs]
6565
build_cmd = "build:prod"
@@ -69,7 +69,7 @@ npm = ["jlpm"]
6969
build_cmd = "install:extension"
7070
npm = ["jlpm"]
7171
source_dir = "src"
72-
build_dir = "simple_yjs_widget/labextension"
72+
build_dir = "yjs_widget_controls/labextension"
7373

7474
[tool.jupyter-releaser.options]
7575
version-cmd = "hatch version"

0 commit comments

Comments
 (0)