Skip to content

Commit 4843759

Browse files
committed
fix variable usage
1 parent 37c0828 commit 4843759

File tree

2 files changed

+13
-24
lines changed

2 files changed

+13
-24
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,6 @@ jobs:
3737
cd jupyter-widget-testwidgets
3838
python -m pip install --upgrade -v -e ".[test, examples, docs]"
3939
40-
- name: Debug
41-
run: |
42-
ls /opt/hostedtoolcache/Python/3.7.13/x64/share/jupyter/labextensions
43-
ls /opt/hostedtoolcache/Python/3.7.13/x64/share/jupyter/labextensions/jupyter-widget-testwidgets
44-
cd jupyter-widget-testwidgets
45-
ls
46-
ls jupyter-widget-testwidgets
47-
ls jupyter-widget-testwidgets/nbextension
48-
ls jupyter-widget-testwidgets/labextension
49-
exit 1
50-
5140
- name: Test the extension
5241
working-directory: jupyter-widget-testwidgets
5342
run: |

{{cookiecutter.github_project_name}}/pyproject.toml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ requires = [
66
build-backend = "hatchling.build"
77

88
[project]
9-
name = "{{ cookiecutter.github_project_name }}"
9+
name = "{{ cookiecutter.python_package_name }}"
1010
description = "{{ cookiecutter.project_short_description }}"
1111
readme = "README.md"
1212
license = { file = "LICENSE.txt" }
@@ -59,16 +59,16 @@ Homepage = "https://github.com/{{ cookiecutter.github_organization_name }}/{{ co
5959

6060
[tool.hatch.build]
6161
artifacts = [
62-
"{{ cookiecutter.github_project_name }}/nbextension/index.*",
63-
"{{ cookiecutter.github_project_name }}/labextension/*.tgz",
64-
"{{ cookiecutter.github_project_name }}/labextension",
62+
"{{ cookiecutter.python_package_name }}/nbextension/index.*",
63+
"{{ cookiecutter.python_package_name }}/labextension/*.tgz",
64+
"{{ cookiecutter.python_package_name }}/labextension",
6565
]
6666

6767
[tool.hatch.build.targets.wheel.shared-data]
68-
"{{ cookiecutter.github_project_name }}/nbextension" = "share/jupyter/nbextensions/{{ cookiecutter.github_project_name }}"
69-
"{{ cookiecutter.github_project_name }}/labextension" = "share/jupyter/labextensions/{{ cookiecutter.github_project_name }}"
70-
"./install.json" = "share/jupyter/labextensions/{{ cookiecutter.github_project_name }}/install.json"
71-
"./{{ cookiecutter.github_project_name }}.json" = "etc/jupyter/nbconfig/notebook.d/{{ cookiecutter.github_project_name }}.json"
68+
"{{ cookiecutter.python_package_name }}/nbextension" = "share/jupyter/nbextensions/{{ cookiecutter.python_package_name }}"
69+
"{{ cookiecutter.python_package_name }}/labextension" = "share/jupyter/labextensions/{{ cookiecutter.python_package_name }}"
70+
"./install.json" = "share/jupyter/labextensions/{{ cookiecutter.python_package_name }}/install.json"
71+
"./{{ cookiecutter.python_package_name }}.json" = "etc/jupyter/nbconfig/notebook.d/{{ cookiecutter.python_package_name }}.json"
7272

7373
[tool.hatch.build.targets.sdist]
7474
exclude = [
@@ -78,12 +78,12 @@ exclude = [
7878
[tool.hatch.build.hooks.jupyter-builder]
7979
build-function = "hatch_jupyter_builder.npm_builder"
8080
ensured-targets = [
81-
"{{ cookiecutter.github_project_name }}/nbextension/index.js",
82-
"{{ cookiecutter.github_project_name }}/labextension/package.json",
81+
"{{ cookiecutter.python_package_name }}/nbextension/index.js",
82+
"{{ cookiecutter.python_package_name }}/labextension/package.json",
8383
]
8484
skip-if-exists = [
85-
"{{ cookiecutter.github_project_name }}/nbextension/index.js",
86-
"{{ cookiecutter.github_project_name }}/labextension/package.json",
85+
"{{ cookiecutter.python_package_name }}/nbextension/index.js",
86+
"{{ cookiecutter.python_package_name }}/labextension/package.json",
8787
]
8888
dependencies = [
8989
"hatch-jupyter-builder>=0.5.0",
@@ -100,7 +100,7 @@ field = [
100100
]
101101
file = [
102102
{ src = "pyproject.toml" },
103-
{ src = "{{ cookiecutter.github_project_name }}/_version.py" },
103+
{ src = "{{ cookiecutter.python_package_name }}/_version.py" },
104104
]
105105

106106
[tool.tbump.version]

0 commit comments

Comments
 (0)