Group :: Development/Python3
RPM: python3-module-ddt
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%define _unpackaged_files_terminate_build 1
%global oname ddt
%def_with check
Name: python3-module-ddt
Version: 1.6.0
Release: alt1
Summary: A Python library to multiply test cases
Group: Development/Python3
License: MIT
Url: https://pypi.org/project/ddt/
# https://github.com/datadriventests/ddt.git
Source: %name-%version.tar
Patch0: %name-%version-alt.patch
BuildArch: noarch
BuildRequires(pre): rpm-build-python3
%if_with check
BuildRequires: python3(tox)
BuildRequires: python3(tox_console_scripts)
BuildRequires: python3(tox_no_deps)
BuildRequires: python3(yaml)
%endif
%description
DDT (Data-Driven Tests) allows you to multiply one test case by running it with
different test data, and make it appear as multiple test cases. It is used in
combination with other testing frameworks like unittest and nose.
%prep
%setup
%autopatch -p1
%build
%python3_build
%install
%python3_install
%check
export PIP_NO_INDEX=YES
export TOXENV=py3
tox.py3 --sitepackages --console-scripts --no-deps -vvr
%files
%doc README.md
%python3_sitelibdir/%oname.py
%python3_sitelibdir/%oname-%version-py%_python3_version.egg-info
%python3_sitelibdir/__pycache__
%changelog
…
Todas as alterações você pod ver aqui
%global oname ddt
%def_with check
Name: python3-module-ddt
Version: 1.6.0
Release: alt1
Summary: A Python library to multiply test cases
Group: Development/Python3
License: MIT
Url: https://pypi.org/project/ddt/
# https://github.com/datadriventests/ddt.git
Source: %name-%version.tar
Patch0: %name-%version-alt.patch
BuildArch: noarch
BuildRequires(pre): rpm-build-python3
%if_with check
BuildRequires: python3(tox)
BuildRequires: python3(tox_console_scripts)
BuildRequires: python3(tox_no_deps)
BuildRequires: python3(yaml)
%endif
%description
DDT (Data-Driven Tests) allows you to multiply one test case by running it with
different test data, and make it appear as multiple test cases. It is used in
combination with other testing frameworks like unittest and nose.
%prep
%setup
%autopatch -p1
%build
%python3_build
%install
%python3_install
%check
export PIP_NO_INDEX=YES
export TOXENV=py3
tox.py3 --sitepackages --console-scripts --no-deps -vvr
%files
%doc README.md
%python3_sitelibdir/%oname.py
%python3_sitelibdir/%oname-%version-py%_python3_version.egg-info
%python3_sitelibdir/__pycache__
%changelog
…
Todas as alterações você pod ver aqui