Remove packages that handle backporting from Python 3 to Python 2
jhpalmieri opened this issue · 55 comments
Remove
- backports_abc
- backports_functools_lru_cache
- backports_shutil_get_terminal_size
- backports_ssl_match_hostname
- configparser
- enum34
- functools32
- future
- ipaddress
- pathlib2
- singledispatch
- subprocess32
- typing
Let's also remove sagenb, since it doesn't build with Python 3. That lets us remove
- flask
- flask_autoindex
- flask_babel
- flask_oldsessions
- flask_openid
- flask_silk
- sagenb
- twisted (it may be used by terminado when it is present, but terminado seems to function fine without it)
- werkzeug
Component: packages: standard
Keywords: sd109
Author: John Palmieri
Branch/Commit: 0578937
Reviewer: Dima Pasechnik, Matthias Koeppe
Issue created by migration from https://trac.sagemath.org/ticket/29754
sagenb should go, too, it doesn't work in py3.
Description changed:
---
+++
@@ -1,4 +1,8 @@
Remove
+
+- python2
+
+and
- backports_abc
- backports_functools_lru_cacheDescription changed:
---
+++
@@ -20,7 +20,7 @@
Also remove the use of `six` in the build process. (There are still many uses of `six` in the Sage library, and also the package `traitlets` uses it, so we cannot delete `six` now.)
-Should we also remove `sagenb`? That would let us remove
+Let's also remove `sagenb`, since it doesn't build with Python 3. That lets us remove
- flask
- flask_autoindex
@@ -32,4 +32,3 @@
- twisted ? (it may be used by terminado when it is present, but terminado may function fine without it)
- werkzeug
-If the sagenb removal is a good idea, it could also be done on a separate ticket.Dependencies: #29752
Branch: u/jhpalmieri/werkzeug-optional
Commit: 27b3d91
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
ddca85a | trac 29752: convert werkzeug from standard to optional |
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
I have to test my new branch. I'll set it back to "needs review" when that's done.
Changed branch from u/jhpalmieri/werkzeug-optional to none
Changed dependencies from #29752 to none
Changed commit from 406a030 to none
Branch: u/jhpalmieri/no-py2-backports
Commit: 2903b22
Okay, ready for review.
New commits:
2903b22 | trac 29754: remove packages which backport Python 3 components: |
lgtm
Reviewer: Dima Pasechnik
Thanks, but as you and Matthias noted on another ticket, this needs rebasing. I'll work on that.
Branch pushed to git repo; I updated commit sha1. This was a forced push. Last 10 new commits:
32bb2fe | Merge tag '9.1.rc3' into t/29633/src_doc_bootstrap__generate_list_of_packages__with_links_to_documentation__for_ref_manual_from_build_pkgs |
7555ba6 | Merge branch 't/29633/src_doc_bootstrap__generate_list_of_packages__with_links_to_documentation__for_ref_manual_from_build_pkgs' into t/29669/for_sage_9_2__remove_python_2_support_from_the_build_system |
520078a | build/pkgs/python2: Remove |
f712bb5 | configure.ac: Remove option --with-python=2 |
96a5e76 | Remove python2 from tox and [GitHub](../wiki/GitHub) CI scripts |
ea7df3e | configure.ac: Remove message 'Checking for Python version to install...' |
ff41817 | configure.ac: Warn on 'configure --with-python=3.x' |
378bf54 | Merge branch 't/29669/for_sage_9_2__remove_python_2_support_from_the_build_system' into t/29757/_github_workflows_tox_gcc_spkg_yml__remove_python2 |
225f730 | .github/workflows/tox-gcc_spkg.yml: Remove python2 |
c182f48 | trac 29754: remove packages backporting Python 3 components to Python 2. |
Description changed:
---
+++
@@ -1,8 +1,4 @@
Remove
-
-- python2
-
-and
- backports_abc
- backports_functools_lru_cache
@@ -18,8 +14,6 @@
- subprocess32
- typing
-Also remove the use of `six` in the build process. (There are still many uses of `six` in the Sage library, and also the package `traitlets` uses it, so we cannot delete `six` now.)
-
Let's also remove `sagenb`, since it doesn't build with Python 3. That lets us remove
- flask
@@ -29,6 +23,6 @@
- flask_openid
- flask_silk
- sagenb
-- twisted ? (it may be used by terminado when it is present, but terminado may function fine without it)
+- twisted (it may be used by terminado when it is present, but terminado seems to function fine without it)
- werkzeug
Dependencies: #29757
Rebased to #29757.
Can zope_interface also be removed?
$ grep zope_interface build/pkgs/*/dependencies
build/pkgs/twisted/dependencies:$(PYTHON) | $(PYTHON_TOOLCHAIN) zope_interface
I tested this meanwhile, it works. Most probably zope_interface may go too, it only is mentioned in doctests (and as a dependence of removed here twisted)
If this version here works, let's get this ticket in, and do the zope_interface removal on a follow-up ticket.
lgtm
Changed branch from u/jhpalmieri/no-py2-backports to u/mkoeppe/no-py2-backports
Changed reviewer from Dima Pasechnik to Dima Pasechnik, Matthias Koeppe
New commits:
4672d55 | trac 29633: fixes for PDF docbuilding |
2ee9bef | Merge tag '9.1' into t/29633/src_doc_bootstrap__generate_list_of_packages__with_links_to_documentation__for_ref_manual_from_build_pkgs |
9c7ea5f | trac 29633: fix SQLite doctests in cmdline.py |
8baef11 | trac 29745: clean up various SPKG.rst files |
c559f26 | Merge branch 't/29669/for_sage_9_2__remove_python_2_support_from_the_build_system' into t/29745/cleanup-spkg-rst-files |
05a6937 | Merge commit 'c559f26caf56378c8c4a5652f577986b4f5d431c' of git://trac.sagemath.org/sage into t/29754/no-py2-backports |
Another follow-up: #29878
And another: #29885 (remove "sage -n sagenb" as an advertised option, and strip the SageNB code from the sage-notebook script).
Merge conflict
Branch pushed to git repo; I updated commit sha1. Last 10 new commits:
8387b7b | add forgotten doctest fix. |
2ddcd31 | change upstream_url to a (hopefully) more stable and easy to decipher address for sphinx packages |
649289e | move sphinx packages from pip to PYTHON_TOOLCHAIN |
e5415da | trac 28856: fix apostrophes in wikipedia links |
b9d44e3 | Merge branch 'ticket-28000' into sphinx3 |
8f66113 | Minor upgdrade to Sphinx 3.0.3 |
321e2bf | Bump to 3.0.4 |
ee7195c | Merge branch 'matplotlib3.2.1' into sphinx3 |
bd99462 | Merge branch 'develop' into sphinx3 |
cc61541 | Merge commit 'bd99462f6f89757b9b1674fbeb55743ce7f6fab6' of git://trac.sagemath.org/sage into t/29754/no-py2-backports |
Branch pushed to git repo; I updated commit sha1 and set ticket back to needs_review. New commits:
0578937 | Merge tag '9.2.beta2' into t/29754/no-py2-backports |
merged in the latest beta
Changed branch from u/mkoeppe/no-py2-backports to 0578937