-
Notifications
You must be signed in to change notification settings - Fork 950
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
58 changed files
with
1,066 additions
and
11,238 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Build jupyterlab_widgets | ||
|
||
on: | ||
push: | ||
branches: master | ||
pull_request: | ||
branches: '*' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
- name: Install node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: '12.x' | ||
- name: Install Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: '3.8' | ||
architecture: 'x64' | ||
- name: Cache pip on Linux | ||
uses: actions/cache@v1 | ||
if: startsWith(runner.os, 'Linux') | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-pip-${{ matrix.python }}-${{ hashFiles('**/requirements.txt') }} | ||
restore-keys: | | ||
${{ runner.os }}-pip-${{ matrix.python }} | ||
- name: Get yarn cache directory path | ||
id: yarn-cache-dir-path | ||
run: echo "::set-output name=dir::$(yarn cache dir)" | ||
- name: Cache yarn | ||
uses: actions/cache@v1 | ||
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) | ||
with: | ||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn- | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install jupyterlab~=3.0 | ||
python -m pip install jupyter_packaging | ||
- name: Build the extension | ||
run: | | ||
pip install . | ||
jlpm install | ||
jlpm run build | ||
cd jupyterlab_widgets | ||
pwd | ||
pip install -e . | ||
jupyter labextension develop . --overwrite | ||
jupyter labextension list | ||
python -m jupyterlab.browser_check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ conda deactivate | |
conda remove --all -y -n releasewidgets | ||
rm -rf ipywidgets | ||
conda create -c conda-forge --override-channels -y -n releasewidgets notebook nodejs twine | ||
conda create -c conda-forge --override-channels -y -n releasewidgets notebook nodejs yarn twine jupyterlab=3 jupyter-packaging | ||
conda activate releasewidgets | ||
git clone [email protected]:jupyter-widgets/ipywidgets.git | ||
|
@@ -55,6 +55,20 @@ yarn run publish | |
|
||
Lerna will prompt you for version numbers for each of the changed npm packages in the version step. Lerna will then change the versions appropriately (including the interdependency versions), commit, and tag. The `yarn run publish` step then publishes the public packages that were versioned to npm. | ||
|
||
### jupyterlab_widgets | ||
|
||
Go into the `jupyterlab_widgets` directory. Change `jupyterlab_widgets/_version.py` to reflect the new version number. | ||
``` | ||
python setup.py sdist bdist_wheel | ||
twine check dist/* | ||
twine upload dist/* | ||
``` | ||
|
||
Verify that the package is uploaded. | ||
``` | ||
curl -s https://pypi.org/pypi/jupyterlab-widgets/json | jq -r '[.releases[][] | [.upload_time, .digests.sha256, .filename] | join(" ")] | sort ' | ||
``` | ||
|
||
### widgetsnbextension | ||
|
||
Go into the `widgetsnbextension` directory. Change `widgetsnbextension/_version.py` to reflect the new version number. | ||
|
@@ -103,6 +117,7 @@ Using the above script, you can do: | |
``` | ||
hashes dist/* | ||
hashes widgetsnbextension/dist/* | ||
hashes jupyterlab_widgets/dist/* | ||
``` | ||
|
||
Commit the changes you've made above, and include the uploaded files hashes in the commit message. Tag the release if ipywidgets was released. Push to origin master (and include the tag in the push). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.