Allow some imports of RLF to fail
Closed this issue · 31 comments
The RealLazyField implementation is tied closely to real_mpfr.
We modify some imports for the purpose of modularization, in particular sagemath-polyhedra (#32432)
In particular for ... is RLF tests:
$ git grep 'is RLF'
src/sage/rings/complex_double.pyx: if S is ZZ or S is QQ or S is RDF or S is RLF:
src/sage/rings/number_field/number_field_base.pyx: if codomain is AA or codomain is RLF:
src/sage/rings/real_double.pyx: if S is ZZ or S is QQ or S is RLF:
src/sage/schemes/plane_conics/con_number_field.py: if not (isinstance(p, Map) and p.category_for().is_subcategory(Rings())) or p.codomain() is AA or p.codomain() is RLF:
Depends on #32742
Depends on #32750
Depends on #32733
CC: @kliem @tscrim @sagetrac-tmonteil
Component: refactoring
Author: Matthias Koeppe
Branch/Commit: b49bbdf
Reviewer: Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/32777
Author: Matthias Koeppe
Last 10 new commits:
b3c1667 | Merge #32758 |
ce8687b | Merge #32612 |
15884f3 | src/sage/matrix/matrix_space.py: Import element classes on demand, fall back to generic on ImportError |
ac58286 | Matrix.gram_schmidt: Use sage.rings.abc |
6d4ee6e | Matrix.gram_schmidt: Use sage.rings.abc (fixup) |
a1362ee | Merge #32635 |
c53d15d | Merge #32742 |
26df548 | src/sage/rings/number_field/number_field_base.pyx: Handle failing import of AA, RLF |
054a8a6 | src/sage/rings/real_double.pyx: Handle failing import of RLF, RR |
5ff97b1 | src/sage/schemes/plane_conics/con_number_field.py: Move imports of RLF, AA into methods |
This failure is not from this ticket:
sage -t --long --random-seed=321172385432269463934777057410284981568 src/sage/rings/integer.pyx # 1 doctest failed
This failure is likely from random seed fuzzing, not this ticket:
sage -t --long --random-seed=321172385432269463934777057410284981568 src/sage/rings/polynomial/multi_polynomial_ring_base.pyx # 1 doctest failed
reported in #32544.
Branch pushed to git repo; I updated commit sha1. New commits:
bda5ef8 | Merge tag '9.5.beta5' into t/32777/allow_some_imports_of_rlf_to_fail |
One green bot; one bot that's not feeling well
Replying to @mkoeppe:
One green bot; one bot that's not feeling well
I stopped all my patchbots.
Reviewer: Travis Scrimshaw
Thank you!
Merge conflict
Branch pushed to git repo; I updated commit sha1. Last 10 new commits:
96a778b | src/sage/schemes/elliptic_curves/constructor.py: Use sage.rings.abc.pAdicField |
b672836 | src/sage/schemes/hyperelliptic_curves: Use sage.rings.abc.pAdicField |
e1412c7 | src/sage/schemes/projective/projective_morphism.py: Use sage.rings.abc.pAdicField |
fc7025a | src/sage/rings/padics/generic_nodes.py: Update doctests with deprecation warning output |
070d05b | src/sage/schemes/projective/projective_morphism.py: Avoid merge conflict |
59271be | 32750: added missing imports |
0a1b9ac | src/sage/rings/padics/generic_nodes.py: Remove unused imports |
c46eb46 | Merge #32665 |
03b24bd | src/sage/schemes/berkovich/berkovich_space.py: Whitespace fix |
c219c17 | Merge #32750 |
trivial merge
Branch pushed to git repo; I updated commit sha1 and set ticket back to needs_review. New commits:
8b888e0 | Merge tag '9.5.beta6' into t/32777/allow_some_imports_of_rlf_to_fail |
Trivial merge with 9.5.beta6
It was already merged, but then the branch changed and now its a merge conflict
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
Sorry. Back to the previous commit.
still merge conflict
Branch pushed to git repo; I updated commit sha1. New commits:
5fe8aa6 | src/sage/geometry/polyhedron/combinatorial_polyhedron/base.pyx: Avoid imports from .all |
6d5ec0a | git grep -l 'all import cached' src/sage | xargs sed -E -i.bak $'s/^( *)from sage.*all import (cached_[a-z]*) *$/\1from sage.misc.cachefunc import \2/' |
299bd0c | git grep -l 'all import .*Integer' src/sage | xargs sed -E -i.bak $'s/^( *)from sage.*all import Integer *$/\1from sage.rings.integer import Integer/' |
54fa2ee | git grep -l 'all import .*GF' src/sage | xargs sed -E -i.bak $'s/^( *)from sage.*all import GF *$/\1from sage.rings.finite_rings.finite_field_constructor import GF/' |
f9182b4 | Merge tag '9.5.beta5' into t/32733/remove_more__all_imports |
2ce2751 | src/sage/interacts/library.py: Remove unused imports |
23d8441 | src/sage/interacts/library.py: suppress pyflakes warning |
48360b7 | src/sage/libs/eclib/interface.py: Remove unused import |
e2d1765 | Merge tag '9.5.beta6' into t/32733/remove_more__all_imports |
b49bbdf | Merge #32733 |
Changed branch from u/mkoeppe/allow_some_imports_of_rlf_to_fail to b49bbdf