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
downgrade various sagenb deps to optional #29320
Comments
Commit: |
comment:1
here is a branch (not tested) New commits:
|
Branch: u/chapoton/29320 |
Changed author from Dima Pasechnik to none |
Reviewer: Dima Pasechnik |
comment:2
You beat me by 5 minutes :-) |
Author: Frédéric Chapoton |
This comment has been minimized.
This comment has been minimized.
Changed keywords from none to sagenb, dependencies, optional |
comment:5
@kiwifb told me that terminado uses twisted, so maybe twisted should be kept as standard. (Also, it should be listed in terminado's dependencies file, if this is accurate.) Can anyone confirm? |
comment:6
I should have said tornado, I misread the output of my dependency query in gentoo. That being said terminado depends on tornado. |
comment:7
the tests pass, and I manually checked dependencies to make sure that this change leads to no standard packages missing deps. If there are undeclared deps of untested standard packages, it is a bug. |
comment:8
Other candidates for downgrade: python_openid, speaklater |
comment:9
I think we can downgrade tornado and terminado etc. I don't know who is using them. |
comment:10
The Jupyter notebook may use these if they are available, but I don't know any details. |
comment:11
Replying to @jhpalmieri:
They are actually mandatory https://github.com/jupyter/notebook/blob/master/setup.py#L99 |
comment:12
Twisted, on the other hand, looks optional: see "Prerequisites" in https://www.tornadoweb.org/. Twisted is only used in |
comment:13
So it looks to me like |
comment:14
Replying to @dimpase:
Not for me:
|
comment:15
In brief testing, though, the Jupyter notebook looks okay. |
comment:16
I propose these changes: diff --git a/build/pkgs/python_openid/type b/build/pkgs/python_openid/type
index a6a7b9cd72..134d9bc32d 100644
--- a/build/pkgs/python_openid/type
+++ b/build/pkgs/python_openid/type
@@ -1 +1 @@
-standard
+optional
diff --git a/build/pkgs/speaklater/type b/build/pkgs/speaklater/type
index a6a7b9cd72..134d9bc32d 100644
--- a/build/pkgs/speaklater/type
+++ b/build/pkgs/speaklater/type
@@ -1 +1 @@
-standard
+optional
diff --git a/build/pkgs/twisted/type b/build/pkgs/twisted/type
index 134d9bc32d..a6a7b9cd72 100644
--- a/build/pkgs/twisted/type
+++ b/build/pkgs/twisted/type
@@ -1 +1 @@
-optional
+standard |
comment:17
Replying to @jhpalmieri:
Admittedly, this is a doctest for a sort of stupid function: "Implements the unpickling of Cartan types pickled by Sage <= 4.0." |
comment:18
Replying to @jhpalmieri:
Oops, I overlooked this, I thought that this must be irrelevant. Let's just tag it |
Changed branch from u/chapoton/29320 to u/jhpalmieri/29320 |
comment:20
Okay, ready for review. Please check the functionality of the Jupyter notebook; do we lose anything when we build without twisted? New commits:
|
comment:22
Looking at:
Are there other dependencies to be removed from being standard? like babel ? |
comment:23
|
comment:24
|
comment:25
Replying to @jhpalmieri:
Ah! Sorry, my mistake. |
comment:26
Looks good, but we need to take care of the dependency of that pickle on twisted (on a followup ticket). |
Changed author from Frédéric Chapoton to Frédéric Chapoton, John Palmieri |
comment:27
I don't understand pickling, but I am tempted to make this change: diff --git a/src/sage/combinat/root_system/cartan_type.py b/src/sage/combinat/root_system/cartan_type.py
index 202e1abe11..3cac952462 100644
--- a/src/sage/combinat/root_system/cartan_type.py
+++ b/src/sage/combinat/root_system/cartan_type.py
@@ -3066,10 +3066,10 @@ class CartanType_simple_finite(object):
sage: pg_CartanType_simple_finite = unpickle_global('sage.combinat.root_system.cartan_type', 'CartanType_simple_finite')
sage: si1 = unpickle_newobj(pg_CartanType_simple_finite, ())
- sage: pg_unpickleModule = unpickle_global('twisted.persisted.styles', 'unpickleModule')
+ sage: from sage.misc.fpickle import unpickleModule
sage: pg_make_integer = unpickle_global('sage.rings.integer', 'make_integer')
sage: si2 = pg_make_integer('4')
- sage: unpickle_build(si1, {'tools':pg_unpickleModule('sage.combinat.root_system.type_A'), 't':['A', si2], 'letter':'A', 'n':si2})
+ sage: unpickle_build(si1, {'tools':unpickleModule('sage.combinat.root_system.type_A'), 't':['A', si2], 'letter':'A', 'n':si2})
sage: si1
['A', 4] I'm building and running tests now. |
comment:28
See #29348 for the pickling issue. |
Changed branch from u/jhpalmieri/29320 to |
Changed commit from |
comment:30
Followup at #29752: werkzeug can be optional, too. |
This includes
twisted
andflask*
packages.CC: @slel @kiwifb
Component: packages: standard
Keywords: sagenb, dependencies, optional
Author: Frédéric Chapoton, John Palmieri
Branch:
d93d9d1
Reviewer: Dima Pasechnik
Issue created by migration from https://trac.sagemath.org/ticket/29320
The text was updated successfully, but these errors were encountered: