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

Group :: Development/Python3
RPM: python3-module-pytest-forked

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define _unpackaged_files_terminate_build 1
%define pypi_name pytest-forked

%def_with check

Name: python3-module-%pypi_name
Version: 1.4.0
Release: alt2

Summary: pytest plugin for running tests in isolated forked subprocesses
License: MIT
Group: Development/Python3

Url: https://pypi.org/project/pytest-forked/
VCS: https://github.com/pytest-dev/pytest-forked

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

BuildRequires(pre): rpm-build-python3

# build backend and its deps

BuildRequires: python3(setuptools)
BuildRequires: python3(wheel)
BuildRequires: python3(setuptools_scm)

%if_with check
# install_requires=
BuildRequires: python3(py)
BuildRequires: python3(pytest)
%endif

BuildArch: noarch

%py3_provides %pypi_name

%description
%summary.

%prep
%setup
%autopatch -p1

%build
# setuptools_scm implements a file_finders entry point which returns all files
# tracked by SCM.
if [ ! -d .git ]; then
   git init
   git config user.email author at example.com
   git config user.name author
   git add .
   git commit -m 'release'
   git tag '%version'
fi
%pyproject_build

%install
%pyproject_install

%check
%pyproject_run_pytest -vra

%files
%doc CHANGELOG.rst README.rst
%python3_sitelibdir/pytest_forked/
%python3_sitelibdir/%{pyproject_distinfo %pypi_name}/

%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