Blame SPECS/python-pyproject-api.spec

620a4d
Name:           python-pyproject-api
620a4d
Version:        1.6.1
620a4d
Release:        %autorelease
620a4d
Summary:        API to interact with the python pyproject.toml based projects
620a4d
620a4d
License:        MIT
620a4d
URL:            https://pyproject-api.readthedocs.org
620a4d
Source0:        https://files.pythonhosted.org/packages/source/p/pyproject-api/pyproject_api-%{version}.tar.gz
620a4d
BuildArch:      noarch
620a4d
620a4d
BuildRequires:  python3-devel
620a4d
BuildRequires:  pyproject-rpm-macros
620a4d
620a4d
%global _description %{expand:
620a4d
API to interact with the python pyproject.toml based projects.}
620a4d
620a4d
%description %_description
620a4d
620a4d
%package -n     python3-pyproject-api
620a4d
Summary:        %{summary}
620a4d
620a4d
%description -n python3-pyproject-api %_description
620a4d
620a4d
%prep
620a4d
%autosetup -n pyproject_api-%{version}
620a4d
# Remove unneeded testing deps
620a4d
sed -i "/covdefaults/d;/pytest-cov/d" pyproject.toml
620a4d
620a4d
%generate_buildrequires
620a4d
%pyproject_buildrequires -w -x testing
620a4d
620a4d
%build
620a4d
%pyproject_wheel
620a4d
620a4d
%install
620a4d
%pyproject_install
620a4d
%pyproject_save_files pyproject_api
620a4d
620a4d
%check
620a4d
%pytest
620a4d
620a4d
%files -n python3-pyproject-api -f %{pyproject_files}
620a4d
%doc README.md
620a4d
620a4d
%changelog
620a4d
%autochangelog