Fix PTests for Python Packages Missing Pytest (#9102)
This commit is contained in:
Родитель
48b1f7bfd2
Коммит
917e08f1e6
|
@ -1,7 +1,7 @@
|
|||
Summary: Query Language for JSON
|
||||
Name: python-jmespath
|
||||
Version: 1.0.1
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
License: MIT
|
||||
Vendor: Microsoft Corporation
|
||||
Distribution: Azure Linux
|
||||
|
@ -12,6 +12,7 @@ BuildRequires: python3-devel
|
|||
BuildRequires: python3-setuptools
|
||||
%if 0%{?with_check}
|
||||
BuildRequires: python3-pip
|
||||
BuildRequires: python3-pytest
|
||||
%endif
|
||||
BuildArch: noarch
|
||||
|
||||
|
@ -36,7 +37,7 @@ JMESPath (pronounced “james path”) allows you to declaratively specify how t
|
|||
ln -sfv jp.py %{buildroot}%{_bindir}/jp.py-%{python3_version}
|
||||
|
||||
%check
|
||||
pip3 install nose mock
|
||||
pip3 install nose mock iniconfig
|
||||
%python3 setup.py test
|
||||
|
||||
%files -n python3-jmespath
|
||||
|
|
|
@ -9,7 +9,7 @@ High speed & safe by default
|
|||
Summary: Python port of markdown-it
|
||||
Name: python-%{pypi_name}
|
||||
Version: 3.0.0
|
||||
Release: 5%{?dist}
|
||||
Release: 6%{?dist}
|
||||
License: MIT
|
||||
Vendor: Microsoft Corporation
|
||||
Distribution: Azure Linux
|
||||
|
@ -18,6 +18,10 @@ Source0: %{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz
|
|||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-pip
|
||||
BuildRequires: python3-flit-core
|
||||
%if 0%{?with_check}
|
||||
BuildRequires: python3-pytest
|
||||
BuildRequires: python3-mdurl
|
||||
%endif
|
||||
BuildArch: noarch
|
||||
# The plugins extras creates a bootstrap loop
|
||||
%bcond plugins 1
|
||||
|
@ -52,6 +56,7 @@ sed -i '/"pytest-cov",/d' pyproject.toml
|
|||
%pyproject_save_files markdown_it
|
||||
|
||||
%check
|
||||
pip3 install iniconfig linkify-it-py pytest-regressions
|
||||
%pytest tests/
|
||||
|
||||
%files -n python3-%{pypi_name} -f %{pyproject_files}
|
||||
|
@ -60,6 +65,9 @@ sed -i '/"pytest-cov",/d' pyproject.toml
|
|||
%{_bindir}/markdown-it
|
||||
|
||||
%changelog
|
||||
* Mon May 13 2024 Sam Meluch <sammeluch@microsoft.com> - 3.0.0-6
|
||||
- Add missing dep on pytest for check section
|
||||
|
||||
* Thu Mar 28 2024 Riken Maharjan <rmaharjan@microsoft.com> - 3.0.0-5
|
||||
- Initial Azure Linux import from Fedora 40 (license: MIT)
|
||||
- License verified
|
||||
|
|
|
@ -3,7 +3,7 @@ URL utilities for markdown-it parser.}
|
|||
Summary: Markdown URL utilities
|
||||
Name: python-mdurl
|
||||
Version: 0.1.2
|
||||
Release: 7%{?dist}
|
||||
Release: 8%{?dist}
|
||||
License: MIT
|
||||
Vendor: Microsoft Corporation
|
||||
Distribution: Azure Linux
|
||||
|
@ -12,6 +12,9 @@ Source0: %{url}/archive/%{version}/mdurl-%{version}.tar.gz
|
|||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-pip
|
||||
BuildRequires: python3-flit-core
|
||||
%if 0%{?with_check}
|
||||
BuildRequires: python3-pytest
|
||||
%endif
|
||||
BuildArch: noarch
|
||||
|
||||
%description %{_description}
|
||||
|
@ -39,6 +42,7 @@ sed -i "s/pytest-cov//" tests/requirements.txt
|
|||
|
||||
|
||||
%check
|
||||
pip3 install iniconfig
|
||||
%pytest
|
||||
|
||||
|
||||
|
@ -47,6 +51,9 @@ sed -i "s/pytest-cov//" tests/requirements.txt
|
|||
%license LICENSE
|
||||
|
||||
%changelog
|
||||
* Mon May 13 2024 Sam Meluch <sammeluch@microsoft.com> - 0.1.2-8
|
||||
- Add missing dep on pytest for check section
|
||||
|
||||
* Thu Mar 28 2024 Riken Maharjan <rmaharjan@microsoft.com> - 0.1.2-7
|
||||
- Initial Azure Linux import from Fedora 40 (license: MIT)
|
||||
- License verified
|
||||
|
|
Загрузка…
Ссылка в новой задаче