From 9cd651526b257c7e5d23d1255e27079f7ec3525b Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 22 Jun 2025 05:18:05 +0000 Subject: [PATCH] Update from copier (2025-06-22T05:18:05) --- .copier-answers.yaml | 2 +- .gitignore | 1 - js/jest.config.js | 2 +- pyproject.toml | 6 +++++- python_template_jupyter/extension/install.json | 5 +++++ .../extension/python_template_jupyter.json | 7 +++++++ 6 files changed, 19 insertions(+), 4 deletions(-) create mode 100644 python_template_jupyter/extension/install.json create mode 100644 python_template_jupyter/extension/python_template_jupyter.json diff --git a/.copier-answers.yaml b/.copier-answers.yaml index abb949e..16180c6 100644 --- a/.copier-answers.yaml +++ b/.copier-answers.yaml @@ -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: 3105306+timkpaine@users.noreply.github.com diff --git a/.gitignore b/.gitignore index b8d6caa..1c09ebf 100644 --- a/.gitignore +++ b/.gitignore @@ -139,7 +139,6 @@ js/coverage js/dist js/lib js/node_modules -python_template_jupyter/extension # Jupyter .ipynb_checkpoints diff --git a/js/jest.config.js b/js/jest.config.js index 152a723..764a009 100644 --- a/js/jest.config.js +++ b/js/jest.config.js @@ -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}))`], }; diff --git a/pyproject.toml b/pyproject.toml index d75c1d4..cef74f1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" diff --git a/python_template_jupyter/extension/install.json b/python_template_jupyter/extension/install.json new file mode 100644 index 0000000..a7009b9 --- /dev/null +++ b/python_template_jupyter/extension/install.json @@ -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" +} \ No newline at end of file diff --git a/python_template_jupyter/extension/python_template_jupyter.json b/python_template_jupyter/extension/python_template_jupyter.json new file mode 100644 index 0000000..1f416ae --- /dev/null +++ b/python_template_jupyter/extension/python_template_jupyter.json @@ -0,0 +1,7 @@ +{ + "ServerApp": { + "jpserver_extensions": { + "python_template_jupyter": true + } + } +}