Skip to content

Commit

Permalink
Add support for jupyterlab 4, fixes #264, fixes #229
Browse files Browse the repository at this point in the history
  • Loading branch information
painebot committed Jun 1, 2024
1 parent c6522de commit 7850574
Show file tree
Hide file tree
Showing 50 changed files with 6,146 additions and 6,572 deletions.
23 changes: 7 additions & 16 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,25 +1,16 @@
[bumpversion]
current_version = (0, 2, 3, "final", 0)
current_version = 0.2.3
commit = True
tag = False
parse = (?P<major>\d+)\,\ (?P<minor>\d+)\,\ (?P<patch>\d+)\,\ \"(?P<release>\S+)\"\,\ (?P<build>\d+)
serialize =
{major}, {minor}, {patch}, "{release}", {build}

[bumpversion:part:release]
optional_value = final
values =
alpha
candidate
final
[bumpversion:file:nbcelltests/__init__.py]
search = __version__ = "{current_version}"
replace = __version__ = "{new_version}"

[bumpversion:part:build]

[bumpversion:file:nbcelltests/_version.py]
[bumpversion:file:pyproject.toml]
search = version = "{current_version}"
replace = version = "{new_version}"

[bumpversion:file:js/package.json]
search = "version": "{current_version}"
replace = "version": "{new_version}"
serialize =
{major}.{minor}.{patch}-{release}.{build}
{major}.{minor}.{patch}
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
examples/* linguist-documentation
docs/* linguist-documentation
*.ipynb linguist-documentation
Makefile linguist-documentation

*.py text=auto eol=lf
*.js text=auto eol=lf
File renamed without changes.
14 changes: 14 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "monthly"
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "monthly"
46 changes: 35 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ concurrency:
permissions:
checks: write
pull-requests: write

jobs:
build:
runs-on: ${{ matrix.os }}
Expand All @@ -31,7 +31,6 @@ jobs:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.9]
node-version: [16.x]
event-name: [push]

steps:
- uses: actions/checkout@v4
Expand All @@ -40,40 +39,65 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
cache-dependency-path: 'setup.py'

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
cache-dependency-path: js/yarn.lock

- name: Install yarn
run: npm install -g yarn

- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel twine jupyter_packaging
python -m pip install -e .[dev]
cd js; yarn
make develop
- name: Build
run: |
make build
- name: Lint
run: |
make lint
- name: Checks
run: |
make checks
if: ${{ matrix.os == 'ubuntu-latest' }}

- name: Test
run: |
make tests
if: ${{ matrix.os == 'ubuntu-latest' }}

- name: Twine check
run: |
make dist
- name: Upload test results (Python)
uses: actions/upload-artifact@v4
with:
name: py-test-results-${{ matrix.os }}-${{ matrix.python-version }}
path: junit.xml
if: ${{ always() }}

- name: Upload test results
- name: Upload test results (JS)
uses: actions/upload-artifact@v4
with:
name: pytest-results-${{ matrix.os }}-${{ matrix.python-version }}
path: python_junit.xml
name: js-test-results-${{ matrix.os }}-${{ matrix.python-version }}
path: js/junit.xml
if: ${{ always() }}

- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
with:
files: |
**/junit.xml
if: ${{ matrix.os == 'ubuntu-latest' }}

- name: Upload coverage
uses: codecov/codecov-action@v4

- name: Twine check
run: |
make dist
55 changes: 0 additions & 55 deletions .github/workflows/publish.yml

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ Untitled_test.py
docs/api
docs/index.md
python_junit.xml
junit.xml
examples/_*
*_test.py
*_test.html
34 changes: 0 additions & 34 deletions MANIFEST.in

This file was deleted.

Loading

0 comments on commit 7850574

Please sign in to comment.