Skip to content

Commit

Permalink
Align config on copier template (jupyterlab-contrib#41)
Browse files Browse the repository at this point in the history
* Align config on copier template

* Fix linter config
  • Loading branch information
fcollonval authored Aug 1, 2023
1 parent 882eb81 commit b04fe8b
Show file tree
Hide file tree
Showing 33 changed files with 1,241 additions and 5,289 deletions.
19 changes: 19 additions & 0 deletions .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
_commit: v4.0.10
_src_path: https://github.com/jupyterlab/extension-template
author_email: [email protected]
author_name: Frederic Collonval
data_format: string
file_extension: ''
has_binder: true
has_settings: true
kind: server
labextension_name: jupyterlab-rise
mimetype: ''
mimetype_name: ''
project_short_description: 'RISE: "Live" Reveal.js JupyterLab Slideshow extension.'
python_name: jupyterlab_rise
repository: https://github.com/jupyterlab-contrib/rise
test: true
viewer_name: ''

9 changes: 0 additions & 9 deletions .eslintignore

This file was deleted.

39 changes: 0 additions & 39 deletions .eslintrc.js

This file was deleted.

4 changes: 0 additions & 4 deletions .github/workflows/binder-on-pr.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
# Reference https://mybinder.readthedocs.io/en/latest/howto/gh-actions-badges.html
name: Binder Badge
on:
pull_request_target:
types: [opened]


jobs:
binder:
runs-on: ubuntu-latest
Expand All @@ -13,6 +11,4 @@ jobs:
steps:
- uses: jupyterlab/maintainer-tools/.github/actions/binder-link@v1
with:

github_token: ${{ secrets.github_token }}

17 changes: 8 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,22 @@ jobs:
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1

- name: Install dependencies
run: python -m pip install -U jupyterlab~=4.0
run: python -m pip install -U "jupyterlab>=4.0.0,<5"

- name: Lint the extension
run: |
set -eux
jlpm
jlpm run lint:check
# - name: Test the extension
# run: |
# set -eux
# jlpm run test
- name: Build the extension
run: |
set -eux
python -m pip install .[test]
jupyter server extension list
jupyter server extension list 2>&1 | grep -ie "jupyterlab_rise.*OK"
jupyter labextension list
jupyter labextension list 2>&1 | grep -ie "jupyterlab-rise.*OK"
python -m jupyterlab.browser_check
Expand Down Expand Up @@ -75,7 +73,8 @@ jobs:
sudo rm -rf $(which node)
sudo rm -rf $(which node)
pip install "jupyterlab~=4.0" jupyterlab_rise*.whl
pip install "jupyterlab>=4.0.0,<5" jupyterlab_rise*.whl
jupyter server extension list
jupyter server extension list 2>&1 | grep -ie "jupyterlab_rise.*OK"
Expand Down Expand Up @@ -103,11 +102,11 @@ jobs:
uses: actions/download-artifact@v3
with:
name: extension-artifacts

- name: Install the extension
run: |
set -eux
python -m pip install "jupyterlab~=4.0" jupyterlab_rise*.whl
python -m pip install "jupyterlab>=4.0.0,<5" jupyterlab_rise*.whl
- name: Install dependencies
working-directory: ui-tests
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/check-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ jobs:
- name: Check Release
uses: jupyter-server/jupyter_releaser/.github/actions/check-release@v2
with:

token: ${{ secrets.GITHUB_TOKEN }}

- name: Upload Distributions
uses: actions/upload-artifact@v3
with:
name: jupyterlab_rise-releaser-dist-${{ github.run_number }}
path: .jupyter_releaser_checkout/dist
path: .jupyter_releaser_checkout/dist
41 changes: 41 additions & 0 deletions .github/workflows/prep-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: "Step 1: Prep Release"
on:
workflow_dispatch:
inputs:
version_spec:
description: "New Version Specifier"
default: "next"
required: false
branch:
description: "The branch to target"
required: false
post_version_spec:
description: "Post Version Specifier"
required: false
since:
description: "Use PRs with activity since this date or git reference"
required: false
since_last_stable:
description: "Use PRs with activity since the last stable git tag"
required: false
type: boolean
jobs:
prep_release:
runs-on: ubuntu-latest
steps:
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1

- name: Prep Release
id: prep-release
uses: jupyter-server/jupyter_releaser/.github/actions/prep-release@v2
with:
token: ${{ secrets.ADMIN_GITHUB_TOKEN }}
version_spec: ${{ github.event.inputs.version_spec }}
post_version_spec: ${{ github.event.inputs.post_version_spec }}
branch: ${{ github.event.inputs.branch }}
since: ${{ github.event.inputs.since }}
since_last_stable: ${{ github.event.inputs.since_last_stable }}

- name: "** Next Step **"
run: |
echo "Optional): Review Draft Release: ${{ steps.prep-release.outputs.release_url }}"
13 changes: 8 additions & 5 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ on:
jobs:
publish_release:
runs-on: ubuntu-latest
permissions:
# This is useful if you want to use PyPI trusted publisher
# and NPM provenance
id-token: write
steps:
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1

Expand All @@ -23,22 +27,21 @@ jobs:
uses: jupyter-server/jupyter_releaser/.github/actions/populate-release@v2
with:
token: ${{ secrets.ADMIN_GITHUB_TOKEN }}
target: ${{ github.event.inputs.target }}
branch: ${{ github.event.inputs.branch }}
release_url: ${{ github.event.inputs.release_url }}
steps_to_skip: ${{ github.event.inputs.steps_to_skip }}

- name: Finalize Release
id: finalize-release
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
PYPI_TOKEN_MAP: ${{ secrets.PYPI_TOKEN_MAP }}
TWINE_USERNAME: __token__
# The following are needed if you use legacy PyPI set up
# PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
# PYPI_TOKEN_MAP: ${{ secrets.PYPI_TOKEN_MAP }}
# TWINE_USERNAME: __token__
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
uses: jupyter-server/jupyter-releaser/.github/actions/finalize-release@v2
with:
token: ${{ secrets.ADMIN_GITHUB_TOKEN }}
target: ${{ github.event.inputs.target }}
release_url: ${{ steps.populate-release.outputs.release_url }}

- name: "** Next Step **"
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/update-integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ permissions:
pull-requests: write

jobs:


update-snapshots:
if: ${{ github.event.issue.pull_request && contains(github.event.comment.body, 'please update playwright snapshots') }}
runs-on: ubuntu-latest
Expand All @@ -29,7 +27,13 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

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

- name: Install dependencies
run: python -m pip install -U "jupyterlab>=4.0.0,<5"

- name: Install extension
run: |
set -eux
jlpm
Expand All @@ -41,4 +45,3 @@ jobs:
# Playwright knows how to start JupyterLab server
start_server_script: 'null'
test_folder: ui-tests

10 changes: 7 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
*.bundle.*
.yarn
lib/
node_modules/
*.log
.eslintcache
.stylelintcache
*.egg-info/
Expand All @@ -10,6 +10,8 @@ node_modules/
jupyterlab_rise/labextension
# Version file is handled by hatchling
jupyterlab_rise/_version.py
jupyterlab_rise/schemas
jupyterlab_rise/static

# Integration tests
ui-tests/test-results/
Expand Down Expand Up @@ -65,6 +67,7 @@ htmlcov/
.coverage.*
.cache
nosetests.xml
coverage/
coverage.xml
*.cover
.hypothesis/
Expand Down Expand Up @@ -119,5 +122,6 @@ dmypy.json

# OSX files
.DS_Store
jupyterlab_rise/schemas
jupyterlab_rise/static

# Yarn cache
.yarn/
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ node_modules
**/node_modules
**/lib
**/package.json
!/package.json
jupyterlab_rise
app/build
13 changes: 0 additions & 13 deletions .stylelintrc

This file was deleted.

57 changes: 0 additions & 57 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,60 +27,3 @@
[@dependabot](https://github.com/search?q=repo%3Ajupyterlab-contrib%2Frise+involves%3Adependabot+updated%3A2023-02-26..2023-07-26&type=Issues) | [@github-actions](https://github.com/search?q=repo%3Ajupyterlab-contrib%2Frise+involves%3Agithub-actions+updated%3A2023-02-26..2023-07-26&type=Issues) | [@hbcarlos](https://github.com/search?q=repo%3Ajupyterlab-contrib%2Frise+involves%3Ahbcarlos+updated%3A2023-02-26..2023-07-26&type=Issues)

<!-- <END NEW CHANGELOG ENTRY> -->

## 0.2.0

([Full Changelog](https://github.com/jupyterlab-contrib/rise/compare/jupyterlab-rise-application@0.1.0...f0b83c29a12e28a870efed2143b9d83a3d1c7032))

### Bugs fixed

- Fix bump version script [#23](https://github.com/jupyterlab-contrib/rise/pull/23) ([@fcollonval](https://github.com/fcollonval))
- Fix bump version script [#22](https://github.com/jupyterlab-contrib/rise/pull/22) ([@fcollonval](https://github.com/fcollonval))
- Fix shell pollution by third party extension [#21](https://github.com/jupyterlab-contrib/rise/pull/21) ([@fcollonval](https://github.com/fcollonval))
- Fix bumping version [#20](https://github.com/jupyterlab-contrib/rise/pull/20) ([@fcollonval](https://github.com/fcollonval))
- Fixes Syntax Highlighting [#19](https://github.com/jupyterlab-contrib/rise/pull/19) ([@AnotherCodeArtist](https://github.com/AnotherCodeArtist))

### Maintenance and upkeep improvements

- Fix bump version script [#23](https://github.com/jupyterlab-contrib/rise/pull/23) ([@fcollonval](https://github.com/fcollonval))
- Fix bump version script [#22](https://github.com/jupyterlab-contrib/rise/pull/22) ([@fcollonval](https://github.com/fcollonval))
- Fix bumping version [#20](https://github.com/jupyterlab-contrib/rise/pull/20) ([@fcollonval](https://github.com/fcollonval))

### Documentation improvements

- Add numpy and ipywidgets to the binder environment [#16](https://github.com/jupyterlab-contrib/rise/pull/16) ([@nthiery](https://github.com/nthiery))

### Contributors to this release

([GitHub contributors page for this release](https://github.com/jupyterlab-contrib/rise/graphs/contributors?from=2023-02-16&to=2023-02-26&type=c))

[@AnotherCodeArtist](https://github.com/search?q=repo%3Ajupyterlab-contrib%2Frise+involves%3AAnotherCodeArtist+updated%3A2023-02-16..2023-02-26&type=Issues) | [@fcollonval](https://github.com/search?q=repo%3Ajupyterlab-contrib%2Frise+involves%3Afcollonval+updated%3A2023-02-16..2023-02-26&type=Issues) | [@github-actions](https://github.com/search?q=repo%3Ajupyterlab-contrib%2Frise+involves%3Agithub-actions+updated%3A2023-02-16..2023-02-26&type=Issues) | [@nthiery](https://github.com/search?q=repo%3Ajupyterlab-contrib%2Frise+involves%3Anthiery+updated%3A2023-02-16..2023-02-26&type=Issues)

## 0.1.1

([Full Changelog](https://github.com/jupyterlab-contrib/rise/compare/v0.1.0...d64519dae8bf932038b094f4c51ba1fbf0fcea68))

### Bugs fixed

- Fix for #8 [#9](https://github.com/jupyterlab-contrib/rise/pull/9) ([@AnotherCodeArtist](https://github.com/AnotherCodeArtist))
- Fix jupyter-releaser config [#2](https://github.com/jupyterlab-contrib/rise/pull/2) ([@fcollonval](https://github.com/fcollonval))

### Maintenance and upkeep improvements

- Add releaser workflows [#10](https://github.com/jupyterlab-contrib/rise/pull/10) ([@fcollonval](https://github.com/fcollonval))
- Fix binder [#3](https://github.com/jupyterlab-contrib/rise/pull/3) ([@fcollonval](https://github.com/fcollonval))
- Fix jupyter-releaser config [#2](https://github.com/jupyterlab-contrib/rise/pull/2) ([@fcollonval](https://github.com/fcollonval))

### Documentation improvements

- Add status badge [#7](https://github.com/jupyterlab-contrib/rise/pull/7) ([@fcollonval](https://github.com/fcollonval))

### Other merged PRs

- Bump json5 from 1.0.1 to 1.0.2 [#5](https://github.com/jupyterlab-contrib/rise/pull/5) ([@dependabot](https://github.com/dependabot))

### Contributors to this release

([GitHub contributors page for this release](https://github.com/jupyterlab-contrib/rise/graphs/contributors?from=2022-12-11&to=2023-02-16&type=c))

[@AnotherCodeArtist](https://github.com/search?q=repo%3Ajupyterlab-contrib%2Frise+involves%3AAnotherCodeArtist+updated%3A2022-12-11..2023-02-16&type=Issues) | [@dependabot](https://github.com/search?q=repo%3Ajupyterlab-contrib%2Frise+involves%3Adependabot+updated%3A2022-12-11..2023-02-16&type=Issues) | [@fcollonval](https://github.com/search?q=repo%3Ajupyterlab-contrib%2Frise+involves%3Afcollonval+updated%3A2022-12-11..2023-02-16&type=Issues) | [@github-actions](https://github.com/search?q=repo%3Ajupyterlab-contrib%2Frise+involves%3Agithub-actions+updated%3A2022-12-11..2023-02-16&type=Issues)
Loading

0 comments on commit b04fe8b

Please sign in to comment.