File tree Expand file tree Collapse file tree 19 files changed +112
-97
lines changed Expand file tree Collapse file tree 19 files changed +112
-97
lines changed Original file line number Diff line number Diff line change 47
47
- name : Install dependencies
48
48
run : |
49
49
python -m pip install --upgrade pip wheel
50
- python -m pip install jupyter_packaging
50
+ python -m pip install jupyter_packaging~=0.10
51
51
- name : Install the package
52
52
run : |
53
53
python -m pip install .
@@ -82,10 +82,10 @@ jobs:
82
82
- name : Install dependencies
83
83
run : |
84
84
python -m pip install --upgrade pip wheel
85
- python -m pip install setuptools jupyter_packaging "jupyterlab>=3,<4"
85
+ python -m pip install setuptools jupyter_packaging~=0.10 "jupyterlab>=3,<4" build
86
86
- name : Build pypi distributions
87
87
run : |
88
- python setup.py sdist bdist_wheel
88
+ python -m build
89
89
- name : Build npm distributions
90
90
run : |
91
91
mkdir pkgs
Original file line number Diff line number Diff line change 27
27
architecture : ' x64'
28
28
- name : Install dependencies
29
29
run : |
30
- python -m pip install -U jupyterlab~=3.0 jupyter_packaging~=0.7.9 pip
30
+ python -m pip install -U jupyterlab~=3.0 jupyter_packaging~=0.10 pip
31
31
jlpm
32
32
jlpm run build
33
33
- name : Configure git identity to commit
72
72
architecture : ' x64'
73
73
- name : Install dependencies
74
74
run : |
75
- python -m pip install -U jupyterlab~=3.0 jupyter_packaging~=0.7.9 pip
75
+ python -m pip install -U jupyterlab~=3.0 jupyter_packaging~=0.10 pip
76
76
jlpm
77
77
jlpm run build
78
78
- name : Publish to npm in dry-run mode
Original file line number Diff line number Diff line change 47
47
- name : Install dependencies
48
48
run : |
49
49
python -m pip install --upgrade pip wheel
50
- python -m pip install jupyter_packaging
50
+ python -m pip install jupyter_packaging~=0.10
51
51
- name : Install the package
52
52
run : |
53
53
python -m pip install .
@@ -82,10 +82,10 @@ jobs:
82
82
- name : Install dependencies
83
83
run : |
84
84
python -m pip install --upgrade pip wheel
85
- python -m pip install setuptools jupyter_packaging "jupyterlab>=3,<4"
85
+ python -m pip install setuptools jupyter_packaging~=0.10 "jupyterlab>=3,<4" build
86
86
- name : Build pypi distributions
87
87
run : |
88
- python setup.py sdist bdist_wheel
88
+ python -m build
89
89
- name : Build npm distributions
90
90
run : |
91
91
mkdir pkgs
@@ -184,7 +184,7 @@ jobs:
184
184
architecture : ' x64'
185
185
- name : Install dependencies
186
186
run : |
187
- python -m pip install -U jupyterlab~=3.0 jupyter_packaging~=0.7.9 pip
187
+ python -m pip install -U jupyterlab~=3.0 jupyter_packaging~=0.10 pip
188
188
jlpm
189
189
jlpm run build
190
190
- uses : actions/download-artifact@v2
Original file line number Diff line number Diff line change @@ -23,6 +23,12 @@ conda activate retrolab
23
23
24
24
# Install package in development mode
25
25
pip install -e .
26
+
27
+ # Link the RetroLab JupyterLab extension
28
+ jupyter labextension develop . --overwrite
29
+
30
+ # Enable the server extension
31
+ jupyter server extension enable retrolab
26
32
```
27
33
28
34
` retrolab ` follows a monorepo structure. To build all the packages at once:
Original file line number Diff line number Diff line change 1
1
include LICENSE
2
- include README .md
2
+ include * .md
3
3
include pyproject.toml
4
4
include jupyter-config/retrolab.json
5
5
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ Make sure the `dist/` folder is empty.
63
63
- ` jlpm `
64
64
- ` jlpm run lerna version x.y.z --no-push --amend --force-publish `
65
65
66
- 4 . Run: ` python setup.py sdist bdist_wheel `
66
+ 4 . Run: ` python -m pip install build && python -m build `
67
67
5 . Double check the size of the bundles in the ` dist/ ` folder
68
68
6 . Test the release by installing the wheel or sdist: `python -m pip install ./dist/retrolab-x.y.z-py3-none-any.whl
69
69
7 . ` export TWINE_USERNAME=mypypi_username `
Original file line number Diff line number Diff line change @@ -3,3 +3,6 @@ set -euo pipefail
3
3
4
4
jlpm && jlpm run build
5
5
python -m pip install -e .
6
+ jupyter labextension develop . --overwrite
7
+ jupyter server extension enable retrolab
8
+ jupyter serverextension enable retrolab
Original file line number Diff line number Diff line change 32
32
],
33
33
"scripts" : {
34
34
"build" : " tsc -b" ,
35
+ "build:prod" : " tsc -b" ,
35
36
"clean" : " rimraf lib && rimraf tsconfig.tsbuildinfo" ,
36
37
"docs" : " typedoc src" ,
37
38
"prepublishOnly" : " npm run build" ,
Original file line number Diff line number Diff line change 31
31
],
32
32
"scripts" : {
33
33
"build" : " tsc -b" ,
34
+ "build:prod" : " tsc -b" ,
34
35
"build:test" : " tsc --build tsconfig.test.json" ,
35
36
"clean" : " rimraf lib && rimraf tsconfig.tsbuildinfo" ,
36
37
"docs" : " typedoc src" ,
Original file line number Diff line number Diff line change 32
32
],
33
33
"scripts" : {
34
34
"build" : " tsc -b" ,
35
+ "build:prod" : " tsc -b" ,
35
36
"clean" : " rimraf lib && rimraf tsconfig.tsbuildinfo" ,
36
37
"docs" : " typedoc src" ,
37
38
"prepublishOnly" : " npm run build" ,
You can’t perform that action at this time.
0 commit comments