Search
SailfishOS Open Build Service
>
Projects
>
home:nephros
:
devel
:
python
>
pyproject-hooks
> pyproject-hooks.spec
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File pyproject-hooks.spec of Package pyproject-hooks
# # Do NOT Edit the Auto-generated Part! # Generated by: spectacle version 0.32 # Name: pyproject-hooks # >> macros # << macros %define srcname pyproject_hooks Summary: A low-level library for calling build-backends in `pyproject.toml`-based project Version: 1.0.0 Release: 0 Group: Development/Libraries License: BSD BuildArch: noarch URL: https://github.com/pypa/pyproject-hooks Source0: %{name}-%{version}.tar.gz Source100: pyproject-hooks.yaml Source101: pyproject-hooks-rpmlintrc BuildRequires: pkgconfig(python3) BuildRequires: pyproject-rpm-macros BuildRequires: pkgconfig BuildRequires: python3dist(pip) BuildRequires: python3dist(toml) BuildRequires: python3dist(tomli) >= 1.1.0 BuildRequires: python3dist(flit-core) >= 3.2 %description %{summary} %if "%{?vendor}" == "chum" PackagedBy: nephros Categories: - Library Custom: Repo: https://github.com/pypa/pyproject-hooks Links: Homepage: %{url} %endif %define ignore_this_macro please %generate_buildrequires %pyproject_buildrequires #-x test,virtualenv %prep %setup -q -n %{name}-%{version} # >> setup # snippet from fedora: # coverage is discouraged in Python packages # https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters sed -ri '/\bpytest-cov\b/d' pyproject.toml sed -ri 's/uv,//' pyproject.toml # << setup %build # >> build pre export FLIT_NO_NETWORK=1 %pyproject_wheel # << build pre # >> build post # << build post %install rm -rf %{buildroot} # >> install pre %pyproject_install # << install pre # >> install post # << install post %files %defattr(-,root,root,-) %{python3_sitelib}/%{srcname}*-info %{python3_sitelib}/%{srcname} # >> files # << files