python-pytest-subtests: drop BR on pytest & pip install latest deps to enable ptest (#2998)

* python-pytest-subtests: drop BR on pytest & pip install latest deps to enable ptest
* python-pytest-subtests: fix url in cgmanifest

Signed-off-by: Muhammad Falak R Wani <falakreyaz@gmail.com>
This commit is contained in:
Muhammad Falak R Wani 2022-07-22 12:11:56 +05:30 коммит произвёл GitHub
Родитель 3c60151ba7
Коммит 3f99f35f53
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 16 добавлений и 6 удалений

Просмотреть файл

@ -10,12 +10,15 @@
Summary: Support for unittest subTest() and subtests fixture
Name: python-%{pypi_name}
Version: 0.3.1
Release: 3%{?dist}
Release: 4%{?dist}
License: MIT
URL: https://github.com/pytest-dev/pytest-subtests
#Source0: https://files.pythonhosted.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
Source0: https://files.pythonhosted.org/packages/source/p/%{pypi_name}/%{name}-%{version}.tar.gz
BuildArch: noarch
%if %{with_check}
BuildRequires: python3-pip
%endif
%description
pytest-subtests unittest subTest() support and subtests fixture.
@ -24,7 +27,6 @@ pytest-subtests unittest subTest() support and subtests fixture.
Summary: %{summary}
BuildRequires: python3-devel
BuildRequires: python3-pytest
BuildRequires: python3-setuptools
BuildRequires: python3-setuptools_scm
%{?python_provide:%python_provide python3-%{pypi_name}}
@ -43,9 +45,9 @@ rm -rf %{pypi_name}.egg-info
%py3_install
%check
pip3 install pytest==7.1.2
# https://github.com/pytest-dev/pytest-subtests/issues/21
PYTHONDONTWRITEBYTECODE=1 PYTHONPATH=%{buildroot}%{python3_sitelib} \
pytest-%{python3_version} -v tests \
PYTHONDONTWRITEBYTECODE=1 pytest -v tests \
-k "not TestFixture and not TestCapture and not test_simple_terminal"
%files -n python3-%{pypi_name}
@ -56,13 +58,21 @@ PYTHONDONTWRITEBYTECODE=1 PYTHONPATH=%{buildroot}%{python3_sitelib} \
%{python3_sitelib}/pytest_subtests-%{version}-py*.egg-info/
%changelog
* Thu Apr 29 2022 Muhammad Falak <mwani@microsoft.com> - 0.3.1-4
- Drop BR on pytest & pip install latest deps to enable ptest
- License verified
* Wed Dec 09 2020 Steve Laughman <steve.laughman@microsoft.com> - 0.3.1-3
- Initial CBL-Mariner import from Fedora 33 (license: MIT)
* 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
- Initial package for Fedora

Просмотреть файл

@ -21475,7 +21475,7 @@
"other": {
"name": "python-pytest-subtests",
"version": "0.3.1",
"downloadUrl": "https://files.pythonhosted.org/packages/source/p/pytest-subtests/python-pytest-subtests-0.3.1.tar.gz"
"downloadUrl": "https://files.pythonhosted.org/packages/source/p/pytest-subtests/pytest-subtests-0.3.1.tar.gz"
}
}
},