Compare commits
28 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f7a8a27b26 | ||
|
|
2c6f91d207 | ||
|
|
88f4ce7f6f | ||
|
|
c094a0ed36 | ||
|
|
9f329e2bce | ||
|
|
d26d9ef002 | ||
|
|
36d2e823ed | ||
|
|
df85e60d10 | ||
|
|
5aacdf9933 | ||
|
|
4131df3867 | ||
|
|
eabd7d051c | ||
|
|
b19df3773e | ||
|
|
8479a40394 | ||
|
|
43375bfd29 | ||
|
|
63e867fd03 | ||
|
|
b472f69665 | ||
|
|
99c8abe3b7 | ||
|
|
295d3360cf | ||
|
|
3c76406608 | ||
|
|
ba2dba1357 |
||
|
|
6021cd6d27 | ||
|
|
35d536cf3c | ||
|
|
3bf2d16c62 | ||
|
|
f7d2eb89bd | ||
|
|
3a774c1af3 | ||
|
|
ccc0af1525 | ||
|
|
6396fb88bb | ||
|
|
d0c963e197 |
10 changed files with 100 additions and 77 deletions
1
.fmf/version
Normal file
1
.fmf/version
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
1
|
||||||
71
.gitignore
vendored
71
.gitignore
vendored
|
|
@ -1,70 +1 @@
|
||||||
Cython-0.12.1.tar.gz
|
/Cython-*.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
|
|
||||||
|
|
|
||||||
21
Cython.spec
21
Cython.spec
|
|
@ -5,7 +5,7 @@
|
||||||
%bcond cython_compile 1
|
%bcond cython_compile 1
|
||||||
|
|
||||||
Name: Cython
|
Name: Cython
|
||||||
Version: 3.0.9
|
Version: 3.2.4
|
||||||
Release: %autorelease
|
Release: %autorelease
|
||||||
Summary: Language for writing Python extension modules
|
Summary: Language for writing Python extension modules
|
||||||
|
|
||||||
|
|
@ -23,16 +23,15 @@ BuildRequires: python3-test
|
||||||
# the Python tests requirements are curated manually
|
# the Python tests requirements are curated manually
|
||||||
# the test-requirements*.txt files mix in coverage and optional deps
|
# the test-requirements*.txt files mix in coverage and optional deps
|
||||||
BuildRequires: python3-numpy
|
BuildRequires: python3-numpy
|
||||||
BuildRequires: python3-pythran
|
|
||||||
%if %{undefined rhel}
|
%if %{undefined rhel}
|
||||||
# We don't want to pull in ipython to RHEL just to run more tests.
|
# We don't want to pull in the following deps to RHEL just to run more tests.
|
||||||
# The tests use IPython.testing.globalipapp
|
# The tests use IPython.testing.globalipapp:
|
||||||
BuildRequires: python3-ipython+test
|
BuildRequires: python3-ipython+test
|
||||||
|
BuildRequires: python3-pythran
|
||||||
# The tests requiring jedi are optional and skipped when jedi is not installed.
|
# 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,
|
# Note that the jedi tests were forcefully disabled a long time ago,
|
||||||
# in https://github.com/cython/cython/issues/1845 far, far away.
|
# 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 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
|
BuildRequires: python3-jedi
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
|
|
@ -97,21 +96,31 @@ Provides: bundled(python3dist(tempita))
|
||||||
|
|
||||||
%if %{with tests}
|
%if %{with tests}
|
||||||
%check
|
%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
|
# run.pstats_profile_test* fails on Python 3.12
|
||||||
# https://github.com/cython/cython/issues/5470
|
# 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
|
# run.parallel fails on i686
|
||||||
# https://github.com/cython/cython/issues/2807
|
# https://github.com/cython/cython/issues/2807
|
||||||
%{python3} runtests.py -vv --no-pyregr %{?_smp_mflags} \
|
%{python3} runtests.py -vv --no-pyregr %{?_smp_mflags} \
|
||||||
--exclude 'run.pstats_profile_test*' \
|
--exclude 'run.pstats_profile_test*' \
|
||||||
%ifarch %{ix86}
|
%ifarch %{ix86}
|
||||||
--exclude run.parallel \
|
--exclude run.parallel \
|
||||||
|
--exclude run.numpy_parallel \
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%files -n python3-cython -f %{pyproject_files}
|
%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}/cython
|
||||||
%{_bindir}/cygdb
|
%{_bindir}/cygdb
|
||||||
%{_bindir}/cythonize
|
%{_bindir}/cythonize
|
||||||
|
|
|
||||||
5
plan.fmf
Normal file
5
plan.fmf
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
discover:
|
||||||
|
how: fmf
|
||||||
|
dist-git-source: true
|
||||||
|
execute:
|
||||||
|
how: tmt
|
||||||
2
sources
2
sources
|
|
@ -1 +1 @@
|
||||||
SHA512 (Cython-3.0.9.tar.gz) = 7899474882faab14716973783bbb46b981eab48192791acbbd06133efee83bfa9ace0e9a0272b0a44061a95ed94cdceaa98c4100f843220f5987791e36fa00e6
|
SHA512 (Cython-3.2.4.tar.gz) = 5ab8e39739a79debbe89b2ff5b6d88e1b7aafd5ad34460f14f3fc2bd90c10bdc9d6aa5b5844a48e30402dde9790cb9abcba3dc2b4e8cde24c4eeee818a180099
|
||||||
|
|
|
||||||
1
tests/smoke/helloworld.pyx
Normal file
1
tests/smoke/helloworld.pyx
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
print("Hello World")
|
||||||
9
tests/smoke/main.fmf
Normal file
9
tests/smoke/main.fmf
Normal 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
41
tests/smoke/runtest.sh
Executable 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
6
tests/smoke/setup.py
Normal 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
20
tests/testsuite/main.fmf
Normal 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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue