Skip to content

Commit

Permalink
Merge pull request #131 from krassowski/fix-init
Browse files Browse the repository at this point in the history
Hard-code `dest` to fix server extension loading
  • Loading branch information
krassowski authored Jul 4, 2023
2 parents abd4d7a + 5322e4c commit 53e5834
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### 0.8.2 (2023-06-04)

- fix server extension loading (#131)

### 0.8.1 (2023-06-04)

- fix for PyPI upload (#130)
Expand Down
9 changes: 1 addition & 8 deletions jupyterlab_spellchecker/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,13 @@
warnings.warn("Importing 'jupyterlab-spellchecker' outside a proper installation.")
__version__ = "dev"

import json
from pathlib import Path

from .handlers import setup_handlers

HERE = Path(__file__).parent.resolve()

with (HERE / "labextension" / "package.json").open() as fid:
data = json.load(fid)

def _jupyter_labextension_paths():
return [{
"src": "labextension",
"dest": data["name"]
"dest": "@jupyterlab-contrib/spellchecker"
}]


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jupyterlab-contrib/spellchecker",
"version": "0.8.0",
"version": "0.8.2",
"description": "A spell checker for JupyterLab.",
"keywords": [
"jupyter",
Expand Down

0 comments on commit 53e5834

Please sign in to comment.