Skip to content

Commit 1a7dc3e

Browse files
committed
fix name
1 parent 3e24330 commit 1a7dc3e

File tree

6 files changed

+19
-33
lines changed

6 files changed

+19
-33
lines changed

.copier-answers.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ has_settings: true
88
kind: frontend
99
labextension_name: jupyterlab-drawio
1010
project_short_description: A JupyterLab extension for embedding drawio / mxgraph.
11-
python_name: jupyterlab_drawio
11+
python_name: jupyterlab-drawio
1212
repository: https://github.com/wolfv/jupyterlab-drawio.git
1313
test: false
14-

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ node_modules/
1010
jupyterlab_drawio/labextension
1111
# Version file is handled by hatchling
1212
jupyterlab_drawio/_version.py
13-
13+
# It is called jupyterlab-drawio long ago
14+
jupyterlab-drawio/labextension
15+
jupyterlab-drawio/_version.py
1416
# Created by https://www.gitignore.io/api/python
1517
# Edit at https://www.gitignore.io/?templates=python
1618

binder/postBuild

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env python3
2-
""" perform a development install of jupyterlab_drawio
2+
""" perform a development install of jupyterlab-drawio
33
44
On Binder, this will run _after_ the environment has been fully created from
55
the environment.yml in this directory.

jupyterlab-drawio/_version.py

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,4 @@
1-
__all__ = ['__version__']
2-
3-
def _fetchVersion():
4-
import json
5-
import os
6-
7-
HERE = os.path.abspath(os.path.dirname(__file__))
8-
9-
for d, _, _ in os.walk(HERE):
10-
try:
11-
with open(os.path.join(d, 'package.json')) as f:
12-
return json.load(f)['version']
13-
except FileNotFoundError:
14-
pass
15-
16-
raise FileNotFoundError('Could not find package.json under dir {}'.format(HERE))
17-
18-
__version__ = _fetchVersion()
19-
1+
# This file is auto-generated by Hatchling. As such, do not:
2+
# - modify
3+
# - track in version control e.g. be sure to add to .gitignore
4+
__version__ = VERSION = '0.9.0'

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"build:prod": "jlpm clean && jlpm build:lib:prod && jlpm build:labextension",
3636
"clean": "jlpm clean:lib",
3737
"clean:all": "jlpm clean:lib && jlpm clean:labextension && jlpm clean:lintcache",
38-
"clean:labextension": "rimraf jupyterlab_drawio/labextension jupyterlab_drawio/_version.py",
38+
"clean:labextension": "rimraf jupyterlab-drawio/labextension jupyterlab-drawio/_version.py",
3939
"clean:lib": "rimraf lib tsconfig.tsbuildinfo",
4040
"clean:lintcache": "rimraf .eslintcache .stylelintcache",
4141
"eslint": "jlpm eslint:check --fix",
@@ -92,7 +92,7 @@
9292
"jupyterlab": {
9393
"extension": true,
9494
"schemaDir": "schema",
95-
"outputDir": "jupyterlab_drawio/labextension"
95+
"outputDir": "jupyterlab-drawio/labextension"
9696
},
9797
"styleModule": "style/index.js",
9898
"eslintConfig": {

pyproject.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ requires = ["hatchling>=1.5.0", "jupyterlab>=4.0.0,<5", "hatch-nodejs-version>=0
33
build-backend = "hatchling.build"
44

55
[project]
6-
name = "jupyterlab_drawio"
6+
name = "jupyterlab-drawio"
77
readme = "README.md"
88
license = { file = "LICENSE" }
99
requires-python = ">=3.8"
@@ -33,24 +33,24 @@ source = "nodejs"
3333
fields = ["description", "authors", "urls"]
3434

3535
[tool.hatch.build.targets.sdist]
36-
artifacts = ["jupyterlab_drawio/labextension"]
36+
artifacts = ["jupyterlab-drawio/labextension"]
3737
exclude = [".github", "binder"]
3838

3939
[tool.hatch.build.targets.wheel.shared-data]
40-
"jupyterlab_drawio/labextension" = "share/jupyter/labextensions/jupyterlab-drawio"
40+
"jupyterlab-drawio/labextension" = "share/jupyter/labextensions/jupyterlab-drawio"
4141
"install.json" = "share/jupyter/labextensions/jupyterlab-drawio/install.json"
4242

4343
[tool.hatch.build.hooks.version]
44-
path = "jupyterlab_drawio/_version.py"
44+
path = "jupyterlab-drawio/_version.py"
4545

4646
[tool.hatch.build.hooks.jupyter-builder]
4747
dependencies = ["hatch-jupyter-builder>=0.5"]
4848
build-function = "hatch_jupyter_builder.npm_builder"
4949
ensured-targets = [
50-
"jupyterlab_drawio/labextension/static/style.js",
51-
"jupyterlab_drawio/labextension/package.json",
50+
"jupyterlab-drawio/labextension/static/style.js",
51+
"jupyterlab-drawio/labextension/package.json",
5252
]
53-
skip-if-exists = ["jupyterlab_drawio/labextension/static/style.js"]
53+
skip-if-exists = ["jupyterlab-drawio/labextension/static/style.js"]
5454

5555
[tool.hatch.build.hooks.jupyter-builder.build-kwargs]
5656
build_cmd = "build:prod"
@@ -60,7 +60,7 @@ npm = ["jlpm"]
6060
build_cmd = "install:extension"
6161
npm = ["jlpm"]
6262
source_dir = "src"
63-
build_dir = "jupyterlab_drawio/labextension"
63+
build_dir = "jupyterlab-drawio/labextension"
6464

6565
[tool.jupyter-releaser.options]
6666
version_cmd = "hatch version"

0 commit comments

Comments
 (0)