Compare commits
No commits in common. "c8-stream-3.8" and "c10s" have entirely different histories.
c8-stream-
...
c10s
@ -1 +0,0 @@
|
||||
db2286ea3b3a6060c4294f9c3df652c5b4f60fca SOURCES/Cython-0.29.14.tar.gz
|
1
.fmf/version
Normal file
1
.fmf/version
Normal file
@ -0,0 +1 @@
|
||||
1
|
71
.gitignore
vendored
71
.gitignore
vendored
@ -1 +1,70 @@
|
||||
SOURCES/Cython-0.29.14.tar.gz
|
||||
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
|
||||
|
120
Cython.spec
Normal file
120
Cython.spec
Normal file
@ -0,0 +1,120 @@
|
||||
%bcond tests 1
|
||||
|
||||
# This bcond allows to ship a non-compiled version
|
||||
# Slower, but sometimes necessary with alpha Python versions
|
||||
%bcond cython_compile 1
|
||||
|
||||
Name: Cython
|
||||
Version: 3.0.9
|
||||
Release: %autorelease
|
||||
Summary: Language for writing Python extension modules
|
||||
|
||||
License: Apache-2.0
|
||||
URL: http://www.cython.org
|
||||
Source: https://github.com/cython/cython/archive/%{version}/Cython-%{version}.tar.gz
|
||||
|
||||
BuildRequires: python3-devel
|
||||
|
||||
%if %{with tests}
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: gdb
|
||||
# optionally uses Python's test.support for some test
|
||||
BuildRequires: python3-test
|
||||
# the Python tests requirements are curated manually
|
||||
# the test-requirements*.txt files mix in coverage and optional deps
|
||||
BuildRequires: python3-numpy
|
||||
%if %{undefined rhel}
|
||||
# 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.
|
||||
BuildRequires: python3-jedi
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if %{with cython_compile}
|
||||
BuildRequires: gcc
|
||||
%else
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
|
||||
%global _description %{expand:
|
||||
The Cython language makes writing C extensions for the Python language as easy
|
||||
as Python itself. Cython is a source code translator based on Pyrex,
|
||||
but supports more cutting edge functionality and optimizations.
|
||||
|
||||
The Cython language is a superset of the Python language (almost all Python
|
||||
code is also valid Cython code), but Cython additionally supports optional
|
||||
static typing to natively call C functions, operate with C++ classes and
|
||||
declare fast C types on variables and class attributes.
|
||||
This allows the compiler to generate very efficient C code from Cython code.
|
||||
|
||||
This makes Cython the ideal language for writing glue code for external C/C++
|
||||
libraries, and for fast C modules that speed up the execution of Python code.}
|
||||
|
||||
%description %{_description}
|
||||
|
||||
|
||||
%package -n python3-cython
|
||||
Summary: %{summary}
|
||||
Provides: Cython = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||
Provides: Cython%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||
Provides: cython = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||
Provides: cython%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
||||
%py_provides python3-Cython
|
||||
Obsoletes: python3-Cython < 3~~
|
||||
|
||||
# A small templating library is bundled in Cython/Tempita
|
||||
# Upstream version 0.5.2 is available from https://pypi.org/project/Tempita
|
||||
# but the bundled copy is patched and reorganized.
|
||||
# Upstream homepage is inaccessible.
|
||||
Provides: bundled(python3dist(tempita))
|
||||
|
||||
%description -n python3-cython %{_description}
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -n cython-%{version} -p1
|
||||
|
||||
|
||||
%generate_buildrequires
|
||||
%pyproject_buildrequires
|
||||
|
||||
|
||||
%build
|
||||
%pyproject_wheel %{!?with_cython_compile:-C--global-option=--no-cython-compile}
|
||||
|
||||
|
||||
%install
|
||||
%pyproject_install
|
||||
%pyproject_save_files Cython cython pyximport
|
||||
|
||||
|
||||
%if %{with tests}
|
||||
%check
|
||||
# run.pstats_profile_test* fails on Python 3.12
|
||||
# https://github.com/cython/cython/issues/5470
|
||||
# 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 \
|
||||
%endif
|
||||
|
||||
%endif
|
||||
|
||||
|
||||
%files -n python3-cython -f %{pyproject_files}
|
||||
%doc *.txt Demos Doc Tools
|
||||
%{_bindir}/cython
|
||||
%{_bindir}/cygdb
|
||||
%{_bindir}/cythonize
|
||||
|
||||
|
||||
%changelog
|
||||
%autochangelog
|
@ -1,95 +1,158 @@
|
||||
%global srcname Cython
|
||||
%global upname cython
|
||||
* Tue Jan 23 2024 Lumír Balhar <lbalhar@redhat.com> - 3.0.8-1
|
||||
- Update to 3.0.8 (rhbz#2255460)
|
||||
|
||||
%bcond_with tests
|
||||
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.6-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
Name: Cython
|
||||
Version: 0.29.14
|
||||
%global upver %{version_no_tilde %{nil}}
|
||||
Release: 4%{?dist}
|
||||
Summary: Language for writing Python extension modules
|
||||
* Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.6-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
License: ASL 2.0
|
||||
URL: http://www.cython.org
|
||||
Source: https://github.com/cython/cython/archive/%{upver}/%{srcname}-%{version}.tar.gz
|
||||
* Thu Jan 18 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.6-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
||||
|
||||
# Exclude i686 arch. Due to a modularity issue it's being added to the
|
||||
# x86_64 compose of CRB, but we don't want to ship it at all.
|
||||
# See: https://projects.engineering.redhat.com/browse/RCM-72605
|
||||
ExcludeArch: i686
|
||||
* Thu Nov 30 2023 Miro Hrončok <mhroncok@redhat.com> - 3.0.6-1
|
||||
- Update to 3.0.6
|
||||
- Fixes: rhbz#2251973
|
||||
|
||||
BuildRequires: gcc
|
||||
%if %{with tests}
|
||||
BuildRequires: gcc-c++
|
||||
%endif
|
||||
* Tue Oct 31 2023 Miro Hrončok <mhroncok@redhat.com> - 3.0.5-1
|
||||
- Update to 3.0.5
|
||||
|
||||
%global _description \
|
||||
This is a development version of Pyrex, a language\
|
||||
for writing Python extension modules.
|
||||
* Wed Oct 18 2023 Miro Hrončok <mhroncok@redhat.com> - 3.0.4-1
|
||||
- Update to 3.0.4
|
||||
- Fixes: rhbz#2244865
|
||||
|
||||
%description %{_description}
|
||||
* Fri Oct 13 2023 Miro Hrončok <mhroncok@redhat.com> - 3.0.3-1
|
||||
- Update to 3.0.3
|
||||
- Fixes: rhbz#2242429
|
||||
|
||||
%package -n python%{python3_pkgversion}-%{srcname}
|
||||
Summary: %{summary}
|
||||
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
|
||||
BuildRequires: python%{python3_pkgversion}-devel
|
||||
BuildRequires: python%{python3_pkgversion}-setuptools
|
||||
BuildRequires: python%{python3_pkgversion}-rpm-macros
|
||||
%if %{with tests}
|
||||
BuildRequires: python%{python3_pkgversion}-coverage
|
||||
BuildRequires: python%{python3_pkgversion}-numpy
|
||||
BuildRequires: python%{python3_pkgversion}-jedi
|
||||
%endif
|
||||
* Fri Sep 01 2023 Miro Hrončok <mhroncok@redhat.com> - 3.0.2-1
|
||||
- Update to 3.0.2
|
||||
- Fixes: rhbz#2235027
|
||||
|
||||
%description -n python%{python3_pkgversion}-%{srcname} %{_description}
|
||||
* Mon Jul 17 2023 Miro Hrončok <mhroncok@redhat.com> - 3.0.0-1
|
||||
- Update to 3.0.0
|
||||
- Rename python3-Cython to python3-cython
|
||||
|
||||
Python 3 version.
|
||||
* Thu Jul 13 2023 Tomáš Hrnčiar <thrnciar@redhat.com> - 3.0.0~rc2-1
|
||||
- Update to 3.0.0rc2
|
||||
- The emacs-cython-mode package is no longer part of this project
|
||||
|
||||
%prep
|
||||
%autosetup -n %{upname}-%{version} -p1
|
||||
* Fri Jun 30 2023 Petr Viktorin <pviktori@redhat.com> - 0.29.35-2
|
||||
- Compile-time Python 3.12 compatibility for CYTHON_TRACE support
|
||||
|
||||
%build
|
||||
%py3_build
|
||||
* Sun Jun 18 2023 Miro Hrončok <mhroncok@redhat.com> - 0.29.35-1
|
||||
- Update to 0.29.35
|
||||
- Fixes: rhbz#2210064
|
||||
|
||||
%install
|
||||
%py3_install
|
||||
rm -rf %{buildroot}%{python3_sitelib}/setuptools/tests
|
||||
# Rename unversioned binaries
|
||||
mv %{buildroot}%{_bindir}/cython{,-%{python3_version}}
|
||||
mv %{buildroot}%{_bindir}/cygdb{,-%{python3_version}}
|
||||
mv %{buildroot}%{_bindir}/cythonize{,-%{python3_version}}
|
||||
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 0.29.34-3
|
||||
- Bootstrap for Python 3.12
|
||||
|
||||
%if %{with tests}
|
||||
%check
|
||||
%{python3} runtests.py -vv --no-pyregr %{?_smp_mflags} \
|
||||
%ifarch %{ix86}
|
||||
--exclude run.parallel # https://github.com/cython/cython/issues/2807
|
||||
%endif
|
||||
* Wed May 24 2023 Yaakov Selkowitz <yselkowi@redhat.com> - 0.29.34-2
|
||||
- Avoid python-jedi dependency in RHEL builds
|
||||
- Stop shipping emacs-cython-mode in RHEL builds
|
||||
|
||||
%endif
|
||||
* Mon Apr 03 2023 Miro Hrončok <mhroncok@redhat.com> - 0.29.34-1
|
||||
- Update to 0.29.34
|
||||
- Fixes: rhbz#1823181
|
||||
- Fixes: rhbz#2172822
|
||||
- Fixes: rhbz#2177838
|
||||
|
||||
%files -n python%{python3_pkgversion}-%{srcname}
|
||||
%license LICENSE.txt
|
||||
%doc *.txt Demos Doc Tools
|
||||
%{_bindir}/cython-%{python3_version}
|
||||
%{_bindir}/cygdb-%{python3_version}
|
||||
%{_bindir}/cythonize-%{python3_version}
|
||||
%{python3_sitearch}/%{srcname}-*.egg-info/
|
||||
%{python3_sitearch}/%{srcname}/
|
||||
%{python3_sitearch}/pyximport/
|
||||
%{python3_sitearch}/%{upname}.py
|
||||
%{python3_sitearch}/__pycache__/%{upname}.*
|
||||
* Fri Feb 17 2023 Miro Hrončok <mhroncok@redhat.com> - 0.29.33-1
|
||||
- Update to 0.29.33
|
||||
- Fix test failures with NumPy 1.24
|
||||
- Update the RPM license tag to SPDX
|
||||
|
||||
%changelog
|
||||
* Fri Dec 13 2019 Tomas Orsava <torsava@redhat.com> - 0.29.14-4
|
||||
- Exclude unsupported i686 arch
|
||||
* Wed Jan 18 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.29.32-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||
|
||||
* Thu Nov 21 2019 Lumír Balhar <lbalhar@redhat.com> - 0.29.14-3
|
||||
- Unversioned binaries renamed
|
||||
* Tue Dec 20 2022 Miro Hrončok <mhroncok@redhat.com> - 0.29.32-2
|
||||
- emacs-cython-mode: Wrap the docstring of cython-default-compile-format to 80 characters
|
||||
- Fixes: rhbz#2155090
|
||||
|
||||
* Wed Nov 20 2019 Lumír Balhar <lbalhar@redhat.com> - 0.29.14-2
|
||||
- Adjusted for Python 3.8 module in RHEL 8
|
||||
- without emacs plugin
|
||||
* Mon Aug 08 2022 Miro Hrončok <mhroncok@redhat.com> - 0.29.32-1
|
||||
- Update to 0.29.32
|
||||
|
||||
* Wed Jul 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.29.30-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.29.30-3
|
||||
- Rebuilt for Python 3.11
|
||||
|
||||
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.29.30-2
|
||||
- Bootstrap for Python 3.11
|
||||
|
||||
* Mon May 30 2022 Tomáš Hrnčiar <thrnciar@redhat.com> - 0.29.30-1
|
||||
- Update to 0.29.30
|
||||
|
||||
* Thu Mar 31 2022 Miro Hrončok <mhroncok@redhat.com> - 0.29.28-1
|
||||
- Update to 0.29.28
|
||||
|
||||
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.29.26-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
* Fri Jan 07 2022 Miro Hrončok <mhroncok@redhat.com> - 0.29.26-1
|
||||
- Update to 0.29.26
|
||||
|
||||
* Wed Jul 21 2021 Scott Talbert <swt@techie.net> - 0.29.24-1
|
||||
- Update to 0.29.24 to fix FTBFS with Python 3.10
|
||||
|
||||
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.29.22-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
* Wed Jun 02 2021 Python Maint <python-maint@redhat.com> - 0.29.22-4
|
||||
- Rebuilt for Python 3.10
|
||||
|
||||
* Wed Jun 02 2021 Python Maint <python-maint@redhat.com> - 0.29.22-3
|
||||
- Bootstrap for Python 3.10
|
||||
|
||||
* Tue Mar 09 2021 Miro Hrončok <mhroncok@redhat.com> - 0.29.22-2
|
||||
- Remove an obsoleted patch
|
||||
- Remove old Obsoletes and Conflicts
|
||||
- Update description
|
||||
- Provide cython, python3-cython
|
||||
|
||||
* Thu Mar 04 2021 Miro Hrončok <mhroncok@redhat.com> - 0.29.22-1
|
||||
- Update to 0.29.22
|
||||
|
||||
* Mon Jan 25 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.29.21-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Fri Nov 13 2020 Miro Hrončok <mhroncok@redhat.com> - 0.29.21-4
|
||||
- Drop build dependency on coverage
|
||||
|
||||
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.29.21-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Wed Jul 22 2020 Gwyn Ciesla <gwync@protonmail.com> - 0.29.21-2
|
||||
- Re-enable tests.
|
||||
|
||||
* Wed Jul 22 2020 Gwyn Ciesla <gwync@protonmail.com> - 0.29.21-1
|
||||
- 0.29.21
|
||||
|
||||
* Wed May 27 2020 sguelton@redhat.com - 0.29.19-1
|
||||
- Update to 0.29.19
|
||||
|
||||
* Mon May 25 2020 Miro Hrončok <mhroncok@redhat.com> - 0.29.17-4
|
||||
- Rebuilt for Python 3.9
|
||||
|
||||
* Fri May 22 2020 Miro Hrončok <mhroncok@redhat.com> - 0.29.17-3
|
||||
- Bootstrap for Python 3.9
|
||||
|
||||
* Wed May 13 2020 Petr Viktorin <pviktori@redhat.com> - 0.29.17-2
|
||||
- Backport classmethod fixes
|
||||
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1788506
|
||||
|
||||
* Tue Apr 28 2020 Marcel Plch <mplch@redhat.com> - 0.29.17-1
|
||||
- Update to 0.29.17
|
||||
|
||||
* Wed Mar 25 2020 Miro Hrončok <mhroncok@redhat.com> - 0.29.16-1
|
||||
- Update to 0.29.16 (#1816785)
|
||||
|
||||
* Sat Feb 08 2020 Miro Hrončok <mhroncok@redhat.com> - 0.29.15-1
|
||||
- Update to 0.29.15 (#1800158)
|
||||
|
||||
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.29.14-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
* Mon Nov 04 2019 Miro Hrončok <mhroncok@redhat.com> - 0.29.14-1
|
||||
- Update to 0.29.14 (#1768034)
|
5
gating.yaml
Normal file
5
gating.yaml
Normal file
@ -0,0 +1,5 @@
|
||||
--- !Policy
|
||||
|
||||
decision_context: osci_compose_gate
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
5
plan.fmf
Normal file
5
plan.fmf
Normal file
@ -0,0 +1,5 @@
|
||||
discover:
|
||||
how: fmf
|
||||
dist-git-source: true
|
||||
execute:
|
||||
how: tmt
|
1
sources
Normal file
1
sources
Normal file
@ -0,0 +1 @@
|
||||
SHA512 (Cython-3.0.9.tar.gz) = 7899474882faab14716973783bbb46b981eab48192791acbbd06133efee83bfa9ace0e9a0272b0a44061a95ed94cdceaa98c4100f843220f5987791e36fa00e6
|
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")
|
||||
)
|
19
tests/testsuite/main.fmf
Normal file
19
tests/testsuite/main.fmf
Normal file
@ -0,0 +1,19 @@
|
||||
summary: upstream testsuite
|
||||
require:
|
||||
- gcc
|
||||
- gcc-c++
|
||||
- gdb
|
||||
- python3-devel
|
||||
- python3-test
|
||||
- python3-cython
|
||||
- python3-setuptools
|
||||
- python3-pip
|
||||
- python3-numpy
|
||||
- python3-pytest
|
||||
- flexiblas-devel # for pythran
|
||||
# ipython and pythran installed from PyPI, not available in RHEL
|
||||
test: |
|
||||
pip install ipython==8.24.0 pythran==0.15.0 &&
|
||||
cd $(dirname $TMT_SOURCE_DIR/cython-*/tests) &&
|
||||
python3 runtests.py -vv --no-pyregr --exclude 'run.pstats_profile_test*'
|
||||
duration: 3h
|
Loading…
Reference in New Issue
Block a user