Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37734447
en ru br
ALT Linux repos
S:0.4.1-alt1

Group :: Development/Python3
RPM: python3-module-crashtest

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%def_disable snapshot
%define _unpackaged_files_terminate_build 1
%define pypi_name crashtest

%def_enable check

Name: python3-module-%pypi_name
Version: 0.4.1
Release: alt1

Summary: Crashtest is a Python library that makes exceptions handling and inspection easier.
License: MIT
Group: Development/Python3
Url: https://github.com/sdispater/crashtest

%if_disabled snapshot
Source: https://github.com/sdispater/crashtest/archive/%version/%pypi_name-%version.tar.gz
%else
Vcs: https://github.com/sdispater/crashtest.git
Source: %pypi_name-%version.tar
%endif

BuildArch: noarch

BuildRequires(pre): rpm-build-python3
BuildRequires: python3(wheel) python3(poetry-core)

%{?_enable_check:BuildRequires: python3(pytest)
BuildRequires: python3(pytest_cov)
BuildRequires: python3(tox)
BuildRequires: python3(tox_console_scripts)}

%description
Crashtest is a Python library that makes exceptions handling and inspection easier.

%prep
%setup -n %pypi_name-%version

%build
%pyproject_build

%install
%pyproject_install

%check
export PYTHONPATH=%buildroot%python3_sitelibdir
py.test3

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

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin