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

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

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define _unpackaged_files_terminate_build 1

%define oname mockito
%def_with check

Name: python3-module-%oname
Version: 1.2.2
Release: alt1

Summary: Spying framework
License: MIT
Group: Development/Python3
Url: https://pypi.org/project/mockito/
BuildArch: noarch

Source0: %name-%version.tar

BuildRequires(pre): rpm-build-python3

%if_with check
BuildRequires: python3(numpy)
BuildRequires: python3(pytest)
BuildRequires: python3(tox)
BuildRequires: python3(tox_console_scripts)
%endif

%description
Mockito is a spying framework based on Java library with the same name.

%prep
%setup

%build
%python3_build_debug

%install
%python3_install

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

%files
%doc AUTHORS *.rst
%python3_sitelibdir/%oname/
%python3_sitelibdir/%oname-%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