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

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

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define _unpackaged_files_terminate_build 1
%define modname sure

%def_with check

Name: python3-module-%modname

Version: 2.0.0
Release: alt1

Summary: An idiomatic testing library for python with powerful and flexible assertions.

Group: Development/Python3
License: GPLv3+
URL: https://github.com/gabrielfalcao/sure

BuildArch: noarch

Source: %name-%version.tar
Patch0: %name-%version-alt.patch

BuildRequires(pre): rpm-build-python3

%if_with check
# install_requires=
BuildRequires: python3(mock)
BuildRequires: python3(six)

BuildRequires: python3(pytest)
BuildRequires: python3(tox)
BuildRequires: python3(tox_console_scripts)
%endif

# try-except import

%py3_requires mock

%description
An idiomatic testing library for python with powerful and flexible assertions.
Sure's developer experience is inspired and modeled after RSpec Expectations and
should.js.

%prep
%setup
%autopatch -p1

%build
%python3_build

%install
%python3_install

%check
cat > tox.ini <<'EOF'
[testenv]
usedevelop=True
commands =
   pytest {posargs:-vra}
EOF
export PIP_NO_BUILD_ISOLATION=no
export PIP_NO_INDEX=YES
export TOXENV=py3
tox.py3 --sitepackages --console-scripts -vvr

%files
%_bindir/%modname
%doc README.rst COPYING
%python3_sitelibdir/%modname
%python3_sitelibdir/%modname-%version-py%_python3_version.egg-info/

%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