Skip to content

Commit 0bef819

Browse files
committed
fix license metadata and update workflow
1 parent c6fa780 commit 0bef819

File tree

2 files changed

+11
-41
lines changed

2 files changed

+11
-41
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -8,46 +8,21 @@ on:
88

99
jobs:
1010
build:
11-
runs-on: ubuntu-latest
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
os: [ubuntu-latest, windows-latest, macos-latest]
16+
python-version: ["3.7", "3.10"]
1217
steps:
1318
- name: Checkout
1419
uses: actions/checkout@v2
1520

16-
- name: Install node
17-
uses: actions/setup-node@v2
18-
with:
19-
node-version: "12.x"
20-
21-
- name: Install Python
22-
uses: actions/setup-python@v2
23-
with:
24-
python-version: "3.7"
25-
architecture: "x64"
26-
27-
- name: Setup pip cache
28-
uses: actions/cache@v2
29-
with:
30-
path: ~/.cache/pip
31-
key: pip-3.7-${{ hashFiles('package.json') }}
32-
restore-keys: |
33-
pip-3.7-
34-
pip-
35-
36-
- name: Get npm cache directory
37-
id: npm-cache
38-
run: |
39-
echo "::set-output name=dir::$(npm config get cache)"
40-
41-
- uses: actions/cache@v2
42-
with:
43-
path: ${{ steps.npm-cache.outputs.dir }}
44-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
45-
restore-keys: |
46-
${{ runner.os }}-node-
21+
- uses: jupyterlab/maintainer-tools/.github/base-setup@v1
4722

4823
- name: Install dependencies
4924
run: |
50-
python -m pip install -U pip setuptools cookiecutter
25+
python -m pip install -U cookiecutter
5126
5227
- name: Test the extension
5328
run: |
@@ -68,13 +43,8 @@ jobs:
6843
python -m pytest --check-links
6944
popd
7045
71-
- name: Make a non-local install so the data_files get populated
46+
- name: Validate extension usage
7247
run: |
73-
pip uninstall -y jupyter_widget_testwidgets
74-
pushd jupyter-widget-testwidgets
75-
76-
pip install .
77-
7848
# Validate nbextension (enable does not use exit code):
7949
jupyter nbextension enable --py --sys-prefix jupyter_widget_testwidgets
8050
python -c "from notebook.nbextensions import validate_nbextension; import sys; sys.exit(validate_nbextension('jupyter_widget_testwidgets/extension') or 0)"

{{cookiecutter.github_project_name}}/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ build-backend = "hatchling.build"
99
name = "{{ cookiecutter.github_project_name }}"
1010
description = "{{ cookiecutter.project_short_description }}"
1111
readme = "README.md"
12-
license = "BSD"
13-
requires-python = ">=3.6"
12+
license = { file = "LICENSE.txt" }
13+
requires-python = ">=3.7"
1414
authors = [
1515
{ name = "{{ cookiecutter.author_name }}", email = "{{ cookiecutter.author_email }}" },
1616
]

0 commit comments

Comments
 (0)