Compare commits

...
Sign in to create a new pull request.

28 commits

Author SHA1 Message Date
Fedora Release Engineering
f7a8a27b26 Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild 2026-01-16 02:31:09 +00:00
Charalampos Stratakis
2c6f91d207 Update to 3.2.4
- Fixes: rhbz#2427014
2026-01-15 06:55:58 +01:00
Tomáš Hrnčiar
88f4ce7f6f Update to 3.2.3
- Fixes: rhbz#2419172
2025-12-15 11:56:31 +01:00
Charalampos Stratakis
c094a0ed36 Update to 3.2.1
- Fixes: rhbz#2414622
2025-11-21 23:56:53 +01:00
Charalampos Stratakis
9f329e2bce Update to 3.1.6
- Fixes: rhbz#2405056
2025-10-30 00:47:04 +01:00
Charalampos Stratakis
d26d9ef002 Update to 3.1.4
- Fixes: rhbz#2395654
2025-10-08 21:26:11 +02:00
Python Maint
36d2e823ed Rebuilt for Python 3.14.0rc3 bytecode 2025-09-19 12:12:56 +02:00
Python Maint
df85e60d10 Rebuilt for Python 3.14.0rc2 bytecode 2025-08-15 12:43:36 +02:00
Charalampos Stratakis
5aacdf9933 Update to 3.1.3
- Fixes: rhbz#2388173
2025-08-13 15:06:04 +02:00
Miro Hrončok
4131df3867 CI: Use blas-devel for pip-installed pythran
[skip changelog]
2025-08-06 00:29:04 +02:00
Charalampos Stratakis
eabd7d051c Update to 3.1.2
- Fixes: rhbz#2365167, rhbz#2374314
2025-08-06 00:29:03 +02:00
Fedora Release Engineering
b19df3773e Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-23 15:44:56 +00:00
Python Maint
8479a40394 Unbootstrap for Python 3.14 2025-07-21 11:29:54 +02:00
Python Maint
43375bfd29 Bootstrap for Python 3.14.0b3 bytecode 2025-06-18 15:50:46 +02:00
Python Maint
63e867fd03 Bootstrap for Python 3.14 2025-06-02 20:14:40 +02:00
Charalampos Stratakis
b472f69665 Update to 3.0.12
- Fixes: rhbz#2344778
2025-03-26 22:43:04 +01:00
Miro Hrončok
99c8abe3b7 Avoid accidentally including bogus *.txt files as documentation
- Include README.rst and CHANGES.rst instead

This avoids packaging:

    COPYING.txt and LICENSE.txt (already installed as %license)
    INSTALL.txt (not relevant)
    ToDo.txt (original from pyrex)
    doc-requirements.txt
    test-requirements-27.txt
    test-requirements-312.txt
    test-requirements-34.txt
    test-requirements-36.txt
    test-requirements-cpython.txt
    test-requirements-pypy27.txt
    test-requirements.txt
2025-03-06 19:25:38 +01:00
Benjamin A. Beasley
295d3360cf On 32-bit (ix86), reduce debuginfo level in %check
- Fixes RHBZ#2339845 by avoiding memory exhaustion in test_many_expressions
2025-02-27 08:10:21 -05:00
Fedora Release Engineering
3c76406608 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-16 08:31:37 +00:00
Sandro
ba2dba1357
Apply patch for NumPy 2.x test failure
It appears to be a cosmetic issue rather than a real failure.
2024-12-25 13:57:51 +01:00
Charalampos Stratakis
6021cd6d27 Update to 3.0.11
- Fixes: rhbz#2303197
- Fixes: rhbz#2293086

Co-Authored-By: Charalampos Stratakis <cstratak@redhat.com>
2024-08-07 10:50:30 +02:00
Miro Hrončok
35d536cf3c CI: Quadruple the necessary time
We got:

    Maximum test time '60m' exceeded.

And:

    Maximum test time '120m' exceeded.

[skip changelog]
2024-08-07 10:50:26 +02:00
Fedora Release Engineering
3bf2d16c62 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-17 14:49:54 +00:00
Python Maint
f7d2eb89bd Rebuilt for Python 3.13 2024-06-16 09:20:45 +02:00
Python Maint
3a774c1af3 Bootstrap for Python 3.13 2024-06-07 08:41:27 +02:00
Miro Hrončok
ccc0af1525 CI: Run upstream testsuite 2024-05-13 11:46:52 +02:00
Miro Hrončok
6396fb88bb Import CI tests from RHEL
This is from RHEL distgit tests/Cython, directory Sanity/smoke.

