diff --git a/pytest-subtests-0.4.0.tar.gz b/pytest-subtests-0.4.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..97c131d9b2f8797c60f56b9ccd23705f8aac5148 Binary files /dev/null and b/pytest-subtests-0.4.0.tar.gz differ diff --git a/python-pytest-subtests.spec b/python-pytest-subtests.spec new file mode 100644 index 0000000000000000000000000000000000000000..2429e4c17018f60384f770fca44d4e4b7d937431 --- /dev/null +++ b/python-pytest-subtests.spec @@ -0,0 +1,53 @@ +%global pypi_name pytest-subtests + +Name: python-%{pypi_name} +Version: 0.4.0 +Release: 1 +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 +* Fri Jul 09 2021 caiyuxin@kylinos.cn - 0.4.0-1 +- Initial package .