commit python-jupyter-client for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-jupyter-client for openSUSE:Factory checked in at 2024-04-02 16:37:37 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-jupyter-client (Old) and /work/SRC/openSUSE:Factory/.python-jupyter-client.new.1905 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-jupyter-client" Tue Apr 2 16:37:37 2024 rev:23 rq:1163569 version:8.6.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-jupyter-client/python-jupyter-client.changes 2024-03-06 23:03:07.418250375 +0100 +++ /work/SRC/openSUSE:Factory/.python-jupyter-client.new.1905/python-jupyter-client.changes 2024-04-02 16:37:42.718837795 +0200 @@ -1,0 +2,6 @@ +Fri Mar 29 18:08:28 UTC 2024 - Ben Greiner <code@bnavigator.de> + +- Update to 8.6.1 + * Update Release Scripts #1016 (@blink1073) + +------------------------------------------------------------------- Old: ---- jupyter_client-8.6.0.tar.gz New: ---- jupyter_client-8.6.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-jupyter-client.spec ++++++ --- /var/tmp/diff_new_pack.AeX4oN/_old 2024-04-02 16:37:43.258857696 +0200 +++ /var/tmp/diff_new_pack.AeX4oN/_new 2024-04-02 16:37:43.258857696 +0200 @@ -27,7 +27,7 @@ %endif Name: python-jupyter-client%{psuffix} -Version: 8.6.0 +Version: 8.6.1 Release: 0 Summary: Jupyter protocol implementation and client libraries License: BSD-3-Clause ++++++ jupyter_client-8.6.0.tar.gz -> jupyter_client-8.6.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jupyter_client-8.6.0/.github/dependabot.yml new/jupyter_client-8.6.1/.github/dependabot.yml --- old/jupyter_client-8.6.0/.github/dependabot.yml 2020-02-02 01:00:00.000000000 +0100 +++ new/jupyter_client-8.6.1/.github/dependabot.yml 2020-02-02 01:00:00.000000000 +0100 @@ -4,7 +4,15 @@ directory: "/" schedule: interval: "weekly" + groups: + actions: + patterns: + - "*" - package-ecosystem: "pip" directory: "/" schedule: interval: "weekly" + groups: + actions: + patterns: + - "*" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jupyter_client-8.6.0/.github/workflows/downstream.yml new/jupyter_client-8.6.1/.github/workflows/downstream.yml --- old/jupyter_client-8.6.0/.github/workflows/downstream.yml 2020-02-02 01:00:00.000000000 +0100 +++ new/jupyter_client-8.6.1/.github/workflows/downstream.yml 2020-02-02 01:00:00.000000000 +0100 @@ -73,7 +73,7 @@ uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1 - name: Setup conda ${{ matrix.python-version }} - uses: conda-incubator/setup-miniconda@v2 + uses: conda-incubator/setup-miniconda@v3 with: auto-update-conda: true activate-environment: jupyter_kernel_test @@ -97,7 +97,7 @@ uses: actions/checkout@v4 - name: Setup Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: "3.9" architecture: "x64" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jupyter_client-8.6.0/.github/workflows/prep-release.yml new/jupyter_client-8.6.1/.github/workflows/prep-release.yml --- old/jupyter_client-8.6.0/.github/workflows/prep-release.yml 2020-02-02 01:00:00.000000000 +0100 +++ new/jupyter_client-8.6.1/.github/workflows/prep-release.yml 2020-02-02 01:00:00.000000000 +0100 @@ -12,6 +12,10 @@ post_version_spec: description: "Post Version Specifier" required: false + silent: + description: "Set a placeholder in the changelog and don't publish the release." + required: false + type: boolean since: description: "Use PRs with activity since this date or git reference" required: false @@ -22,6 +26,8 @@ jobs: prep_release: runs-on: ubuntu-latest + permissions: + contents: write steps: - uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1 @@ -29,8 +35,9 @@ id: prep-release uses: jupyter-server/jupyter_releaser/.github/actions/prep-release@v2 with: - token: ${{ secrets.ADMIN_GITHUB_TOKEN }} + token: ${{ secrets.GITHUB_TOKEN }} version_spec: ${{ github.event.inputs.version_spec }} + silent: ${{ github.event.inputs.silent }} post_version_spec: ${{ github.event.inputs.post_version_spec }} target: ${{ github.event.inputs.target }} branch: ${{ github.event.inputs.branch }} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jupyter_client-8.6.0/.github/workflows/publish-changelog.yml new/jupyter_client-8.6.1/.github/workflows/publish-changelog.yml --- old/jupyter_client-8.6.0/.github/workflows/publish-changelog.yml 1970-01-01 01:00:00.000000000 +0100 +++ new/jupyter_client-8.6.1/.github/workflows/publish-changelog.yml 2020-02-02 01:00:00.000000000 +0100 @@ -0,0 +1,34 @@ +name: "Publish Changelog" +on: + release: + types: [published] + + workflow_dispatch: + inputs: + branch: + description: "The branch to target" + required: false + +jobs: + publish_changelog: + runs-on: ubuntu-latest + environment: release + steps: + - uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1 + + - uses: actions/create-github-app-token@v1 + id: app-token + with: + app-id: ${{ vars.APP_ID }} + private-key: ${{ secrets.APP_PRIVATE_KEY }} + + - name: Publish changelog + id: publish-changelog + uses: jupyter-server/jupyter_releaser/.github/actions/publish-changelog@v2 + with: + token: ${{ steps.app-token.outputs.token }} + branch: ${{ github.event.inputs.branch }} + + - name: "** Next Step **" + run: | + echo "Merge the changelog update PR: ${{ steps.publish-changelog.outputs.pr_url }}" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jupyter_client-8.6.0/.github/workflows/publish-release.yml new/jupyter_client-8.6.1/.github/workflows/publish-release.yml --- old/jupyter_client-8.6.0/.github/workflows/publish-release.yml 2020-02-02 01:00:00.000000000 +0100 +++ new/jupyter_client-8.6.1/.github/workflows/publish-release.yml 2020-02-02 01:00:00.000000000 +0100 @@ -15,30 +15,32 @@ jobs: publish_release: runs-on: ubuntu-latest + environment: release + permissions: + id-token: write steps: - uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1 + - uses: actions/create-github-app-token@v1 + id: app-token + with: + app-id: ${{ vars.APP_ID }} + private-key: ${{ secrets.APP_PRIVATE_KEY }} + - name: Populate Release id: populate-release uses: jupyter-server/jupyter_releaser/.github/actions/populate-release@v2 with: - token: ${{ secrets.ADMIN_GITHUB_TOKEN }} - target: ${{ github.event.inputs.target }} + token: ${{ steps.app-token.outputs.token }} 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__ - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - uses: jupyter-server/jupyter-releaser/.github/actions/finalize-release@v2 + uses: jupyter-server/jupyter_releaser/.github/actions/finalize-release@v2 with: - token: ${{ secrets.ADMIN_GITHUB_TOKEN }} - target: ${{ github.event.inputs.target }} + token: ${{ steps.app-token.outputs.token }} release_url: ${{ steps.populate-release.outputs.release_url }} - name: "** Next Step **" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jupyter_client-8.6.0/.pre-commit-config.yaml new/jupyter_client-8.6.1/.pre-commit-config.yaml --- old/jupyter_client-8.6.0/.pre-commit-config.yaml 2020-02-02 01:00:00.000000000 +0100 +++ new/jupyter_client-8.6.1/.pre-commit-config.yaml 2020-02-02 01:00:00.000000000 +0100 @@ -21,7 +21,7 @@ - id: trailing-whitespace - repo: https://github.com/python-jsonschema/check-jsonschema - rev: 0.27.0 + rev: 0.27.4 hooks: - id: check-github-workflows @@ -31,13 +31,13 @@ - id: mdformat - repo: https://github.com/pre-commit/mirrors-prettier - rev: "v3.0.3" + rev: "v4.0.0-alpha.8" hooks: - id: prettier types_or: [yaml, html, json] - repo: https://github.com/pre-commit/mirrors-mypy - rev: "v1.6.1" + rev: "v1.8.0" hooks: - id: mypy files: jupyter_client @@ -66,14 +66,16 @@ - id: rst-inline-touching-normal - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.1.3 + rev: v0.2.0 hooks: - id: ruff + types_or: [python, jupyter] args: ["--fix", "--show-fixes"] - id: ruff-format + types_or: [python, jupyter] - repo: https://github.com/scientific-python/cookie - rev: "2023.10.27" + rev: "2024.01.24" hooks: - id: sp-repo-review additional_dependencies: ["repo-review[cli]"] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jupyter_client-8.6.0/CHANGELOG.md new/jupyter_client-8.6.1/CHANGELOG.md --- old/jupyter_client-8.6.0/CHANGELOG.md 2020-02-02 01:00:00.000000000 +0100 +++ new/jupyter_client-8.6.1/CHANGELOG.md 2020-02-02 01:00:00.000000000 +0100 @@ -2,6 +2,34 @@ <!-- <START NEW CHANGELOG ENTRY> --> +## 8.6.1 + +([Full Changelog](https://github.com/jupyter/jupyter_client/compare/v8.6.0...8a3327ae58247be73...)) + +### Maintenance and upkeep improvements + +- Update Release Scripts [#1016](https://github.com/jupyter/jupyter_client/pull/1016) ([@blink1073](https://github.com/blink1073)) +- chore: update pre-commit hooks [#1008](https://github.com/jupyter/jupyter_client/pull/1008) ([@pre-commit-ci](https://github.com/pre-commit-ci)) +- chore: update pre-commit hooks [#1002](https://github.com/jupyter/jupyter_client/pull/1002) ([@pre-commit-ci](https://github.com/pre-commit-ci)) +- Bump actions/setup-python from 4 to 5 [#1000](https://github.com/jupyter/jupyter_client/pull/1000) ([@dependabot](https://github.com/dependabot)) +- chore: update pre-commit hooks [#999](https://github.com/jupyter/jupyter_client/pull/999) ([@pre-commit-ci](https://github.com/pre-commit-ci)) +- Bump conda-incubator/setup-miniconda from 2 to 3 [#998](https://github.com/jupyter/jupyter_client/pull/998) ([@dependabot](https://github.com/dependabot)) +- chore: update pre-commit hooks [#996](https://github.com/jupyter/jupyter_client/pull/996) ([@pre-commit-ci](https://github.com/pre-commit-ci)) + +### Documentation improvements + +- Fix docs reference [#1017](https://github.com/jupyter/jupyter_client/pull/1017) ([@blink1073](https://github.com/blink1073)) +- Add docs about packaging kernels [#1013](https://github.com/jupyter/jupyter_client/pull/1013) ([@blink1073](https://github.com/blink1073)) +- Clarify what a restart means [#966](https://github.com/jupyter/jupyter_client/pull/966) ([@mlucool](https://github.com/mlucool)) + +### Contributors to this release + +([GitHub contributors page for this release](https://github.com/jupyter/jupyter_client/graphs/contributors?from=2023-11-0...)) + +[@blink1073](https://github.com/search?q=repo%3Ajupyter%2Fjupyter_client+involves%3Ablink...) | [@dependabot](https://github.com/search?q=repo%3Ajupyter%2Fjupyter_client+involves%3Adepen...) | [@mlucool](https://github.com/search?q=repo%3Ajupyter%2Fjupyter_client+involves%3Amluco...) | [@pre-commit-ci](https://github.com/search?q=repo%3Ajupyter%2Fjupyter_client+involves%3Apre-c...) | [@Zsailer](https://github.com/search?q=repo%3Ajupyter%2Fjupyter_client+involves%3AZsail...) + +<!-- <END NEW CHANGELOG ENTRY> --> + ## 8.6.0 ([Full Changelog](https://github.com/jupyter/jupyter_client/compare/v8.5.0...2d6f52bdf5266688c...)) @@ -23,8 +51,6 @@ [@blink1073](https://github.com/search?q=repo%3Ajupyter%2Fjupyter_client+involves%3Ablink...) | [@Carreau](https://github.com/search?q=repo%3Ajupyter%2Fjupyter_client+involves%3ACarre...) | [@davidbrochart](https://github.com/search?q=repo%3Ajupyter%2Fjupyter_client+involves%3Adavid...) -<!-- <END NEW CHANGELOG ENTRY> --> - ## 8.5.0 ([Full Changelog](https://github.com/jupyter/jupyter_client/compare/v8.4.0...ff94e310c2af3546f...)) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jupyter_client-8.6.0/PKG-INFO new/jupyter_client-8.6.1/PKG-INFO --- old/jupyter_client-8.6.0/PKG-INFO 2020-02-02 01:00:00.000000000 +0100 +++ new/jupyter_client-8.6.1/PKG-INFO 2020-02-02 01:00:00.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: jupyter_client -Version: 8.6.0 +Version: 8.6.1 Summary: Jupyter protocol implementation and client libraries Project-URL: Homepage, https://jupyter.org Project-URL: Documentation, https://jupyter-client.readthedocs.io/ @@ -67,7 +67,7 @@ Requires-Dist: coverage; extra == 'test' Requires-Dist: ipykernel>=6.14; extra == 'test' Requires-Dist: mypy; extra == 'test' -Requires-Dist: paramiko; sys_platform == 'win32' and extra == 'test' +Requires-Dist: paramiko; (sys_platform == 'win32') and extra == 'test' Requires-Dist: pre-commit; extra == 'test' Requires-Dist: pytest; extra == 'test' Requires-Dist: pytest-cov; extra == 'test' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jupyter_client-8.6.0/docs/kernels.rst new/jupyter_client-8.6.1/docs/kernels.rst --- old/jupyter_client-8.6.0/docs/kernels.rst 2020-02-02 01:00:00.000000000 +0100 +++ new/jupyter_client-8.6.1/docs/kernels.rst 2020-02-02 01:00:00.000000000 +0100 @@ -184,3 +184,21 @@ The notebook offers you the available kernels in a dropdown menu from the 'New' button. + + +.. _packaging-kernels: + +Packaging +========= + +To release your kernel as a Python package, we recommend following the pattern +used in the `echo_kernel`_, which uses the `hatch`_ build backend and +a build file that creates the kernel directory with the ``kernel.json`` and +kernel icons, which is included as ``shared-data``, ending up in the +``share/jupyter/kernels/`` folder in the user's installed environment. +See `pyproject.toml`_ and `hatch_build.py`_ for more details. + +.. _hatch: https://hatch.pypa.io/latest/ +.. _pyproject.toml: https://github.com/jupyter/echo_kernel/blob/main/pyproject.toml +.. _hatch_build.py: https://github.com/jupyter/echo_kernel/blob/main/hatch_build.py +.. _echo_kernel: https://github.com/jupyter/echo_kernel diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jupyter_client-8.6.0/docs/messaging.rst new/jupyter_client-8.6.1/docs/messaging.rst --- old/jupyter_client-8.6.0/docs/messaging.rst 2020-02-02 01:00:00.000000000 +0100 +++ new/jupyter_client-8.6.1/docs/messaging.rst 2020-02-02 01:00:00.000000000 +0100 @@ -1049,6 +1049,15 @@ IPythonQt client) to force a kernel restart to get a clean kernel without losing client-side state like history or inlined figures. +Implementation recommendation for starting kernels: A restart should optimally +preserve as many resources outside the kernel as possible (e.g. only restart the +kernel and its subprocesses and not any parent processes). That is, ideally a +restart should be "in-place". For local kernels, there is typically no parent +process so a "hard" restart and an in-place restart are identical whereas for +remote kernels this is not generally the same. As an example, if a remote kernel +is run in a container, during an in-place restart the container may be kept +running and a new kernel process within it would be started. + The client sends a shutdown request to the kernel, and once it receives the reply message (which is otherwise empty), it can assume that the kernel has completed shutdown safely. The request is sent on the ``control`` channel. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jupyter_client-8.6.0/docs/wrapperkernels.rst new/jupyter_client-8.6.1/docs/wrapperkernels.rst --- old/jupyter_client-8.6.0/docs/wrapperkernels.rst 2020-02-02 01:00:00.000000000 +0100 +++ new/jupyter_client-8.6.1/docs/wrapperkernels.rst 2020-02-02 01:00:00.000000000 +0100 @@ -19,6 +19,7 @@ use ``pexpect``. See `Octave Kernel <https://github.com/Calysto/octave_kernel>`_ as an example. +If releasing a wrapper kernel as a Python package, see the steps in :ref:`packaging-kernels`. Required steps -------------- @@ -86,7 +87,7 @@ .. seealso:: - `echo_kernel <https://github.com/jupyter/echo_kernel>`__ + `echo_kernel <https://github.com/jupyter/echo_kernel>`_ A packaged, installable version of the condensed example below. ``echokernel.py`` will simply echo any input it's given to stdout:: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jupyter_client-8.6.0/jupyter_client/_version.py new/jupyter_client-8.6.1/jupyter_client/_version.py --- old/jupyter_client-8.6.0/jupyter_client/_version.py 2020-02-02 01:00:00.000000000 +0100 +++ new/jupyter_client-8.6.1/jupyter_client/_version.py 2020-02-02 01:00:00.000000000 +0100 @@ -2,7 +2,7 @@ import re from typing import List, Union -__version__ = "8.6.0" +__version__ = "8.6.1" # Build up version_info tuple for backwards compatibility pattern = r"(?P<major>\d+).(?P<minor>\d+).(?P<patch>\d+)(?P<rest>.*)" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jupyter_client-8.6.0/pyproject.toml new/jupyter_client-8.6.1/pyproject.toml --- old/jupyter_client-8.6.0/pyproject.toml 2020-02-02 01:00:00.000000000 +0100 +++ new/jupyter_client-8.6.1/pyproject.toml 2020-02-02 01:00:00.000000000 +0100 @@ -107,7 +107,10 @@ dependencies = ["pre-commit"] detached = true [tool.hatch.envs.lint.scripts] -build = ["pre-commit run --all-files ruff"] +build = [ + "pre-commit run --all-files ruff", + "pre-commit run --all-files ruff-format" +] [tool.pytest.ini_options] minversion = "6.0" @@ -162,12 +165,10 @@ no_implicit_reexport = false pretty = true show_error_context = true -show_error_codes = true warn_return_any = false warn_unreachable = true [tool.ruff] -target-version = "py38" line-length = 100 [tool.ruff.lint] @@ -278,4 +279,4 @@ exclude = ["docs", "test"] [tool.repo-review] -ignore = ["PY007", "PP308", "GH102"] +ignore = ["GH102"] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jupyter_client-8.6.0/tests/test_kernelspecapp.py new/jupyter_client-8.6.1/tests/test_kernelspecapp.py --- old/jupyter_client-8.6.0/tests/test_kernelspecapp.py 2020-02-02 01:00:00.000000000 +0100 +++ new/jupyter_client-8.6.1/tests/test_kernelspecapp.py 2020-02-02 01:00:00.000000000 +0100 @@ -18,7 +18,7 @@ prefix = os.path.dirname(os.environ["JUPYTER_DATA_DIR"]) kernel_dir = os.path.join(prefix, "share/jupyter/kernels") app.kernel_spec_manager.kernel_dirs.append(kernel_dir) - app.prefix = prefix = prefix + app.prefix = prefix app.initialize([str(jp_kernel_dir)]) with warnings.catch_warnings(): warnings.simplefilter("ignore")
participants (1)
-
Source-Sync