Skip to content

Commit 6b3ca35

Browse files
authored
Enable check section in python-platformdirs (#10591)
1 parent f086246 commit 6b3ca35

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

SPECS/python-platformdirs/python-platformdirs.spec

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
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".}
87
Summary: Python module for determining appropriate platform-specific dirs
98
Name: python-%{srcname}
109
Version: 4.2.0
11-
Release: 1%{?dist}
10+
Release: 2%{?dist}
1211
License: MIT
1312
Vendor: Microsoft Corporation
1413
Distribution: Azure Linux
@@ -26,6 +25,11 @@ BuildRequires: python3-pathspec
2625
BuildRequires: python3-pluggy
2726
BuildRequires: python3-tomli
2827
BuildRequires: python3-trove-classifiers
28+
%if 0%{?with_check}
29+
BuildRequires: python3-pytest
30+
BuildRequires: python3-pytest-mock
31+
BuildRequires: python3-appdirs
32+
%endif
2933
BuildArch: 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

Comments
 (0)