11
0
forked from pool/python-apipkg

- Remove python-hatch-vcs dependency

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-apipkg?expand=0&rev=14
This commit is contained in:
2022-11-30 16:45:34 +00:00
committed by Git OBS Bridge
parent dd033e12e0
commit 3923f8597c
2 changed files with 7 additions and 1 deletions

View File

@@ -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