Skip to content

Commit 0f75182

Browse files
authored
Merge pull request #15 from hbcarlos/releaser
Update check-release workflow to use latest releaser
2 parents 43f30ae + c223aec commit 0f75182

File tree

9 files changed

+185
-294
lines changed

9 files changed

+185
-294
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ jobs:
1212

1313
steps:
1414
- name: Checkout
15-
uses: actions/checkout@v2
15+
uses: actions/checkout@v3
1616

1717
- name: Base Setup
1818
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
1919

2020
- name: Install dependencies
21-
run: python -m pip install -U jupyterlab check-manifest
21+
run: python -m pip install -U jupyterlab~=3.4
2222

2323
- name: Lint the extension
2424
run: |
@@ -38,14 +38,13 @@ jobs:
3838
- name: Package the extension
3939
run: |
4040
set -eux
41-
check-manifest -v
4241
4342
pip install build
4443
python -m build
4544
pip uninstall -y "jupyterlab_lego_boost" jupyterlab
4645
4746
- name: Upload extension packages
48-
uses: actions/upload-artifact@v2
47+
uses: actions/upload-artifact@v3
4948
with:
5049
name: extension-artifacts
5150
path: dist/jupyterlab_lego_boost*
@@ -57,13 +56,13 @@ jobs:
5756

5857
steps:
5958
- name: Checkout
60-
uses: actions/checkout@v2
59+
uses: actions/checkout@v3
6160
- name: Install Python
62-
uses: actions/setup-python@v2
61+
uses: actions/setup-python@v4
6362
with:
6463
python-version: '3.9'
6564
architecture: 'x64'
66-
- uses: actions/download-artifact@v2
65+
- uses: actions/download-artifact@v3
6766
with:
6867
name: extension-artifacts
6968
- name: Install and Test
@@ -73,8 +72,7 @@ jobs:
7372
sudo rm -rf $(which node)
7473
sudo rm -rf $(which node)
7574
76-
pip install jupyterlab jupyterlab_lego_boost*.whl
77-
75+
pip install jupyterlab~=3.4 jupyterlab_lego_boost*.whl
7876
7977
jupyter labextension list
8078
jupyter labextension list 2>&1 | grep -ie "jupyterlab-lego-boost.*OK"

.github/workflows/check-release.yml

Lines changed: 20 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -13,51 +13,32 @@ permissions:
1313
jobs:
1414
check_release:
1515
runs-on: ubuntu-latest
16+
strategy:
17+
matrix:
18+
group: [check_release, link_check]
19+
python-version: ["3.9"]
20+
node-version: ["14.x"]
21+
1622
steps:
1723
- name: Checkout
18-
uses: actions/checkout@v2
19-
- name: Install Python
20-
uses: actions/setup-python@v2
21-
with:
22-
python-version: 3.9
23-
architecture: 'x64'
24-
- name: Install node
25-
uses: actions/setup-node@v2
26-
with:
27-
node-version: '14.x'
28-
29-
30-
- name: Get pip cache dir
31-
id: pip-cache
32-
run: |
33-
echo "::set-output name=dir::$(pip cache dir)"
34-
- name: Cache pip
35-
uses: actions/cache@v1
36-
with:
37-
path: ${{ steps.pip-cache.outputs.dir }}
38-
key: ${{ runner.os }}-pip-${{ hashFiles('package.json') }}
39-
restore-keys: |
40-
${{ runner.os }}-pip-
41-
- name: Cache checked links
42-
uses: actions/cache@v2
43-
with:
44-
path: ~/.cache/pytest-link-check
45-
key: ${{ runner.os }}-linkcheck-${{ hashFiles('**/.md') }}-md-links
46-
restore-keys: |
47-
${{ runner.os }}-linkcheck-
48-
- name: Upgrade packaging dependencies
49-
run: |
50-
pip install --upgrade pip setuptools wheel jupyter-packaging~=0.10 --user
24+
uses: actions/checkout@v3
25+
- name: Base Setup
26+
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
5127
- name: Install Dependencies
52-
run: |
53-
pip install .
28+
run: pip install -e .
29+
30+
- name: Check Links
31+
if: ${{ matrix.group == 'link_check' }}
32+
uses: jupyter-server/jupyter_releaser/.github/actions/check-links@v1
33+
5434
- name: Check Release
55-
uses: jupyter-server/jupyter_releaser/.github/actions/check-release@v1
35+
if: ${{ matrix.group == 'check_release' }}
36+
uses: jupyter-server/jupyter_releaser/.github/actions/check-release@v2
5637
with:
5738
token: ${{ secrets.GITHUB_TOKEN }}
58-
5939
- name: Upload Distributions
60-
uses: actions/upload-artifact@v2
40+
if: ${{ matrix.group == 'check_release' }}
41+
uses: actions/upload-artifact@v3
6142
with:
62-
name: jupyterlab_lego_boost-releaser-dist-${{ github.run_number }}
43+
name: jupyter-releaser-dist-${{ github.run_number }}
6344
path: .jupyter_releaser_checkout/dist

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ node_modules/
88
*.tsbuildinfo
99
jupyterlab_lego_boost/labextension
1010

