Skip to content
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

Add support for jupyterlab 4 #272

Merged
merged 4 commits into from
Jun 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
24 changes: 24 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
labels:
- "part: github_actions"

- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "monthly"
labels:
- "lang: python"
- "part: dependencies"

- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "monthly"
labels:
- "lang: javascript"
- "part: dependencies"
41 changes: 30 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,20 +39,26 @@ 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: |
Expand All @@ -64,16 +69,30 @@ jobs:
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
Loading