Name: python-pytest-localserver
Version: 0.8.1
Release: %autorelease
Summary: pytest plugin to test server connections locally
License: MIT
URL: https://github.com/pytest-dev/pytest-localserver
# The package uses setuptools_scm, GitHub tarball will not work
Source0: %{pypi_source pytest-localserver}
BuildArch: noarch
BuildRequires: python3-devel
%global _description %{expand:
pytest-localserver is a plugin for the pytest testing framework which enables
you to test server connections locally.}
%description %_description
%package -n python3-pytest-localserver
Summary: %{summary}
%description -n python3-pytest-localserver %_description
%pyproject_extras_subpkg -n python3-pytest-localserver smtp
%prep
%autosetup -p1 -n pytest-localserver-%{version}
%generate_buildrequires
%pyproject_buildrequires -t
%build
%pyproject_wheel
%install
%pyproject_install
%pyproject_save_files pytest_localserver
%check
%tox
%files -n python3-pytest-localserver -f %{pyproject_files}
%doc README.rst CHANGES
%license LICENSE
%changelog
%autochangelog