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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user