Group :: Development/Python3
RPM: python3-module-RestrictedPython
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%define _unpackaged_files_terminate_build 1
%define oname RestrictedPython
%def_with check
Name: python3-module-%oname
Version: 6.1
Release: alt1
Summary: Provides a restricted execution environment for Python, e.g. for running untrusted code
License: ZPL-2.1
Group: Development/Python3
Url: https://pypi.org/project/RestrictedPython/
#Git: https://github.com/zopefoundation/RestrictedPython.git
Source: %name-%version.tar
BuildArch: noarch
BuildRequires(pre): rpm-build-python3
%if_with check
BuildRequires: python3(pytest)
BuildRequires: python3(pytest_mock)
BuildRequires: python3(tox)
BuildRequires: python3(tox_console_scripts)
%endif
%description
RestrictedPython provides a restricted execution environment for Python,
e.g. for running untrusted code.
%prep
%setup
%build
%python3_build
%install
%python3_install
%if "%python3_sitelibdir_noarch" != "%python3_sitelibdir"
install -d %buildroot%python3_sitelibdir
mv %buildroot%python3_sitelibdir_noarch/* \
%buildroot%python3_sitelibdir/
%endif
%check
cat > tox.ini <<'EOF'
[testenv]
commands =
{envbindir}/pytest -vra {posargs:tests}
EOF
export PIP_NO_INDEX=YES
export TOXENV=py3
tox.py3 --sitepackages --console-scripts -vvr --develop
%files
%doc *.txt
%python3_sitelibdir/%oname/
%python3_sitelibdir/%oname-%version-py%_python3_version.egg-info/
%changelog
…
Todas as alterações você pod ver aqui
%define oname RestrictedPython
%def_with check
Name: python3-module-%oname
Version: 6.1
Release: alt1
Summary: Provides a restricted execution environment for Python, e.g. for running untrusted code
License: ZPL-2.1
Group: Development/Python3
Url: https://pypi.org/project/RestrictedPython/
#Git: https://github.com/zopefoundation/RestrictedPython.git
Source: %name-%version.tar
BuildArch: noarch
BuildRequires(pre): rpm-build-python3
%if_with check
BuildRequires: python3(pytest)
BuildRequires: python3(pytest_mock)
BuildRequires: python3(tox)
BuildRequires: python3(tox_console_scripts)
%endif
%description
RestrictedPython provides a restricted execution environment for Python,
e.g. for running untrusted code.
%prep
%setup
%build
%python3_build
%install
%python3_install
%if "%python3_sitelibdir_noarch" != "%python3_sitelibdir"
install -d %buildroot%python3_sitelibdir
mv %buildroot%python3_sitelibdir_noarch/* \
%buildroot%python3_sitelibdir/
%endif
%check
cat > tox.ini <<'EOF'
[testenv]
commands =
{envbindir}/pytest -vra {posargs:tests}
EOF
export PIP_NO_INDEX=YES
export TOXENV=py3
tox.py3 --sitepackages --console-scripts -vvr --develop
%files
%doc *.txt
%python3_sitelibdir/%oname/
%python3_sitelibdir/%oname-%version-py%_python3_version.egg-info/
%changelog
…
Todas as alterações você pod ver aqui