Accepting request 990393 from home:bnavigator:branches:devel:languages:python

Third time' a charm

- Cleanup spec file even more
- Fix requirements: prevent setuptools_scm 7 update
- Provide the canonical PyPI name

OBS-URL: https://build.opensuse.org/request/show/990393
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hatch_vcs?expand=0&rev=3
This commit is contained in:
Steve Kowalik 2022-07-20 12:21:13 +00:00 committed by Git OBS Bridge
parent 46f6adb4b7
commit 26467f32fe
2 changed files with 13 additions and 10 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Jul 20 11:44:34 UTC 2022 - Ben Greiner <code@bnavigator.de>
- Cleanup spec file even more
- Fix requirements: prevent setuptools_scm 7 update
- Provide the canonical PyPI name
-------------------------------------------------------------------
Tue Jul 19 14:22:34 UTC 2022 - Matej Cepl <mcepl@suse.com>

View File

@ -18,11 +18,6 @@
%{?!python_module:%define python_module() python3-%{**}}
%define skip_python2 1
%if 0%{?suse_version} > 1500
%bcond_without libalternatives
%else
%bcond_with libalternatives
%endif
Name: python-hatch_vcs
Version: 0.2.0
Release: 0
@ -32,16 +27,17 @@ URL: https://github.com/ofek/hatch-vcs
Source: https://files.pythonhosted.org/packages/source/h/hatch_vcs/hatch_vcs-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: python-rpm-macros >= 20210929
Requires: python-hatchling >= 0.21.0
# https://github.com/ofek/hatch-vcs/issues/8
Requires: (python-setuptools_scm >= 6.4.0 with python-setuptools_scm < 7)
Provides: python-hatch-vcs = %{version}-%{info}
BuildArch: noarch
# SECTION build
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module hatchling}
BuildRequires: %{python_module hatchling >= 0.21.0}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
# /SECTION
# SECTION test
BuildRequires: %{python_module setuptools_scm >= 6.4.0 with %python-setuptools_scm < 7}
BuildRequires: %{python_module pytest}
BuildRequires: git
# /SECTION