Merged update from upstream sources

This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/python-pytest-subtests.git#fdcee2a14100f853910f50c9818661ebe1472794
This commit is contained in:
DistroBaker 2020-10-30 15:33:56 +01:00
parent 9ff8bccd60
commit 1e5ef05995
4 changed files with 68 additions and 0 deletions

2
.gitignore vendored
View File

@ -0,0 +1,2 @@
/pytest-subtests-0.3.0.tar.gz
/pytest-subtests-0.3.1.tar.gz

3
README.md Normal file
View File

@ -0,0 +1,3 @@
# python-pytest-subtests
The python-pytest-subtests package

View File

@ -0,0 +1,62 @@
%global pypi_name pytest-subtests
Name: python-%{pypi_name}
Version: 0.3.1
Release: 2%{?dist}
Summary: Support for unittest subTest() and subtests fixture
License: MIT
URL: https://github.com/pytest-dev/pytest-subtests
Source0: %{pypi_source}
BuildArch: noarch
%description
pytest-subtests unittest subTest() support and subtests fixture.
%package -n python3-%{pypi_name}
Summary: %{summary}
BuildRequires: python3-devel
BuildRequires: python3-pytest
BuildRequires: python3-setuptools
BuildRequires: python3-setuptools_scm
%{?python_provide:%python_provide python3-%{pypi_name}}
%description -n python3-%{pypi_name}
pytest-subtests unittest subTest() support and subtests fixture.
%prep
%autosetup -n %{pypi_name}-%{version}
rm -rf %{pypi_name}.egg-info
%build
%py3_build
%install
%py3_install
%check
# https://github.com/pytest-dev/pytest-subtests/issues/21
PYTHONDONTWRITEBYTECODE=1 PYTHONPATH=%{buildroot}%{python3_sitelib} \
pytest-%{python3_version} -v tests \
-k "not TestFixture and not TestCapture and not test_simple_terminal"
%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{python3_sitelib}/__pycache__/*
%{python3_sitelib}/pytest_subtests.py
%{python3_sitelib}/pytest_subtests-%{version}-py*.egg-info/
%changelog
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Tue Jul 14 2020 Fabian Affolter <mail@fabian-affolter.ch> - 0.3.1-1
- Update to latest upstream release 0.3.1
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.3.0-2
- Rebuilt for Python 3.9
* Mon Mar 23 2020 Fabian Affolter <mail@fabian-affolter.ch> - 0.3.0-1
- Initial package for Fedora

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (pytest-subtests-0.3.1.tar.gz) = 5695246652f7912be6efbf2dad1325962b9abc0cf064906c9d4d28391d2cf66eda503ef3d458a61257fb78b8cd4c706a0e9584f0d4715a53eb7b0a0180319353