11# Disable tests as it requires new package python-exceptiongroup
2- %global with_check 0
32%global srcname platformdirs
43%bcond_without tests
54%global common_description %{expand:
@@ -8,7 +7,7 @@ a "user data dir".}
87Summary: Python module for determining appropriate platform-specific dirs
98Name: python-%{srcname }
109Version: 4.2.0
11- Release: 1 %{?dist }
10+ Release: 2 %{?dist }
1211License: MIT
1312Vendor: Microsoft Corporation
1413Distribution: Azure Linux
@@ -26,6 +25,11 @@ BuildRequires: python3-pathspec
2625BuildRequires: python3-pluggy
2726BuildRequires: python3-tomli
2827BuildRequires: python3-trove-classifiers
28+ %if 0%{?with_check }
29+ BuildRequires: python3-pytest
30+ BuildRequires: python3-pytest-mock
31+ BuildRequires: python3-appdirs
32+ %endif
2933BuildArch: noarch
3034
3135%description %{common_description }
@@ -51,20 +55,22 @@ BuildRequires: python3-devel
5155
5256
5357%check
54- %if 0%{?with_check }
5558%if %{with tests }
59+ pip install iniconfig==2.0.0
5660%pytest
5761%else
5862%pyproject_check_import
5963%endif
60- %endif
6164
6265
6366%files -n python3-%{srcname } -f %{pyproject_files }
6467%license %{python3_sitearch }/%{srcname }-%{version }.dist-info/licenses/LICENSE
6568%doc README.rst
6669
6770%changelog
71+ * Thu Oct 03 2024 Bala <balakumaran.kannan@microsoft.com> - 4.2.0-2
72+ - Fixing the missing dependency in the test section and enable it
73+
6874* Mon Feb 26 2024 Bala <balakumaran.kannan@microsoft.com> - 4.2.0-1
6975- Upgraded to 4.2.0
7076- Disable tests as pytest requires new package python-exceptiongroup
0 commit comments