diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 44b078e..39da1bc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -38,12 +38,12 @@ jobs: - name: Run pip install shell: bash -l {0} - run: pip install ./jupyter-widget-testwidgets + run: python -m pip install ./jupyter-widget-testwidgets - name: Test install shell: bash -l {0} run: | - test -d $CONDA_PREFIX/share/jupyter/nbextensions/jupyter-widget-testwidgets - test -f $CONDA_PREFIX/etc/jupyter/nbconfig/notebook.d/jupyter-widget-testwidgets.json - test -d $CONDA_PREFIX/share/jupyter/labextensions/jupyter-widget-testwidgets - test -f $CONDA_PREFIX/share/jupyter/labextensions/jupyter-widget-testwidgets/package.json + test -d $CONDA_PREFIX/share/jupyter/nbextensions/@jupyter-widgets/jupyter-widget-testwidgets + test -f $CONDA_PREFIX/etc/jupyter/nbconfig/notebook.d/jupyter_widget_example.json + test -d $CONDA_PREFIX/share/jupyter/labextensions/@jupyter-widgets/jupyter-widget-testwidgets + test -f $CONDA_PREFIX/share/jupyter/labextensions/@jupyter-widgets/jupyter-widget-testwidgets/package.json diff --git a/tests/testconfig.yml b/tests/testconfig.yml index db155d1..01595f3 100644 --- a/tests/testconfig.yml +++ b/tests/testconfig.yml @@ -3,6 +3,6 @@ default_context: author_email: "testwidget@example.com" github_project_name: "jupyter-widget-testwidgets" github_organization_name: "jupyter" - npm_package_name: "jupyter-widget-testwidgets" + npm_package_name: "@jupyter-widgets/jupyter-widget-testwidgets" npm_package_version: "1.1.0" project_short_description: "A Test Jupyter Widget Library" diff --git a/{{cookiecutter.github_project_name}}/MANIFEST.in b/{{cookiecutter.github_project_name}}/MANIFEST.in index bf307a2..4c2b98f 100644 --- a/{{cookiecutter.github_project_name}}/MANIFEST.in +++ b/{{cookiecutter.github_project_name}}/MANIFEST.in @@ -5,7 +5,7 @@ graft js graft tests prune **/node_modules -include {{ cookiecutter.npm_package_name }}.json +include {{ cookiecutter.python_package_name }}.json include LICENSE include setup.py diff --git a/{{cookiecutter.github_project_name}}/setup.py b/{{cookiecutter.github_project_name}}/setup.py index a36ed14..84034a1 100644 --- a/{{cookiecutter.github_project_name}}/setup.py +++ b/{{cookiecutter.github_project_name}}/setup.py @@ -36,7 +36,7 @@ ('share/jupyter/nbextensions/{{ cookiecutter.npm_package_name }}', '{{ cookiecutter.python_package_name }}/nbextension', '*.*'), ('share/jupyter/labextensions/{{ cookiecutter.npm_package_name }}', '{{ cookiecutter.python_package_name }}/labextension', "**"), ("share/jupyter/labextensions/{{ cookiecutter.npm_package_name }}", '.', "install.json"), - ('etc/jupyter/nbconfig/notebook.d', '.', '{{ cookiecutter.npm_package_name }}.json'), + ('etc/jupyter/nbconfig/notebook.d', '.', '{{ cookiecutter.python_package_name }}.json'), ] cmdclass = create_cmdclass('jsdeps', data_files_spec=data_files_spec) diff --git a/{{cookiecutter.github_project_name}}/{{cookiecutter.npm_package_name}}.json b/{{cookiecutter.github_project_name}}/{{cookiecutter.python_package_name}}.json similarity index 100% rename from {{cookiecutter.github_project_name}}/{{cookiecutter.npm_package_name}}.json rename to {{cookiecutter.github_project_name}}/{{cookiecutter.python_package_name}}.json