Initial import (fedora#2160411).
This commit is contained in:
parent
3052199a75
commit
e477f89661
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
/pyproject_hooks-1.0.0.tar.gz
|
||||||
59
python-pyproject-hooks.spec
Normal file
59
python-pyproject-hooks.spec
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
Name: python-pyproject-hooks
|
||||||
|
Version: 1.0.0
|
||||||
|
Release: 1%{?dist}
|
||||||
|
Summary: Wrappers to call pyproject.toml-based build backend hooks
|
||||||
|
|
||||||
|
License: MIT
|
||||||
|
URL: https://pypi.org/project/pyproject_hooks/
|
||||||
|
Source: %{pypi_source pyproject_hooks}
|
||||||
|
|
||||||
|
BuildArch: noarch
|
||||||
|
BuildRequires: python3-devel
|
||||||
|
BuildRequires: python3-pytest
|
||||||
|
BuildRequires: python3-setuptools
|
||||||
|
BuildRequires: python3-testpath
|
||||||
|
|
||||||
|
%global _description %{expand:
|
||||||
|
This is a low-level library for calling build-backends in
|
||||||
|
pyproject.toml-based project. It provides the basic functionality
|
||||||
|
to help write tooling that generates distribution files from
|
||||||
|
Python projects.}
|
||||||
|
|
||||||
|
|
||||||
|
%description %_description
|
||||||
|
|
||||||
|
%package -n python3-pyproject-hooks
|
||||||
|
Summary: %{summary}
|
||||||
|
|
||||||
|
%description -n python3-pyproject-hooks %_description
|
||||||
|
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -p1 -n pyproject_hooks-%{version}
|
||||||
|
sed -i "/flake8/d" dev-requirements.txt
|
||||||
|
|
||||||
|
|
||||||
|
%generate_buildrequires
|
||||||
|
%pyproject_buildrequires -t
|
||||||
|
|
||||||
|
|
||||||
|
%build
|
||||||
|
%pyproject_wheel
|
||||||
|
|
||||||
|
|
||||||
|
%install
|
||||||
|
%pyproject_install
|
||||||
|
%pyproject_save_files pyproject_hooks
|
||||||
|
|
||||||
|
|
||||||
|
%check
|
||||||
|
%tox
|
||||||
|
|
||||||
|
|
||||||
|
%files -n python3-pyproject-hooks -f %{pyproject_files}
|
||||||
|
%doc README.rst
|
||||||
|
%license LICENSE
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Thu Jan 12 2023 Lumír Balhar <lbalhar@redhat.com> - 1.0.0-1
|
||||||
|
- Initial package
|
||||||
Loading…
Reference in New Issue
Block a user