Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cython: Upgrade to 0.29.24, fix Cython 3.0 future-warnings #31445

Closed
mkoeppe opened this issue Mar 1, 2021 · 21 comments
Closed

cython: Upgrade to 0.29.24, fix Cython 3.0 future-warnings #31445

mkoeppe opened this issue Mar 1, 2021 · 21 comments

Comments

@mkoeppe
Copy link
Member

mkoeppe commented Mar 1, 2021

https://cython.readthedocs.io/en/latest/src/changes.html#id15

CC: @tscrim @antonio-rojas @kiwifb

Component: packages: standard

Author: Matthias Koeppe

Branch/Commit: 153a5df

Reviewer: François Bissey

Issue created by migration from https://trac.sagemath.org/ticket/31445

@mkoeppe mkoeppe added this to the sage-9.3 milestone Mar 1, 2021
@mkoeppe

This comment has been minimized.

@mkoeppe
Copy link
Member Author

mkoeppe commented Mar 23, 2021

comment:2

cython 0.29.22 issues future-warnings:

  warning: sage/groups/perm_gps/partn_ref2/refinement_generic.pxd:38:10: cpdef variables will not be supported in Cython 3; currently they are no different from cdef variables
  warning: sage/groups/perm_gps/partn_ref2/refinement_generic.pxd:38:10: cpdef variables will not be supported in Cython 3; currently they are no different from cdef variables

@mkoeppe mkoeppe changed the title cython: Upgrade to 0.29.22 cython: Upgrade to 0.29.22, fix Cython 3.0 future-warnings Mar 23, 2021
@mkoeppe
Copy link
Member Author

mkoeppe commented Mar 24, 2021

comment:3

Sage development has entered the release candidate phase for 9.3. Setting a new milestone for this ticket based on a cursory review of ticket status, priority, and last modification date.

@mkoeppe mkoeppe modified the milestones: sage-9.3, sage-9.4 Mar 24, 2021
@mkoeppe mkoeppe changed the title cython: Upgrade to 0.29.22, fix Cython 3.0 future-warnings cython: Upgrade to 0.29.23, fix Cython 3.0 future-warnings Apr 14, 2021
@mkoeppe
Copy link
Member Author

mkoeppe commented May 24, 2021

@mkoeppe
Copy link
Member Author

mkoeppe commented May 24, 2021

Author: Matthias Koeppe

@mkoeppe
Copy link
Member Author

mkoeppe commented May 24, 2021

New commits:

6ca849fbuild/pkgs/cython: Update to 0.29.23

@mkoeppe
Copy link
Member Author

mkoeppe commented May 24, 2021

Commit: 6ca849f

@mkoeppe
Copy link
Member Author

mkoeppe commented May 24, 2021

comment:7

Does someone already have patches to fix the deprecation warnings that Cython 0.29.23 issues?

@mkoeppe mkoeppe modified the milestones: sage-9.4, sage-9.5 Aug 11, 2021
@mkoeppe mkoeppe changed the title cython: Upgrade to 0.29.23, fix Cython 3.0 future-warnings cython: Upgrade to 0.29.24, fix Cython 3.0 future-warnings Aug 11, 2021
@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 11, 2021

Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:

4637471build/pkgs/cython: Update to 0.29.24

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 11, 2021

Changed commit from 6ca849f to 4637471

@mkoeppe
Copy link
Member Author

mkoeppe commented Aug 12, 2021

comment:10

List of warnings:

    warning: sage/groups/perm_gps/partn_ref2/refinement_generic.pxd:38:10: cpdef variables will not be supported in Cython 3; currently they are no different from cdef variables
    warning: sage/matrix/matrix_modn_dense_template.pxi:189:10: cpdef variables will not be supported in Cython 3; currently they are no different from cdef variables
    warning: sage/matrix/matrix_modn_dense_template.pxi:257:10: cpdef variables will not be supported in Cython 3; currently they are no different from cdef variables
    warning: sage/matrix/matrix_modn_dense_template.pxi:258:10: cpdef variables will not be supported in Cython 3; currently they are no different from cdef variables
    warning: sage/matrix/matrix_modn_dense_template.pxi:278:10: cpdef variables will not be supported in Cython 3; currently they are no different from cdef variables
    warning: sage/matrix/matrix_modn_dense_template.pxi:300:10: cpdef variables will not be supported in Cython 3; currently they are no different from cdef variables
    warning: sage/numerical/backends/generic_sdp_backend.pxd:34:10: cpdef variables will not be supported in Cython 3; currently they are no different from cdef variables
    warning: sage/numerical/linear_tensor_element.pxd:4:10: cpdef variables will not be supported in Cython 3; currently they are no different from cdef variables
    warning: sage/rings/laurent_series_ring_element.pxd:4:10: cpdef variables will not be supported in Cython 3; currently they are no different from cdef variables
    warning: sage/rings/padics/CR_template.pxi:1218:14: cpdef variables will not be supported in Cython 3; currently they are no different from cdef variables
    warning: sage/rings/polynomial/laurent_polynomial.pxd:15:10: cpdef variables will not be supported in Cython 3; currently they are no different from cdef variables
    warning: sage/rings/power_series_mpoly.pxd:5:10: cpdef variables will not be supported in Cython 3; currently they are no different from cdef variables
    warning: sage/rings/puiseux_series_ring_element.pxd:5:11: cpdef variables will not be supported in Cython 3; currently they are no different from cdef variables

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 12, 2021

Changed commit from 4637471 to 153a5df

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 12, 2021

Branch pushed to git repo; I updated commit sha1. New commits:

153a5dfChange all cpdef variables to cdef variables

@kiwifb
Copy link
Member

kiwifb commented Aug 12, 2021

comment:13

My first reaction was that it wasn't many in your list. I have grepped sage source code for "cpdef" and it comes out at 3624 lines across 444 files. Why would the one you change be the only ones producing warnings?

@mkoeppe
Copy link
Member Author

mkoeppe commented Aug 12, 2021

comment:14

Functions defined with cpdef do not need changing, only variables.

@kiwifb
Copy link
Member

kiwifb commented Aug 12, 2021

comment:15

OK, that weeds a lot of things. I still have 51 warnings currently which is much more than what you patch.

I will test the patch to see if I still see some afterwards.

@mkoeppe
Copy link
Member Author

mkoeppe commented Aug 12, 2021

comment:16

My list of warnings above has been run through sort -u; many appear multiple times

@kiwifb
Copy link
Member

kiwifb commented Aug 12, 2021

Reviewer: François Bissey

@kiwifb
Copy link
Member

kiwifb commented Aug 12, 2021

comment:17

Replying to @mkoeppe:

My list of warnings above has been run through sort -u; many appear multiple times

Indeed, that reduces the number to 13 which matches your list. It looks very good now.

@mkoeppe
Copy link
Member Author

mkoeppe commented Aug 12, 2021

comment:18

Thank you!

@vbraun
Copy link
Member

vbraun commented Aug 29, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants