Skip to content
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 .copier-answers.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Changes here will be overwritten by Copier
_commit: 5c63cb2
_commit: 42057e0
_src_path: https://github.com/python-project-templates/base.git
add_extension: jupyter
email: [email protected]
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ js/coverage
js/dist
js/lib
js/node_modules
python_template_jupyter/extension

# Jupyter
.ipynb_checkpoints
Expand Down
2 changes: 1 addition & 1 deletion js/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ module.exports = {
"^.+\\.jsx?$": "babel-jest",
".+\\.(css|styl|less|sass|scss)$": "jest-transform-css",
},
transformIgnorePatterns: [`/node_modules/(?!(${esModules}))`],
transformIgnorePatterns: [`/node_modules/.pnpm/(?!(${esModules}))`],
};
6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,14 @@ exclude = [

[tool.hatch.build.targets.wheel]
packages = ["python_template_jupyter"]
exclude = ["js"]
exclude = [
"/js"
]

[tool.hatch.build.targets.wheel.shared-data]
"python_template_jupyter/labextension" = "share/jupyter/labextensions/python_template_jupyter"
"python_template_jupyter/extension/install.json" = "share/jupyter/labextensions/python_template_jupyter/install.json"
"python_template_jupyter/extension/python_template_jupyter.json" = "etc/jupyter/jupyter_server_config.d/python_template_jupyter.json"

[tool.hatch.build.hooks.jupyter-builder]
build-function = "hatch_jupyter_builder.npm_builder"
Expand Down
5 changes: 5 additions & 0 deletions python_template_jupyter/extension/install.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"packageManager": "python",
"packageName": "python-template-jupyter",
"uninstallInstructions": "Use your Python package manager (pip, conda, etc.) to uninstall the package python-template-jupyter"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"ServerApp": {
"jpserver_extensions": {
"python_template_jupyter": true
}
}
}
Loading