Files
openRuyi/SPECS/python-pyproject-api/python-pyproject-api.spec

43 lines
1.2 KiB
RPMSpec

# SPDX-FileCopyrightText: (C) 2025 Institute of Software, Chinese Academy of Sciences (ISCAS)
# SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors
# SPDX-FileContributor: misaka00251 <liuxin@iscas.ac.cn>
#
# SPDX-License-Identifier: MulanPSL-2.0
%global srcname pyproject-api
Name: python-%{srcname}
Version: 1.10.0
Release: %autorelease
Summary: API to interact with the python pyproject.toml based projects
License: MIT
URL: https://pyproject-api.readthedocs.io/latest/
#!RemoteAsset
Source0: https://files.pythonhosted.org/packages/source/p/%{srcname}/pyproject_api-%{version}.tar.gz
BuildArch: noarch
BuildSystem: pyproject
BuildOption(install): pyproject_api
BuildRequires: pyproject-rpm-macros
BuildRequires: pkgconfig(python3)
Provides: python3-%{srcname}
%python_provide python3-%{srcname}
%description
API to interact with the python pyproject.toml based projects.
%prep -a
# Remove unneeded testing deps
sed -i "/covdefaults/d;/pytest-cov/d" pyproject.toml
%generate_buildrequires
%pyproject_buildrequires -x testing
%files -f %{pyproject_files}
%doc README.md
%changelog
%{?autochangelog}