-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate to Jupyter Lab v4 #135
Draft
gjmooney
wants to merge
8
commits into
maartenbreddels:master
Choose a base branch
from
gjmooney:v4_migrate
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
919975f
Migrate to Jupyter lab v4
gjmooney 2ec7c56
Change JupyterLab version in pyproject.toml
gjmooney 2b644aa
Add ts-ignore to test
gjmooney 524b819
Change npm to yarn in package.json scripts
gjmooney 512bb08
Update micromamba setup in workflow
gjmooney 5bac400
Add yarn command to setup.py
gjmooney ca53993
Remove notebook 6 commands from CI
gjmooney 78f8b1b
Pin versions for testing
gjmooney File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
|
@@ -3,10 +3,10 @@ name: Tests | |
on: | ||
push: | ||
branches: | ||
- master | ||
- master | ||
pull_request: | ||
branches: | ||
- master | ||
- master | ||
|
||
defaults: | ||
run: | ||
|
@@ -23,78 +23,72 @@ jobs: | |
python-version: [3.9] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install Conda environment with Micromamba | ||
uses: mamba-org/provision-with-micromamba@main | ||
with: | ||
environment-name: ipywebrtc-dev | ||
environment-file: dev_environment.yml | ||
python-version: ${{ matrix.python-version }} | ||
mamba-version: "*" | ||
auto-activate-base: false | ||
channels: conda-forge | ||
|
||
- name: Test flake8 | ||
run: flake8 ipywebrtc --ignore=E501,F405 | ||
|
||
- name: Install ipywebrtc | ||
run: pip install . | ||
|
||
- name: Check installation files | ||
run: | | ||
test -d $CONDA_PREFIX/share/jupyter/nbextensions/jupyter-webrtc | ||
test -f $CONDA_PREFIX/share/jupyter/nbextensions/jupyter-webrtc/extension.js | ||
test -f $CONDA_PREFIX/share/jupyter/nbextensions/jupyter-webrtc/index.js | ||
test -d $CONDA_PREFIX/share/jupyter/labextensions/jupyter-webrtc | ||
test -f $CONDA_PREFIX/share/jupyter/labextensions/jupyter-webrtc/package.json | ||
|
||
- name: Check nbextension and labextension | ||
run: | | ||
jupyter nbextension list 2>&1 | grep -ie "jupyter-webrtc/extension.*enabled" - | ||
jupyter labextension list 2>&1 | grep -ie "jupyter-webrtc.*enabled.*ok" - | ||
|
||
- name: Run js tests | ||
run: | | ||
npm install | ||
npm run test | ||
working-directory: js | ||
|
||
- name: Build docs (Only on MacOS for build speed) | ||
if: matrix.os == 'macos-latest' | ||
run: | | ||
cd docs/source/ | ||
sphinx-build . _build/html | ||
cd ../.. | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install Conda environment with Micromamba | ||
uses: mamba-org/setup-micromamba@v1 | ||
with: | ||
environment-file: dev_environment.yml | ||
condarc: | | ||
dependencies: | ||
- python==${{ matrix.python-version }} | ||
|
||
- name: Test flake8 | ||
run: flake8 ipywebrtc --ignore=E501,F405 | ||
|
||
- name: Install ipywebrtc | ||
run: pip install . | ||
|
||
- name: Check installation files | ||
run: | | ||
test -d $CONDA_PREFIX/share/jupyter/nbextensions/jupyter-webrtc | ||
test -f $CONDA_PREFIX/share/jupyter/nbextensions/jupyter-webrtc/extension.js | ||
test -f $CONDA_PREFIX/share/jupyter/nbextensions/jupyter-webrtc/index.js | ||
test -d $CONDA_PREFIX/share/jupyter/labextensions/jupyter-webrtc | ||
test -f $CONDA_PREFIX/share/jupyter/labextensions/jupyter-webrtc/package.json | ||
|
||
- name: Check nbextension and labextension | ||
run: | | ||
jupyter labextension list 2>&1 | grep -ie "jupyter-webrtc.*enabled.*ok" - | ||
|
||
- name: Run js tests | ||
run: | | ||
jlpm install | ||
jlpm test | ||
working-directory: js | ||
|
||
- name: Build docs (Only on MacOS for build speed) | ||
if: matrix.os == 'macos-latest' | ||
run: | | ||
cd docs/source/ | ||
sphinx-build . _build/html | ||
cd ../.. | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install Conda environment with Micromamba | ||
uses: mamba-org/provision-with-micromamba@main | ||
with: | ||
environment-name: ipywebrtc-dev | ||
environment-file: dev_environment.yml | ||
python-version: ${{ matrix.python-version }} | ||
mamba-version: "*" | ||
auto-activate-base: false | ||
channels: conda-forge | ||
|
||
- name: Build packages | ||
run: | | ||
python setup.py sdist bdist_wheel | ||
cd dist | ||
sha256sum * | tee SHA256SUMS | ||
- name: Upload builds | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: dist ${{ github.run_number }} | ||
path: ./dist | ||
- name: Install Conda environment with Micromamba | ||
uses: mamba-org/setup-micromamba@v1 | ||
with: | ||
environment-file: dev_environment.yml | ||
condarc: | | ||
dependencies: | ||
- python==${{ matrix.python-version }} | ||
|
||
- name: Build packages | ||
run: | | ||
python setup.py sdist bdist_wheel | ||
cd dist | ||
sha256sum * | tee SHA256SUMS | ||
- name: Upload builds | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: dist ${{ github.run_number }} | ||
path: ./dist | ||
|
||
install: | ||
runs-on: ${{ matrix.os }}-latest | ||
|
@@ -104,27 +98,24 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
os: [ubuntu, macos, windows] | ||
python: ['3.6', '3.9'] | ||
python: ["3.6", "3.9"] | ||
include: | ||
- python: '3.6' | ||
dist: 'ipywebrtc*.tar.gz' | ||
- python: '3.9' | ||
dist: 'ipywebrtc*.whl' | ||
- python: "3.6" | ||
dist: "ipywebrtc*.tar.gz" | ||
- python: "3.9" | ||
dist: "ipywebrtc*.whl" | ||
Comment on lines
+103
to
+106
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This isn't that bad, because it's not mixed with other changes, but adds noise. |
||
|
||
steps: | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install Conda environment with Micromamba | ||
uses: mamba-org/provision-with-micromamba@main | ||
uses: mamba-org/setup-micromamba@v1 | ||
with: | ||
environment-name: ipywebrtc-dev | ||
environment-file: dev_environment.yml | ||
python-version: ${{ matrix.python-version }} | ||
mamba-version: "*" | ||
auto-activate-base: false | ||
channels: conda-forge | ||
condarc: | | ||
dependencies: | ||
- python==${{ matrix.python-version }} | ||
|
||
- uses: actions/download-artifact@v2 | ||
with: | ||
|
@@ -145,8 +136,5 @@ jobs: | |
test -f $CONDA_PREFIX/share/jupyter/labextensions/jupyter-webrtc/package.json | ||
test -d $CONDA_PREFIX/share/jupyter/labextensions/jupyter-webrtc/static | ||
|
||
- name: Validate the nbextension | ||
run: jupyter nbextension list 2>&1 | grep "jupyter-webrtc/extension" | ||
|
||
- name: Validate the labextension | ||
run: jupyter labextension list 2>&1 | grep jupyter-webrtc |
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 |
---|---|---|
|
@@ -12,3 +12,5 @@ share | |
|
||
# OS X | ||
.DS_Store | ||
|
||
.yarn/ |
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 |
---|---|---|
@@ -1,17 +1,17 @@ | ||
name: ipywebrtc-dev | ||
channels: | ||
- conda-forge | ||
- conda-forge | ||
dependencies: | ||
- pip | ||
- nodejs=14.* | ||
- yarn | ||
- jupyter-packaging | ||
- jupyterlab=3 | ||
- notebook | ||
- ipywidgets>=7.6 | ||
- flake8 | ||
- nbsphinx | ||
- sphinx | ||
- sphinx_rtd_theme | ||
- pygments==2.6.1 | ||
- jupyter-sphinx | ||
- pip | ||
- nodejs=14.* | ||
- yarn | ||
- jupyter-packaging | ||
- jupyterlab=4 | ||
- notebook | ||
- ipywidgets>=7.6 | ||
- flake8 | ||
- nbsphinx | ||
- sphinx | ||
- sphinx_rtd_theme | ||
- pygments==2.6.1 | ||
- jupyter-sphinx |
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,2 @@ | ||
enableImmutableInstalls: false | ||
nodeLinker: node-modules |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here, very difficult to see what actually changed and what is related to the intention or the PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's easier to review hiding the whitespaces changes https://github.com/maartenbreddels/ipywebrtc/pull/135/files?diff=split&w=1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
w=1
is the query parameter