From 3923f8597cc3d608a2411a5de8b124678d90837389a0e93df04941c0feff2e9a Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Wed, 30 Nov 2022 16:45:34 +0000 Subject: [PATCH] - Remove python-hatch-vcs dependency OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-apipkg?expand=0&rev=14 --- python-apipkg.changes | 5 +++++ python-apipkg.spec | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/python-apipkg.changes b/python-apipkg.changes index f5e068c..f104497 100644 --- a/python-apipkg.changes +++ b/python-apipkg.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Nov 30 16:45:02 UTC 2022 - Daniel Garcia + +- Remove python-hatch-vcs dependency + ------------------------------------------------------------------- Wed Nov 30 12:49:07 UTC 2022 - Daniel Garcia diff --git a/python-apipkg.spec b/python-apipkg.spec index b684dc8..6cab142 100644 --- a/python-apipkg.spec +++ b/python-apipkg.spec @@ -36,7 +36,6 @@ Source: https://files.pythonhosted.org/packages/source/a/apipkg/apipkg-% BuildRequires: %{python_module apipkg = %{version}} BuildRequires: %{python_module pytest} %endif -BuildRequires: %{python_module hatch-vcs} BuildRequires: %{python_module hatchling} BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools_scm} @@ -61,6 +60,8 @@ can copy paste the ~200 lines of code into your project. %autosetup -p1 -n apipkg-%{version} # Set the package version static, not dynamic, to build without the .git folder sed -i ':a;N;$!ba;s/dynamic = \[[^]]*\]/version = "%{version}"/g' pyproject.toml +# Remove hatch-vcs dep to avoid cycles +sed -i '/tool.hatch.build.hooks.vcs/d' pyproject.toml %build %pyproject_wheel