Skip to content

Commit b22838c

Browse files
committed
Merge remote-tracking branch 'upstream/main' into path-ownership
2 parents f4b82e5 + 0a19278 commit b22838c

File tree

8 files changed

+106
-18
lines changed

8 files changed

+106
-18
lines changed

.github/workflows/prep-release.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ on:
1212
post_version_spec:
1313
description: "Post Version Specifier"
1414
required: false
15+
silent:
16+
description: "Set a placeholder in the changelog and don't publish the release."
17+
required: false
18+
type: boolean
1519
since:
1620
description: "Use PRs with activity since this date or git reference"
1721
required: false
@@ -22,15 +26,18 @@ on:
2226
jobs:
2327
prep_release:
2428
runs-on: ubuntu-latest
29+
permissions:
30+
contents: write
2531
steps:
2632
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
2733

2834
- name: Prep Release
2935
id: prep-release
3036
uses: jupyter-server/jupyter_releaser/.github/actions/prep-release@v2
3137
with:
32-
token: ${{ secrets.ADMIN_GITHUB_TOKEN }}
38+
token: ${{ secrets.GITHUB_TOKEN }}
3339
version_spec: ${{ github.event.inputs.version_spec }}
40+
silent: ${{ github.event.inputs.silent }}
3441
post_version_spec: ${{ github.event.inputs.post_version_spec }}
3542
target: ${{ github.event.inputs.target }}
3643
branch: ${{ github.event.inputs.branch }}
+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: "Publish Changelog"
2+
on:
3+
release:
4+
types: [published]
5+
6+
workflow_dispatch:
7+
inputs:
8+
branch:
9+
description: "The branch to target"
10+
required: false
11+
12+
jobs:
13+
publish_changelog:
14+
runs-on: ubuntu-latest
15+
environment: release
16+
steps:
17+
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
18+
19+
- uses: actions/create-github-app-token@v1
20+
id: app-token
21+
with:
22+
app-id: ${{ vars.APP_ID }}
23+
private-key: ${{ secrets.APP_PRIVATE_KEY }}
24+
25+
- name: Publish changelog
26+
id: publish-changelog
27+
uses: jupyter-server/jupyter_releaser/.github/actions/publish-changelog@v2
28+
with:
29+
token: ${{ steps.app-token.outputs.token }}
30+
branch: ${{ github.event.inputs.branch }}
31+
32+
- name: "** Next Step **"
33+
run: |
34+
echo "Merge the changelog update PR: ${{ steps.publish-changelog.outputs.pr_url }}"

.github/workflows/publish-release.yml

+12-10
Original file line numberDiff line numberDiff line change
@@ -15,30 +15,32 @@ on:
1515
jobs:
1616
publish_release:
1717
runs-on: ubuntu-latest
18+
environment: release
19+
permissions:
20+
id-token: write
1821
steps:
1922
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
2023

24+
- uses: actions/create-github-app-token@v1
25+
id: app-token
26+
with:
27+
app-id: ${{ vars.APP_ID }}
28+
private-key: ${{ secrets.APP_PRIVATE_KEY }}
29+
2130
- name: Populate Release
2231
id: populate-release
2332
uses: jupyter-server/jupyter_releaser/.github/actions/populate-release@v2
2433
with:
25-
token: ${{ secrets.ADMIN_GITHUB_TOKEN }}
26-
target: ${{ github.event.inputs.target }}
34+
token: ${{ steps.app-token.outputs.token }}
2735
branch: ${{ github.event.inputs.branch }}
2836
release_url: ${{ github.event.inputs.release_url }}
2937
steps_to_skip: ${{ github.event.inputs.steps_to_skip }}
3038

3139
- name: Finalize Release
3240
id: finalize-release
33-
env:
34-
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
35-
PYPI_TOKEN_MAP: ${{ secrets.PYPI_TOKEN_MAP }}
36-
TWINE_USERNAME: __token__
37-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
38-
uses: jupyter-server/jupyter-releaser/.github/actions/finalize-release@v2
41+
uses: jupyter-server/jupyter_releaser/.github/actions/finalize-release@v2
3942
with:
40-
token: ${{ secrets.ADMIN_GITHUB_TOKEN }}
41-
target: ${{ github.event.inputs.target }}
43+
token: ${{ steps.app-token.outputs.token }}
4244
release_url: ${{ steps.populate-release.outputs.release_url }}
4345

4446
- name: "** Next Step **"

.pre-commit-config.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ repos:
2121
- id: trailing-whitespace
2222

2323
- repo: https://github.com/python-jsonschema/check-jsonschema
24-
rev: 0.27.3
24+
rev: 0.27.4
2525
hooks:
2626
- id: check-github-workflows
2727

@@ -66,7 +66,7 @@ repos:
6666
- id: rst-inline-touching-normal
6767

6868
- repo: https://github.com/astral-sh/ruff-pre-commit
69-
rev: v0.1.9
69+
rev: v0.2.0
7070
hooks:
7171
- id: ruff
7272
types_or: [python, jupyter]
@@ -75,7 +75,7 @@ repos:
7575
types_or: [python, jupyter]
7676

7777
- repo: https://github.com/scientific-python/cookie
78-
rev: "2023.12.21"
78+
rev: "2024.01.24"
7979
hooks:
8080
- id: sp-repo-review
8181
additional_dependencies: ["repo-review[cli]"]

CHANGELOG.md

+28-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,34 @@
22

33
<!-- <START NEW CHANGELOG ENTRY> -->
44

5+
## 8.6.1
6+
7+
([Full Changelog](https://github.com/jupyter/jupyter_client/compare/v8.6.0...8a3327ae58247be734d51f44c629354f0f600660))
8+
9+
### Maintenance and upkeep improvements
10+
11+
- Update Release Scripts [#1016](https://github.com/jupyter/jupyter_client/pull/1016) ([@blink1073](https://github.com/blink1073))
12+
- chore: update pre-commit hooks [#1008](https://github.com/jupyter/jupyter_client/pull/1008) ([@pre-commit-ci](https://github.com/pre-commit-ci))
13+
- chore: update pre-commit hooks [#1002](https://github.com/jupyter/jupyter_client/pull/1002) ([@pre-commit-ci](https://github.com/pre-commit-ci))
14+
- Bump actions/setup-python from 4 to 5 [#1000](https://github.com/jupyter/jupyter_client/pull/1000) ([@dependabot](https://github.com/dependabot))
15+
- chore: update pre-commit hooks [#999](https://github.com/jupyter/jupyter_client/pull/999) ([@pre-commit-ci](https://github.com/pre-commit-ci))
16+
- Bump conda-incubator/setup-miniconda from 2 to 3 [#998](https://github.com/jupyter/jupyter_client/pull/998) ([@dependabot](https://github.com/dependabot))
17+
- chore: update pre-commit hooks [#996](https://github.com/jupyter/jupyter_client/pull/996) ([@pre-commit-ci](https://github.com/pre-commit-ci))
18+
19+
### Documentation improvements
20+
21+
- Fix docs reference [#1017](https://github.com/jupyter/jupyter_client/pull/1017) ([@blink1073](https://github.com/blink1073))
22+
- Add docs about packaging kernels [#1013](https://github.com/jupyter/jupyter_client/pull/1013) ([@blink1073](https://github.com/blink1073))
23+
- Clarify what a restart means [#966](https://github.com/jupyter/jupyter_client/pull/966) ([@mlucool](https://github.com/mlucool))
24+
25+
### Contributors to this release
26+
27+
([GitHub contributors page for this release](https://github.com/jupyter/jupyter_client/graphs/contributors?from=2023-11-06&to=2024-03-12&type=c))
28+
29+
[@blink1073](https://github.com/search?q=repo%3Ajupyter%2Fjupyter_client+involves%3Ablink1073+updated%3A2023-11-06..2024-03-12&type=Issues) | [@dependabot](https://github.com/search?q=repo%3Ajupyter%2Fjupyter_client+involves%3Adependabot+updated%3A2023-11-06..2024-03-12&type=Issues) | [@mlucool](https://github.com/search?q=repo%3Ajupyter%2Fjupyter_client+involves%3Amlucool+updated%3A2023-11-06..2024-03-12&type=Issues) | [@pre-commit-ci](https://github.com/search?q=repo%3Ajupyter%2Fjupyter_client+involves%3Apre-commit-ci+updated%3A2023-11-06..2024-03-12&type=Issues) | [@Zsailer](https://github.com/search?q=repo%3Ajupyter%2Fjupyter_client+involves%3AZsailer+updated%3A2023-11-06..2024-03-12&type=Issues)
30+
31+
<!-- <END NEW CHANGELOG ENTRY> -->
32+
533
## 8.6.0
634

735
([Full Changelog](https://github.com/jupyter/jupyter_client/compare/v8.5.0...2d6f52bdf5266688c51f3270cd7e47bbd17c708c))
@@ -23,8 +51,6 @@
2351

2452
[@blink1073](https://github.com/search?q=repo%3Ajupyter%2Fjupyter_client+involves%3Ablink1073+updated%3A2023-10-25..2023-11-06&type=Issues) | [@Carreau](https://github.com/search?q=repo%3Ajupyter%2Fjupyter_client+involves%3ACarreau+updated%3A2023-10-25..2023-11-06&type=Issues) | [@davidbrochart](https://github.com/search?q=repo%3Ajupyter%2Fjupyter_client+involves%3Adavidbrochart+updated%3A2023-10-25..2023-11-06&type=Issues)
2553

26-
<!-- <END NEW CHANGELOG ENTRY> -->
27-
2854
## 8.5.0
2955

3056
([Full Changelog](https://github.com/jupyter/jupyter_client/compare/v8.4.0...ff94e310c2af3546f2f9384e6b35fd11c3d09a71))

docs/kernels.rst

+18
Original file line numberDiff line numberDiff line change
@@ -184,3 +184,21 @@ To start the terminal console or the Qt console with a specific kernel::
184184

185185
The notebook offers you the available kernels in a dropdown menu from the 'New'
186186
button.
187+
188+
189+
.. _packaging-kernels:
190+
191+
Packaging
192+
=========
193+
194+
To release your kernel as a Python package, we recommend following the pattern
195+
used in the `echo_kernel`_, which uses the `hatch`_ build backend and
196+
a build file that creates the kernel directory with the ``kernel.json`` and
197+
kernel icons, which is included as ``shared-data``, ending up in the
198+
``share/jupyter/kernels/`` folder in the user's installed environment.
199+
See `pyproject.toml`_ and `hatch_build.py`_ for more details.
200+
201+
.. _hatch: https://hatch.pypa.io/latest/
202+
.. _pyproject.toml: https://github.com/jupyter/echo_kernel/blob/main/pyproject.toml
203+
.. _hatch_build.py: https://github.com/jupyter/echo_kernel/blob/main/hatch_build.py
204+
.. _echo_kernel: https://github.com/jupyter/echo_kernel

docs/wrapperkernels.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ also has a ``ProcessKernel`` subclass that makes it easy to write kernels that
1919
use ``pexpect``.
2020
See `Octave Kernel <https://github.com/Calysto/octave_kernel>`_ as an example.
2121

22+
If releasing a wrapper kernel as a Python package, see the steps in :ref:`packaging-kernels`.
2223

2324
Required steps
2425
--------------
@@ -86,7 +87,7 @@ Example
8687

8788
.. seealso::
8889

89-
`echo_kernel <https://github.com/jupyter/echo_kernel>`__
90+
`echo_kernel <https://github.com/jupyter/echo_kernel>`_
9091
A packaged, installable version of the condensed example below.
9192

9293
``echokernel.py`` will simply echo any input it's given to stdout::

jupyter_client/_version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import re
33
from typing import List, Union
44

5-
__version__ = "8.6.0"
5+
__version__ = "8.6.1"
66

77
# Build up version_info tuple for backwards compatibility
88
pattern = r"(?P<major>\d+).(?P<minor>\d+).(?P<patch>\d+)(?P<rest>.*)"

0 commit comments

Comments
 (0)