The original commit hash: 36cb03f34340bf13e42326bd9cb26f5f03b6fc27

Only necessary files were kept. Some outdated stuff was removed.

Co-Authored-By: Jan Kepler <jkejda@redhat.com>
Co-Authored-By: Lukáš Zachar <lzachar@redhat.com>
2024-05-07 17:48:02 +02:00
Miro Hrončok
d0c963e197 Don't BuildRequire pythran in RHEL
We've been told by RHEL scipy maintainers
they will be getting rid of the dependency.
2024-04-11 10:17:17 +02:00
10 changed files with 100 additions and 77 deletions

1
.fmf/version Normal file
View file

@ -0,0 +1 @@
1

71
.gitignore vendored
View file

@ -1,70 +1 @@
Cython-0.12.1.tar.gz
/Cython-0.13.tar.gz
/Cython-0.14.tar.gz
/Cython-0.14.1.tar.gz
/Cython-0.15.tar.gz
/Cython-0.15.1.tar.gz
/Cython-0.16.tar.gz
/Cython-0.17b3.tar.gz
/Cython-0.17.tar.gz
/Cython-0.17.1.tar.gz
/Cython-0.17.2.tar.gz
/Cython-0.17.3.tar.gz
/Cython-0.18.tar.gz
/Cython-0.19.tar.gz
/Cython-0.19.2.tar.gz
/Cython-0.20.tar.gz
/Cython-0.20.1.tar.gz
/Cython-0.21.tar.gz
/Cython-0.21.1.tar.gz
/Cython-0.22.tar.gz
/Cython-0.23.tar.gz
/Cython-0.23.4.tar.gz
/Cython-0.24.1.tar.gz
/Cython-0.25.2.tar.gz
/Cython-0.27.1.tar.gz
/Cython-0.27.3.tar.gz
/Cython-0.28.1.tar.gz
/Cython-0.28.4.tar.gz
/Cython-0.28.5.tar.gz
/Cython-0.29~rc2.tar.gz
/Cython-0.29.tar.gz
/Cython-0.29.1.tar.gz
/Cython-0.29.3.tar.gz
/Cython-0.29.5.tar.gz
/Cython-0.29.6.tar.gz
/Cython-0.29.7.tar.gz
/Cython-0.29.9.tar.gz
/Cython-0.29.10.tar.gz
/Cython-0.29.11.tar.gz
/Cython-0.29.12.tar.gz
/Cython-0.29.13.tar.gz
/Cython-0.29.14.tar.gz
/Cython-0.29.15.tar.gz
/Cython-0.29.16.tar.gz
/Cython-0.29.17.tar.gz
/Cython-0.29.19.tar.gz
/Cython-0.29.21.tar.gz
/Cython-0.29.22.tar.gz
/Cython-0.29.24.tar.gz
/Cython-0.29.26.tar.gz
/Cython-0.29.28.tar.gz
/Cython-0.29.29.tar.gz
/Cython-0.29.30.tar.gz
/Cython-0.29.32.tar.gz
/Cython-0.29.33.tar.gz
/Cython-0.29.34.tar.gz
/Cython-0.29.35.tar.gz
/Cython-3.0.0a11.tar.gz
/Cython-3.0.0b1.tar.gz
/Cython-3.0.0b2.tar.gz
/Cython-3.0.0b3.tar.gz
/Cython-3.0.0rc2.tar.gz
/Cython-3.0.0.tar.gz
/Cython-3.0.2.tar.gz
/Cython-3.0.3.tar.gz
/Cython-3.0.4.tar.gz
/Cython-3.0.5.tar.gz
/Cython-3.0.6.tar.gz
/Cython-3.0.8.tar.gz
/Cython-3.0.9.tar.gz
/Cython-*.tar.gz

View file

@ -5,7 +5,7 @@
%bcond cython_compile 1
Name: Cython
Version: 3.0.9
Version: 3.2.4
Release: %autorelease
Summary: Language for writing Python extension modules
@ -23,16 +23,15 @@ BuildRequires: python3-test
# the Python tests requirements are curated manually
# the test-requirements*.txt files mix in coverage and optional deps
BuildRequires: python3-numpy
BuildRequires: python3-pythran
%if %{undefined rhel}
# We don't want to pull in ipython to RHEL just to run more tests.
# The tests use IPython.testing.globalipapp
# We don't want to pull in the following deps to RHEL just to run more tests.
# The tests use IPython.testing.globalipapp:
BuildRequires: python3-ipython+test
BuildRequires: python3-pythran
# The tests requiring jedi are optional and skipped when jedi is not installed.
# Note that the jedi tests were forcefully disabled a long time ago,
# in https://github.com/cython/cython/issues/1845 far, far away.
# We keep the dependency here so we don't forget to re-add it once the balance is restored.
# We don't want to pull in jedi to RHEL just to potentially run more tests.
BuildRequires: python3-jedi
%endif
%endif
@ -97,21 +96,31 @@ Provides: bundled(python3dist(tempita))
%if %{with tests}
%check
%if 0%{?__isa_bits} < 64
# On 32-bit platforms, with their inherent ~4GB/process address space
# limitation, at least test_many_expressions fails due to memory exhaustion
# unless we reduce the debuginfo level (RHBZ#2339845).
export CFLAGS="${CFLAGS} -g1"
%endif
# run.pstats_profile_test* fails on Python 3.12
# https://github.com/cython/cython/issues/5470
# run.numpy_parallel fails on i686
# https://github.com/cython/cython/issues/6200
# run.parallel fails on i686
# https://github.com/cython/cython/issues/2807
%{python3} runtests.py -vv --no-pyregr %{?_smp_mflags} \
--exclude 'run.pstats_profile_test*' \
%ifarch %{ix86}
--exclude run.parallel \
--exclude run.numpy_parallel \
%endif
%endif
%files -n python3-cython -f %{pyproject_files}
%doc *.txt Demos Doc Tools
%doc README.rst CHANGES.rst USAGE.txt Demos Doc Tools
%{_bindir}/cython
%{_bindir}/cygdb
%{_bindir}/cythonize

5
plan.fmf Normal file
View file

@ -0,0 +1,5 @@
discover:
how: fmf
dist-git-source: true
execute:
how: tmt

View file

@ -1 +1 @@
SHA512 (Cython-3.0.9.tar.gz) = 7899474882faab14716973783bbb46b981eab48192791acbbd06133efee83bfa9ace0e9a0272b0a44061a95ed94cdceaa98c4100f843220f5987791e36fa00e6
SHA512 (Cython-3.2.4.tar.gz) = 5ab8e39739a79debbe89b2ff5b6d88e1b7aafd5ad34460f14f3fc2bd90c10bdc9d6aa5b5844a48e30402dde9790cb9abcba3dc2b4e8cde24c4eeee818a180099

View file

@ -0,0 +1 @@
print("Hello World")

9
tests/smoke/main.fmf Normal file
View file

@ -0,0 +1,9 @@
summary: smoke test
test: ./runtest.sh
framework: beakerlib
require:
- gcc
- python3-devel
- python3-cython
- python3-setuptools
duration: 10m

41
tests/smoke/runtest.sh Executable file
View file

@ -0,0 +1,41 @@
#!/bin/bash
# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# runtest.sh of /CoreOS/Cython/Sanity/smoke
# Description: smoke test
# Author: Jan Kepler <jkepler@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Copyright (c) 2017 Red Hat, Inc.
#
# This program is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation, either version 2 of
# the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be
# useful, but WITHOUT ANY WARRANTY; without even the implied
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
# PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see http://www.gnu.org/licenses/.
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Include Beaker environment
. /usr/share/beakerlib/beakerlib.sh || exit 1
set -o pipefail
PYTHON="${PYTHON:-python3}"
rlJournalStart
rlPhaseStartTest
rlRun "$PYTHON setup.py build_ext --inplace" 0 "Building Cython file"
rlRun "$PYTHON -c 'import helloworld' | tee output.log" 0 "Running Cython file"
rlAssertGrep "Hello World" "output.log"
rlPhaseEnd
rlJournalPrintText
rlJournalEnd

6
tests/smoke/setup.py Normal file
View file

@ -0,0 +1,6 @@
from setuptools import setup
from Cython.Build import cythonize
setup(
ext_modules = cythonize("helloworld.pyx")
)

20
tests/testsuite/main.fmf Normal file
View file

@ -0,0 +1,20 @@
summary: upstream testsuite
require:
- gcc
- gcc-c++
- gdb
- python3-devel
- python3-test
- python3-cython
- python3-setuptools
- python3-pip
- python3-numpy
- python3-pytest
- blas-devel # for pythran
# ipython and pythran installed from PyPI, not available in RHEL
# Add ipython again when upstream resolves https://github.com/cython/cython/issues/7075
test: |
pip install pythran==0.18.0 &&
cd $(dirname $TMT_SOURCE_DIR/cython-*/tests) &&
python3 runtests.py -vv --no-pyregr --exclude 'run.pstats_profile_test*'
duration: 240m