From 87816a0e480e4cb3f5771711b35c6e326913dca3698cea617c49f4f47309d909 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Fri, 8 Jul 2022 10:58:21 +0000 Subject: [PATCH] - Add patch support-hatchling-14.patch: * Support hatchling >= 1.4 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:jupyter/python-ipykernel?expand=0&rev=50 --- python-ipykernel.changes | 6 ++++ python-ipykernel.spec | 4 ++- support-hatchling-14.patch | 71 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 80 insertions(+), 1 deletion(-) create mode 100644 support-hatchling-14.patch diff --git a/python-ipykernel.changes b/python-ipykernel.changes index 5a81da9..7d80154 100644 --- a/python-ipykernel.changes +++ b/python-ipykernel.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Jul 8 10:57:40 UTC 2022 - Steve Kowalik + +- Add patch support-hatchling-14.patch: + * Support hatchling >= 1.4 + ------------------------------------------------------------------- Wed Jun 22 21:40:53 UTC 2022 - Ben Greiner diff --git a/python-ipykernel.spec b/python-ipykernel.spec index d5707ff..251cf85 100644 --- a/python-ipykernel.spec +++ b/python-ipykernel.spec @@ -26,9 +26,11 @@ License: BSD-3-Clause Group: Development/Languages/Python URL: https://github.com/ipython/ipykernel Source: https://files.pythonhosted.org/packages/source/i/ipykernel/ipykernel-%{version}.tar.gz +# PATCH-FIX-UPSTREAM Support hatchling >= 1.4 gh#ipython/ipykernel#964 +Patch0: support-hatchling-14.patch # SECTION build-system BuildRequires: %{python_module base >= 3.7} -BuildRequires: %{python_module hatchling} +BuildRequires: %{python_module hatchling >= 1.4} BuildRequires: %{python_module pip} BuildRequires: fdupes BuildRequires: jupyter-jupyter_core-filesystem diff --git a/support-hatchling-14.patch b/support-hatchling-14.patch new file mode 100644 index 0000000..b7687df --- /dev/null +++ b/support-hatchling-14.patch @@ -0,0 +1,71 @@ +From 694a01ee595efb29455a019dcc880746b5ab00b3 Mon Sep 17 00:00:00 2001 +From: Steven Silvester +Date: Fri, 8 Jul 2022 05:30:41 -0500 +Subject: [PATCH 1/2] fix inclusion of launcher file and check in CI + +--- + .github/workflows/ci.yml | 4 ++++ + pyproject.toml | 6 +++--- + 2 files changed, 7 insertions(+), 3 deletions(-) + +diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml +index 151dd3e9..4548c1a8 100644 +--- a/.github/workflows/ci.yml ++++ b/.github/workflows/ci.yml +@@ -77,6 +77,10 @@ jobs: + run: | + codecov + ++ - name: Check Launcher ++ run: cd $HOME ++ python -m ipykernel_launcher --help ++ + pre-commit: + name: pre-commit + runs-on: ubuntu-latest +diff --git a/pyproject.toml b/pyproject.toml +index 3c6487ab..5de353fb 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -1,5 +1,5 @@ + [build-system] +-requires = ["hatchling>=0.25", "jupyter_client>=6"] ++requires = ["hatchling>=1.4", "jupyter_client>=6"] + build-backend = "hatchling.build" + + [project] +@@ -54,8 +54,8 @@ test = [ + [tool.hatch.build.targets.wheel.shared-data] + "data_kernelspec" = "share/jupyter/kernels/python3" + +-[tool.hatch.build] +-artifacts = ["ipykernel_launcher.py"] ++[tool.hatch.build.force-include] ++"./ipykernel_launcher.py" = "ipykernel_launcher.py" + + [tool.jupyter-releaser] + skip = ["check-links"] + +From b743712e07bf5ed2d9c019e3b593eb4cb009d76c Mon Sep 17 00:00:00 2001 +From: Steven Silvester +Date: Fri, 8 Jul 2022 05:36:40 -0500 +Subject: [PATCH 2/2] fix workflow syntax + +--- + .github/workflows/ci.yml | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml +index 4548c1a8..8464830c 100644 +--- a/.github/workflows/ci.yml ++++ b/.github/workflows/ci.yml +@@ -78,7 +78,8 @@ jobs: + codecov + + - name: Check Launcher +- run: cd $HOME ++ run: | ++ cd $HOME + python -m ipykernel_launcher --help + + pre-commit: