15
0
forked from pool/python-calver

Accepting request 1277733 from home:mcalabkova:branches:devel:languages:python

- Convert to pip-based build

OBS-URL: https://build.opensuse.org/request/show/1277733
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-calver?expand=0&rev=7
This commit is contained in:
2025-05-15 15:17:46 +00:00
committed by Git OBS Bridge
parent 6c652fcc45
commit b8b45481e5
2 changed files with 13 additions and 6 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu May 15 12:48:06 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
-------------------------------------------------------------------
Fri Apr 21 12:23:05 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file
# spec file for package python-calver
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -34,8 +34,12 @@ Summary: Setuptools extension for CalVer package versions
License: Apache-2.0
URL: https://github.com/di/calver
Source: https://github.com/di/calver/archive/refs/tags/%{ghtag}.tar.gz#/calver-%{version}-gh.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
# SECTION test requirement
%if %{with test}
BuildRequires: %{python_module calver}
@@ -43,8 +47,6 @@ BuildRequires: %{python_module pretend}
BuildRequires: %{python_module pytest}
%endif
# /SECTION
BuildRequires: fdupes
BuildArch: noarch
%python_subpackages
%description
@@ -57,11 +59,11 @@ Setuptools extension for CalVer package versions
sed -i 's/calver_version(True)/"%{version}"/' setup.py
%build
%python_build
%pyproject_wheel
%install
%if !%{with test}
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif