Skip to content

Commit 95969fb

Browse files
AkarshHCLCopilot
andauthored
Fix Ptest for Cython. (#16915)
Co-authored-by: Copilot <copilot@github.com>
1 parent 0aedacb commit 95969fb

4 files changed

Lines changed: 24 additions & 6 deletions

File tree

SPECS/Cython/Cython.spec

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@ Cython is an optimising static compiler for both the Python programming language
33
Summary: Language for writing Python extension modules
44
Name: Cython
55
Version: 3.0.5
6-
Release: 2%{?dist}
6+
Release: 3%{?dist}
77
License: Apache-2.0
88
Vendor: Microsoft Corporation
99
Distribution: Azure Linux
1010
URL: https://www.cython.org
1111
Source0: https://github.com/cython/cython/releases/download/%{version}/%{name}-%{version}.tar.gz
1212
Patch0: fix_testcycache.patch
13+
Patch1: fix-ipythonmagic-e502.patch
1314
BuildRequires: gcc
1415
BuildRequires: python3-devel
1516
BuildRequires: python3-setuptools
@@ -46,7 +47,7 @@ pip3 install -r test-requirements-312.txt
4647

4748
%files -n python3-%{name}
4849
%license LICENSE.txt COPYING.txt
49-
%doc *.txt Demos docs Tools
50+
%doc Demos docs Tools
5051
%{_bindir}/cython
5152
%{_bindir}/cygdb
5253
%{_bindir}/cythonize
@@ -57,6 +58,9 @@ pip3 install -r test-requirements-312.txt
5758
%{python3_sitearch}/__pycache__/cython.*
5859

5960
%changelog
61+
* Tue Apr 28 2026 Akarsh Chaudhary <v-akarshc@microsoft.com> - 3.0.5-3
62+
- Adding a patch for IpythonMagic.py to fix flake8 E502 without rewriting unrelated line continuations.
63+
6064
* Thu Mar 21 2024 Andrew Phelps <anphel@microsoft.com> - 3.0.5-2
6165
- Switch to test-requirements-312.txt
6266
- Skip long-running file based tests
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
diff --git a/Cython/Build/IpythonMagic.py b/Cython/Build/IpythonMagic.py
2+
index 343c6d8..83583e2 100644
3+
--- a/Cython/Build/IpythonMagic.py
4+
+++ b/Cython/Build/IpythonMagic.py
5+
@@ -565,7 +565,7 @@ __doc__ = __doc__.format(
6+
# rST doesn't see the -+ flag as part of an option list, so we
7+
# hide it from the module-level docstring.
8+
- CYTHON_DOC=dedent(CythonMagics.cython.__doc__\
9+
- .replace('-+, --cplus', '--cplus ')),
10+
+ CYTHON_DOC=dedent(
11+
+ CythonMagics.cython.__doc__.replace('-+, --cplus', '--cplus ')),
12+
CYTHON_INLINE_DOC=dedent(CythonMagics.cython_inline.__doc__),
13+
CYTHON_PYXIMPORT_DOC=dedent(CythonMagics.cython_pyximport.__doc__),
14+
)

toolkit/resources/manifests/package/toolchain_aarch64.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ curl-8.11.1-6.azl3.aarch64.rpm
7171
curl-debuginfo-8.11.1-6.azl3.aarch64.rpm
7272
curl-devel-8.11.1-6.azl3.aarch64.rpm
7373
curl-libs-8.11.1-6.azl3.aarch64.rpm
74-
Cython-debuginfo-3.0.5-2.azl3.aarch64.rpm
74+
Cython-debuginfo-3.0.5-3.azl3.aarch64.rpm
7575
debugedit-5.0-2.azl3.aarch64.rpm
7676
debugedit-debuginfo-5.0-2.azl3.aarch64.rpm
7777
diffutils-3.10-1.azl3.aarch64.rpm
@@ -535,7 +535,7 @@ python3-3.12.9-10.azl3.aarch64.rpm
535535
python3-audit-3.1.2-1.azl3.aarch64.rpm
536536
python3-cracklib-2.9.11-1.azl3.aarch64.rpm
537537
python3-curses-3.12.9-10.azl3.aarch64.rpm
538-
python3-Cython-3.0.5-2.azl3.aarch64.rpm
538+
python3-Cython-3.0.5-3.azl3.aarch64.rpm
539539
python3-debuginfo-3.12.9-10.azl3.aarch64.rpm
540540
python3-devel-3.12.9-10.azl3.aarch64.rpm
541541
python3-flit-core-3.9.0-1.azl3.noarch.rpm

toolkit/resources/manifests/package/toolchain_x86_64.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ curl-8.11.1-6.azl3.x86_64.rpm
7676
curl-debuginfo-8.11.1-6.azl3.x86_64.rpm
7777
curl-devel-8.11.1-6.azl3.x86_64.rpm
7878
curl-libs-8.11.1-6.azl3.x86_64.rpm
79-
Cython-debuginfo-3.0.5-2.azl3.x86_64.rpm
79+
Cython-debuginfo-3.0.5-3.azl3.x86_64.rpm
8080
debugedit-5.0-2.azl3.x86_64.rpm
8181
debugedit-debuginfo-5.0-2.azl3.x86_64.rpm
8282
diffutils-3.10-1.azl3.x86_64.rpm
@@ -543,7 +543,7 @@ python3-3.12.9-10.azl3.x86_64.rpm
543543
python3-audit-3.1.2-1.azl3.x86_64.rpm
544544
python3-cracklib-2.9.11-1.azl3.x86_64.rpm
545545
python3-curses-3.12.9-10.azl3.x86_64.rpm
546-
python3-Cython-3.0.5-2.azl3.x86_64.rpm
546+
python3-Cython-3.0.5-3.azl3.x86_64.rpm
547547
python3-debuginfo-3.12.9-10.azl3.x86_64.rpm
548548
python3-devel-3.12.9-10.azl3.x86_64.rpm
549549
python3-flit-core-3.9.0-1.azl3.noarch.rpm

0 commit comments

Comments
 (0)