Group :: Development/Python3
RPM: python3-module-tabulate
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%define _unpackaged_files_terminate_build 1
%define pypi_name tabulate
%def_with check
Name: python3-module-%pypi_name
Version: 0.9.0
Release: alt1
Summary: Pretty-print tabular data
License: MIT
Group: Development/Python3
Url: https://pypi.org/project/tabulate/
VCS: https://github.com/astanin/python-tabulate.git
Source: %name-%version.tar
BuildArch: noarch
BuildRequires(pre): rpm-build-python3
# build backend and its deps
BuildRequires: python3(setuptools)
BuildRequires: python3(wheel)
BuildRequires: python3(setuptools_scm)
%if_with check
BuildRequires: python3(pytest)
%endif
%description
Pretty-print tabular data in Python.
%prep
%setup
# setuptools_scm implements a file_finders entry point which returns all files
# tracked by SCM
if [ ! -d .git ]; then
git init
git config user.email author at example.com
git config user.name author
git add .
git commit -m 'release'
git tag '%version'
fi
%build
%pyproject_build
%install
%pyproject_install
%check
%tox_check_pyproject -- -vra
%files
%doc CHANGELOG README
%_bindir/tabulate
%python3_sitelibdir/tabulate/
%python3_sitelibdir/%{pyproject_distinfo %pypi_name}/
%changelog
…
Todas as alterações você pod ver aqui
%define pypi_name tabulate
%def_with check
Name: python3-module-%pypi_name
Version: 0.9.0
Release: alt1
Summary: Pretty-print tabular data
License: MIT
Group: Development/Python3
Url: https://pypi.org/project/tabulate/
VCS: https://github.com/astanin/python-tabulate.git
Source: %name-%version.tar
BuildArch: noarch
BuildRequires(pre): rpm-build-python3
# build backend and its deps
BuildRequires: python3(setuptools)
BuildRequires: python3(wheel)
BuildRequires: python3(setuptools_scm)
%if_with check
BuildRequires: python3(pytest)
%endif
%description
Pretty-print tabular data in Python.
%prep
%setup
# setuptools_scm implements a file_finders entry point which returns all files
# tracked by SCM
if [ ! -d .git ]; then
git init
git config user.email author at example.com
git config user.name author
git add .
git commit -m 'release'
git tag '%version'
fi
%build
%pyproject_build
%install
%pyproject_install
%check
%tox_check_pyproject -- -vra
%files
%doc CHANGELOG README
%_bindir/tabulate
%python3_sitelibdir/tabulate/
%python3_sitelibdir/%{pyproject_distinfo %pypi_name}/
%changelog
…
Todas as alterações você pod ver aqui