Compare commits

...

120 Commits

Author SHA1 Message Date
Miro Hrončok 88a2c0e605 Drop build dependency on coverage 2020-11-13 10:57:20 +01:00
Fedora Release Engineering 3381470c02 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-27 10:18:11 +00:00
Gwyn Ciesla 7763f44a20 Re-enable tests. 2020-07-22 13:50:49 -05:00
Gwyn Ciesla 3e690c8211 Disable test until numpy is updates. 2020-07-22 10:47:23 -05:00
Gwyn Ciesla 4f065f5ed4 0.29.21 2020-07-22 10:30:31 -05:00
Miro Hrončok 71280f32f3 Sources for 0.29.19 2020-05-27 12:11:19 +02:00
serge-sans-paille 048c8d73ca Update to 0.29.19 2020-05-27 08:51:52 +00:00
Miro Hrončok fcb231b125 Rebuilt for Python 3.9 2020-05-25 10:31:30 +02:00
Miro Hrončok 6d85179678 Bootstrap for Python 3.9 2020-05-22 21:39:38 +02:00
Petr Viktorin 5f0bd3ad05 Work around class- and staticmethod breakage
Note that staticmethod fused functions are still broken.
2020-05-21 15:45:00 +02:00
Petr Viktorin d658964615 Record that Tempita is bundled 2020-05-20 22:29:28 +02:00
Marcel Plch bae4cd93fd Update to 0.29.17 2020-04-28 13:09:46 +02:00
Miro Hrončok 616546a49d Update to 0.29.16
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1816785
2020-03-25 16:03:34 +01:00
Miro Hrončok 5ae908bc2e Update to 0.29.15 (#1800158) 2020-02-08 21:17:04 +01:00
Fedora Release Engineering 7d0ab88403 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-28 09:18:22 +00:00
Miro Hrončok 5c8dccc6b9 Python 3.9 compatibility 2020-01-06 11:44:46 +01:00
Miro Hrončok 1c463e3d34 Update to 0.29.14
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1768034
2019-11-04 18:25:32 +01:00
Miro Hrončok 425cf2eb63 Python 2 subpackage has been removed
See https://fedoraproject.org/wiki/Changes/RetirePython2
2019-11-04 17:34:48 +01:00
Miro Hrončok bb14927ab1 Rebuilt for Python 3.8.0rc1 (#1748018) 2019-10-03 13:49:38 +02:00
Miro Hrončok ec111e130c Rebuilt for Python 3.8 2019-08-15 21:55:34 +02:00
Miro Hrončok 606c7b8116 Bootstrap for Python 3.8 2019-08-15 20:52:57 +02:00
Gwyn Ciesla cfa85f0710 Rebuild. 2019-08-01 08:34:03 -05:00
Igor Gnatenko 7a42270f10
Update to 0.29.13
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2019-07-27 11:59:09 +02:00
Fedora Release Engineering b2f62e883e - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-24 15:45:55 +00:00
Petr Viktorin 582c72b5e6 Remove non-essential Python 2 test dependencies 2019-07-22 19:42:07 +02:00
Miro Hrončok 842b34e066 Update to 0.29.12 (#1727580) 2019-07-11 13:35:15 +02:00
Miro Hrončok 44e47def53 Update to 0.29.11 (#1725361) 2019-07-01 13:44:53 +02:00
Charalampos Stratakis 5623fe993a Update to 0.29.10 (#1716146) 2019-06-02 23:18:38 +02:00
Miro Hrončok 3f1cff4222 Update to 0.29.9 (#1714365) 2019-05-30 12:07:38 +02:00
Igor Gnatenko 1100c72e8f
Update to 0.29.7
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2019-05-13 07:11:20 +02:00
Miro Hrončok 9d494ccd6e Update to 0.29.6 (#1683661) 2019-02-27 14:31:01 +01:00
Miro Hrončok 2ea743a71a Update to 0.29.5 (#1667643) 2019-02-08 23:46:11 +01:00
Fedora Release Engineering b5383fa6a2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-01-31 11:29:01 +00:00
Miro Hrončok 8fbaae6d84 Update to 0.29.3, enable tests
Tests were entirely disabled due to Big Endian failure in one module.
This enables them back but excludes the failing tests on Big Endian.

Since the tests are quite slow, this also:

 * disables CPython regression tests
 * runs the tests in parallel with %{?_smp_mflags} (-j)

However, there are weird test errors on one of the Koji's i686 builders.
This was reported to upstream: https://github.com/cython/cython/issues/2807
Until that's sorted out, we skip a test on i686.
2019-01-21 21:59:38 +01:00
Alex Cobb 9c7f46b95b Add emacs-cython-mode subpackage 2019-01-08 12:03:00 +01:00
Igor Gnatenko 03641f599d
Update to 0.29.1
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-12-10 14:16:25 +01:00
Igor Gnatenko d8e77b0d97
Update to 0.29
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-12-10 14:13:25 +01:00
Igor Gnatenko 0c9be7ea2a
Update to 0.29~rc2
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-10-03 12:35:28 +02:00
Igor Gnatenko ceefeb563e
Update to 0.28.5
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-08-11 20:48:49 +02:00
Igor Gnatenko eac3ab0280
rebuild
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-08-08 07:48:38 +02:00
Miro Hrončok 89f353e21a Only have one /usr/bin/cython
According to the current packaging guidelines, if the functionality
of the executable is the same regardless of the Python version,
the executable should be shipped by Python 3 package only.

This is the case for Cython.
2018-08-06 00:29:44 +02:00
Igor Gnatenko 80d0ce6204
Update to 0.28.4
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-07-15 14:51:47 +02:00
Fedora Release Engineering 4dfa8055e0 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-12 18:58:51 +00:00
Miro Hrončok a4c302a85a Rebuilt for Python 3.7 2018-06-15 17:02:24 +02:00
Igor Gnatenko 890ccc74dc
Update to 0.28.1
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-03-19 14:27:06 +01:00
Fedora Release Engineering b905a7db9d - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-02-07 00:32:00 +00:00
Igor Gnatenko 14b6cca373 disable tests
There is bug in upstream where tests fail on BE, but also it is
faster to build without tests.

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2017-11-06 07:11:52 +01:00
Igor Gnatenko 63ef580b19 Update to 0.27.3
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2017-11-06 00:51:25 +01:00
Igor Gnatenko 14b67b84c1 Update to 0.27.1
* provide old name with %_isa
* add missing BuildRequires: python3-setuptools
* python-jedi -> python2-jedi

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2017-10-02 11:54:48 +02:00
Fedora Release Engineering 39f8441548 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild 2017-08-02 16:51:34 +00:00
Fedora Release Engineering 4f1da0d044 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild 2017-07-26 01:43:51 +00:00
Igor Gnatenko c76feae9b6 Fix license
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
2017-05-03 15:23:11 +02:00
Fedora Release Engineering 437b83303e - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild 2017-02-10 05:03:25 +00:00
Igor Gnatenko 195ed45bcd Backport couple of patches
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2016-12-22 09:00:14 +01:00
Charalampos Stratakis 867ac56a5d Rebuild for Python 3.6 2016-12-12 13:42:36 +01:00
Igor Gnatenko 43b81dcd7d build without tests
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2016-12-10 21:08:44 +01:00
Igor Gnatenko 3eb104e570 Update to 0.25.2
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2016-12-10 18:14:51 +01:00
Igor Gnatenko 4b5b3074b5 Fix provides (RHBZ #1370879)
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2016-08-27 22:57:32 +02:00
Igor Gnatenko 9b5b88248e Run test suite
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2016-08-25 15:17:55 +02:00
Igor Gnatenko 8bbfd62c13 Provide old names
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2016-08-25 11:16:11 +02:00
Igor Gnatenko c64ba5258d Use %%python_provide
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2016-08-25 09:57:35 +02:00
Igor Gnatenko e72d1ab515 Update to 0.24.1
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>

https://bugzilla.redhat.com/show_bug.cgi?id=1369512
2016-08-23 17:25:59 +02:00
Fedora Release Engineering 6c9d7cad8a - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages 2016-07-19 06:22:59 +00:00
Neal D. Becker 4224952dbf disable python3 test again 2016-02-06 07:52:28 -05:00
Neal D. Becker dacd12edfc python3 test should pass now 2016-02-05 19:29:51 -05:00
Neal D. Becker bb35b45661 forgot patch 2016-02-05 17:15:53 -05:00
Neal D. Becker 3ca2a43ee0 bump rev 2016-02-05 17:12:36 -05:00
Neal D. Becker 27adfd7a79 new patch from upstream 2016-02-05 17:08:43 -05:00
Neal D. Becker 3912f60b84 try again 2016-02-05 17:04:40 -05:00
Neal D. Becker 962913da25 try again 2016-02-05 14:52:35 -05:00
Neal D. Becker a796199c2e test 2016-02-05 13:35:32 -05:00
Neal D. Becker ebfa79fd73 try gcc6 patch 2016-02-05 08:32:38 -05:00
Dennis Gilmore 46f71756fe - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild 2016-02-03 15:23:21 +00:00
Orion Poplawski 94f83456fb Update to 0.23.4
- Ship cythonize3
- Modernize and cleanup spec
- Run tests, one python3 test fails with 3.5
2016-01-13 11:09:39 -07:00
Robert Kuska 8812aab318 Rebuilt for Python3.5 rebuild 2015-10-13 08:33:53 +02:00
Neal D. Becker 5222fc5a63 update to 0.23 2015-08-12 15:18:11 -04:00
Dennis Gilmore 70b8e0065c - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild 2015-06-16 22:47:33 +00:00
Neal D. Becker 42db5ddfc1 update to 0.22 2015-02-13 09:20:06 -05:00
Neal D. Becker 14b1c8940c update to 0.22 2015-02-13 08:38:18 -05:00
Neal D. Becker 2f5d28ecb7 update to 0.21.1 2014-11-22 17:39:32 -05:00
Neal D. Becker 2a6f60ff8f add /bin/cythonize 2014-09-15 13:46:18 -04:00
Neal D. Becker 4fd9452351 merge 2014-09-15 11:46:54 -04:00
Neal D. Becker 690451f1db update to 0.21 2014-09-15 09:40:46 -04:00
Peter Robinson 7fb7a35c0e - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild 2014-08-15 18:24:29 +00:00
Dennis Gilmore fa7451d22a - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild 2014-06-06 17:32:03 -05:00
Thomas Spura 3f0347af12 Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
The 0.20.1-1 build was finished after the python 3.4 rebuild in
the side tag. So we need a rebuild again.
2014-05-28 13:31:06 +02:00
Orion Poplawski f1b1cddd2c Rebuild for Python 3.4 2014-05-09 20:37:53 -06:00
Orion Poplawski d0589a8ee4 Drop %defattr() 2014-05-09 20:37:09 -06:00
Orion Poplawski 1476cd164f Update to 0.20.1 2014-05-09 20:35:51 -06:00
Neal D. Becker 2c33707dac update to 0.20 2014-01-20 15:56:47 -05:00
Neal D. Becker 81d4d83c85 Fix BR 1019498 2013-10-16 21:03:10 -04:00
Neal D. Becker f18e9e72cc fix build error 2013-10-13 19:31:47 -04:00
Neal D. Becker d3450cf935 fix build error 2013-10-13 19:30:08 -04:00
Neal D. Becker 959a360119 merge 2013-10-13 19:23:35 -04:00
Neal D. Becker cabc316ac4 update to 0.19.2 2013-10-13 19:22:31 -04:00
Neal D. Becker 9db11205c1 update to 0.19.2 2013-10-13 19:18:53 -04:00
Dennis Gilmore fe98a8ba87 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild 2013-08-02 17:37:04 -05:00
Neal D. Becker 29f7e83b72 update to 0.19 2013-04-19 14:25:19 -04:00
Neal Becker cb11060fd6 update to 0.18 2013-01-29 11:35:00 -05:00
Neal Becker 9895f36d47 update to 0.17.3 2012-12-15 10:48:44 -05:00
Neal Becker 59ac8d1593 update to 0.17.2 2012-11-21 09:56:23 -05:00
Neal Becker e35160c069 build python3-Cython 2012-10-28 12:02:37 -04:00
Neal Becker 3c0f2bf905 add python3-Cython 2012-10-28 12:00:52 -04:00
Neal Becker 8066215457 update to 0.17.1 2012-09-26 14:10:11 -04:00
Neal Becker 9cc84f20b3 I hate rpm 2012-09-03 17:11:24 -04:00
Neal Becker e8e734a49b update to 0.17 2012-09-03 17:04:43 -04:00
Neal Becker 51702e02ef need libtool also 2012-08-28 11:17:18 -04:00
Neal Becker 2b59088599 typo 2012-08-28 09:56:42 -04:00
Neal Becker 7a71a749ec add br numpy for check 2012-08-28 09:55:36 -04:00
Neal Becker bcf7a404d2 turn on check 2012-08-27 20:40:00 -04:00
Neal Becker 25086f459c test 0.17b3 2012-08-27 20:37:22 -04:00
Neal Becker 9916244b51 test 0.17b3 2012-08-27 20:29:03 -04:00
David Malcolm 459b7e95ce generalize egg-info logic to support RHEL (rhbz#851528) 2012-08-24 10:40:36 -04:00
Dennis Gilmore 048fe03e2d - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild 2012-07-18 08:10:16 -05:00
Neal Becker 3f4aec54ab update to 0.16 2012-04-27 07:47:19 -04:00
Neal Becker d274acd5df update to 0.16 2012-04-27 07:39:22 -04:00
Dennis Gilmore b8453c5be8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild 2012-01-12 14:16:07 -06:00
nbecker 162b912953 update to 0.15.1 2011-09-20 07:11:47 -04:00
nbecker 2f7d9d08fb update to 0.15 2011-08-06 11:07:27 -04:00
nbecker 1e3c032c7c update to 0.15 2011-08-06 11:04:42 -04:00
4 changed files with 521 additions and 43 deletions

43
.gitignore vendored
View File

@ -2,3 +2,46 @@ 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

View File

@ -1,70 +1,392 @@
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(0)")}
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%global srcname Cython
%global upname cython
%bcond_without tests
Name: Cython
Version: 0.14.1
#Release: 1.beta2%{?dist}
Release: 2%{?dist}
Summary: A language for writing Python extension modules
Name: Cython
Version: 0.29.21
%global upver %{version_no_tilde %{nil}}
Release: 4%{?dist}
Summary: Language for writing Python extension modules
#%define upstreamversion %{version}.beta2
%define upstreamversion %{version}
License: ASL 2.0
URL: http://www.cython.org
Source: https://github.com/cython/cython/archive/%{upver}/%{srcname}-%{version}.tar.gz
Group: Development/Tools
License: Python
URL: http://www.cython.org
Source: http://www.cython.org/Cython-%{upstreamversion}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
# Partially work around issues with class and static methods
# See https://bugzilla.redhat.com/show_bug.cgi?id=1788506
# Mostly backported from upstream: https://github.com/cython/cython/pull/3106
# This also:
# - Removes staticmethod optimizations for normal functions
# - Removes failing test for staticmethod fused functions, which still fail
# See also: https://github.com/cython/cython/issues/3614
Patch3106: class-static-method-workaround.patch
BuildRequires: python-devel python-setuptools
Requires: python
BuildRequires: gcc
%if %{with tests}
BuildRequires: gcc-c++
%endif
%description
This is a development version of Pyrex, a language
%global _description \
This is a development version of Pyrex, a language\
for writing Python extension modules.
For more info, see:
%description %{_description}
Doc/About.html for a description of the language
INSTALL.txt for installation instructions
USAGE.txt for usage instructions
Demos for usage examples
%package -n python3-%{srcname}
Summary: %{summary}
%{?python_provide:%python_provide python3-%{srcname}}
Conflicts: python2-%{srcname} < 0.28.4-2
Provides: Cython = %{?epoch:%{epoch}:}%{version}-%{release}
Provides: Cython%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
Obsoletes: Cython < %{?epoch:%{epoch}:}%{version}-%{release}
BuildRequires: python3-devel
BuildRequires: python3-setuptools
%if %{with tests}
BuildRequires: python3-numpy
BuildRequires: python3-jedi
%endif
# 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-%{srcname} %{_description}
Python 3 version.
%package -n emacs-cython-mode
Summary: A major mode for editing Cython source files in Emacs
BuildArch: noarch
BuildRequires: emacs
Requires: emacs(bin) >= %{_emacs_version}
%description -n emacs-cython-mode
cython-mode is an Emacs major mode for editing Cython source files.
%prep
%setup -q -n %{name}-%{upstreamversion}
%autosetup -n %{upname}-%{upver} -p1
%build
%{__python} setup.py build
%py3_build
# emacs-cython-mode build
echo ";;
(require 'cython-mode)" > cython-mode-init.el
cp -p Tools/cython-mode.el .
%{_emacs_bytecompile} *.el
%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
%py3_install
rm -rf %{buildroot}%{python3_sitelib}/setuptools/tests
# emacs-cython-mode install
mkdir -p %{buildroot}%{_emacs_sitelispdir}/
cp -p cython-mode.el cython-mode.elc %{buildroot}%{_emacs_sitelispdir}/
mkdir -p %{buildroot}%{_emacs_sitestartdir}/
cp -p cython-mode-init.el cython-mode-init.elc %{buildroot}%{_emacs_sitestartdir}/
%clean
rm -rf $RPM_BUILD_ROOT
%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
##%%check
##%%{__python} runtests.py -x numpy
%endif
%files
%defattr(-,root,root,-)
%files -n python3-%{srcname}
%license LICENSE.txt
%doc *.txt Demos Doc Tools
%{_bindir}/cython
%{_bindir}/cygdb
%{python_sitearch}/Cython
%{python_sitearch}/cython.py*
%{python_sitearch}/pyximport
%if 0%{?fedora} >= 9
%{python_sitearch}/Cython*egg-info
%endif
%doc *.txt Demos Doc Tools
%{_bindir}/cythonize
%{python3_sitearch}/%{srcname}-*.egg-info/
%{python3_sitearch}/%{srcname}/
%{python3_sitearch}/pyximport/
%{python3_sitearch}/%{upname}.py
%{python3_sitearch}/__pycache__/%{upname}.*
%files -n emacs-cython-mode
%license LICENSE.txt
%{_emacs_sitelispdir}/cython*.el*
%{_emacs_sitestartdir}/cython*.el*
%changelog
* 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)
- Python 2 subpackage has been removed
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.29.13-5
- Rebuilt for Python 3.8.0rc1 (#1748018)
* Thu Aug 15 2019 Miro Hrončok <mhroncok@redhat.com> - 0.29.13-4
- Rebuilt for Python 3.8
* Thu Aug 15 2019 Miro Hrončok <mhroncok@redhat.com> - 0.29.13-3
- Bootstrap for Python 3.8
* Thu Aug 01 2019 Gwyn Ciesla <gwync@protonmail.com> 0.29.13-2
- Rebuild with new numpy.
* Sat Jul 27 11:58:51 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.29.13-1
- Update to 0.29.13
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.29.12-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Mon Jul 22 2019 Petr Viktorin <pviktori@redhat.com> - 0.29.12-2
- Remove non-essential Python 2 test dependencies
* Thu Jul 11 2019 Miro Hrončok <mhroncok@redhat.com> - 0.29.12-1
- Update to 0.29.12 (#1727580)
* Mon Jul 01 2019 Miro Hrončok <mhroncok@redhat.com> - 0.29.11-1
- Update to 0.29.11 (#1725361)
* Sun Jun 02 2019 Charalampos Stratakis <cstratak@redhat.com> - 0.29.10-1
- Update to 0.29.10 (#1716146)
* Thu May 30 2019 Miro Hrončok <mhroncok@redhat.com> - 0.29.9-1
- Update to 0.29.9 (#1714365)
* Mon May 13 07:10:35 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.29.7-1
- Update to 0.29.7
* Wed Feb 27 2019 Miro Hrončok <mhroncok@redhat.com> - 0.29.6-1
- Update to 0.29.6 (#1683661)
* Fri Feb 08 2019 Miro Hrončok <mhroncok@redhat.com> - 0.29.5-1
- Update to 0.29.5 (#1667643)
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.29.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Sat Jan 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.29.3-1
- Update to 0.29.3 (#1667643)
* Tue Jan 08 2019 Alex Cobb <alex.cobb@smart.mit.edu> - 0.29.1-2
- Added emacs-cython-mode subpackage
* Mon Dec 10 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.29.1-1
- Update to 0.29.1
* Mon Dec 10 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.29-1
- Update to 0.29
* Wed Oct 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.29~rc2-1
- Update to 0.29~rc2
* Sat Aug 11 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.28.5-1
- Update to 0.28.5
* Sun Aug 05 2018 Miro Hrončok <mhroncok@redhat.com> - 0.28.4-3
- Only have one /usr/bin/cython
* Sun Jul 15 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.28.4-1
- Update to 0.28.4
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.28.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Fri Jun 15 2018 Miro Hrončok <mhroncok@redhat.com> - 0.28.1-2
- Rebuilt for Python 3.7
* Mon Mar 19 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.28.1-1
- Update to 0.28.1
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.27.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Mon Nov 06 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.27.3-1
- Update to 0.27.3
* Mon Oct 02 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.27.1-1
- Update to 0.27.1
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.25.2-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.25.2-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Wed May 03 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.25.2-5
- Fix license
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.25.2-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Thu Dec 22 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.25.2-3
- Backport couple of patches
* Mon Dec 12 2016 Charalampos Stratakis <cstratak@redhat.com> - 0.25.2-2
- Rebuild for Python 3.6
* Sat Dec 10 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.25.2-1
- Update to 0.25.2
* Sat Aug 27 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.24.1-8
- Fix provides (RHBZ #1370879)
* Thu Aug 25 2016 Igor Gnatenko <ignatenko@redhat.com> - 0.24.1-7
- Run test suite
* Thu Aug 25 2016 Igor Gnatenko <ignatenko@redhat.com> - 0.24.1-6
- Provide old names
* Thu Aug 25 2016 Igor Gnatenko <ignatenko@redhat.com> - 0.24.1-5
- Use %%python_provide
* Tue Aug 23 2016 Igor Gnatenko <ignatenko@redhat.com> - 0.24.1-4
- Update to 0.24.1
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.23.4-4
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.23.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Wed Jan 13 2016 Orion Poplawski <orion@cora.nwra.com> - 0.23.4-1
- Update to 0.23.4
- Ship cythonize3
- Modernize and cleanup spec
- Run tests, one python3 test fails with 3.5
* Tue Oct 13 2015 Robert Kuska <rkuska@redhat.com> - 0.23-2
- Rebuilt for Python3.5 rebuild
* Wed Aug 12 2015 Neal Becker <ndbecker2@gmail.com> - 0.23-2
- Update to 0.23
* Tue Jun 16 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.22-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Fri Feb 13 2015 nbecker <ndbecker2@gmail.com> - 0.22-1
- oops, that should be 0.22 not 0.22.1
* Fri Feb 13 2015 nbecker <ndbecker2@gmail.com> - 0.22.1-1
- Update to 0.22
* Sat Nov 22 2014 nbecker <ndbecker2@gmail.com> - 0.21.1-1
- Update to 0.21.1 (br #1164297)
* Mon Sep 15 2014 nbecker <ndbecker2@gmail.com> - 0.21-5
- Add /bin/cythonize
* Mon Sep 15 2014 nbecker <ndbecker2@gmail.com> - 0.21-1
- Update to 0.21
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Wed May 28 2014 Thomas Spura <tomspur@fedoraproject.org> - 0.20.1-3
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
* Fri May 9 2014 Orion Poplawski <orion@cora.nwra.com> - 0.20.1-2
- Rebuild for Python 3.4
* Fri May 9 2014 Orion Poplawski <orion@cora.nwra.com> - 0.20.1-1
- Update to 0.20.1
* Mon Jan 20 2014 nbecker <ndbecker2@gmail.com> - 0.20-1
- Update to 0.20
* Thu Oct 17 2013 nbecker <ndbecker2@gmail.com> - 0.19.2-2
- Fix BR 1019498
* Sun Oct 13 2013 nbecker <ndbecker2@gmail.com> - 0.19-2
- Update to 0.19.2
* Fri Aug 02 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.19-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Fri Apr 19 2013 nbecker <ndbecker2@gmail.com> - 0.19-1
- Update to 0.19
* Tue Jan 29 2013 Neal Becker <ndbecker2@gmail.com> - 0.18-1
- update to 0.18
* Sat Dec 15 2012 Neal Becker <ndbecker2@gmail.com> - 0.17.3-1
- Update to 0.17.3
* Wed Nov 21 2012 Neal Becker <ndbecker2@gmail.com> - 0.17.2-1
- update to 0.17.2
* Wed Sep 26 2012 Neal Becker <ndbecker2@gmail.com> - 0.17.1-1
- Update to 0.17.1
* Mon Sep 3 2012 Neal Becker <ndbecker2@gmail.com> - 0.17-1
- Update to 0.17
* Tue Aug 28 2012 Neal Becker <ndbecker2@gmail.com> - 0.17-3.b3
- Turn on check (temporarily)
- Add br numpy from check
* Tue Aug 28 2012 Neal Becker <ndbecker2@gmail.com> - 0.17-1.b3
- Test 0.17b3
* Fri Aug 24 2012 David Malcolm <dmalcolm@redhat.com> - 0.16-3
- generalize egg-info logic to support RHEL (rhbz#851528)
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Fri Apr 27 2012 Neal Becker <ndbecker2@gmail.com> - 0.16-1
- Update to 0.16
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.15.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Tue Sep 20 2011 Neal Becker <ndbecker2@gmail.com> - 0.15.1-1
- Update to 0.15.1
* Sat Aug 6 2011 Neal Becker <ndbecker2@gmail.com> - 0.15-1
- Update to 0.15
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
@ -167,4 +489,3 @@ rm -rf $RPM_BUILD_ROOT
* Tue Feb 26 2008 Neal Becker <ndbecker2@gmail.com> - 0.9.6.12-1
- Initial version

View File

@ -0,0 +1,114 @@
diff -U3 -r cython-0.29.17.orig/Cython/Compiler/ExprNodes.py cython-0.29.17/Cython/Compiler/ExprNodes.py
--- cython-0.29.17.orig/Cython/Compiler/ExprNodes.py 2020-04-26 13:48:48.000000000 +0200
+++ cython-0.29.17/Cython/Compiler/ExprNodes.py 2020-05-15 17:44:55.157172257 +0200
@@ -2295,8 +2295,10 @@
setter = 'PyDict_SetItem'
namespace = Naming.moddict_cname
elif entry.is_pyclass_attr:
- code.globalstate.use_utility_code(UtilityCode.load_cached("SetNameInClass", "ObjectHandling.c"))
- setter = '__Pyx_SetNameInClass'
+ # Special-case setting __new__
+ n = "SetNewInClass" if self.name == "__new__" else "SetNameInClass"
+ code.globalstate.use_utility_code(UtilityCode.load_cached(n, "ObjectHandling.c"))
+ setter = '__Pyx_' + n
else:
assert False, repr(entry)
code.put_error_if_neg(
diff -U3 -r cython-0.29.17.orig/Cython/Compiler/Nodes.py cython-0.29.17/Cython/Compiler/Nodes.py
--- cython-0.29.17.orig/Cython/Compiler/Nodes.py 2020-04-26 13:48:48.000000000 +0200
+++ cython-0.29.17/Cython/Compiler/Nodes.py 2020-05-15 17:44:55.159172253 +0200
@@ -2872,7 +2872,6 @@
func = decorator.decorator
if func.is_name:
self.is_classmethod |= func.name == 'classmethod'
- self.is_staticmethod |= func.name == 'staticmethod'
if self.is_classmethod and env.lookup_here('classmethod'):
# classmethod() was overridden - not much we can do here ...
diff -U3 -r cython-0.29.17.orig/Cython/Utility/ObjectHandling.c cython-0.29.17/Cython/Utility/ObjectHandling.c
--- cython-0.29.17.orig/Cython/Utility/ObjectHandling.c 2020-04-26 13:48:48.000000000 +0200
+++ cython-0.29.17/Cython/Utility/ObjectHandling.c 2020-05-15 17:44:55.160172251 +0200
@@ -1163,6 +1163,30 @@
#define __Pyx_SetNameInClass(ns, name, value) PyObject_SetItem(ns, name, value)
#endif
+/////////////// SetNewInClass.proto ///////////////
+
+static int __Pyx_SetNewInClass(PyObject *ns, PyObject *name, PyObject *value);
+
+/////////////// SetNewInClass ///////////////
+//@requires: SetNameInClass
+
+// Special-case setting __new__: if it's a Cython function, wrap it in a
+// staticmethod. This is similar to what Python does for a Python function
+// called __new__.
+static int __Pyx_SetNewInClass(PyObject *ns, PyObject *name, PyObject *value) {
+#ifdef __Pyx_CyFunction_USED
+ int ret;
+ if (__Pyx_CyFunction_Check(value)) {
+ PyObject *staticnew = PyStaticMethod_New(value);
+ if (unlikely(!staticnew)) return -1;
+ ret = __Pyx_SetNameInClass(ns, name, staticnew);
+ Py_DECREF(staticnew);
+ return ret;
+ }
+#endif
+ return __Pyx_SetNameInClass(ns, name, value);
+}
+
/////////////// GetModuleGlobalName.proto ///////////////
//@requires: PyDictVersioning
Only in cython-0.29.17.orig: cython-0.29.17
diff -U3 -r cython-0.29.17.orig/tests/run/cyfunction.pyx cython-0.29.17/tests/run/cyfunction.pyx
--- cython-0.29.17.orig/tests/run/cyfunction.pyx 2020-04-26 13:48:48.000000000 +0200
+++ cython-0.29.17/tests/run/cyfunction.pyx 2020-05-15 17:44:55.160172251 +0200
@@ -376,6 +376,18 @@
def meth(self): pass
+class TestStaticmethod(object):
+ """
+ >>> x = TestStaticmethod()
+ >>> x.staticmeth(42)
+ 42
+ >>> x.staticmeth.__get__(42)()
+ 42
+ """
+ @staticmethod
+ def staticmeth(arg): return arg
+
+
cdef class TestOptimisedBuiltinMethod:
"""
>>> obj = TestOptimisedBuiltinMethod()
diff -U3 -r cython-0.29.17.orig/tests/run/fused_def.pyx cython-0.29.17/tests/run/fused_def.pyx
--- cython-0.29.17.orig/tests/run/fused_def.pyx 2020-04-26 13:48:48.000000000 +0200
+++ cython-0.29.17/tests/run/fused_def.pyx 2020-05-15 18:03:39.436752174 +0200
@@ -268,14 +268,6 @@
def test_fused_def_super():
"""
>>> test_fused_def_super()
- long 10
- long 11
- long 11
- long 12
- short 12
- long 13
- short 13
- long 14
<class 'fused_def.SubClass'> long 14
<class 'fused_def.SubClass'> long 15
<class 'fused_def.SubClass'> long 15
@@ -296,11 +288,6 @@
obj = SubClass()
cls = SubClass
- obj.mystaticmethod(obj, 10)
- cls.mystaticmethod(obj, 11)
- obj.mystaticmethod[cy.short](obj, 12)
- cls.mystaticmethod[cy.short](obj, 13)
-
obj.myclassmethod(14)
cls.myclassmethod(15)
obj.myclassmethod[cy.short](16)

View File

@ -1 +1 @@
6341bf3b2c49a39b8046219f6696f5c4 Cython-0.14.1.tar.gz
SHA512 (Cython-0.29.21.tar.gz) = 2c0c3e3fff07106eb98862f71cd5dec9ff29460cf9b9e4de74537ca5e033f7523989beb5fbdc14723beaf94a535976f75c803e791b87e017961d9694b8c37679