Group :: Development/Python3
RPM: python3-module-pytest-fixture-config
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%define _unpackaged_files_terminate_build 1
%define oname pytest-fixture-config
%def_with check
Name: python3-module-%oname
Version: 1.7.0
Release: alt2
Summary: Fixture configuration utils for py.test
License: MIT
Group: Development/Python3
Url: https://pypi.python.org/pypi/pytest-fixture-config
BuildArch: noarch
Source: %oname-%version.tar
BuildRequires(pre): rpm-build-python3
%if_with check
BuildRequires: python3(pytest)
BuildRequires: python3(tox)
%endif
%py3_provides %oname
%description
Simple configuration objects for Py.test fixtures.
Allows you to skip tests when their required config variables aren't set.
%prep
%setup -n %oname-%version
# fix dependency
sed -i -e 's:setuptools-git:setuptools:g' \
common_setup.py
%build
%python3_build
%install
%python3_install
%check
cat > tox.ini <<EOF
[testenv]
commands =
{envpython} -m pytest {posargs:-vra}
EOF
export PIP_NO_INDEX=YES
export TOXENV=py%{python_version_nodots python3}
tox.py3 --sitepackages -vvr
%files
%doc CHANGES.md README.md
%python3_sitelibdir/__pycache__/pytest_fixture_config.*.py*
%python3_sitelibdir/pytest_fixture_config-*.egg-info/
%python3_sitelibdir/pytest_fixture_config.py
%changelog
…
Full changelog you can see here
%define oname pytest-fixture-config
%def_with check
Name: python3-module-%oname
Version: 1.7.0
Release: alt2
Summary: Fixture configuration utils for py.test
License: MIT
Group: Development/Python3
Url: https://pypi.python.org/pypi/pytest-fixture-config
BuildArch: noarch
Source: %oname-%version.tar
BuildRequires(pre): rpm-build-python3
%if_with check
BuildRequires: python3(pytest)
BuildRequires: python3(tox)
%endif
%py3_provides %oname
%description
Simple configuration objects for Py.test fixtures.
Allows you to skip tests when their required config variables aren't set.
%prep
%setup -n %oname-%version
# fix dependency
sed -i -e 's:setuptools-git:setuptools:g' \
common_setup.py
%build
%python3_build
%install
%python3_install
%check
cat > tox.ini <<EOF
[testenv]
commands =
{envpython} -m pytest {posargs:-vra}
EOF
export PIP_NO_INDEX=YES
export TOXENV=py%{python_version_nodots python3}
tox.py3 --sitepackages -vvr
%files
%doc CHANGES.md README.md
%python3_sitelibdir/__pycache__/pytest_fixture_config.*.py*
%python3_sitelibdir/pytest_fixture_config-*.egg-info/
%python3_sitelibdir/pytest_fixture_config.py
%changelog
…
Full changelog you can see here