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:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Nov 30 16:45:02 UTC 2022 - Daniel Garcia <daniel.garcia@suse.com>
|
||||||
|
|
||||||
|
- Remove python-hatch-vcs dependency
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Nov 30 12:49:07 UTC 2022 - Daniel Garcia <daniel.garcia@suse.com>
|
Wed Nov 30 12:49:07 UTC 2022 - Daniel Garcia <daniel.garcia@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -36,7 +36,6 @@ Source: https://files.pythonhosted.org/packages/source/a/apipkg/apipkg-%
|
|||||||
BuildRequires: %{python_module apipkg = %{version}}
|
BuildRequires: %{python_module apipkg = %{version}}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: %{python_module hatch-vcs}
|
|
||||||
BuildRequires: %{python_module hatchling}
|
BuildRequires: %{python_module hatchling}
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools_scm}
|
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}
|
%autosetup -p1 -n apipkg-%{version}
|
||||||
# Set the package version static, not dynamic, to build without the .git folder
|
# 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
|
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
|
%build
|
||||||
%pyproject_wheel
|
%pyproject_wheel
|
||||||
|
|||||||
Reference in New Issue
Block a user