-
-
Notifications
You must be signed in to change notification settings - Fork 479
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
For Sage 9.2: Remove python 2 support from sagelib #28000
Comments
This comment has been minimized.
This comment has been minimized.
comment:3
What needs to be done for this ticket? |
comment:4
Go through and remove all hacks related to supporting Python 2. It will be interesting to see how big a change it takes even now. It's rather early to go through and do that in earnest, but it would be fun to just try and see what it takes. |
Changed keywords from none to days101 |
comment:6
One example: #27696 (remove the doctesting hack for "long", which just converts it to "int" when using Python 3. |
comment:7
Also, this ticket can be set as a dependency for other tickets that depend on the Might it make sense to migrate the whole Jupyter part to Python3-only versions |
comment:8
I made some progress at days101 removing all dependency on the |
comment:9
Here's some of my progress on this so far: Probably one of the biggest, most pervasive steps, being complete removal of dependency on Of course, this step is optional--we can keep using It's pretty hard to avoid making a patch bomb of this. It's not all bad though--I started this months ago, and then once I got it finished I rebased on current develop and only had about a dozen minor merge conflicts. |
Branch: u/embray/python3/ticket-28000 |
Author: Erik Bray |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Commit: |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:12
Other tasks:
|
comment:13
My branch for this has some other in-progress changes that it seems I haven't pushed yet. I'll do so next time I rebase this branch. |
comment:14
Oh right, one of the changes I started was to remove unnecessary |
Dependencies: #26403 |
comment:17
Rebased, but no guarantee there are no new bugs or new uses of |
comment:19
Updated again after removing two new uses of |
comment:21
Do we remove all doctests tagged |
comment:22
You could do it here, or a separate ticket (and make it a dependency of this ticket). It's going to be a patch bomb no matter what, but I don't see the harm in trying to split it up wehre possible. |
This comment has been minimized.
This comment has been minimized.
comment:27
Needs rebasing! |
comment:29
Related: #27826 |
Changed branch from u/embray/python3/ticket-28000 to u/jhpalmieri/python3/ticket-28000 |
comment:31
Rebased. I haven't seen activity from embray for a while. Perhaps this is ready for review? New commits:
|
comment:32
Let's see if this finds a reviewer |
Reviewer: Dima Pasechnik |
comment:33
testing. |
comment:34
OK, this makes sense and appears to work. A long, but straightforward patch, also touching quite a bit of whitespace (which probably could have waited for another place, but OK). Should removing Python2 spkg be done elsewhere? |
Changed branch from u/jhpalmieri/python3/ticket-28000 to |
Changed commit from |
comment:37
\(^O^)/ Hopefully the divergence between sage-the-distribution and sage-on-distro will decrease now and packaging will become simpler again. |
comment:38
Thanks for finally getting this ticket merged! Sorry I haven't had much time to work on it. As others have noted this does not take care of all tasks related to dropping Python 2 support--it was just me doing as much as I could in one place. Took hours! |
comment:39
This breaks on Python 3.5, I've created #29753 for that |
comment:40
Does anyone know of any docker setups from tox.ini that have Python 3.5? |
comment:41
Python 3.5 will be gone in Sept, why would wr spend time trying to support it? |
comment:42
This accidentally broke the Macaulay2 interface. Follow up at #29759 with a trivial fix. |
Python 3 support (#15530) was completed for Sage 9.0 (thanks in particular to the leadership of Frédéric Chapoton). Official support for Python 2.7 by the CPython core developers is ending January 1, 2020.
To enable major package upgrades and other changes that require Python 3.x (#29141),
this ticket removes Python 2 support in Sage for Sage 9.2.
Depends on #26403
Depends on #28660
CC: @timokau @fchapoton @dimpase
Component: python3
Keywords: days101
Author: Erik Bray
Branch:
f368e32
Reviewer: Dima Pasechnik
Issue created by migration from https://trac.sagemath.org/ticket/28000
The text was updated successfully, but these errors were encountered: