Skip to content

Commit

Permalink
Rename the python package
Browse files Browse the repository at this point in the history
  • Loading branch information
brichet committed Dec 2, 2024
1 parent f83138c commit 24ebe6e
Show file tree
Hide file tree
Showing 11 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .copier-answers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ has_settings: true
kind: frontend
labextension_name: @jupyterlite/ai
project_short_description: Codestral AI code completions for JupyterLab
python_name: jupyterlab_codestral
python_name: jupyterlite_ai
repository: https://github.com/jupyterlite/jupyterlab-codestral
test: false

6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ jobs:
pip install build
python -m build
pip uninstall -y "jupyterlab_codestral" jupyterlab
pip uninstall -y "jupyterlite_ai" jupyterlab
- name: Upload extension packages
uses: actions/upload-artifact@v4
with:
name: extension-artifacts
path: dist/jupyterlab_codestral*
path: dist/jupyterlite_ai*
if-no-files-found: error

test_isolated:
Expand All @@ -74,7 +74,7 @@ jobs:
sudo rm -rf $(which node)
sudo rm -rf $(which node)
pip install "jupyterlab>=4.0.0,<5" jupyterlab_codestral*.whl
pip install "jupyterlab>=4.0.0,<5" jupyterlite_ai*.whl
jupyter labextension list
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ jobs:
- name: Upload Distributions
uses: actions/upload-artifact@v4
with:
name: jupyterlab_codestral-releaser-dist-${{ github.run_number }}
name: jupyterlite_ai-releaser-dist-${{ github.run_number }}
path: .jupyter_releaser_checkout/dist
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ node_modules/
*.egg-info/
.ipynb_checkpoints
*.tsbuildinfo
jupyterlab_codestral/labextension
jupyterlite_ai/labextension
# Version file is handled by hatchling
jupyterlab_codestral/_version.py
jupyterlite_ai/_version.py

# Created by https://www.gitignore.io/api/python
# Edit at https://www.gitignore.io/?templates=python
Expand Down
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ node_modules
**/lib
**/package.json
!/package.json
jupyterlab_codestral
jupyterlite_ai
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# jupyterlab-codestral
# jupyterlite-ai

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

```bash
pip install jupyterlab-codestral
pip install jupyterlite-ai
```

# Usage
Expand All @@ -56,7 +56,7 @@ pip install jupyterlab-codestral
To remove the extension, execute:

```bash
pip uninstall jupyterlab-codestral
pip uninstall jupyterlite-ai
```

## Contributing
Expand Down Expand Up @@ -100,7 +100,7 @@ jupyter lab build --minimize=False
### Development uninstall

```bash
pip uninstall jupyterlab-codestral
pip uninstall jupyterlite-ai
```

In development mode, you will also need to remove the symlink created by `jupyter labextension develop`
Expand Down
2 changes: 1 addition & 1 deletion RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Making a new release of jupyterlab_codestral
# Making a new release of jupyterlite_ai

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

Expand Down
4 changes: 2 additions & 2 deletions install.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"packageManager": "python",
"packageName": "jupyterlab_codestral",
"uninstallInstructions": "Use your Python package manager (pip, conda, etc.) to uninstall the package jupyterlab_codestral"
"packageName": "jupyterlite_ai",
"uninstallInstructions": "Use your Python package manager (pip, conda, etc.) to uninstall the package jupyterlite_ai"
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# in editable mode with pip. It is highly recommended to install
# the package from a stable release or in editable mode: https://pip.pypa.io/en/stable/topics/local-project-installs/#editable-installs
import warnings
warnings.warn("Importing 'jupyterlab_codestral' outside a proper installation.")
warnings.warn("Importing 'jupyterlite_ai' outside a proper installation.")
__version__ = "dev"


Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"clean": "jlpm clean:lib",
"clean:lib": "rimraf lib tsconfig.tsbuildinfo",
"clean:lintcache": "rimraf .eslintcache .stylelintcache",
"clean:labextension": "rimraf jupyterlab_codestral/labextension jupyterlab_codestral/_version.py",
"clean:labextension": "rimraf jupyterlite_ai/labextension jupyterlite_ai/_version.py",
"clean:all": "jlpm clean:lib && jlpm clean:labextension && jlpm clean:lintcache",
"eslint": "jlpm eslint:check --fix",
"eslint:check": "eslint . --cache --ext .ts,.tsx",
Expand Down Expand Up @@ -100,7 +100,7 @@
},
"jupyterlab": {
"extension": true,
"outputDir": "jupyterlab_codestral/labextension",
"outputDir": "jupyterlite_ai/labextension",
"schemaDir": "schema"
},
"eslintIgnore": [
Expand Down
16 changes: 8 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires = ["hatchling>=1.5.0", "jupyterlab>=4.0.0,<5", "hatch-nodejs-version>=0
build-backend = "hatchling.build"

[project]
name = "jupyterlab_codestral"
name = "jupyterlite_ai"
readme = "README.md"
license = { file = "LICENSE" }
requires-python = ">=3.8"
Expand Down Expand Up @@ -33,24 +33,24 @@ source = "nodejs"
fields = ["description", "authors", "urls"]

[tool.hatch.build.targets.sdist]
artifacts = ["jupyterlab_codestral/labextension"]
artifacts = ["jupyterlite_ai/labextension"]
exclude = [".github", "binder"]

[tool.hatch.build.targets.wheel.shared-data]
"jupyterlab_codestral/labextension" = "share/jupyter/labextensions/@jupyterlite/ai"
"jupyterlite_ai/labextension" = "share/jupyter/labextensions/@jupyterlite/ai"
"install.json" = "share/jupyter/labextensions/@jupyterlite/ai/install.json"

[tool.hatch.build.hooks.version]
path = "jupyterlab_codestral/_version.py"
path = "jupyterlite_ai/_version.py"

[tool.hatch.build.hooks.jupyter-builder]
dependencies = ["hatch-jupyter-builder>=0.5"]
build-function = "hatch_jupyter_builder.npm_builder"
ensured-targets = [
"jupyterlab_codestral/labextension/static/style.js",
"jupyterlab_codestral/labextension/package.json",
"jupyterlite_ai/labextension/static/style.js",
"jupyterlite_ai/labextension/package.json",
]
skip-if-exists = ["jupyterlab_codestral/labextension/static/style.js"]
skip-if-exists = ["jupyterlite_ai/labextension/static/style.js"]

[tool.hatch.build.hooks.jupyter-builder.build-kwargs]
build_cmd = "build:prod"
Expand All @@ -60,7 +60,7 @@ npm = ["jlpm"]
build_cmd = "install:extension"
npm = ["jlpm"]
source_dir = "src"
build_dir = "jupyterlab_codestral/labextension"
build_dir = "jupyterlite_ai/labextension"

[tool.jupyter-releaser.options]
version_cmd = "hatch version"
Expand Down

0 comments on commit 24ebe6e

Please sign in to comment.