Skip to content

Commit e21369b

Browse files
authored
Rename the packages (#2)
* Rename the python package to jupyter_floating_chat * Rename the javascript package * lint
1 parent 7f5257d commit e21369b

File tree

18 files changed

+104
-96
lines changed

18 files changed

+104
-96
lines changed

.copier-answers.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ author_name: Project Jupyter
66
has_binder: false
77
has_settings: true
88
kind: frontend
9-
labextension_name: floating-chat
9+
labextension_name: jupyter-floating-chat
1010
project_short_description: A JupyterLab extension to add a floating chat.
11-
python_name: floating_chat
12-
repository: https://github.com/jupyter-ai-contrib/floating-chat
11+
python_name: jupyter_floating_chat
12+
repository: https://github.com/jupyter-ai-contrib/jupyter-floating-chat
1313
test: true
1414

.github/workflows/build.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
python -m pip install .[test]
4242
4343
jupyter labextension list
44-
jupyter labextension list 2>&1 | grep -ie "floating-chat.*OK"
44+
jupyter labextension list 2>&1 | grep -ie "jupyter-floating-chat.*OK"
4545
python -m jupyterlab.browser_check
4646
4747
- name: Package the extension
@@ -50,13 +50,13 @@ jobs:
5050
5151
pip install build
5252
python -m build
53-
pip uninstall -y "floating_chat" jupyterlab
53+
pip uninstall -y "jupyter_floating_chat" jupyterlab
5454
5555
- name: Upload extension packages
5656
uses: actions/upload-artifact@v4
5757
with:
5858
name: extension-artifacts
59-
path: dist/floating_chat*
59+
path: dist/jupyter_floating_chat*
6060
if-no-files-found: error
6161

6262
test_isolated:
@@ -79,11 +79,11 @@ jobs:
7979
sudo rm -rf $(which node)
8080
sudo rm -rf $(which node)
8181
82-
pip install "jupyterlab>=4.0.0,<5" floating_chat*.whl
82+
pip install "jupyterlab>=4.0.0,<5" jupyter_floating_chat*.whl
8383
8484
8585
jupyter labextension list
86-
jupyter labextension list 2>&1 | grep -ie "floating-chat.*OK"
86+
jupyter labextension list 2>&1 | grep -ie "jupyter-floating-chat.*OK"
8787
python -m jupyterlab.browser_check --no-browser-test
8888
8989
integration-tests:
@@ -109,7 +109,7 @@ jobs:
109109
- name: Install the extension
110110
run: |
111111
set -eux
112-
python -m pip install "jupyterlab>=4.0.0,<5" floating_chat*.whl
112+
python -m pip install "jupyterlab>=4.0.0,<5" jupyter_floating_chat*.whl
113113
114114
- name: Install dependencies
115115
working-directory: ui-tests
@@ -141,7 +141,7 @@ jobs:
141141
if: always()
142142
uses: actions/upload-artifact@v4
143143
with:
144-
name: floating_chat-playwright-tests
144+
name: jupyter_floating_chat-playwright-tests
145145
path: |
146146
ui-tests/test-results
147147
ui-tests/playwright-report

.github/workflows/check-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ jobs:
2626
- name: Upload Distributions
2727
uses: actions/upload-artifact@v4
2828
with:
29-
name: floating_chat-releaser-dist-${{ github.run_number }}
29+
name: jupyter_floating_chat-releaser-dist-${{ github.run_number }}
3030
path: .jupyter_releaser_checkout/dist

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ node_modules/
77
*.egg-info/
88
.ipynb_checkpoints
99
*.tsbuildinfo
10-
floating_chat/labextension
10+
jupyter_floating_chat/labextension
1111
# Version file is handled by hatchling
12-
floating_chat/_version.py
12+
jupyter_floating_chat/_version.py
1313

1414
# Integration tests
1515
ui-tests/test-results/

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ node_modules
33
**/lib
44
**/package.json
55
!/package.json
6-
floating_chat
6+
jupyter_floating_chat

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# floating_chat
1+
# jupyter_floating_chat
22

3-
[![Github Actions Status](https://github.com/jupyter-ai-contrib/floating-chat/workflows/Build/badge.svg)](https://github.com/jupyter-ai-contrib/floating-chat/actions/workflows/build.yml)
3+
[![Github Actions Status](https://github.com/jupyter-ai-contrib/jupyter-floating-chat/workflows/Build/badge.svg)](https://github.com/jupyter-ai-contrib/jupyter-floating-chat/actions/workflows/build.yml)
44

55
A JupyterLab extension to add a floating chat.
66

@@ -13,15 +13,15 @@ A JupyterLab extension to add a floating chat.
1313
To install the extension, execute:
1414

1515
```bash
16-
pip install floating_chat
16+
pip install jupyter_floating_chat
1717
```
1818

1919
## Uninstall
2020

2121
To remove the extension, execute:
2222

2323
```bash
24-
pip uninstall floating_chat
24+
pip uninstall jupyter_floating_chat
2525
```
2626

2727
## Contributing
@@ -36,7 +36,7 @@ The `jlpm` command is JupyterLab's pinned version of
3636

3737
```bash
3838
# Clone the repo to your local environment
39-
# Change directory to the floating_chat directory
39+
# Change directory to the jupyter_floating_chat directory
4040
# Install package in development mode
4141
pip install -e "."
4242
# Link your development version of the extension with JupyterLab
@@ -65,12 +65,12 @@ jupyter lab build --minimize=False
6565
### Development uninstall
6666

6767
```bash
68-
pip uninstall floating_chat
68+
pip uninstall jupyter_floating_chat
6969
```
7070

7171
In development mode, you will also need to remove the symlink created by `jupyter labextension develop`
7272
command. To find its location, you can run `jupyter labextension list` to figure out where the `labextensions`
73-
folder is located. Then you can remove the symlink named `floating-chat` within that folder.
73+
folder is located. Then you can remove the symlink named `jupyter-floating-chat` within that folder.
7474

7575
### Testing the extension
7676

RELEASE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Making a new release of floating_chat
1+
# Making a new release of jupyter_floating_chat
22

33
The extension can be published to `PyPI` and `npm` manually or using the [Jupyter Releaser](https://github.com/jupyter-server/jupyter_releaser).
44

install.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"packageManager": "python",
3-
"packageName": "floating_chat",
4-
"uninstallInstructions": "Use your Python package manager (pip, conda, etc.) to uninstall the package floating_chat"
3+
"packageName": "jupyter_floating_chat",
4+
"uninstallInstructions": "Use your Python package manager (pip, conda, etc.) to uninstall the package jupyter_floating_chat"
55
}

floating_chat/__init__.py renamed to jupyter_floating_chat/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# in editable mode with pip. It is highly recommended to install
66
# the package from a stable release or in editable mode: https://pip.pypa.io/en/stable/topics/local-project-installs/#editable-installs
77
import warnings
8-
warnings.warn("Importing 'floating_chat' outside a proper installation.")
8+
warnings.warn("Importing 'jupyter_floating_chat' outside a proper installation.")
99
__version__ = "dev"
1010

1111

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
2-
"name": "floating-chat",
2+
"name": "jupyter-floating-chat",
33
"version": "0.1.0",
44
"description": "A JupyterLab extension to add a floating chat.",
55
"keywords": [
66
"jupyter",
77
"jupyterlab",
88
"jupyterlab-extension"
99
],
10-
"homepage": "https://github.com/jupyter-ai-contrib/floating-chat",
10+
"homepage": "https://github.com/jupyter-ai-contrib/jupyter-floating-chat",
1111
"bugs": {
12-
"url": "https://github.com/jupyter-ai-contrib/floating-chat/issues"
12+
"url": "https://github.com/jupyter-ai-contrib/jupyter-floating-chat/issues"
1313
},
1414
"license": "BSD-3-Clause",
1515
"author": {
@@ -27,7 +27,7 @@
2727
"style": "style/index.css",
2828
"repository": {
2929
"type": "git",
30-
"url": "https://github.com/jupyter-ai-contrib/floating-chat.git"
30+
"url": "https://github.com/jupyter-ai-contrib/jupyter-floating-chat.git"
3131
},
3232
"scripts": {
3333
"build": "jlpm build:lib && jlpm build:labextension:dev",
@@ -39,7 +39,7 @@
3939
"clean": "jlpm clean:lib",
4040
"clean:lib": "rimraf lib tsconfig.tsbuildinfo",
4141
"clean:lintcache": "rimraf .eslintcache .stylelintcache",
42-
"clean:labextension": "rimraf floating_chat/labextension floating_chat/_version.py",
42+
"clean:labextension": "rimraf jupyter_floating_chat/labextension jupyter_floating_chat/_version.py",
4343
"clean:all": "jlpm clean:lib && jlpm clean:labextension && jlpm clean:lintcache",
4444
"eslint": "jlpm eslint:check --fix",
4545
"eslint:check": "eslint . --cache --ext .ts,.tsx",
@@ -106,7 +106,7 @@
106106
},
107107
"jupyterlab": {
108108
"extension": true,
109-
"outputDir": "floating_chat/labextension",
109+
"outputDir": "jupyter_floating_chat/labextension",
110110
"schemaDir": "schema"
111111
},
112112
"eslintIgnore": [

0 commit comments

Comments
 (0)