Group :: Development/Python3
RPM: python3-module-vcrpy
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%define _unpackaged_files_terminate_build 1
%define oname vcrpy
%def_with check
Name: python3-module-%oname
Version: 4.1.1
Release: alt2
Summary: Automatically mock your HTTP interactions to simplify and speed up testing
License: MIT
Group: Development/Python3
Url: https://pypi.org/project/vcrpy/
# https://github.com/kevin1024/vcrpy.git
Source: %name-%version.tar
Patch0: %name-%version-alt.patch
BuildArch: noarch
BuildRequires(pre): rpm-build-python3
%if_with check
# install_requires=
BuildRequires: python3(wrapt)
BuildRequires: python3(yaml)
BuildRequires: python3(yarl)
BuildRequires: python3(six)
BuildRequires: python3(pytest)
BuildRequires: python3(tox)
BuildRequires: python3(tox_console_scripts)
%endif
%description
Automatically mock your HTTP interactions to simplify and speed up
testing.
%prep
%setup
%autopatch -p1
# don't package boto stubs, this code should be unreachable with boto3
rm vcr/stubs/boto_stubs.py
%build
%python3_build
%install
%python3_install
%check
cat > tox.ini <<'EOF'
[testenv]
commands =
{envbindir}/pytest -vra {posargs:tests}
EOF
export PIP_NO_BUILD_ISOLATION=no
export PIP_NO_INDEX=YES
export TOXENV=py3
export REQUIRES_INTERNET=yes
export TOX_TESTENV_PASSENV='REQUIRES_INTERNET'
tox.py3 --sitepackages --console-scripts -vvr --develop -- tests/unit
%files
%doc LICENSE.txt README.rst
%python3_sitelibdir/*
%changelog
…
Todas as alterações você pod ver aqui
%define oname vcrpy
%def_with check
Name: python3-module-%oname
Version: 4.1.1
Release: alt2
Summary: Automatically mock your HTTP interactions to simplify and speed up testing
License: MIT
Group: Development/Python3
Url: https://pypi.org/project/vcrpy/
# https://github.com/kevin1024/vcrpy.git
Source: %name-%version.tar
Patch0: %name-%version-alt.patch
BuildArch: noarch
BuildRequires(pre): rpm-build-python3
%if_with check
# install_requires=
BuildRequires: python3(wrapt)
BuildRequires: python3(yaml)
BuildRequires: python3(yarl)
BuildRequires: python3(six)
BuildRequires: python3(pytest)
BuildRequires: python3(tox)
BuildRequires: python3(tox_console_scripts)
%endif
%description
Automatically mock your HTTP interactions to simplify and speed up
testing.
%prep
%setup
%autopatch -p1
# don't package boto stubs, this code should be unreachable with boto3
rm vcr/stubs/boto_stubs.py
%build
%python3_build
%install
%python3_install
%check
cat > tox.ini <<'EOF'
[testenv]
commands =
{envbindir}/pytest -vra {posargs:tests}
EOF
export PIP_NO_BUILD_ISOLATION=no
export PIP_NO_INDEX=YES
export TOXENV=py3
export REQUIRES_INTERNET=yes
export TOX_TESTENV_PASSENV='REQUIRES_INTERNET'
tox.py3 --sitepackages --console-scripts -vvr --develop -- tests/unit
%files
%doc LICENSE.txt README.rst
%python3_sitelibdir/*
%changelog
…
Todas as alterações você pod ver aqui