Group :: Development/Python3
RPM: python3-module-pytest_sourceorder
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%define _unpackaged_files_terminate_build 1
%define mname pytest_sourceorder
%def_with check
Name: python3-module-%mname
Version: 0.6.0
Release: alt1
Summary: A pytest plugin for ensuring tests within a class are run in source order
License: %gpl3plus
Group: Development/Python3
# Source-git: https://github.com/encukou/pytest-sourceorder
Url: https://pypi.org/project/pytest-sourceorder
Source: %name-%version.tar
BuildRequires(pre): rpm-build-licenses
BuildRequires(pre): rpm-build-python3
BuildArch: noarch
BuildRequires: python3-module-setuptools
%if_with check
BuildRequires: python3-module-pytest
BuildRequires: python3-module-tox
%endif
# PyPI name
%py3_provides pytest-sourceorder
Provides: python3-module-pytest-sourceorder = %EVR
%description
Allows tests within a specially marked class to be run in source order,
instead of the "almost alphabetical" order Pytest normally uses.
%prep
%setup
%build
%python3_build
%check
export PIP_NO_BUILD_ISOLATION=no
export PIP_NO_INDEX=YES
export TOXENV=py3
tox.py3 --sitepackages -vvr
%install
%python3_install
%files
%doc README.rst COPYING
%python3_sitelibdir/%mname-%version-py%_python3_version.egg-info/
%python3_sitelibdir/%mname.py
%python3_sitelibdir/__pycache__/%mname.*.py*
%changelog
…
Full changelog you can see here
%define mname pytest_sourceorder
%def_with check
Name: python3-module-%mname
Version: 0.6.0
Release: alt1
Summary: A pytest plugin for ensuring tests within a class are run in source order
License: %gpl3plus
Group: Development/Python3
# Source-git: https://github.com/encukou/pytest-sourceorder
Url: https://pypi.org/project/pytest-sourceorder
Source: %name-%version.tar
BuildRequires(pre): rpm-build-licenses
BuildRequires(pre): rpm-build-python3
BuildArch: noarch
BuildRequires: python3-module-setuptools
%if_with check
BuildRequires: python3-module-pytest
BuildRequires: python3-module-tox
%endif
# PyPI name
%py3_provides pytest-sourceorder
Provides: python3-module-pytest-sourceorder = %EVR
%description
Allows tests within a specially marked class to be run in source order,
instead of the "almost alphabetical" order Pytest normally uses.
%prep
%setup
%build
%python3_build
%check
export PIP_NO_BUILD_ISOLATION=no
export PIP_NO_INDEX=YES
export TOXENV=py3
tox.py3 --sitepackages -vvr
%install
%python3_install
%files
%doc README.rst COPYING
%python3_sitelibdir/%mname-%version-py%_python3_version.egg-info/
%python3_sitelibdir/%mname.py
%python3_sitelibdir/__pycache__/%mname.*.py*
%changelog
…
Full changelog you can see here