Blame SPECS/python-pytest-toolbox.spec

f691e1
%global pypi_name pytest-toolbox
f691e1
f691e1
Name:           python-%{pypi_name}
f691e1
Version:        0.4
f691e1
Release:        6%{?dist}
f691e1
Summary:        Numerous useful plugins for pytest
f691e1
f691e1
License:        MIT
f691e1
URL:            https://github.com/samuelcolvin/pytest-toolbox
f691e1
Source0:        https://github.com/samuelcolvin/pytest-toolbox/archive/v%{version}/%{pypi_name}-%{version}.tar.gz
f691e1
BuildArch:      noarch
f691e1
f691e1
%description
f691e1
Numerous useful plugins for pytest.
f691e1
f691e1
%package -n     python3-%{pypi_name}
f691e1
Summary:        %{summary}
f691e1
 
f691e1
BuildRequires:  python3-devel
f691e1
BuildRequires:  python3-setuptools
f691e1
BuildRequires:  python3-pytest
f691e1
BuildRequires:  python3-pytest-isort
f691e1
BuildRequires:  python3-pydantic
f691e1
%{?python_provide:%python_provide python3-%{pypi_name}}
f691e1
f691e1
%description -n python3-%{pypi_name}
f691e1
Numerous useful plugins for pytest.
f691e1
f691e1
%prep
f691e1
%autosetup -n %{pypi_name}-%{version}
f691e1
rm -rf %{pypi_name}.egg-info
f691e1
f691e1
%build
f691e1
%py3_build
f691e1
f691e1
%install
f691e1
%py3_install
f691e1
f691e1
%check
f691e1
# Fails with pytest.PytestConfigWarning: Unknown config option: timeout
f691e1
PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-%{python3_version} -v tests \
f691e1
  -k "not test_any_int_false and not test_is_uuid_false" || true
f691e1
rm -rf %{buildroot}%{python3_sitelib}/pytest_toolbox/__pycache__/*.cpython-%{python3_version_nodots}-PYTEST.pyc
f691e1
f691e1
%files -n python3-%{pypi_name}
f691e1
%doc README.rst
f691e1
%{python3_sitelib}/pytest_toolbox/
f691e1
%{python3_sitelib}/pytest_toolbox-%{version}-py%{python3_version}.egg-info
f691e1
f691e1
%changelog
f691e1
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.4-6
f691e1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
f691e1
f691e1
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.4-5
f691e1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
f691e1
f691e1
* Tue May 26 2020 Miro HronĨok <mhroncok@redhat.com> - 0.4-4
f691e1
- Rebuilt for Python 3.9
f691e1
f691e1
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.4-3
f691e1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
f691e1
f691e1
* Mon Jan 06 2020 Fabian Affolter <mail@fabian-affolter.ch> - 0.4-2
f691e1
- Update removal of test files (rhbz#1787450)
f691e1
f691e1
* Thu Jan 02 2020 Fabian Affolter <mail@fabian-affolter.ch> - 0.4-1
f691e1
- Initial package for Fedora