Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37708005
en ru br
ALT Linux repositórios
S:0.7.1-alt1

Group :: Development/Python3
RPM: python3-module-pyproject-metadata

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%define _unpackaged_files_terminate_build 1
%define pypi_name pyproject-metadata
%define mod_name pyproject_metadata

%define tomli %(%__python3 -c 'import sys;print(int(sys.version_info < (3, 11)))')

%def_with check

Name: python3-module-%pypi_name
Version: 0.7.1
Release: alt1
Summary: PEP 621 metadata parsing
License: MIT
Group: Development/Python3
Url: https://pypi.org/project/pyproject-metadata
VCS: https://github.com/FFY00/python-pyproject-metadata.git
BuildArch: noarch
Source: %name-%version.tar
Patch: %name-%version-alt.patch

# PyPI wellknown name

%py3_provides %pypi_name

BuildRequires(pre): rpm-build-python3

# build backend and its deps

BuildRequires: python3(setuptools)
BuildRequires: python3(wheel)

%if_with check
# dependencies
BuildRequires: python3(packaging)

BuildRequires: python3(pytest)
%if %tomli
BuildRequires: python3(tomli)
%endif
%endif

%description
This project does not implement the parsing of pyproject.toml containing PEP 621
metadata.

Instead, given a Python data structure representing PEP 621 metadata (already
parsed), it will validate this input and generate a PEP 643-compliant metadata
file (e.g. PKG-INFO).

%prep
%setup
%autopatch -p1

%build
%pyproject_build

%install
%pyproject_install

%check
%pyproject_run_pytest -ra tests/

%files
%doc README.md
%python3_sitelibdir/%mod_name/
%python3_sitelibdir/%{pyproject_distinfo %pypi_name}

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009