11+
# Version file is handled by hatchling
12+
jupyterlab_lego_boost/_version.py
13+
1114
# Integration tests
1215
ui-tests/test-results/
1316
ui-tests/playwright-report/

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Link: https://www.lego.com/en-de/product/boost-creative-toolbox-17101
2525
To install the extension, execute:
2626

2727
```bash
28-
micromamba create -n boost -c conda-forge python nodejs yarn jupyterlab==3.4 jupyter-packaging jupyterlab-language-pack-es-ES jupyterlab-language-pack-fr-FR ipykernel xeus-python xeus-lua
28+
micromamba create -n boost -c conda-forge python=3.9 nodejs=16 yarn jupyterlab=3.4 jupyterlab-language-pack-es-ES jupyterlab-language-pack-fr-FR ipykernel xeus-python xeus-lua
2929
micromamba activate boost
3030
pip install jupyterlab-lego-boost
3131
```
@@ -59,7 +59,7 @@ The `jlpm` command is JupyterLab's pinned version of
5959
`yarn` or `npm` in lieu of `jlpm` below.
6060

6161
```bash
62-
micromamba create -n boost -c conda-forge python nodejs yarn jupyterlab==3.4 jupyter-packaging jupyterlab-language-pack-es-ES jupyterlab-language-pack-fr-FR ipykernel xeus-python xeus-lua
62+
micromamba create -n boost -c conda-forge python=3.9 nodejs=16 yarn jupyterlab=3.4 jupyterlab-language-pack-es-ES jupyterlab-language-pack-fr-FR ipykernel xeus-python xeus-lua
6363
micromamba activate boost
6464
# Clone the repo to your local environment
6565
# Change directory to the jupyterlab-lego-boost directory

jupyterlab_lego_boost/__init__.py

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,9 @@
1-
import json
2-
from pathlib import Path
3-
41
from ._version import __version__
5-
6-
7-
HERE = Path(__file__).parent.resolve()
8-
9-
10-
with (HERE / "labextension" / "package.json").open() as fid:
11-
data = json.load(fid)
2+
from pathlib import Path
123

134

145
def _jupyter_labextension_paths():
156
return [{
167
"src": "labextension",
17-
"dest": data["name"]
8+
"dest": "jupyterlab_lego_boost"
189
}]
19-

jupyterlab_lego_boost/_version.py

Lines changed: 0 additions & 23 deletions
This file was deleted.

package.json

Lines changed: 89 additions & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -1,103 +1,92 @@
11
{
2-
"name": "jupyterlab-lego-boost",
3-
"version": "0.1.0-alpha.1",
4-
"description": "Blockly extension for JupyterLab to control the Lego Boost",
5-
"keywords": [
6-
"jupyter",
7-
"jupyterlab",
8-
"jupyterlab-extension"
9-
],
10-
"homepage": "https://github.com/QuantStack/jupyterlab-lego-boost",
11-
"bugs": {
12-
"url": "https://github.com/QuantStack/jupyterlab-lego-boost/issues"
13-
},
14-
"license": "BSD-3-Clause",
15-
"author": {
16-
"name": "Denisa Checiu",
17-
"email": ""
18-
},
19-
"files": [
20-
"lib/**/*.{d.ts,eot,gif,html,jpg,js,js.map,json,png,svg,woff2,ttf}",
21-
"style/**/*.{css,js,eot,gif,html,jpg,json,png,svg,woff2,ttf}"
22-
],
23-
"main": "lib/index.js",
24-
"types": "lib/index.d.ts",
25-
"style": "style/index.css",
26-
"repository": {
27-
"type": "git",
28-
"url": "https://github.com/QuantStack/jupyterlab-lego-boost.git"
29-
},
30-
"scripts": {
31-
"build": "jlpm build:lib && jlpm build:labextension:dev",
32-
"build:prod": "jlpm clean && jlpm build:lib && jlpm build:labextension",
33-
"build:labextension": "jupyter labextension build .",
34-
"build:labextension:dev": "jupyter labextension build --development True .",
35-
"build:lib": "tsc",
36-
"clean": "jlpm clean:lib",
37-
"clean:lib": "rimraf lib tsconfig.tsbuildinfo",
38-
"clean:lintcache": "rimraf .eslintcache .stylelintcache",
39-
"clean:labextension": "rimraf jupyterlab_lego_boost/labextension",
40-
"clean:all": "jlpm clean:lib && jlpm clean:labextension && jlpm clean:lintcache",
41-
"eslint": "jlpm eslint:check --fix",
42-
"eslint:check": "eslint . --cache --ext .ts,.tsx",
43-
"install:extension": "jlpm build",
44-
"lint": "jlpm stylelint && jlpm prettier && jlpm eslint",
45-
"lint:check": "jlpm stylelint:check && jlpm prettier:check && jlpm eslint:check",
46-
"prettier": "jlpm prettier:base --write --list-different",
47-
"prettier:base": "prettier \"**/*{.ts,.tsx,.js,.jsx,.css,.json,.md}\"",
48-
"prettier:check": "jlpm prettier:base --check",
49-
"stylelint": "jlpm stylelint:check --fix",
50-
"stylelint:check": "stylelint --cache \"style/**/*.css\"",
51-
"watch": "run-p watch:src watch:labextension",
52-
"watch:src": "tsc -w",
53-
"watch:labextension": "jupyter labextension watch .",
54-
"postinstall": "patch-package"
55-
},
56-
"dependencies": {
57-
"@jupyterlab/application": "^3.4",
58-
"blockly": "^7.20211209.2",
59-
"jupyterlab-blockly": "^0.2.1",
60-
"patch-package": "^6.4.7",
61-
"postinstall-postinstall": "^2.1.0"
62-
},
63-
"devDependencies": {
64-
"@jupyterlab/builder": "^3.4",
65-
"@typescript-eslint/eslint-plugin": "^4.8.1",
66-
"@typescript-eslint/parser": "^4.8.1",
67-
"eslint": "^7.14.0",
68-
"eslint-config-prettier": "^6.15.0",
69-
"eslint-plugin-prettier": "^3.1.4",
70-
"npm-run-all": "^4.1.5",
71-
"prettier": "^2.1.1",
72-
"rimraf": "^3.0.2",
73-
"stylelint": "^14.3.0",
74-
"stylelint-config-prettier": "^9.0.3",
75-
"stylelint-config-recommended": "^6.0.0",
76-
"stylelint-config-standard": "~24.0.0",
77-
"stylelint-prettier": "^2.0.0",
78-
"typescript": "~4.5.2"
79-
},
80-
"sideEffects": [
81-
"style/*.css",
82-
"style/index.js"
83-
],
84-
"styleModule": "style/index.js",
85-
"publishConfig": {
86-
"access": "public"
87-
},
88-
"jupyterlab": {
89-
"extension": true,
90-
"outputDir": "jupyterlab_lego_boost/labextension"
91-
},
92-
"jupyter-releaser": {
93-
"hooks": {
94-
"before-build-npm": [
95-
"python -m pip install jupyterlab",
96-
"jlpm"
97-
],
98-
"before-build-python": [
99-
"jlpm clean:all"
100-
]
2+
"name": "jupyterlab-lego-boost",
3+
"version": "0.1.0-alpha.1",
4+
"description": "Blockly extension for JupyterLab to control the Lego Boost",
5+
"keywords": [
6+
"jupyter",
7+
"jupyterlab",
8+
"jupyterlab-extension"
9+
],
10+
"homepage": "https://github.com/QuantStack/jupyterlab-lego-boost",
11+
"bugs": {
12+
"url": "https://github.com/QuantStack/jupyterlab-lego-boost/issues"
13+
},
14+
"license": "BSD-3-Clause",
15+
"author": {
16+
"name": "Denisa Checiu",
17+
"email": "me@test.com"
18+
},
19+
"files": [
20+
"lib/**/*.{d.ts,eot,gif,html,jpg,js,js.map,json,png,svg,woff2,ttf}",
21+
"style/**/*.{css,js,eot,gif,html,jpg,json,png,svg,woff2,ttf}"
22+
],
23+
"main": "lib/index.js",
24+
"types": "lib/index.d.ts",
25+
"style": "style/index.css",
26+
"repository": {
27+
"type": "git",
28+
"url": "https://github.com/QuantStack/jupyterlab-lego-boost.git"
29+
},
30+
"scripts": {
31+
"build": "jlpm build:lib && jlpm build:labextension:dev",
32+
"build:prod": "jlpm clean && jlpm build:lib && jlpm build:labextension",
33+
"build:labextension": "jupyter labextension build .",
34+
"build:labextension:dev": "jupyter labextension build --development True .",
35+
"build:lib": "tsc",
36+
"clean": "jlpm clean:lib",
37+
"clean:lib": "rimraf lib tsconfig.tsbuildinfo",
38+
"clean:lintcache": "rimraf .eslintcache .stylelintcache",
39+
"clean:labextension": "rimraf jupyterlab_lego_boost/labextension",
40+
"clean:all": "jlpm clean:lib && jlpm clean:labextension && jlpm clean:lintcache",
41+
"eslint": "jlpm eslint:check --fix",
42+
"eslint:check": "eslint . --cache --ext .ts,.tsx",
43+
"install:extension": "jlpm build",
44+
"lint": "jlpm stylelint && jlpm prettier && jlpm eslint",
45+
"lint:check": "jlpm stylelint:check && jlpm prettier:check && jlpm eslint:check",
46+
"prettier": "jlpm prettier:base --write --list-different",
47+
"prettier:base": "prettier \"**/*{.ts,.tsx,.js,.jsx,.css,.json,.md}\"",
48+
"prettier:check": "jlpm prettier:base --check",
49+
"stylelint": "jlpm stylelint:check --fix",
50+
"stylelint:check": "stylelint --cache \"style/**/*.css\"",
51+
"watch": "run-p watch:src watch:labextension",
52+
"watch:src": "tsc -w",
53+
"watch:labextension": "jupyter labextension watch .",
54+
"postinstall": "patch-package"
55+
},
56+
"dependencies": {
57+
"@jupyterlab/application": "^3.4",
58+
"blockly": "^7.20211209.2",
59+
"jupyterlab-blockly": "^0.2.1",
60+
"patch-package": "^6.4.7",
61+
"postinstall-postinstall": "^2.1.0"
62+
},
63+
"devDependencies": {
64+
"@jupyterlab/builder": "^3.4",
65+
"@typescript-eslint/eslint-plugin": "^4.8.1",
66+
"@typescript-eslint/parser": "^4.8.1",
67+
"eslint": "^7.14.0",
68+
"eslint-config-prettier": "^6.15.0",
69+
"eslint-plugin-prettier": "^3.1.4",
70+
"npm-run-all": "^4.1.5",
71+
"prettier": "^2.1.1",
72+
"rimraf": "^3.0.2",
73+
"stylelint": "^14.3.0",
74+
"stylelint-config-prettier": "^9.0.3",
75+
"stylelint-config-recommended": "^6.0.0",
76+
"stylelint-config-standard": "~24.0.0",
77+
"stylelint-prettier": "^2.0.0",
78+
"typescript": "~4.5.2"
79+
},
80+
"sideEffects": [
81+
"style/*.css",
82+
"style/index.js"
83+
],
84+
"styleModule": "style/index.js",
85+
"publishConfig": {
86+
"access": "public"
87+
},
88+
"jupyterlab": {
89+
"extension": true,
90+
"outputDir": "jupyterlab_lego_boost/labextension"
10191
}
102-
}
10392
}

0 commit comments

Comments
 (0)