Group :: Development/Python3
RPM: python3-module-pytest-aiohttp
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%define _unpackaged_files_terminate_build 1
%define pypi_name pytest-aiohttp
%define mod_name pytest_aiohttp
%def_with check
Name: python3-module-%pypi_name
Version: 1.0.4
Release: alt1
Summary: pytest plugin for aiohttp support
License: Apache-2.0
Group: Development/Python3
Url: https://pypi.org/project/pytest-aiohttp/
VCS: https://github.com/aio-libs/pytest-aiohttp
Source: %name-%version.tar
Patch0: %name-%version-alt.patch
# well-known PyPI name
%py3_provides %pypi_name
BuildArch: noarch
BuildRequires(pre): rpm-build-python3
# build backend and its deps
BuildRequires: python3(setuptools)
BuildRequires: python3(wheel)
BuildRequires: python3(setuptools_scm)
%if_with check
# dependencies
BuildRequires: python3(aiohttp)
BuildRequires: python3(aiohttp.test_utils)
BuildRequires: python3(pytest)
BuildRequires: python3(pytest-asyncio)
%endif
%description
pytest plugin for aiohttp support
%prep
%setup
%autopatch -p1
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
%build
%pyproject_build
%install
%pyproject_install
%check
%pyproject_run_pytest -ra
%files
%doc *.rst
%python3_sitelibdir/%mod_name/
%python3_sitelibdir/%{pyproject_distinfo %pypi_name}/
%changelog
…
Full changelog you can see here
%define pypi_name pytest-aiohttp
%define mod_name pytest_aiohttp
%def_with check
Name: python3-module-%pypi_name
Version: 1.0.4
Release: alt1
Summary: pytest plugin for aiohttp support
License: Apache-2.0
Group: Development/Python3
Url: https://pypi.org/project/pytest-aiohttp/
VCS: https://github.com/aio-libs/pytest-aiohttp
Source: %name-%version.tar
Patch0: %name-%version-alt.patch
# well-known PyPI name
%py3_provides %pypi_name
BuildArch: noarch
BuildRequires(pre): rpm-build-python3
# build backend and its deps
BuildRequires: python3(setuptools)
BuildRequires: python3(wheel)
BuildRequires: python3(setuptools_scm)
%if_with check
# dependencies
BuildRequires: python3(aiohttp)
BuildRequires: python3(aiohttp.test_utils)
BuildRequires: python3(pytest)
BuildRequires: python3(pytest-asyncio)
%endif
%description
pytest plugin for aiohttp support
%prep
%setup
%autopatch -p1
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
%build
%pyproject_build
%install
%pyproject_install
%check
%pyproject_run_pytest -ra
%files
%doc *.rst
%python3_sitelibdir/%mod_name/
%python3_sitelibdir/%{pyproject_distinfo %pypi_name}/
%changelog
…
Full changelog you can see here