Skip to content

Commit cb6036f

Browse files
authored
Rename the extension jupyterlite_ai (#20)
* Rename javascript package * Rename the python package
1 parent a5a3bd6 commit cb6036f

File tree

14 files changed

+77
-77
lines changed

14 files changed

+77
-77
lines changed

.copier-answers.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ author_name: Jeremy Tuloup
66
has_binder: false
77
has_settings: true
88
kind: frontend
9-
labextension_name: jupyterlab-codestral
9+
labextension_name: @jupyterlite/ai
1010
project_short_description: Codestral AI code completions for JupyterLab
11-
python_name: jupyterlab_codestral
11+
python_name: jupyterlite_ai
1212
repository: https://github.com/jupyterlite/jupyterlab-codestral
1313
test: false
1414

.github/workflows/build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
python -m pip install .[test]
3737
3838
jupyter labextension list
39-
jupyter labextension list 2>&1 | grep -ie "jupyterlab-codestral.*OK"
39+
jupyter labextension list 2>&1 | grep -ie "@jupyterlite/ai.*OK"
4040
python -m jupyterlab.browser_check
4141
4242
- name: Package the extension
@@ -45,13 +45,13 @@ jobs:
4545
4646
pip install build
4747
python -m build
48-
pip uninstall -y "jupyterlab_codestral" jupyterlab
48+
pip uninstall -y "jupyterlite_ai" jupyterlab
4949
5050
- name: Upload extension packages
5151
uses: actions/upload-artifact@v4
5252
with:
5353
name: extension-artifacts
54-
path: dist/jupyterlab_codestral*
54+
path: dist/jupyterlite_ai*
5555
if-no-files-found: error
5656

5757
test_isolated:
@@ -74,11 +74,11 @@ jobs:
7474
sudo rm -rf $(which node)
7575
sudo rm -rf $(which node)
7676
77-
pip install "jupyterlab>=4.0.0,<5" jupyterlab_codestral*.whl
77+
pip install "jupyterlab>=4.0.0,<5" jupyterlite_ai*.whl
7878
7979
8080
jupyter labextension list
81-
jupyter labextension list 2>&1 | grep -ie "jupyterlab-codestral.*OK"
81+
jupyter labextension list 2>&1 | grep -ie "@jupyterlite/ai.*OK"
8282
python -m jupyterlab.browser_check --no-browser-test
8383
8484

.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: jupyterlab_codestral-releaser-dist-${{ github.run_number }}
29+
name: jupyterlite_ai-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-
jupyterlab_codestral/labextension
10+
jupyterlite_ai/labextension
1111
# Version file is handled by hatchling
12-
jupyterlab_codestral/_version.py
12+
jupyterlite_ai/_version.py
1313

1414
# Created by https://www.gitignore.io/api/python
1515
# Edit at https://www.gitignore.io/?templates=python

.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-
jupyterlab_codestral
6+
jupyterlite_ai

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# jupyterlab-codestral
1+
# jupyterlite-ai
22

33
[![Github Actions Status](https://github.com/jupyterlite/jupyterlab-codestral/workflows/Build/badge.svg)](https://github.com/jupyterlite/jupyterlab-codestral/actions/workflows/build.yml)
44
[![lite-badge](https://jupyterlite.rtfd.io/en/latest/_static/badge.svg)](https://jupyterlite.github.io/jupyterlab-codestral/lab/index.html)
@@ -34,7 +34,7 @@ See the [Usage](#usage) section below for more information on how to provide you
3434
To install the extension, execute:
3535

3636
```bash
37-
pip install jupyterlab-codestral
37+
pip install jupyterlite-ai
3838
```
3939

4040
# Usage
@@ -56,7 +56,7 @@ pip install jupyterlab-codestral
5656
To remove the extension, execute:
5757

5858
```bash
59-
pip uninstall jupyterlab-codestral
59+
pip uninstall jupyterlite-ai
6060
```
6161

6262
## Contributing
@@ -100,12 +100,12 @@ jupyter lab build --minimize=False
100100
### Development uninstall
101101

102102
```bash
103-
pip uninstall jupyterlab-codestral
103+
pip uninstall jupyterlite-ai
104104
```
105105

106106
In development mode, you will also need to remove the symlink created by `jupyter labextension develop`
107107
command. To find its location, you can run `jupyter labextension list` to figure out where the `labextensions`
108-
folder is located. Then you can remove the symlink named `jupyterlab-codestral` within that folder.
108+
folder is located. Then you can remove the symlink named `@jupyterlite/ai` within that folder.
109109

110110
### Packaging the extension
111111

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 jupyterlab_codestral
1+
# Making a new release of jupyterlite_ai
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": "jupyterlab_codestral",
4-
"uninstallInstructions": "Use your Python package manager (pip, conda, etc.) to uninstall the package jupyterlab_codestral"
3+
"packageName": "jupyterlite_ai",
4+
"uninstallInstructions": "Use your Python package manager (pip, conda, etc.) to uninstall the package jupyterlite_ai"
55
}

jupyterlab_codestral/__init__.py renamed to jupyterlite_ai/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
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 'jupyterlab_codestral' outside a proper installation.")
8+
warnings.warn("Importing 'jupyterlite_ai' outside a proper installation.")
99
__version__ = "dev"
1010

1111

1212
def _jupyter_labextension_paths():
1313
return [{
1414
"src": "labextension",
15-
"dest": "jupyterlab-codestral"
15+
"dest": "@jupyterlite/ai"
1616
}]

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "jupyterlab-codestral",
2+
"name": "@jupyterlite/ai",
33
"version": "0.1.0",
44
"description": "Codestral AI code completions for JupyterLab",
55
"keywords": [
@@ -36,7 +36,7 @@
3636
"clean": "jlpm clean:lib",
3737
"clean:lib": "rimraf lib tsconfig.tsbuildinfo",
3838
"clean:lintcache": "rimraf .eslintcache .stylelintcache",
39-
"clean:labextension": "rimraf jupyterlab_codestral/labextension jupyterlab_codestral/_version.py",
39+
"clean:labextension": "rimraf jupyterlite_ai/labextension jupyterlite_ai/_version.py",
4040
"clean:all": "jlpm clean:lib && jlpm clean:labextension && jlpm clean:lintcache",
4141
"eslint": "jlpm eslint:check --fix",
4242
"eslint:check": "eslint . --cache --ext .ts,.tsx",
@@ -100,7 +100,7 @@
100100
},
101101
"jupyterlab": {
102102
"extension": true,
103-
"outputDir": "jupyterlab_codestral/labextension",
103+
"outputDir": "jupyterlite_ai/labextension",
104104
"schemaDir": "schema"
105105
},
106106
"eslintIgnore": [

0 commit comments

Comments
 (0)