Skip to content
This repository was archived by the owner on Feb 3, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ node_modules/
*.egg-info/
.ipynb_checkpoints
*.tsbuildinfo
jupyterlab-python-file/labextension
jupyterlab_python_file/labextension

# 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 @@ -2,4 +2,4 @@ node_modules
**/node_modules
**/lib
**/package.json
jupyterlab-python-file
jupyterlab_python_file
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ include ts*.json
include yarn.lock
include *.md

graft jupyterlab-python-file/labextension
graft jupyterlab_python_file/labextension

# Javascript files
graft src
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"build:prod": "jlpm run clean && jlpm run build:lib && jlpm run build:labextension",
"clean": "jlpm run clean:lib",
"clean:all": "jlpm run clean:lib && jlpm run clean:labextension",
"clean:labextension": "rimraf jupyterlab-python-file/labextension",
"clean:labextension": "rimraf jupyterlab_python_file/labextension",
"clean:lib": "rimraf lib tsconfig.tsbuildinfo",
"eslint": "eslint . --ext .ts,.tsx --fix",
"eslint:check": "eslint . --ext .ts,.tsx",
Expand Down Expand Up @@ -67,7 +67,7 @@
},
"jupyterlab": {
"extension": true,
"outputDir": "jupyterlab-python-file/labextension"
"outputDir": "jupyterlab_python_file/labextension"
},
"jupyter-releaser": {
"hooks": {
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ requires = ["jupyter_packaging~=0.10,<2", "jupyterlab~=3.0"]
build-backend = "jupyter_packaging.build_api"

[tool.jupyter-packaging.options]
skip-if-exists = ["jupyterlab-python-file/labextension/static/style.js"]
ensured-targets = ["jupyterlab-python-file/labextension/static/style.js", "jupyterlab-python-file/labextension/package.json"]
skip-if-exists = ["jupyterlab_python_file/labextension/static/style.js"]
ensured-targets = ["jupyterlab_python_file/labextension/static/style.js", "jupyterlab_python_file/labextension/package.json"]

[tool.jupyter-packaging.builder]
factory = "jupyter_packaging.npm_builder"
Expand All @@ -14,4 +14,4 @@ build_cmd = "build:prod"
npm = ["jlpm"]

[tool.check-manifest]
ignore = ["jupyterlab-python-file/labextension/**", "yarn.lock", ".*", "package-lock.json"]
ignore = ["jupyterlab_python_file/labextension/**", "yarn.lock", ".*", "package-lock.json"]
9 changes: 4 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,19 @@

# The name of the project
name = "jupyterlab-python-file"
package = name.replace('-', '_')

lab_path = HERE / name / "labextension"
lab_path = HERE / package / "labextension"

# Representative files that should exist after a successful build
ensured_targets = [
str(lab_path / "package.json"),
str(lab_path / "static/style.js")
]

labext_name = "jupyterlab-python-file"

data_files_spec = [
("share/jupyter/labextensions/%s" % labext_name, str(lab_path), "**"),
("share/jupyter/labextensions/%s" % labext_name, str(HERE), "install.json"),
("share/jupyter/labextensions/%s" % name, str(lab_path), "**"),
("share/jupyter/labextensions/%s" % name, str(HERE), "install.json"),
]

long_description = (HERE / "README.md").read_text()
Expand Down