Skip to content

Commit 0e479f8

Browse files
authored
Fix python-msgpack ptest (#13635)
1 parent 3eed689 commit 0e479f8

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

SPECS/python-msgpack/python-msgpack.spec

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Summary: MessagePack (de)serializer.
33
Name: python-msgpack
44
Version: 1.0.5
5-
Release: 1%{?dist}
5+
Release: 2%{?dist}
66
License: ASL 2.0
77
Vendor: Microsoft Corporation
88
Distribution: Azure Linux
@@ -14,6 +14,7 @@ BuildRequires: python3-setuptools
1414
BuildRequires: python3-Cython
1515
%if 0%{?with_check}
1616
BuildRequires: python3-pip
17+
BuildRequires: python3-pytest
1718
%endif
1819

1920
%description
@@ -36,17 +37,17 @@ MessagePack is a fast, compact binary serialization format, suitable for similar
3637
%py3_install
3738

3839
%check
39-
# v1.0.3 does not have a tox env for newer versions of python, so we add it ourselves
40-
sed -i 's/ {py35,py36,py37,py38}-{c,pure},/ {py35,py36,py37,py38,py%{python3_version_nodots}}-{c,pure},/g' tox.ini
41-
pip3 install tox
42-
tox -e py%{python3_version_nodots}-c,py%{python3_version_nodots}-pure
40+
%pytest
4341

4442
%files -n python3-msgpack
4543
%defattr(-,root,root)
4644
%license COPYING
4745
%{python3_sitelib}/*
4846

4947
%changelog
48+
* Tue Apr 29 2025 Riken Maharjan <rmaharjan@microsoft.com> - 1.0.5-2
49+
- Use pytest instead of tox to fix the ptest
50+
5051
* Fri Oct 27 2023 CBL-Mariner Servicing Account <cblmargh@microsoft.com> - 1.0.5-1
5152
- Auto-upgrade to 1.0.5 - Azure Linux 3.0 - package upgrades
5253

0 commit comments

Comments
 (0)