Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37736208
en ru br
Репозитории ALT

Группа :: Development/Python3
Пакет: python3-module-repeated_test

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define _unpackaged_files_terminate_build 1
%define oname repeated_test

%def_with check

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

Summary: A quick unittest-compatible framework for repeating a test function over many fixtures

License: MIT
Group: Development/Python3
Url: https://pypi.org/project/repeated-test/

# Source-url: https://pypi.io/packages/source/r/%oname/%oname-%version.tar.gz

Source: %name-%version.tar

BuildArch: noarch

BuildRequires(pre): rpm-build-python3
BuildRequires: python3(setuptools_scm)

%if_with check
BuildRequires: python3(tox)
%endif

# PEP503 normalized name

%py3_provides repeated-test
Provides: python3-module-repeated-test = %EVR

%description
A quick unittest-compatible framework for repeating a test function over many fixtures.

%prep
%setup

%build
export SETUPTOOLS_SCM_PRETEND_VERSION=%version
%python3_build

%install
export SETUPTOOLS_SCM_PRETEND_VERSION=%version
%python3_install

# strip tests

rm -r %buildroot%python3_sitelibdir/%oname/tests/

%check
export SETUPTOOLS_SCM_PRETEND_VERSION=%version
cat > tox.ini <<'EOF'
[testenv]
commands =
   python -m unittest -v
EOF
export PIP_NO_BUILD_ISOLATION=no
export PIP_NO_INDEX=YES
export TOXENV=py3
tox.py3 --sitepackages -vvr --develop

%files
%doc *.rst
%python3_sitelibdir/%oname/
%python3_sitelibdir/%oname-%version-py%_python3_version.egg-info/

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin