Skip to content
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
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ jobs:

- name: Install the Python dependencies without debugpy
run: |
pip install .[test]
pip install . --group test
pip uninstall --yes debugpy

- name: List installed packages
Expand Down Expand Up @@ -253,6 +253,8 @@ jobs:
steps:
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@21b1cac622018fd37ec13a1c8081da814e10d94e # v1.0.0
- uses: jupyterlab/maintainer-tools/.github/actions/test-sdist@21b1cac622018fd37ec13a1c8081da814e10d94e # v1.0.0
with:
package_spec: ". --group test"

link_check:
runs-on: ubuntu-latest
Expand Down
7 changes: 3 additions & 4 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ sphinx:

python:
install:
# install itself with pip install .
- method: pip
path: .
extra_requirements:
- method: uv
command: sync
groups:
- docs
10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Documentation = "https://ipykernel.readthedocs.io"
Source = "https://github.com/ipython/ipykernel"
Tracker = "https://github.com/ipython/ipykernel/issues"

[project.optional-dependencies]
[dependency-groups]
docs = [
"sphinx",
"myst_parser",
Expand Down Expand Up @@ -84,26 +84,26 @@ path = "ipykernel/_version.py"
"./ipykernel_launcher.py" = "ipykernel_launcher.py"

[tool.hatch.envs.docs]
features = ["docs"]
dependency-groups = ["docs"]
[tool.hatch.envs.docs.scripts]
build = "make -C docs html SPHINXOPTS='-W'"
api = "sphinx-apidoc -o docs/api -f -E ipykernel tests ipykernel/datapub.py ipykernel/pickleutil.py ipykernel/serialize.py ipykernel/gui ipykernel/pylab ipykernel/utils.py"

[tool.hatch.envs.test]
features = ["test"]
dependency-groups = ["test"]
[tool.hatch.envs.test.scripts]
list = "python -m pip freeze"
test = "python -m pytest -vv {args}"
nowarn = "test -W default {args}"

[tool.hatch.envs.cov]
features = ["test", "cov"]
dependency-groups = ["test", "cov"]
[tool.hatch.envs.cov.scripts]
test = "python -m pytest -vv --cov ipykernel --cov-branch --cov-report term-missing:skip-covered {args}"
nowarn = "test -W default {args}"

[tool.hatch.envs.cov.overrides]
env.QT.features = [
env.QT.dependency-groups = [
{ value = "pyqt5", if = ["qt5"] },
{ value = "pyside6", if = ["qt6"] },
]
Expand Down
Loading