From 79b1797b14478ed75aa23b5bb8f2e841e8d4faea Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Tue, 7 Nov 2023 21:03:59 -0800 Subject: [PATCH 001/140] sage.*.all*: Update from #35095 --- src/sage/algebras/all.py | 46 +--- src/sage/algebras/all__sagemath_combinat.py | 35 +++ src/sage/algebras/all__sagemath_modules.py | 11 + src/sage/algebras/all__sagemath_singular.py | 0 .../lie_algebras/all__sagemath_modules.py | 0 src/sage/algebras/steenrod/all.py | 2 +- src/sage/arith/all__sagemath_objects.py | 2 + src/sage/calculus/all.py | 35 +-- src/sage/calculus/all__sagemath_categories.py | 1 + src/sage/calculus/all__sagemath_modules.py | 17 ++ src/sage/coding/all__sagemath_gap.py | 0 src/sage/coding/codecan/all__sagemath_gap.py | 0 src/sage/combinat/all.py | 250 +----------------- src/sage/combinat/all__sagemath_categories.py | 29 ++ src/sage/combinat/all__sagemath_combinat.py | 197 ++++++++++++++ src/sage/combinat/all__sagemath_flint.py | 0 src/sage/combinat/all__sagemath_gap.py | 0 src/sage/combinat/all__sagemath_graphs.py | 31 +++ src/sage/combinat/all__sagemath_modules.py | 6 + src/sage/combinat/matrices/all.py | 6 +- .../matrices/all__sagemath_categories.py | 3 + src/sage/combinat/ncsf_qsym/all.py | 9 +- src/sage/combinat/ncsym/all.py | 9 +- .../combinat/posets/all__sagemath_flint.py | 0 src/sage/combinat/root_system/all.py | 6 +- .../combinat/root_system/all__sagemath_gap.py | 0 src/sage/combinat/words/all.py | 7 +- src/sage/data_structures/all.py | 3 +- .../all__sagemath_categories.py | 1 + .../data_structures/all__sagemath_combinat.py | 0 .../data_structures/all__sagemath_flint.py | 0 src/sage/databases/all__sagemath_graphs.py | 0 src/sage/dynamics/all.py | 9 +- src/sage/dynamics/all__sagemath_schemes.py | 1 + src/sage/dynamics/all__sagemath_symbolics.py | 4 + src/sage/ext/all__sagemath_categories.py | 2 + src/sage/ext/all__sagemath_modules.py | 0 src/sage/ext/all__sagemath_pari.py | 0 src/sage/ext/all__sagemath_symbolics.py | 0 src/sage/ext_data/all__sagemath_gap.py | 0 src/sage/ext_data/all__sagemath_singular.py | 0 src/sage/games/all.py | 6 +- src/sage/geometry/all.py | 29 +- src/sage/geometry/all__sagemath_categories.py | 0 src/sage/geometry/all__sagemath_gap.py | 4 + src/sage/geometry/all__sagemath_linbox.py | 0 src/sage/geometry/all__sagemath_modules.py | 3 + src/sage/geometry/all__sagemath_polyhedra.py | 19 ++ src/sage/geometry/all__sagemath_symbolics.py | 7 + src/sage/graphs/all__sagemath_flint.py | 0 src/sage/groups/abelian_gps/all.py | 9 +- .../groups/abelian_gps/all__sagemath_gap.py | 5 + .../abelian_gps/all__sagemath_modules.py | 4 + src/sage/groups/all.py | 41 +-- src/sage/groups/all__sagemath_categories.py | 10 + src/sage/groups/all__sagemath_combinat.py | 0 src/sage/groups/all__sagemath_gap.py | 3 + src/sage/groups/all__sagemath_graphs.py | 0 src/sage/groups/all__sagemath_groups.py | 29 ++ src/sage/groups/all__sagemath_modules.py | 10 + src/sage/groups/all__sagemath_objects.py | 0 src/sage/groups/all__sagemath_pari.py | 2 + src/sage/groups/matrix_gps/all.py | 12 +- .../groups/matrix_gps/all__sagemath_gap.py | 0 .../matrix_gps/all__sagemath_modules.py | 11 + .../perm_gps/all__sagemath_categories.py | 0 .../groups/perm_gps/all__sagemath_graphs.py | 0 .../groups/perm_gps/all__sagemath_modules.py | 0 .../partn_ref/all__sagemath_categories.py | 0 .../perm_gps/partn_ref/all__sagemath_gap.py | 0 .../partn_ref/all__sagemath_graphs.py | 0 .../partn_ref/all__sagemath_modules.py | 0 src/sage/homology/all.py | 7 +- src/sage/homology/all__sagemath_modules.py | 6 + .../interfaces/all__sagemath_categories.py | 0 src/sage/interfaces/all__sagemath_gap.py | 0 src/sage/interfaces/all__sagemath_libecm.py | 0 src/sage/interfaces/all__sagemath_pari.py | 0 src/sage/interfaces/all__sagemath_plot.py | 0 .../interfaces/all__sagemath_symbolics.py | 0 src/sage/lfunctions/all__sagemath_lcalc.py | 0 src/sage/libs/all.py | 30 +-- src/sage/libs/all__sagemath_brial.py | 0 src/sage/libs/all__sagemath_combinat.py | 5 + src/sage/libs/all__sagemath_eclib.py | 10 + src/sage/libs/all__sagemath_flint.py | 16 ++ src/sage/libs/all__sagemath_gap.py | 0 src/sage/libs/all__sagemath_giac.py | 0 src/sage/libs/all__sagemath_glpk.py | 0 src/sage/libs/all__sagemath_homfly.py | 0 src/sage/libs/all__sagemath_lcalc.py | 0 src/sage/libs/all__sagemath_libbraiding.py | 0 src/sage/libs/all__sagemath_libecm.py | 0 src/sage/libs/all__sagemath_linbox.py | 0 src/sage/libs/all__sagemath_modules.py | 0 src/sage/libs/all__sagemath_mpmath.py | 0 src/sage/libs/all__sagemath_ntl.py | 2 + src/sage/libs/all__sagemath_pari.py | 1 + src/sage/libs/all__sagemath_singular.py | 0 src/sage/libs/all__sagemath_symbolics.py | 3 + src/sage/libs/pari/all__sagemath_flint.py | 0 src/sage/matrix/all__sagemath_flint.py | 0 src/sage/matrix/all__sagemath_gap.py | 0 src/sage/matrix/all__sagemath_linbox.py | 0 src/sage/matrix/all__sagemath_ntl.py | 0 src/sage/matrix/all__sagemath_singular.py | 0 src/sage/matrix/all__sagemath_symbolics.py | 0 src/sage/misc/all.py | 138 +--------- src/sage/misc/all__sagemath_categories.py | 80 ++++++ src/sage/misc/all__sagemath_modules.py | 21 ++ src/sage/misc/all__sagemath_ntl.py | 0 src/sage/misc/all__sagemath_objects.py | 9 + src/sage/misc/all__sagemath_repl.py | 40 +++ src/sage/modules/all__sagemath_linbox.py | 0 src/sage/modules/all__sagemath_objects.py | 0 src/sage/modules/all__sagemath_symbolics.py | 0 src/sage/monoids/all__sagemath_categories.py | 0 src/sage/numerical/all.py | 6 +- .../numerical/all__sagemath_categories.py | 0 src/sage/numerical/all__sagemath_glpk.py | 0 src/sage/numerical/all__sagemath_modules.py | 4 + .../backends/all__sagemath_categories.py | 0 .../numerical/backends/all__sagemath_glpk.py | 0 src/sage/plot/all.py | 4 +- src/sage/quadratic_forms/all.py | 18 +- .../quadratic_forms/all__sagemath_modules.py | 12 + .../quadratic_forms/all__sagemath_pari.py | 5 + src/sage/rings/all.py | 144 +--------- src/sage/rings/all__sagemath_brial.py | 0 src/sage/rings/all__sagemath_categories.py | 74 +++++- src/sage/rings/all__sagemath_combinat.py | 9 + src/sage/rings/all__sagemath_flint.py | 34 +++ src/sage/rings/all__sagemath_gap.py | 6 + src/sage/rings/all__sagemath_linbox.py | 0 src/sage/rings/all__sagemath_modules.py | 24 ++ src/sage/rings/all__sagemath_ntl.py | 6 + src/sage/rings/all__sagemath_pari.py | 12 + src/sage/rings/all__sagemath_singular.py | 0 src/sage/rings/all__sagemath_symbolics.py | 1 + src/sage/rings/finite_rings/all.py | 4 +- .../finite_rings/all__sagemath_categories.py | 8 + .../finite_rings/all__sagemath_linbox.py | 0 .../finite_rings/all__sagemath_modules.py | 0 .../rings/finite_rings/all__sagemath_ntl.py | 0 .../rings/finite_rings/all__sagemath_pari.py | 0 src/sage/rings/function_field/all.py | 7 +- .../all__sagemath_categories.py | 1 + .../function_field/all__sagemath_modules.py | 1 + .../function_field/all__sagemath_pari.py | 0 .../function_field/all__sagemath_singular.py | 0 .../function_field/all__sagemath_symbolics.py | 1 + .../number_field/all__sagemath_categories.py | 0 .../rings/number_field/all__sagemath_flint.py | 0 .../rings/number_field/all__sagemath_pari.py | 0 src/sage/rings/padics/all.py | 8 +- .../rings/padics/all__sagemath_categories.py | 1 + src/sage/rings/padics/all__sagemath_flint.py | 2 + src/sage/rings/padics/all__sagemath_ntl.py | 4 + src/sage/rings/padics/all__sagemath_pari.py | 10 + src/sage/rings/polynomial/all.py | 25 +- .../rings/polynomial/all__sagemath_brial.py | 0 .../polynomial/all__sagemath_categories.py | 21 ++ .../rings/polynomial/all__sagemath_flint.py | 0 .../rings/polynomial/all__sagemath_linbox.py | 0 .../rings/polynomial/all__sagemath_modules.py | 6 + .../rings/polynomial/all__sagemath_ntl.py | 0 .../rings/polynomial/all__sagemath_pari.py | 0 .../polynomial/all__sagemath_singular.py | 0 .../polynomial/all__sagemath_symbolics.py | 0 src/sage/schemes/all.py | 12 +- src/sage/schemes/all__sagemath_categories.py | 4 + src/sage/schemes/all__sagemath_ntl.py | 0 src/sage/schemes/all__sagemath_polyhedra.py | 1 + .../hyperelliptic_curves/all__sagemath_ntl.py | 0 src/sage/stats/all.py | 8 +- src/sage/symbolic/all__sagemath_categories.py | 0 .../all__sagemath_standard_no_symbolics.py | 0 177 files changed, 1009 insertions(+), 768 deletions(-) create mode 100644 src/sage/algebras/all__sagemath_combinat.py create mode 100644 src/sage/algebras/all__sagemath_modules.py create mode 100644 src/sage/algebras/all__sagemath_singular.py create mode 100644 src/sage/algebras/lie_algebras/all__sagemath_modules.py create mode 100644 src/sage/calculus/all__sagemath_categories.py create mode 100644 src/sage/calculus/all__sagemath_modules.py create mode 100644 src/sage/coding/all__sagemath_gap.py create mode 100644 src/sage/coding/codecan/all__sagemath_gap.py create mode 100644 src/sage/combinat/all__sagemath_categories.py create mode 100644 src/sage/combinat/all__sagemath_combinat.py create mode 100644 src/sage/combinat/all__sagemath_flint.py create mode 100644 src/sage/combinat/all__sagemath_gap.py create mode 100644 src/sage/combinat/all__sagemath_graphs.py create mode 100644 src/sage/combinat/all__sagemath_modules.py create mode 100644 src/sage/combinat/matrices/all__sagemath_categories.py create mode 100644 src/sage/combinat/posets/all__sagemath_flint.py create mode 100644 src/sage/combinat/root_system/all__sagemath_gap.py create mode 100644 src/sage/data_structures/all__sagemath_categories.py create mode 100644 src/sage/data_structures/all__sagemath_combinat.py create mode 100644 src/sage/data_structures/all__sagemath_flint.py create mode 100644 src/sage/databases/all__sagemath_graphs.py create mode 100644 src/sage/dynamics/all__sagemath_schemes.py create mode 100644 src/sage/dynamics/all__sagemath_symbolics.py create mode 100644 src/sage/ext/all__sagemath_categories.py create mode 100644 src/sage/ext/all__sagemath_modules.py create mode 100644 src/sage/ext/all__sagemath_pari.py create mode 100644 src/sage/ext/all__sagemath_symbolics.py create mode 100644 src/sage/ext_data/all__sagemath_gap.py create mode 100644 src/sage/ext_data/all__sagemath_singular.py create mode 100644 src/sage/geometry/all__sagemath_categories.py create mode 100644 src/sage/geometry/all__sagemath_gap.py create mode 100644 src/sage/geometry/all__sagemath_linbox.py create mode 100644 src/sage/geometry/all__sagemath_modules.py create mode 100644 src/sage/geometry/all__sagemath_polyhedra.py create mode 100644 src/sage/geometry/all__sagemath_symbolics.py create mode 100644 src/sage/graphs/all__sagemath_flint.py create mode 100644 src/sage/groups/abelian_gps/all__sagemath_gap.py create mode 100644 src/sage/groups/abelian_gps/all__sagemath_modules.py create mode 100644 src/sage/groups/all__sagemath_categories.py create mode 100644 src/sage/groups/all__sagemath_combinat.py create mode 100644 src/sage/groups/all__sagemath_gap.py create mode 100644 src/sage/groups/all__sagemath_graphs.py create mode 100644 src/sage/groups/all__sagemath_groups.py create mode 100644 src/sage/groups/all__sagemath_modules.py create mode 100644 src/sage/groups/all__sagemath_objects.py create mode 100644 src/sage/groups/all__sagemath_pari.py create mode 100644 src/sage/groups/matrix_gps/all__sagemath_gap.py create mode 100644 src/sage/groups/matrix_gps/all__sagemath_modules.py create mode 100644 src/sage/groups/perm_gps/all__sagemath_categories.py create mode 100644 src/sage/groups/perm_gps/all__sagemath_graphs.py create mode 100644 src/sage/groups/perm_gps/all__sagemath_modules.py create mode 100644 src/sage/groups/perm_gps/partn_ref/all__sagemath_categories.py create mode 100644 src/sage/groups/perm_gps/partn_ref/all__sagemath_gap.py create mode 100644 src/sage/groups/perm_gps/partn_ref/all__sagemath_graphs.py create mode 100644 src/sage/groups/perm_gps/partn_ref/all__sagemath_modules.py create mode 100644 src/sage/homology/all__sagemath_modules.py create mode 100644 src/sage/interfaces/all__sagemath_categories.py create mode 100644 src/sage/interfaces/all__sagemath_gap.py create mode 100644 src/sage/interfaces/all__sagemath_libecm.py create mode 100644 src/sage/interfaces/all__sagemath_pari.py create mode 100644 src/sage/interfaces/all__sagemath_plot.py create mode 100644 src/sage/interfaces/all__sagemath_symbolics.py create mode 100644 src/sage/lfunctions/all__sagemath_lcalc.py create mode 100644 src/sage/libs/all__sagemath_brial.py create mode 100644 src/sage/libs/all__sagemath_combinat.py create mode 100644 src/sage/libs/all__sagemath_eclib.py create mode 100644 src/sage/libs/all__sagemath_flint.py create mode 100644 src/sage/libs/all__sagemath_gap.py create mode 100644 src/sage/libs/all__sagemath_giac.py create mode 100644 src/sage/libs/all__sagemath_glpk.py create mode 100644 src/sage/libs/all__sagemath_homfly.py create mode 100644 src/sage/libs/all__sagemath_lcalc.py create mode 100644 src/sage/libs/all__sagemath_libbraiding.py create mode 100644 src/sage/libs/all__sagemath_libecm.py create mode 100644 src/sage/libs/all__sagemath_linbox.py create mode 100644 src/sage/libs/all__sagemath_modules.py create mode 100644 src/sage/libs/all__sagemath_mpmath.py create mode 100644 src/sage/libs/all__sagemath_ntl.py create mode 100644 src/sage/libs/all__sagemath_pari.py create mode 100644 src/sage/libs/all__sagemath_singular.py create mode 100644 src/sage/libs/all__sagemath_symbolics.py create mode 100644 src/sage/libs/pari/all__sagemath_flint.py create mode 100644 src/sage/matrix/all__sagemath_flint.py create mode 100644 src/sage/matrix/all__sagemath_gap.py create mode 100644 src/sage/matrix/all__sagemath_linbox.py create mode 100644 src/sage/matrix/all__sagemath_ntl.py create mode 100644 src/sage/matrix/all__sagemath_singular.py create mode 100644 src/sage/matrix/all__sagemath_symbolics.py create mode 100644 src/sage/misc/all__sagemath_categories.py create mode 100644 src/sage/misc/all__sagemath_modules.py create mode 100644 src/sage/misc/all__sagemath_ntl.py create mode 100644 src/sage/modules/all__sagemath_linbox.py create mode 100644 src/sage/modules/all__sagemath_objects.py create mode 100644 src/sage/modules/all__sagemath_symbolics.py create mode 100644 src/sage/monoids/all__sagemath_categories.py create mode 100644 src/sage/numerical/all__sagemath_categories.py create mode 100644 src/sage/numerical/all__sagemath_glpk.py create mode 100644 src/sage/numerical/all__sagemath_modules.py create mode 100644 src/sage/numerical/backends/all__sagemath_categories.py create mode 100644 src/sage/numerical/backends/all__sagemath_glpk.py create mode 100644 src/sage/quadratic_forms/all__sagemath_modules.py create mode 100644 src/sage/quadratic_forms/all__sagemath_pari.py create mode 100644 src/sage/rings/all__sagemath_brial.py create mode 100644 src/sage/rings/all__sagemath_combinat.py create mode 100644 src/sage/rings/all__sagemath_flint.py create mode 100644 src/sage/rings/all__sagemath_gap.py create mode 100644 src/sage/rings/all__sagemath_linbox.py create mode 100644 src/sage/rings/all__sagemath_modules.py create mode 100644 src/sage/rings/all__sagemath_ntl.py create mode 100644 src/sage/rings/all__sagemath_pari.py create mode 100644 src/sage/rings/all__sagemath_singular.py create mode 100644 src/sage/rings/all__sagemath_symbolics.py create mode 100644 src/sage/rings/finite_rings/all__sagemath_categories.py create mode 100644 src/sage/rings/finite_rings/all__sagemath_linbox.py create mode 100644 src/sage/rings/finite_rings/all__sagemath_modules.py create mode 100644 src/sage/rings/finite_rings/all__sagemath_ntl.py create mode 100644 src/sage/rings/finite_rings/all__sagemath_pari.py create mode 100644 src/sage/rings/function_field/all__sagemath_categories.py create mode 100644 src/sage/rings/function_field/all__sagemath_modules.py create mode 100644 src/sage/rings/function_field/all__sagemath_pari.py create mode 100644 src/sage/rings/function_field/all__sagemath_singular.py create mode 100644 src/sage/rings/function_field/all__sagemath_symbolics.py create mode 100644 src/sage/rings/number_field/all__sagemath_categories.py create mode 100644 src/sage/rings/number_field/all__sagemath_flint.py create mode 100644 src/sage/rings/number_field/all__sagemath_pari.py create mode 100644 src/sage/rings/padics/all__sagemath_categories.py create mode 100644 src/sage/rings/padics/all__sagemath_flint.py create mode 100644 src/sage/rings/padics/all__sagemath_ntl.py create mode 100644 src/sage/rings/padics/all__sagemath_pari.py create mode 100644 src/sage/rings/polynomial/all__sagemath_brial.py create mode 100644 src/sage/rings/polynomial/all__sagemath_categories.py create mode 100644 src/sage/rings/polynomial/all__sagemath_flint.py create mode 100644 src/sage/rings/polynomial/all__sagemath_linbox.py create mode 100644 src/sage/rings/polynomial/all__sagemath_modules.py create mode 100644 src/sage/rings/polynomial/all__sagemath_ntl.py create mode 100644 src/sage/rings/polynomial/all__sagemath_pari.py create mode 100644 src/sage/rings/polynomial/all__sagemath_singular.py create mode 100644 src/sage/rings/polynomial/all__sagemath_symbolics.py create mode 100644 src/sage/schemes/all__sagemath_categories.py create mode 100644 src/sage/schemes/all__sagemath_ntl.py create mode 100644 src/sage/schemes/all__sagemath_polyhedra.py create mode 100644 src/sage/schemes/hyperelliptic_curves/all__sagemath_ntl.py create mode 100644 src/sage/symbolic/all__sagemath_categories.py create mode 100644 src/sage/symbolic/all__sagemath_standard_no_symbolics.py diff --git a/src/sage/algebras/all.py b/src/sage/algebras/all.py index 14be60e8f56..e02672ac54a 100644 --- a/src/sage/algebras/all.py +++ b/src/sage/algebras/all.py @@ -18,52 +18,10 @@ #***************************************************************************** from sage.misc.lazy_import import lazy_import -import sage.algebras.catalog as algebras +from .all__sagemath_modules import * +from .all__sagemath_combinat import * from .quatalg.all import * -from .steenrod.all import * from .fusion_rings.all import * from .lie_algebras.all import * -from .quantum_groups.all import * from .lie_conformal_algebras.all import * - -# Algebra base classes -from .algebra import Algebra -from .free_algebra import FreeAlgebra -from .free_algebra_quotient import FreeAlgebraQuotient - - -from .finite_dimensional_algebras.all import FiniteDimensionalAlgebra - -lazy_import('sage.algebras.group_algebra', 'GroupAlgebra') - -lazy_import('sage.algebras.iwahori_hecke_algebra', 'IwahoriHeckeAlgebra') -lazy_import('sage.algebras.affine_nil_temperley_lieb', - 'AffineNilTemperleyLiebTypeA') -lazy_import('sage.algebras.nil_coxeter_algebra', 'NilCoxeterAlgebra') -lazy_import('sage.algebras.schur_algebra', ['SchurAlgebra', - 'SchurTensorModule']) - -lazy_import('sage.algebras.hall_algebra', 'HallAlgebra') - -lazy_import('sage.algebras.jordan_algebra', 'JordanAlgebra') - -lazy_import('sage.algebras.octonion_algebra', 'OctonionAlgebra') - -lazy_import('sage.algebras.shuffle_algebra', 'ShuffleAlgebra') - -from .clifford_algebra import CliffordAlgebra, ExteriorAlgebra -from .weyl_algebra import DifferentialWeylAlgebra - -lazy_import('sage.algebras.commutative_dga', 'GradedCommutativeAlgebra') - -lazy_import('sage.algebras.rational_cherednik_algebra', - 'RationalCherednikAlgebra') - -lazy_import('sage.algebras.tensor_algebra', 'TensorAlgebra') - -lazy_import('sage.algebras.q_system', 'QSystem') - -lazy_import('sage.algebras.cluster_algebra', 'ClusterAlgebra') - -lazy_import('sage.algebras.yangian', 'Yangian') diff --git a/src/sage/algebras/all__sagemath_combinat.py b/src/sage/algebras/all__sagemath_combinat.py new file mode 100644 index 00000000000..23e1bd4217b --- /dev/null +++ b/src/sage/algebras/all__sagemath_combinat.py @@ -0,0 +1,35 @@ +from sage.misc.lazy_import import lazy_import + + +# Algebra base classes +lazy_import('sage.algebras.free_algebra', 'FreeAlgebra') +lazy_import('sage.algebras.free_algebra_quotient', 'FreeAlgebraQuotient') + +from .steenrod.all import * +from .quantum_groups.all import * + +lazy_import('sage.algebras.iwahori_hecke_algebra', 'IwahoriHeckeAlgebra') +lazy_import('sage.algebras.affine_nil_temperley_lieb', + 'AffineNilTemperleyLiebTypeA') +lazy_import('sage.algebras.nil_coxeter_algebra', 'NilCoxeterAlgebra') +lazy_import('sage.algebras.schur_algebra', ['SchurAlgebra', + 'SchurTensorModule']) + +lazy_import('sage.algebras.hall_algebra', 'HallAlgebra') + +lazy_import('sage.algebras.jordan_algebra', 'JordanAlgebra') + +lazy_import('sage.algebras.shuffle_algebra', 'ShuffleAlgebra') + +lazy_import('sage.algebras.commutative_dga', 'GradedCommutativeAlgebra') + +lazy_import('sage.algebras.rational_cherednik_algebra', + 'RationalCherednikAlgebra') + +lazy_import('sage.algebras.tensor_algebra', 'TensorAlgebra') + +lazy_import('sage.algebras.q_system', 'QSystem') + +lazy_import('sage.algebras.cluster_algebra', 'ClusterAlgebra') + +lazy_import('sage.algebras.yangian', 'Yangian') diff --git a/src/sage/algebras/all__sagemath_modules.py b/src/sage/algebras/all__sagemath_modules.py new file mode 100644 index 00000000000..d52f918d1a1 --- /dev/null +++ b/src/sage/algebras/all__sagemath_modules.py @@ -0,0 +1,11 @@ +from sage.misc.lazy_import import lazy_import + +lazy_import('sage.algebras.group_algebra', 'GroupAlgebra') + +from .algebra import Algebra +from .finite_dimensional_algebras.all import FiniteDimensionalAlgebra +from .clifford_algebra import CliffordAlgebra, ExteriorAlgebra +from .weyl_algebra import DifferentialWeylAlgebra +lazy_import('sage.algebras.octonion_algebra', 'OctonionAlgebra') + +import sage.algebras.catalog as algebras diff --git a/src/sage/algebras/all__sagemath_singular.py b/src/sage/algebras/all__sagemath_singular.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/algebras/lie_algebras/all__sagemath_modules.py b/src/sage/algebras/lie_algebras/all__sagemath_modules.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/algebras/steenrod/all.py b/src/sage/algebras/steenrod/all.py index 134b2b032cf..387a88ec6e1 100644 --- a/src/sage/algebras/steenrod/all.py +++ b/src/sage/algebras/steenrod/all.py @@ -1,8 +1,8 @@ """ The Steenrod algebra """ -from .steenrod_algebra import SteenrodAlgebra, Sq from sage.misc.lazy_import import lazy_import +lazy_import('sage.algebras.steenrod.steenrod_algebra', ['SteenrodAlgebra', 'Sq']) lazy_import('sage.algebras.steenrod.steenrod_algebra_bases', 'steenrod_algebra_basis', deprecation=(32647, 'removed from namespace')) diff --git a/src/sage/arith/all__sagemath_objects.py b/src/sage/arith/all__sagemath_objects.py index 38e44245ad3..ccd64831912 100644 --- a/src/sage/arith/all__sagemath_objects.py +++ b/src/sage/arith/all__sagemath_objects.py @@ -1,2 +1,4 @@ # The presence of this file ensures that sage_setup for sagemath-objects # considers this directory as a namespace package + +from sage.arith.power import generic_power as power diff --git a/src/sage/calculus/all.py b/src/sage/calculus/all.py index c83a97f6eb4..7f77f5c8dd3 100644 --- a/src/sage/calculus/all.py +++ b/src/sage/calculus/all.py @@ -1,21 +1,11 @@ +from .all__sagemath_modules import * + +from sage.misc.lazy_import import lazy_import from .calculus import maxima as maxima_calculus from .calculus import (laplace, inverse_laplace, limit, lim) -from .integration import numerical_integral, monte_carlo_integral -integral_numerical = numerical_integral - -from .interpolation import spline, Spline - -from .functional import (diff, derivative, - expand, - taylor, simplify) - -from .functions import (wronskian, jacobian) - -from .ode import ode_solver, ode_system - from .desolvers import (desolve, desolve_laplace, desolve_system, eulers_method, eulers_method_2x2, eulers_method_2x2_plot, desolve_rk4, desolve_system_rk4, @@ -23,15 +13,8 @@ from .var import (var, function, clear_vars) -from .transforms.all import * - -# We lazy_import the following modules since they import numpy which slows down sage startup -from sage.misc.lazy_import import lazy_import -lazy_import("sage.calculus.riemann", ["Riemann_Map"]) -lazy_import("sage.calculus.interpolators", ["polygon_spline", "complex_cubic_spline"]) - -from sage.modules.free_module_element import vector -from sage.matrix.constructor import matrix +lazy_import('sage.modules.free_module_element', ['vector', 'FreeModuleElement']) +lazy_import('sage.matrix.constructor', 'matrix') def symbolic_expression(x): @@ -68,6 +51,7 @@ def symbolic_expression(x): Note that equations exist in the symbolic ring:: + sage: # needs sage.schemes sage: E = EllipticCurve('15a'); E Elliptic Curve defined by y^2 + x*y + y = x^3 + x^2 - 10*x - 10 over Rational Field sage: symbolic_expression(E) @@ -188,21 +172,20 @@ def symbolic_expression(x): TypeError: unable to convert to a symbolic expression """ + from sage.structure.element import is_Matrix from sage.symbolic.expression import Expression from sage.symbolic.ring import SR - from sage.modules.free_module_element import is_FreeModuleElement - from sage.structure.element import is_Matrix if isinstance(x, Expression): return x elif hasattr(x, '_symbolic_'): return x._symbolic_(SR) - elif isinstance(x, (tuple, list)) or is_FreeModuleElement(x): + elif isinstance(x, (tuple, list, FreeModuleElement)): expressions = [symbolic_expression(item) for item in x] if not expressions: # Make sure it is symbolic also when length is 0 return vector(SR, 0) - if is_FreeModuleElement(expressions[0]): + if isinstance(expressions[0], FreeModuleElement): return matrix(expressions) return vector(expressions) elif is_Matrix(x): diff --git a/src/sage/calculus/all__sagemath_categories.py b/src/sage/calculus/all__sagemath_categories.py new file mode 100644 index 00000000000..63e6cb18214 --- /dev/null +++ b/src/sage/calculus/all__sagemath_categories.py @@ -0,0 +1 @@ +from .functional import diff, derivative, expand, simplify, taylor diff --git a/src/sage/calculus/all__sagemath_modules.py b/src/sage/calculus/all__sagemath_modules.py new file mode 100644 index 00000000000..cf51c475f98 --- /dev/null +++ b/src/sage/calculus/all__sagemath_modules.py @@ -0,0 +1,17 @@ +from .all__sagemath_categories import * + +from .integration import numerical_integral, monte_carlo_integral +integral_numerical = numerical_integral + +from .interpolation import spline, Spline + +from .functions import wronskian, jacobian + +from .ode import ode_solver, ode_system + +# We lazy_import the following modules since they import numpy which slows down sage startup +from sage.misc.lazy_import import lazy_import +lazy_import("sage.calculus.riemann", ["Riemann_Map"]) +lazy_import("sage.calculus.interpolators", ["polygon_spline","complex_cubic_spline"]) + +from .transforms.all import * diff --git a/src/sage/coding/all__sagemath_gap.py b/src/sage/coding/all__sagemath_gap.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/coding/codecan/all__sagemath_gap.py b/src/sage/coding/codecan/all__sagemath_gap.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/combinat/all.py b/src/sage/combinat/all.py index 79690ff7305..acef92816fe 100644 --- a/src/sage/combinat/all.py +++ b/src/sage/combinat/all.py @@ -56,250 +56,6 @@ from sage.misc.lazy_import import lazy_import -from .combinat import (CombinatorialClass, CombinatorialObject, - MapCombinatorialClass, - bell_number, bell_polynomial, bernoulli_polynomial, - catalan_number, euler_number, - fibonacci, fibonacci_sequence, fibonacci_xrange, - lucas_number1, lucas_number2, - number_of_tuples, number_of_unordered_tuples, - polygonal_number, stirling_number1, stirling_number2, - tuples, unordered_tuples) - -lazy_import('sage.combinat.combinat', - ('InfiniteAbstractCombinatorialClass', 'UnionCombinatorialClass', - 'FilteredCombinatorialClass'), - deprecation=(31545, 'this class is deprecated, do not use')) - - -from .expnums import expnums - -from sage.combinat.chas.all import * -from sage.combinat.crystals.all import * -from .rigged_configurations.all import * - -from sage.combinat.dlx import DLXMatrix, AllExactCovers, OneExactCover - -# block designs, etc -from sage.combinat.designs.all import * - -# Free modules and friends -from .free_module import CombinatorialFreeModule -from .debruijn_sequence import DeBruijnSequences - -from .schubert_polynomial import SchubertPolynomialRing -lazy_import('sage.combinat.key_polynomial', 'KeyPolynomialBasis', as_='KeyPolynomials') -from .symmetric_group_algebra import SymmetricGroupAlgebra, HeckeAlgebraSymmetricGroupT -from .symmetric_group_representations import SymmetricGroupRepresentation, SymmetricGroupRepresentations -from .yang_baxter_graph import YangBaxterGraph - -# Permutations -from .permutation import Permutation, Permutations, Arrangements, CyclicPermutations, CyclicPermutationsOfPartition -from .affine_permutation import AffinePermutationGroup -lazy_import('sage.combinat.colored_permutations', ['ColoredPermutations', - 'SignedPermutation', - 'SignedPermutations']) -from .derangements import Derangements -lazy_import('sage.combinat.baxter_permutations', ['BaxterPermutations']) - -# RSK -from .rsk import RSK, RSK_inverse, robinson_schensted_knuth, robinson_schensted_knuth_inverse, InsertionRules - -# HillmanGrassl -lazy_import("sage.combinat.hillman_grassl", ["WeakReversePlanePartition", "WeakReversePlanePartitions"]) - -# PerfectMatchings -from .perfect_matching import PerfectMatching, PerfectMatchings - -# Integer lists -from .integer_lists import IntegerListsLex - -# Compositions -from .composition import Composition, Compositions -from .composition_signed import SignedCompositions - -# Partitions -from .partition import (Partition, Partitions, PartitionsInBox, - OrderedPartitions, PartitionsGreatestLE, - PartitionsGreatestEQ, number_of_partitions) - -lazy_import('sage.combinat.partition_tuple', ['PartitionTuple', 'PartitionTuples']) -lazy_import('sage.combinat.partition_kleshchev', ['KleshchevPartitions']) -lazy_import('sage.combinat.skew_partition', ['SkewPartition', 'SkewPartitions']) - -# Partition algebra -from .partition_algebra import SetPartitionsAk, SetPartitionsPk, SetPartitionsTk, SetPartitionsIk, SetPartitionsBk, SetPartitionsSk, SetPartitionsRk, SetPartitionsPRk - -# Raising operators -lazy_import('sage.combinat.partition_shifting_algebras', 'ShiftingOperatorAlgebra') - -# Diagram algebra -from .diagram_algebras import PartitionAlgebra, BrauerAlgebra, TemperleyLiebAlgebra, PlanarAlgebra, PropagatingIdeal - -# Descent algebra -lazy_import('sage.combinat.descent_algebra', 'DescentAlgebra') - -# Vector Partitions -lazy_import('sage.combinat.vector_partition', - ['VectorPartition', 'VectorPartitions']) - -# Similarity class types -from .similarity_class_type import PrimarySimilarityClassType, PrimarySimilarityClassTypes, SimilarityClassType, SimilarityClassTypes - -# Cores -from .core import Core, Cores - -# Tableaux -lazy_import('sage.combinat.tableau', - ["Tableau", "SemistandardTableau", "StandardTableau", "RowStandardTableau", "IncreasingTableau", - "Tableaux", "SemistandardTableaux", "StandardTableaux", "RowStandardTableaux", "IncreasingTableaux"]) -from .skew_tableau import SkewTableau, SkewTableaux, StandardSkewTableaux, SemistandardSkewTableaux -from .ribbon_shaped_tableau import RibbonShapedTableau, RibbonShapedTableaux, StandardRibbonShapedTableaux -from .ribbon_tableau import RibbonTableaux, RibbonTableau, MultiSkewTableaux, MultiSkewTableau, SemistandardMultiSkewTableaux -from .composition_tableau import CompositionTableau, CompositionTableaux - -lazy_import('sage.combinat.tableau_tuple', - ['TableauTuple', 'StandardTableauTuple', 'RowStandardTableauTuple', - 'TableauTuples', 'StandardTableauTuples', 'RowStandardTableauTuples']) -from .k_tableau import WeakTableau, WeakTableaux, StrongTableau, StrongTableaux -lazy_import('sage.combinat.lr_tableau', ['LittlewoodRichardsonTableau', - 'LittlewoodRichardsonTableaux']) -lazy_import('sage.combinat.shifted_primed_tableau', ['ShiftedPrimedTableaux', - 'ShiftedPrimedTableau']) - -# SuperTableaux -lazy_import('sage.combinat.super_tableau', - ["StandardSuperTableau", "SemistandardSuperTableau", "StandardSuperTableaux", "SemistandardSuperTableaux"]) - -# Words -from .words.all import * - -lazy_import('sage.combinat.subword', 'Subwords') - -from .graph_path import GraphPaths - -# Tuples -from .tuple import Tuples, UnorderedTuples - -# Alternating sign matrices -lazy_import('sage.combinat.alternating_sign_matrix', ('AlternatingSignMatrix', - 'AlternatingSignMatrices', - 'MonotoneTriangles', - 'ContreTableaux', - 'TruncatedStaircases')) - -# Decorated Permutations -lazy_import('sage.combinat.decorated_permutation', ('DecoratedPermutation', - 'DecoratedPermutations')) - -# Plane Partitions -lazy_import('sage.combinat.plane_partition', ('PlanePartition', - 'PlanePartitions')) - -# Parking Functions -lazy_import('sage.combinat.non_decreasing_parking_function', - ['NonDecreasingParkingFunctions', 'NonDecreasingParkingFunction']) -lazy_import('sage.combinat.parking_functions', - ['ParkingFunctions', 'ParkingFunction']) - -# Trees and Tamari interval posets -from .ordered_tree import (OrderedTree, OrderedTrees, - LabelledOrderedTree, LabelledOrderedTrees) -from .binary_tree import (BinaryTree, BinaryTrees, - LabelledBinaryTree, LabelledBinaryTrees) -lazy_import('sage.combinat.interval_posets', ['TamariIntervalPoset', 'TamariIntervalPosets']) -lazy_import('sage.combinat.rooted_tree', ('RootedTree', 'RootedTrees', - 'LabelledRootedTree', 'LabelledRootedTrees')) - -from .combination import Combinations - -from .set_partition import SetPartition, SetPartitions -from .set_partition_ordered import OrderedSetPartition, OrderedSetPartitions -lazy_import('sage.combinat.multiset_partition_into_sets_ordered', - ['OrderedMultisetPartitionIntoSets', - 'OrderedMultisetPartitionsIntoSets']) -from .subset import Subsets, subsets, powerset, uniq -from .necklace import Necklaces -lazy_import('sage.combinat.dyck_word', ('DyckWords', 'DyckWord')) -lazy_import('sage.combinat.nu_dyck_word', ('NuDyckWords', 'NuDyckWord')) -from .sloane_functions import sloane -lazy_import('sage.combinat.superpartition', ('SuperPartition', - 'SuperPartitions')) - -lazy_import('sage.combinat.parallelogram_polyomino', - ['ParallelogramPolyomino', 'ParallelogramPolyominoes']) - -from .root_system.all import * -from .sf.all import * -from .ncsf_qsym.all import * -from .ncsym.all import * -lazy_import('sage.combinat.fqsym', 'FreeQuasisymmetricFunctions') -from .matrices.all import * -# Posets -from .posets.all import * - -# Cluster Algebras and Quivers -from .cluster_algebra_quiver.all import * - -from . import ranker - -from .integer_vector import IntegerVectors -from .integer_vector_weighted import WeightedIntegerVectors -from .integer_vectors_mod_permgroup import IntegerVectorsModPermutationGroup - -lazy_import('sage.combinat.q_analogues', ['gaussian_binomial', 'q_binomial']) - -from .species.all import * - -lazy_import('sage.combinat.kazhdan_lusztig', 'KazhdanLusztigPolynomial') - -lazy_import('sage.combinat.degree_sequences', 'DegreeSequences') - -lazy_import('sage.combinat.cyclic_sieving_phenomenon', - ['CyclicSievingPolynomial', 'CyclicSievingCheck']) - -lazy_import('sage.combinat.sidon_sets', 'sidon_sets') - -# Puzzles -lazy_import('sage.combinat.knutson_tao_puzzles', 'KnutsonTaoPuzzleSolver') - -# Gelfand-Tsetlin patterns -lazy_import('sage.combinat.gelfand_tsetlin_patterns', - ['GelfandTsetlinPattern', 'GelfandTsetlinPatterns']) - -# Finite State Machines (Automaton, Transducer) -lazy_import('sage.combinat.finite_state_machine', - ['Automaton', 'Transducer', 'FiniteStateMachine']) -lazy_import('sage.combinat.finite_state_machine_generators', - ['automata', 'transducers']) - -# Sequences -lazy_import('sage.combinat.binary_recurrence_sequences', - 'BinaryRecurrenceSequence') -lazy_import('sage.combinat.recognizable_series', 'RecognizableSeriesSpace') -lazy_import('sage.combinat.regular_sequence', 'RegularSequenceRing') - -# Six Vertex Model -lazy_import('sage.combinat.six_vertex_model', 'SixVertexModel') - -# sine-Gordon Y-systems -lazy_import('sage.combinat.sine_gordon', 'SineGordonYsystem') - -# Fully Packed Loop -lazy_import('sage.combinat.fully_packed_loop', ['FullyPackedLoop', 'FullyPackedLoops']) - -# Subword complex and cluster complex -lazy_import('sage.combinat.subword_complex', 'SubwordComplex') -lazy_import("sage.combinat.cluster_complex", "ClusterComplex") - -# Constellations -lazy_import('sage.combinat.constellation', ['Constellation', 'Constellations']) - -# Growth diagrams -lazy_import('sage.combinat.growth', 'GrowthDiagram') - -# Path Tableaux -lazy_import('sage.combinat.path_tableaux', 'catalog', as_='path_tableaux') - -# Bijectionist -lazy_import('sage.combinat.bijectionist', 'Bijectionist') +from .all__sagemath_combinat import * +from .all__sagemath_modules import * +from .all__sagemath_graphs import * diff --git a/src/sage/combinat/all__sagemath_categories.py b/src/sage/combinat/all__sagemath_categories.py new file mode 100644 index 00000000000..f259743f620 --- /dev/null +++ b/src/sage/combinat/all__sagemath_categories.py @@ -0,0 +1,29 @@ +# Integer lists +from .matrices.all__sagemath_categories import * + +from .integer_lists import IntegerListsLex +from .integer_vector import IntegerVectors + +from .combinat import (CombinatorialClass, CombinatorialObject, + MapCombinatorialClass, + bell_number, bell_polynomial, bernoulli_polynomial, + catalan_number, euler_number, + fibonacci, fibonacci_sequence, fibonacci_xrange, + lucas_number1, lucas_number2, + number_of_tuples, number_of_unordered_tuples, + polygonal_number, stirling_number1, stirling_number2, + tuples, unordered_tuples) + +lazy_import('sage.combinat.combinat', + ('InfiniteAbstractCombinatorialClass', 'UnionCombinatorialClass', + 'FilteredCombinatorialClass'), + deprecation=(31545, 'this class is deprecated, do not use')) + +from .combination import Combinations +from .composition import Composition, Compositions +from .permutation import Permutation, Permutations, Arrangements, CyclicPermutations, CyclicPermutationsOfPartition +from .subset import Subsets, subsets, powerset, uniq +from .tuple import Tuples, UnorderedTuples + + +from .dlx import DLXMatrix, AllExactCovers, OneExactCover diff --git a/src/sage/combinat/all__sagemath_combinat.py b/src/sage/combinat/all__sagemath_combinat.py new file mode 100644 index 00000000000..9e06eeb0c08 --- /dev/null +++ b/src/sage/combinat/all__sagemath_combinat.py @@ -0,0 +1,197 @@ +from .all__sagemath_categories import * + +from sage.misc.lazy_import import lazy_import + +from .expnums import expnums + +from sage.combinat.chas.all import * +from sage.combinat.crystals.all import * +from .rigged_configurations.all import * + +# Free modules and friends +from .debruijn_sequence import DeBruijnSequences + +lazy_import('sage.combinat.schubert_polynomial', 'SchubertPolynomialRing') +lazy_import('sage.combinat.key_polynomial', 'KeyPolynomialBasis', as_='KeyPolynomials') +lazy_import('sage.combinat.symmetric_group_algebra', ['SymmetricGroupAlgebra', 'HeckeAlgebraSymmetricGroupT']) +lazy_import('sage.combinat.symmetric_group_representations', ['SymmetricGroupRepresentation', 'SymmetricGroupRepresentations']) + +# Permutations +lazy_import('sage.combinat.affine_permutation', 'AffinePermutationGroup') +lazy_import('sage.combinat.colored_permutations', ['ColoredPermutations', + 'SignedPermutation', + 'SignedPermutations']) +from .derangements import Derangements +lazy_import('sage.combinat.baxter_permutations', ['BaxterPermutations']) + +# RSK +from .rsk import RSK, RSK_inverse, robinson_schensted_knuth, robinson_schensted_knuth_inverse, InsertionRules + +# HillmanGrassl +lazy_import("sage.combinat.hillman_grassl", ["WeakReversePlanePartition", "WeakReversePlanePartitions"]) + +# PerfectMatchings +from .perfect_matching import PerfectMatching, PerfectMatchings + +# Compositions +from .composition_signed import SignedCompositions + +# Partitions +from .partition import (Partition, Partitions, PartitionsInBox, + OrderedPartitions, PartitionsGreatestLE, + PartitionsGreatestEQ, number_of_partitions) + +lazy_import('sage.combinat.partition_tuple', ['PartitionTuple', 'PartitionTuples']) +lazy_import('sage.combinat.partition_kleshchev', ['KleshchevPartitions']) +lazy_import('sage.combinat.skew_partition', ['SkewPartition', 'SkewPartitions']) + +# Partition algebra +lazy_import('sage.combinat.partition_algebra', ['SetPartitionsAk', 'SetPartitionsPk', 'SetPartitionsTk', + 'SetPartitionsIk', 'SetPartitionsBk', 'SetPartitionsSk', + 'SetPartitionsRk', 'SetPartitionsPRk']) + +# Raising operators +lazy_import('sage.combinat.partition_shifting_algebras', 'ShiftingOperatorAlgebra') + +# Diagram algebra +lazy_import('sage.combinat.diagram_algebras', ['PartitionAlgebra', 'BrauerAlgebra', 'TemperleyLiebAlgebra', + 'PlanarAlgebra', 'PropagatingIdeal']) + +# Descent algebra +lazy_import('sage.combinat.descent_algebra', 'DescentAlgebra') + +# Vector Partitions +lazy_import('sage.combinat.vector_partition', + ['VectorPartition', 'VectorPartitions']) + +# Similarity class types +lazy_import('sage.combinat.similarity_class_type', ['PrimarySimilarityClassType', 'PrimarySimilarityClassTypes', + 'SimilarityClassType', 'SimilarityClassTypes']) + +# Cores +from .core import Core, Cores + +# Tableaux +lazy_import('sage.combinat.tableau', + ["Tableau", "SemistandardTableau", "StandardTableau", "RowStandardTableau", "IncreasingTableau", + "Tableaux", "SemistandardTableaux", "StandardTableaux", "RowStandardTableaux", "IncreasingTableaux"]) +from .skew_tableau import SkewTableau, SkewTableaux, StandardSkewTableaux, SemistandardSkewTableaux +from .ribbon_shaped_tableau import RibbonShapedTableau, RibbonShapedTableaux, StandardRibbonShapedTableaux +from .ribbon_tableau import RibbonTableaux, RibbonTableau, MultiSkewTableaux, MultiSkewTableau, SemistandardMultiSkewTableaux +from .composition_tableau import CompositionTableau, CompositionTableaux + +lazy_import('sage.combinat.tableau_tuple', + ['TableauTuple', 'StandardTableauTuple', 'RowStandardTableauTuple', + 'TableauTuples', 'StandardTableauTuples', 'RowStandardTableauTuples']) +from .k_tableau import WeakTableau, WeakTableaux, StrongTableau, StrongTableaux +lazy_import('sage.combinat.lr_tableau', ['LittlewoodRichardsonTableau', + 'LittlewoodRichardsonTableaux']) +lazy_import('sage.combinat.shifted_primed_tableau', ['ShiftedPrimedTableaux', + 'ShiftedPrimedTableau']) + +# SuperTableaux +lazy_import('sage.combinat.super_tableau', + ["StandardSuperTableau", "SemistandardSuperTableau", "StandardSuperTableaux", "SemistandardSuperTableaux"]) + +# Words +from .words.all import * + +lazy_import('sage.combinat.subword', 'Subwords') + +# Alternating sign matrices +lazy_import('sage.combinat.alternating_sign_matrix', ('AlternatingSignMatrix', + 'AlternatingSignMatrices', + 'MonotoneTriangles', + 'ContreTableaux', + 'TruncatedStaircases')) + +# Decorated Permutations +lazy_import('sage.combinat.decorated_permutation', ('DecoratedPermutation', + 'DecoratedPermutations')) + +# Plane Partitions +lazy_import('sage.combinat.plane_partition', ('PlanePartition', + 'PlanePartitions')) + +# Parking Functions +lazy_import('sage.combinat.non_decreasing_parking_function', + ['NonDecreasingParkingFunctions', 'NonDecreasingParkingFunction']) +lazy_import('sage.combinat.parking_functions', + ['ParkingFunctions', 'ParkingFunction']) + +from .set_partition import SetPartition, SetPartitions +from .set_partition_ordered import OrderedSetPartition, OrderedSetPartitions +lazy_import('sage.combinat.multiset_partition_into_sets_ordered', + ['OrderedMultisetPartitionIntoSets', + 'OrderedMultisetPartitionsIntoSets']) +from .necklace import Necklaces +lazy_import('sage.combinat.dyck_word', ('DyckWords', 'DyckWord')) +lazy_import('sage.combinat.nu_dyck_word', ('NuDyckWords', 'NuDyckWord')) +from .sloane_functions import sloane +lazy_import('sage.combinat.superpartition', ('SuperPartition', + 'SuperPartitions')) + +lazy_import('sage.combinat.parallelogram_polyomino', + ['ParallelogramPolyomino', 'ParallelogramPolyominoes']) + +from .sf.all import * +from .ncsf_qsym.all import * +from .ncsym.all import * +lazy_import('sage.combinat.fqsym', 'FreeQuasisymmetricFunctions') +from .matrices.all import * + +lazy_import('sage.combinat.integer_vector_weighted', 'WeightedIntegerVectors') +lazy_import('sage.combinat.integer_vectors_mod_permgroup', 'IntegerVectorsModPermutationGroup') + +lazy_import('sage.combinat.q_analogues', ['gaussian_binomial', 'q_binomial']) + +from .species.all import * + +lazy_import('sage.combinat.kazhdan_lusztig', 'KazhdanLusztigPolynomial') + +lazy_import('sage.combinat.degree_sequences', 'DegreeSequences') + +lazy_import('sage.combinat.cyclic_sieving_phenomenon', + ['CyclicSievingPolynomial', 'CyclicSievingCheck']) + +lazy_import('sage.combinat.sidon_sets', 'sidon_sets') + +# Puzzles +lazy_import('sage.combinat.knutson_tao_puzzles', 'KnutsonTaoPuzzleSolver') + +# Gelfand-Tsetlin patterns +lazy_import('sage.combinat.gelfand_tsetlin_patterns', + ['GelfandTsetlinPattern', 'GelfandTsetlinPatterns']) + +# Sequences +lazy_import('sage.combinat.binary_recurrence_sequences', + 'BinaryRecurrenceSequence') +lazy_import('sage.combinat.recognizable_series', 'RecognizableSeriesSpace') +lazy_import('sage.combinat.regular_sequence', 'RegularSequenceRing') + + + +# Six Vertex Model +lazy_import('sage.combinat.six_vertex_model', 'SixVertexModel') + +# sine-Gordon Y-systems +lazy_import('sage.combinat.sine_gordon', 'SineGordonYsystem') + +# Fully Packed Loop +lazy_import('sage.combinat.fully_packed_loop', ['FullyPackedLoop', 'FullyPackedLoops']) + +# Subword complex and cluster complex +lazy_import('sage.combinat.subword_complex', 'SubwordComplex') +lazy_import("sage.combinat.cluster_complex", "ClusterComplex") + +# Constellations +lazy_import('sage.combinat.constellation', ['Constellation', 'Constellations']) + +# Growth diagrams +lazy_import('sage.combinat.growth', 'GrowthDiagram') + +# Path Tableaux +lazy_import('sage.combinat.path_tableaux', 'catalog', as_='path_tableaux') + +# Bijectionist +lazy_import('sage.combinat.bijectionist', 'Bijectionist') diff --git a/src/sage/combinat/all__sagemath_flint.py b/src/sage/combinat/all__sagemath_flint.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/combinat/all__sagemath_gap.py b/src/sage/combinat/all__sagemath_gap.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/combinat/all__sagemath_graphs.py b/src/sage/combinat/all__sagemath_graphs.py new file mode 100644 index 00000000000..2c022af4663 --- /dev/null +++ b/src/sage/combinat/all__sagemath_graphs.py @@ -0,0 +1,31 @@ +from .all__sagemath_categories import * + +from sage.misc.lazy_import import lazy_import + +# Posets +from .posets.all import * + +# Trees and Tamari interval posets +from .ordered_tree import (OrderedTree, OrderedTrees, + LabelledOrderedTree, LabelledOrderedTrees) +from .binary_tree import (BinaryTree, BinaryTrees, + LabelledBinaryTree, LabelledBinaryTrees) +lazy_import('sage.combinat.rooted_tree', ('RootedTree', 'RootedTrees', + 'LabelledRootedTree', 'LabelledRootedTrees')) +lazy_import('sage.combinat.interval_posets', ['TamariIntervalPoset', 'TamariIntervalPosets']) + +from .graph_path import GraphPaths + +from .yang_baxter_graph import YangBaxterGraph + +# block designs, etc +from sage.combinat.designs.all import * + +# Cluster Algebras and Quivers +from .cluster_algebra_quiver.all import * + +# Finite State Machines (Automaton, Transducer) +lazy_import('sage.combinat.finite_state_machine', + ['Automaton', 'Transducer', 'FiniteStateMachine']) +lazy_import('sage.combinat.finite_state_machine_generators', + ['automata', 'transducers']) diff --git a/src/sage/combinat/all__sagemath_modules.py b/src/sage/combinat/all__sagemath_modules.py new file mode 100644 index 00000000000..540552d4473 --- /dev/null +++ b/src/sage/combinat/all__sagemath_modules.py @@ -0,0 +1,6 @@ +from .all__sagemath_categories import * + +from .free_module import CombinatorialFreeModule +from . import ranker + +from .root_system.all import * diff --git a/src/sage/combinat/matrices/all.py b/src/sage/combinat/matrices/all.py index 0f6adbb5355..45f3d0018f7 100644 --- a/src/sage/combinat/matrices/all.py +++ b/src/sage/combinat/matrices/all.py @@ -10,10 +10,14 @@ from sage.misc.namespace_package import install_doc install_doc(__package__, __doc__) +from .all__sagemath_categories import * + from sage.misc.lazy_import import lazy_import lazy_import('sage.combinat.matrices.latin', ['LatinSquare', 'LatinSquare_generator']) -lazy_import('sage.combinat.matrices.dlxcpp', 'DLXCPP') lazy_import('sage.combinat.matrices.hadamard_matrix', ['hadamard_matrix', 'hadamard_matrix_www']) + +del install_doc +del lazy_import diff --git a/src/sage/combinat/matrices/all__sagemath_categories.py b/src/sage/combinat/matrices/all__sagemath_categories.py new file mode 100644 index 00000000000..a27a2bb4ecb --- /dev/null +++ b/src/sage/combinat/matrices/all__sagemath_categories.py @@ -0,0 +1,3 @@ +from sage.misc.lazy_import import lazy_import + +lazy_import('sage.combinat.matrices.dlxcpp', 'DLXCPP') diff --git a/src/sage/combinat/ncsf_qsym/all.py b/src/sage/combinat/ncsf_qsym/all.py index db6cb1f065e..4d09a08bbe9 100644 --- a/src/sage/combinat/ncsf_qsym/all.py +++ b/src/sage/combinat/ncsf_qsym/all.py @@ -12,5 +12,10 @@ from sage.misc.namespace_package import install_doc install_doc(__package__, __doc__) -from .qsym import QuasiSymmetricFunctions -from .ncsf import NonCommutativeSymmetricFunctions +from sage.misc.lazy_import import lazy_import + +lazy_import('sage.combinat.ncsf_qsym.qsym', 'QuasiSymmetricFunctions') +lazy_import('sage.combinat.ncsf_qsym.ncsf', 'NonCommutativeSymmetricFunctions') + +del install_doc +del lazy_import diff --git a/src/sage/combinat/ncsym/all.py b/src/sage/combinat/ncsym/all.py index 7a174e45ccf..864a6ac6960 100644 --- a/src/sage/combinat/ncsym/all.py +++ b/src/sage/combinat/ncsym/all.py @@ -11,5 +11,10 @@ from sage.misc.namespace_package import install_doc install_doc(__package__, __doc__) -from .ncsym import SymmetricFunctionsNonCommutingVariables -from .dual import SymmetricFunctionsNonCommutingVariablesDual +from sage.misc.lazy_import import lazy_import + +lazy_import('sage.combinat.ncsym.ncsym', 'SymmetricFunctionsNonCommutingVariables') +lazy_import('sage.combinat.ncsym.dual', 'SymmetricFunctionsNonCommutingVariablesDual') + +del install_doc +del lazy_import diff --git a/src/sage/combinat/posets/all__sagemath_flint.py b/src/sage/combinat/posets/all__sagemath_flint.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/combinat/root_system/all.py b/src/sage/combinat/root_system/all.py index 263a4d916d2..95500f05cc6 100644 --- a/src/sage/combinat/root_system/all.py +++ b/src/sage/combinat/root_system/all.py @@ -122,9 +122,9 @@ from sage.misc.lazy_import import lazy_import from .cartan_type import CartanType -from .dynkin_diagram import DynkinDiagram -from .cartan_matrix import CartanMatrix -from .coxeter_matrix import CoxeterMatrix +lazy_import('sage.combinat.root_system.dynkin_diagram', 'DynkinDiagram') +lazy_import('sage.combinat.root_system.cartan_matrix', 'CartanMatrix') +lazy_import('sage.combinat.root_system.coxeter_matrix', 'CoxeterMatrix') from .coxeter_type import CoxeterType from .root_system import RootSystem, WeylDim lazy_import('sage.combinat.root_system.weyl_group', ['WeylGroup', diff --git a/src/sage/combinat/root_system/all__sagemath_gap.py b/src/sage/combinat/root_system/all__sagemath_gap.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/combinat/words/all.py b/src/sage/combinat/words/all.py index 687b572c8e5..db32945a0f6 100644 --- a/src/sage/combinat/words/all.py +++ b/src/sage/combinat/words/all.py @@ -43,11 +43,16 @@ from sage.misc.namespace_package import install_doc install_doc(__package__, __doc__) +from sage.misc.lazy_import import lazy_import + from .alphabet import Alphabet, build_alphabet from .morphism import WordMorphism -from .paths import WordPaths +lazy_import('sage.combinat.words.paths', 'WordPaths') from .word import Word from .word_options import WordOptions from .word_generators import words from .words import Words, FiniteWords, InfiniteWords from .lyndon_word import LyndonWord, LyndonWords, StandardBracketedLyndonWords + +del install_doc +del lazy_import diff --git a/src/sage/data_structures/all.py b/src/sage/data_structures/all.py index 43c5de52d5a..ae1d0ab8b43 100644 --- a/src/sage/data_structures/all.py +++ b/src/sage/data_structures/all.py @@ -1,2 +1 @@ - -from .bitset import Bitset, FrozenBitset +from .all__sagemath_categories import * diff --git a/src/sage/data_structures/all__sagemath_categories.py b/src/sage/data_structures/all__sagemath_categories.py new file mode 100644 index 00000000000..6140cf5b919 --- /dev/null +++ b/src/sage/data_structures/all__sagemath_categories.py @@ -0,0 +1 @@ +from .bitset import Bitset, FrozenBitset diff --git a/src/sage/data_structures/all__sagemath_combinat.py b/src/sage/data_structures/all__sagemath_combinat.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/data_structures/all__sagemath_flint.py b/src/sage/data_structures/all__sagemath_flint.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/databases/all__sagemath_graphs.py b/src/sage/databases/all__sagemath_graphs.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/dynamics/all.py b/src/sage/dynamics/all.py index e5c553a3d54..1dbd9579e30 100644 --- a/src/sage/dynamics/all.py +++ b/src/sage/dynamics/all.py @@ -20,10 +20,15 @@ from sage.misc.namespace_package import install_doc install_doc(__package__, __doc__) +from .all__sagemath_schemes import * + +try: + from .all__sagemath_symbolics import * +except ImportError: + pass + from sage.misc.lazy_import import lazy_import -from sage.dynamics.arithmetic_dynamics.all import * -from sage.dynamics.complex_dynamics.all import * from sage.dynamics.cellular_automata.all import * # Discrete dynamical systems diff --git a/src/sage/dynamics/all__sagemath_schemes.py b/src/sage/dynamics/all__sagemath_schemes.py new file mode 100644 index 00000000000..b1eac4ead2f --- /dev/null +++ b/src/sage/dynamics/all__sagemath_schemes.py @@ -0,0 +1 @@ +from sage.dynamics.arithmetic_dynamics.all import * diff --git a/src/sage/dynamics/all__sagemath_symbolics.py b/src/sage/dynamics/all__sagemath_symbolics.py new file mode 100644 index 00000000000..cd94b937f2f --- /dev/null +++ b/src/sage/dynamics/all__sagemath_symbolics.py @@ -0,0 +1,4 @@ +from sage.misc.lazy_import import lazy_import + +lazy_import('sage.dynamics.complex_dynamics.mandel_julia', + ["mandelbrot_plot", "external_ray", "kneading_sequence", "julia_plot"]) diff --git a/src/sage/ext/all__sagemath_categories.py b/src/sage/ext/all__sagemath_categories.py new file mode 100644 index 00000000000..6210c1c60cb --- /dev/null +++ b/src/sage/ext/all__sagemath_categories.py @@ -0,0 +1,2 @@ +from sage.ext.fast_callable import fast_callable +from sage.ext.fast_eval import fast_float diff --git a/src/sage/ext/all__sagemath_modules.py b/src/sage/ext/all__sagemath_modules.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/ext/all__sagemath_pari.py b/src/sage/ext/all__sagemath_pari.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/ext/all__sagemath_symbolics.py b/src/sage/ext/all__sagemath_symbolics.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/ext_data/all__sagemath_gap.py b/src/sage/ext_data/all__sagemath_gap.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/ext_data/all__sagemath_singular.py b/src/sage/ext_data/all__sagemath_singular.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/games/all.py b/src/sage/games/all.py index e3e31bcf03e..6cf915addde 100644 --- a/src/sage/games/all.py +++ b/src/sage/games/all.py @@ -1,2 +1,4 @@ -from .sudoku import Sudoku, sudoku -from .hexad import Minimog +from sage.misc.lazy_import import lazy_import + +lazy_import('sage.games.sudoku', ['Sudoku', 'sudoku']) +lazy_import('sage.games.hexad', ['Minimog']) diff --git a/src/sage/geometry/all.py b/src/sage/geometry/all.py index 3b7dcf756d8..e9f5e568a15 100644 --- a/src/sage/geometry/all.py +++ b/src/sage/geometry/all.py @@ -1,19 +1,12 @@ -from .polyhedron.all import * -from .hyperbolic_space.all import * -from .polyhedral_complex import PolyhedralComplex -from sage.misc.lazy_import import lazy_import +from .all__sagemath_polyhedra import * -lazy_import('sage.geometry.cone', ['Cone', 'random_cone']) -lazy_import('sage.geometry', 'cone_catalog', 'cones') -lazy_import('sage.geometry.fan', ['Fan', 'FaceFan', 'NormalFan', 'Fan2d']) -lazy_import('sage.geometry.fan_morphism', 'FanMorphism') -lazy_import('sage.geometry.lattice_polytope', - ['LatticePolytope', 'NefPartition', - 'ReflexivePolytope', 'ReflexivePolytopes']) -lazy_import('sage.geometry', 'lattice_polytope') -lazy_import('sage.geometry.toric_lattice', 'ToricLattice') -lazy_import('sage.geometry', 'toric_plotter') -lazy_import('sage.geometry.voronoi_diagram', 'VoronoiDiagram') -lazy_import('sage.geometry.ribbon_graph', 'RibbonGraph') -lazy_import('sage.geometry.hyperplane_arrangement.arrangement', 'HyperplaneArrangements') -lazy_import('sage.geometry.hyperplane_arrangement.library', 'hyperplane_arrangements') +try: + from .all__sagemath_symbolics import * +except ImportError: + pass + + +try: + from .all__sagemath_gap import * +except ImportError: + pass diff --git a/src/sage/geometry/all__sagemath_categories.py b/src/sage/geometry/all__sagemath_categories.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/geometry/all__sagemath_gap.py b/src/sage/geometry/all__sagemath_gap.py new file mode 100644 index 00000000000..411a7c76d9a --- /dev/null +++ b/src/sage/geometry/all__sagemath_gap.py @@ -0,0 +1,4 @@ + +from sage.misc.lazy_import import lazy_import + +lazy_import('sage.geometry.ribbon_graph', 'RibbonGraph') diff --git a/src/sage/geometry/all__sagemath_linbox.py b/src/sage/geometry/all__sagemath_linbox.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/geometry/all__sagemath_modules.py b/src/sage/geometry/all__sagemath_modules.py new file mode 100644 index 00000000000..9490f68a162 --- /dev/null +++ b/src/sage/geometry/all__sagemath_modules.py @@ -0,0 +1,3 @@ +from sage.misc.lazy_import import lazy_import + +lazy_import('sage.geometry.toric_lattice', 'ToricLattice') diff --git a/src/sage/geometry/all__sagemath_polyhedra.py b/src/sage/geometry/all__sagemath_polyhedra.py new file mode 100644 index 00000000000..1bc471abd2e --- /dev/null +++ b/src/sage/geometry/all__sagemath_polyhedra.py @@ -0,0 +1,19 @@ +from .all__sagemath_modules import * + +from .polyhedron.all import * +from sage.misc.lazy_import import lazy_import + +lazy_import('sage.geometry.polyhedral_complex', 'PolyhedralComplex') +lazy_import('sage.geometry.cone', ['Cone', 'random_cone']) +lazy_import('sage.geometry', 'cone_catalog', 'cones') +lazy_import('sage.geometry.fan', ['Fan', 'FaceFan', 'NormalFan', 'Fan2d']) +lazy_import('sage.geometry.fan_morphism', 'FanMorphism') +lazy_import('sage.geometry.lattice_polytope', + ['LatticePolytope', 'NefPartition', + 'ReflexivePolytope', 'ReflexivePolytopes']) +lazy_import('sage.geometry', 'lattice_polytope') +lazy_import('sage.geometry', 'toric_plotter') +lazy_import('sage.geometry.voronoi_diagram', 'VoronoiDiagram') +lazy_import('sage.geometry.hyperplane_arrangement.arrangement', 'HyperplaneArrangements') +lazy_import('sage.geometry.hyperplane_arrangement.library', 'hyperplane_arrangements') +del lazy_import diff --git a/src/sage/geometry/all__sagemath_symbolics.py b/src/sage/geometry/all__sagemath_symbolics.py new file mode 100644 index 00000000000..fb2ddf22675 --- /dev/null +++ b/src/sage/geometry/all__sagemath_symbolics.py @@ -0,0 +1,7 @@ +from sage.misc.lazy_import import lazy_import + +lazy_import('sage.geometry.hyperbolic_space.hyperbolic_interface', 'HyperbolicPlane') + +from sage.geometry.riemannian_manifolds.all import * + +del lazy_import diff --git a/src/sage/graphs/all__sagemath_flint.py b/src/sage/graphs/all__sagemath_flint.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/groups/abelian_gps/all.py b/src/sage/groups/abelian_gps/all.py index 2bb91f85f3b..98374be35ea 100644 --- a/src/sage/groups/abelian_gps/all.py +++ b/src/sage/groups/abelian_gps/all.py @@ -20,10 +20,5 @@ # http://www.gnu.org/licenses/ #***************************************************************************** -#from dual_abelian_group import DualAbelianGroup -from .abelian_group import AbelianGroup, word_problem -from .values import AbelianGroupWithValues - -# TODO: -# Implement group homset, conversion of generator images to morphism -from .abelian_group_morphism import AbelianGroupMorphism +from .all__sagemath_modules import * +from .all__sagemath_gap import * diff --git a/src/sage/groups/abelian_gps/all__sagemath_gap.py b/src/sage/groups/abelian_gps/all__sagemath_gap.py new file mode 100644 index 00000000000..0088c48b234 --- /dev/null +++ b/src/sage/groups/abelian_gps/all__sagemath_gap.py @@ -0,0 +1,5 @@ + +# TODO: +# Implement group homset, conversion of generator images to morphism + +from .abelian_group_morphism import AbelianGroupMorphism diff --git a/src/sage/groups/abelian_gps/all__sagemath_modules.py b/src/sage/groups/abelian_gps/all__sagemath_modules.py new file mode 100644 index 00000000000..6ea25bb7085 --- /dev/null +++ b/src/sage/groups/abelian_gps/all__sagemath_modules.py @@ -0,0 +1,4 @@ + +#from dual_abelian_group import DualAbelianGroup +from .abelian_group import AbelianGroup, word_problem +from .values import AbelianGroupWithValues diff --git a/src/sage/groups/all.py b/src/sage/groups/all.py index 4361403dccc..05055ce1883 100644 --- a/src/sage/groups/all.py +++ b/src/sage/groups/all.py @@ -1,37 +1,4 @@ -from sage.misc.lazy_import import lazy_import - -from .pari_group import PariGroup - -from .matrix_gps.all import * -from .abelian_gps.all import * - -from .perm_gps.all import * - -from .generic import (discrete_log, discrete_log_rho, discrete_log_lambda, - linear_relation, multiple, multiples) - -lazy_import('sage.groups.class_function', 'ClassFunction') - -from .additive_abelian.all import * - -lazy_import('sage.groups.conjugacy_classes', ['ConjugacyClass', 'ConjugacyClassGAP']) - -lazy_import('sage.groups.free_group', 'FreeGroup') -lazy_import('sage.groups.braid', 'BraidGroup') -lazy_import('sage.groups.cubic_braid', 'CubicBraidGroup') -lazy_import('sage.groups.cubic_braid', 'AssionGroupU') -lazy_import('sage.groups.cubic_braid', 'AssionGroupS') - -lazy_import('sage.groups.affine_gps.affine_group', 'AffineGroup') -lazy_import('sage.groups.affine_gps.euclidean_group', 'EuclideanGroup') - -lazy_import('sage.groups.artin', 'ArtinGroup') -lazy_import('sage.groups.raag', 'RightAngledArtinGroup') - -lazy_import('sage.groups', 'groups_catalog', 'groups') - -lazy_import('sage.groups.semimonomial_transformations.semimonomial_transformation_group', 'SemimonomialTransformationGroup') - -lazy_import('sage.groups.group_exp', ['GroupExp', 'GroupExp_Class', 'GroupExpElement']) - -lazy_import('sage.groups.group_semidirect_product', ['GroupSemidirectProduct', 'GroupSemidirectProductElement']) +from .all__sagemath_modules import * +from .all__sagemath_gap import * +from .all__sagemath_pari import * +from .all__sagemath_groups import * diff --git a/src/sage/groups/all__sagemath_categories.py b/src/sage/groups/all__sagemath_categories.py new file mode 100644 index 00000000000..82406522b6f --- /dev/null +++ b/src/sage/groups/all__sagemath_categories.py @@ -0,0 +1,10 @@ +from .all__sagemath_objects import * + +from .generic import (discrete_log, discrete_log_rho, discrete_log_lambda, + linear_relation, multiple, multiples) + +from sage.misc.lazy_import import lazy_import + +lazy_import('sage.groups', 'groups_catalog', 'groups') + +del lazy_import diff --git a/src/sage/groups/all__sagemath_combinat.py b/src/sage/groups/all__sagemath_combinat.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/groups/all__sagemath_gap.py b/src/sage/groups/all__sagemath_gap.py new file mode 100644 index 00000000000..fc243cb01df --- /dev/null +++ b/src/sage/groups/all__sagemath_gap.py @@ -0,0 +1,3 @@ + +from .perm_gps.all import * +from .abelian_gps.all__sagemath_gap import * diff --git a/src/sage/groups/all__sagemath_graphs.py b/src/sage/groups/all__sagemath_graphs.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/groups/all__sagemath_groups.py b/src/sage/groups/all__sagemath_groups.py new file mode 100644 index 00000000000..396a558de4c --- /dev/null +++ b/src/sage/groups/all__sagemath_groups.py @@ -0,0 +1,29 @@ +from .all__sagemath_modules import * + +try: + from .all__sagemath_pari import * +except ImportError: + pass + +from .all__sagemath_gap import * + +from sage.misc.lazy_import import lazy_import + +lazy_import('sage.groups.class_function', 'ClassFunction') + +lazy_import('sage.groups.conjugacy_classes', ['ConjugacyClass', 'ConjugacyClassGAP']) + +lazy_import('sage.groups.free_group', 'FreeGroup') +lazy_import('sage.groups.braid', 'BraidGroup') +lazy_import('sage.groups.cubic_braid', 'CubicBraidGroup') +lazy_import('sage.groups.cubic_braid', 'AssionGroupU') +lazy_import('sage.groups.cubic_braid', 'AssionGroupS') + +lazy_import('sage.groups.artin', 'ArtinGroup') +lazy_import('sage.groups.raag', 'RightAngledArtinGroup') + +lazy_import('sage.groups.semimonomial_transformations.semimonomial_transformation_group', 'SemimonomialTransformationGroup') + +lazy_import('sage.groups.group_exp', ['GroupExp', 'GroupExp_Class', 'GroupExpElement']) + +lazy_import('sage.groups.group_semidirect_product', ['GroupSemidirectProduct', 'GroupSemidirectProductElement']) diff --git a/src/sage/groups/all__sagemath_modules.py b/src/sage/groups/all__sagemath_modules.py new file mode 100644 index 00000000000..17aba8aa49d --- /dev/null +++ b/src/sage/groups/all__sagemath_modules.py @@ -0,0 +1,10 @@ +from .all__sagemath_categories import * + +from .additive_abelian.all import * +from .abelian_gps.all__sagemath_modules import * +from .matrix_gps.all__sagemath_modules import * + +from sage.misc.lazy_import import lazy_import + +lazy_import('sage.groups.affine_gps.affine_group', 'AffineGroup') +lazy_import('sage.groups.affine_gps.euclidean_group', 'EuclideanGroup') diff --git a/src/sage/groups/all__sagemath_objects.py b/src/sage/groups/all__sagemath_objects.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/groups/all__sagemath_pari.py b/src/sage/groups/all__sagemath_pari.py new file mode 100644 index 00000000000..97f61bbfc2c --- /dev/null +++ b/src/sage/groups/all__sagemath_pari.py @@ -0,0 +1,2 @@ + +from sage.groups.pari_group import PariGroup diff --git a/src/sage/groups/matrix_gps/all.py b/src/sage/groups/matrix_gps/all.py index c6360cd6a03..bbdf725dc5e 100644 --- a/src/sage/groups/matrix_gps/all.py +++ b/src/sage/groups/matrix_gps/all.py @@ -1,13 +1,3 @@ -from sage.misc.lazy_import import lazy_import - -lazy_import('sage.groups.matrix_gps.linear', 'GL') -lazy_import('sage.groups.matrix_gps.linear', 'SL') -lazy_import('sage.groups.matrix_gps.symplectic', 'Sp') -lazy_import('sage.groups.matrix_gps.unitary', 'SU') -lazy_import('sage.groups.matrix_gps.unitary', 'GU') -lazy_import('sage.groups.matrix_gps.orthogonal', 'GO') -lazy_import('sage.groups.matrix_gps.orthogonal', 'SO') -lazy_import('sage.groups.matrix_gps.finitely_generated', 'MatrixGroup') -lazy_import('sage.groups.matrix_gps.finitely_generated', 'QuaternionMatrixGroupGF3') +from .all__sagemath_modules import * import sage.groups.matrix_gps.pickling_overrides diff --git a/src/sage/groups/matrix_gps/all__sagemath_gap.py b/src/sage/groups/matrix_gps/all__sagemath_gap.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/groups/matrix_gps/all__sagemath_modules.py b/src/sage/groups/matrix_gps/all__sagemath_modules.py new file mode 100644 index 00000000000..99cdea05871 --- /dev/null +++ b/src/sage/groups/matrix_gps/all__sagemath_modules.py @@ -0,0 +1,11 @@ +from sage.misc.lazy_import import lazy_import + +lazy_import('sage.groups.matrix_gps.linear', 'GL') +lazy_import('sage.groups.matrix_gps.linear', 'SL') +lazy_import('sage.groups.matrix_gps.symplectic', 'Sp') +lazy_import('sage.groups.matrix_gps.unitary', 'SU') +lazy_import('sage.groups.matrix_gps.unitary', 'GU') +lazy_import('sage.groups.matrix_gps.orthogonal', 'GO') +lazy_import('sage.groups.matrix_gps.orthogonal', 'SO') +lazy_import('sage.groups.matrix_gps.finitely_generated', 'MatrixGroup') +lazy_import('sage.groups.matrix_gps.finitely_generated', 'QuaternionMatrixGroupGF3') diff --git a/src/sage/groups/perm_gps/all__sagemath_categories.py b/src/sage/groups/perm_gps/all__sagemath_categories.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/groups/perm_gps/all__sagemath_graphs.py b/src/sage/groups/perm_gps/all__sagemath_graphs.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/groups/perm_gps/all__sagemath_modules.py b/src/sage/groups/perm_gps/all__sagemath_modules.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/groups/perm_gps/partn_ref/all__sagemath_categories.py b/src/sage/groups/perm_gps/partn_ref/all__sagemath_categories.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/groups/perm_gps/partn_ref/all__sagemath_gap.py b/src/sage/groups/perm_gps/partn_ref/all__sagemath_gap.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/groups/perm_gps/partn_ref/all__sagemath_graphs.py b/src/sage/groups/perm_gps/partn_ref/all__sagemath_graphs.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/groups/perm_gps/partn_ref/all__sagemath_modules.py b/src/sage/groups/perm_gps/partn_ref/all__sagemath_modules.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/homology/all.py b/src/sage/homology/all.py index d9306c19daa..1334936c7a3 100644 --- a/src/sage/homology/all.py +++ b/src/sage/homology/all.py @@ -1,6 +1 @@ -from .chain_complex import ChainComplex - -from .chain_complex_morphism import ChainComplexMorphism - -from sage.misc.lazy_import import lazy_import -lazy_import('sage.homology.koszul_complex', 'KoszulComplex') +from .all__sagemath_modules import * diff --git a/src/sage/homology/all__sagemath_modules.py b/src/sage/homology/all__sagemath_modules.py new file mode 100644 index 00000000000..d9306c19daa --- /dev/null +++ b/src/sage/homology/all__sagemath_modules.py @@ -0,0 +1,6 @@ +from .chain_complex import ChainComplex + +from .chain_complex_morphism import ChainComplexMorphism + +from sage.misc.lazy_import import lazy_import +lazy_import('sage.homology.koszul_complex', 'KoszulComplex') diff --git a/src/sage/interfaces/all__sagemath_categories.py b/src/sage/interfaces/all__sagemath_categories.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/interfaces/all__sagemath_gap.py b/src/sage/interfaces/all__sagemath_gap.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/interfaces/all__sagemath_libecm.py b/src/sage/interfaces/all__sagemath_libecm.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/interfaces/all__sagemath_pari.py b/src/sage/interfaces/all__sagemath_pari.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/interfaces/all__sagemath_plot.py b/src/sage/interfaces/all__sagemath_plot.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/interfaces/all__sagemath_symbolics.py b/src/sage/interfaces/all__sagemath_symbolics.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/lfunctions/all__sagemath_lcalc.py b/src/sage/lfunctions/all__sagemath_lcalc.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/libs/all.py b/src/sage/libs/all.py index 50423191ca4..5a446f66548 100644 --- a/src/sage/libs/all.py +++ b/src/sage/libs/all.py @@ -1,19 +1,11 @@ - -import sage.libs.ntl.all as ntl - -from sage.libs.pari.all import pari, pari_gen, PariError - -import sage.libs.symmetrica.all as symmetrica - -from sage.misc.lazy_import import lazy_import -lazy_import('sage.libs.gap.libgap', 'libgap') - -lazy_import('sage.libs.eclib.constructor', 'CremonaModularSymbols') -lazy_import('sage.libs.eclib.interface', ['mwrank_EllipticCurve', 'mwrank_MordellWeil']) -lazy_import('sage.libs.eclib.mwrank', 'get_precision', 'mwrank_get_precision') -lazy_import('sage.libs.eclib.mwrank', 'set_precision', 'mwrank_set_precision') -lazy_import('sage.libs.eclib.mwrank', 'initprimes', 'mwrank_initprimes') - -lazy_import('sage.libs.flint.qsieve', 'qsieve') - -lazy_import('sage.libs.giac.giac', 'libgiac') +from .all__sagemath_combinat import * +from .all__sagemath_gap import * +from .all__sagemath_flint import * +from .all__sagemath_ntl import * +from .all__sagemath_pari import * +from .all__sagemath_eclib import * + +try: + from .all__sagemath_symbolics import * +except ImportError: + pass diff --git a/src/sage/libs/all__sagemath_brial.py b/src/sage/libs/all__sagemath_brial.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/libs/all__sagemath_combinat.py b/src/sage/libs/all__sagemath_combinat.py new file mode 100644 index 00000000000..49fc95742c3 --- /dev/null +++ b/src/sage/libs/all__sagemath_combinat.py @@ -0,0 +1,5 @@ +from sage.misc.lazy_import import lazy_import + +lazy_import('sage.libs.symmetrica', 'all', as_='symmetrica') + +del lazy_import diff --git a/src/sage/libs/all__sagemath_eclib.py b/src/sage/libs/all__sagemath_eclib.py new file mode 100644 index 00000000000..23d7839846c --- /dev/null +++ b/src/sage/libs/all__sagemath_eclib.py @@ -0,0 +1,10 @@ + +from sage.misc.lazy_import import lazy_import + +lazy_import('sage.libs.eclib.constructor', 'CremonaModularSymbols') +lazy_import('sage.libs.eclib.interface', ['mwrank_EllipticCurve', 'mwrank_MordellWeil']) +lazy_import('sage.libs.eclib.mwrank', 'get_precision', 'mwrank_get_precision') +lazy_import('sage.libs.eclib.mwrank', 'set_precision', 'mwrank_set_precision') +lazy_import('sage.libs.eclib.mwrank', 'initprimes', 'mwrank_initprimes') + +del lazy_import diff --git a/src/sage/libs/all__sagemath_flint.py b/src/sage/libs/all__sagemath_flint.py new file mode 100644 index 00000000000..796eb12104d --- /dev/null +++ b/src/sage/libs/all__sagemath_flint.py @@ -0,0 +1,16 @@ + +try: + from .all__sagemath_pari import * +except ImportError: + pass + +try: + from .all__sagemath_ntl import * +except ImportError: + pass + +from sage.misc.lazy_import import lazy_import + +lazy_import('sage.libs.flint.qsieve', 'qsieve') + +del lazy_import diff --git a/src/sage/libs/all__sagemath_gap.py b/src/sage/libs/all__sagemath_gap.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/libs/all__sagemath_giac.py b/src/sage/libs/all__sagemath_giac.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/libs/all__sagemath_glpk.py b/src/sage/libs/all__sagemath_glpk.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/libs/all__sagemath_homfly.py b/src/sage/libs/all__sagemath_homfly.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/libs/all__sagemath_lcalc.py b/src/sage/libs/all__sagemath_lcalc.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/libs/all__sagemath_libbraiding.py b/src/sage/libs/all__sagemath_libbraiding.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/libs/all__sagemath_libecm.py b/src/sage/libs/all__sagemath_libecm.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/libs/all__sagemath_linbox.py b/src/sage/libs/all__sagemath_linbox.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/libs/all__sagemath_modules.py b/src/sage/libs/all__sagemath_modules.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/libs/all__sagemath_mpmath.py b/src/sage/libs/all__sagemath_mpmath.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/libs/all__sagemath_ntl.py b/src/sage/libs/all__sagemath_ntl.py new file mode 100644 index 00000000000..ad98922f701 --- /dev/null +++ b/src/sage/libs/all__sagemath_ntl.py @@ -0,0 +1,2 @@ + +import sage.libs.ntl.all as ntl diff --git a/src/sage/libs/all__sagemath_pari.py b/src/sage/libs/all__sagemath_pari.py new file mode 100644 index 00000000000..3babb25ee71 --- /dev/null +++ b/src/sage/libs/all__sagemath_pari.py @@ -0,0 +1 @@ +from sage.libs.pari.all import pari, pari_gen, PariError diff --git a/src/sage/libs/all__sagemath_singular.py b/src/sage/libs/all__sagemath_singular.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/libs/all__sagemath_symbolics.py b/src/sage/libs/all__sagemath_symbolics.py new file mode 100644 index 00000000000..18cbb5d7ca1 --- /dev/null +++ b/src/sage/libs/all__sagemath_symbolics.py @@ -0,0 +1,3 @@ +from sage.misc.lazy_import import lazy_import + +lazy_import('sage.libs.giac.giac', 'libgiac') diff --git a/src/sage/libs/pari/all__sagemath_flint.py b/src/sage/libs/pari/all__sagemath_flint.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/matrix/all__sagemath_flint.py b/src/sage/matrix/all__sagemath_flint.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/matrix/all__sagemath_gap.py b/src/sage/matrix/all__sagemath_gap.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/matrix/all__sagemath_linbox.py b/src/sage/matrix/all__sagemath_linbox.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/matrix/all__sagemath_ntl.py b/src/sage/matrix/all__sagemath_ntl.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/matrix/all__sagemath_singular.py b/src/sage/matrix/all__sagemath_singular.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/matrix/all__sagemath_symbolics.py b/src/sage/matrix/all__sagemath_symbolics.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/misc/all.py b/src/sage/misc/all.py index e5a6418043a..a1023596d51 100644 --- a/src/sage/misc/all.py +++ b/src/sage/misc/all.py @@ -1,144 +1,12 @@ -from .lazy_attribute import lazy_attribute, lazy_class_attribute -from .lazy_import import lazy_import - -from .all__sagemath_objects import * +#from .all__sagemath_objects import * from .all__sagemath_environment import * +from .all__sagemath_modules import * from .all__sagemath_repl import * -from .misc import (BackslashOperator, - exists, forall, is_iterator, - random_sublist, - pad_zeros, - SAGE_DB, - newton_method_sizes, compose, - nest) -lazy_import('sage.misc.misc', 'union', - deprecation=32096) - -from .banner import version - -from .dev_tools import import_statements - -from .html import html, pretty_print_default - -from .table import table - -from .sage_timeit_class import timeit - -from .edit_module import edit - -from .map_threaded import map_threaded - -from .session import load_session, save_session, show_identifiers - from .remote_file import get_remote_file -from .mrange import xmrange, mrange, xmrange_iter, mrange_iter, cartesian_product_iterator - -from .fpickle import pickle_function, unpickle_function - -lazy_import('sage.misc.pager', 'pager') - -lazy_import('sage.misc.sagedoc', ['browse_sage_doc', - 'search_src', 'search_def', 'search_doc', - 'tutorial', 'reference', 'manual', 'developer', - 'constructions', 'help']) -lazy_import('pydoc', 'help', 'python_help') +lazy_import('sage.misc.dist', 'install_scripts', deprecation=34259) from .classgraph import class_graph -from .reset import reset, restore - -from .mathml import mathml - -from .defaults import (set_default_variable_name, - series_precision, set_series_precision) - -lazy_import("sage.misc.cython", "cython_lambda") -lazy_import("sage.misc.cython", "cython_compile", "cython") - -from .func_persist import func_persist - -from .functional import (additive_order, - base_ring, - base_field, - basis, - category, - charpoly, - characteristic_polynomial, - coerce, - cyclotomic_polynomial, - decomposition, - denominator, - det, - dimension, - dim, - discriminant, - disc, - eta, - fcp, - gen, - gens, - hecke_operator, - image, - integral, integrate, - integral_closure, - interval, - xinterval, - is_commutative, - is_even, - is_integrally_closed, - is_field, - is_odd, - kernel, - krull_dimension, - lift, - log as log_b, - minimal_polynomial, - minpoly, - multiplicative_order, - ngens, - norm, - numerator, - numerical_approx, - n, N, - objgens, - objgen, - order, - rank, - regulator, - round, - quotient, - quo, - isqrt, - squarefree_part, - sqrt, - symbolic_sum as sum, - symbolic_prod as product, - transpose) - - -from .latex import LatexExpr, latex, view - -from .randstate import seed, set_random_seed, initial_seed, current_randstate - -from .prandom import * - -from .timing import walltime, cputime - -from .explain_pickle import explain_pickle, unpickle_newobj, unpickle_global, unpickle_build, unpickle_instantiate, unpickle_persistent, unpickle_extension, unpickle_appends - -lazy_import('sage.misc.inline_fortran', 'fortran') - -lazy_import('sage.misc.banner', 'banner', deprecation=34259) -lazy_import('sage.misc.dev_tools', 'runsnake', deprecation=34259) -lazy_import('sage.misc.edit_module', 'set_edit_template', deprecation=34259) -lazy_import('sage.misc.profiler', 'Profiler', deprecation=34259) -lazy_import('sage.misc.dist', 'install_scripts', deprecation=34259) -lazy_import('sage.misc.trace', 'trace', deprecation=34259) -lazy_import('sage.misc.package', ('installed_packages', 'is_package_installed', - 'standard_packages', 'optional_packages', - 'experimental_packages', 'package_versions'), - deprecation=34259) -lazy_import('sage.misc.benchmark', 'benchmark', deprecation=34259) lazy_import('sage.repl.interpreter', 'logstr', deprecation=34259) diff --git a/src/sage/misc/all__sagemath_categories.py b/src/sage/misc/all__sagemath_categories.py new file mode 100644 index 00000000000..c64c3f97701 --- /dev/null +++ b/src/sage/misc/all__sagemath_categories.py @@ -0,0 +1,80 @@ + +from .all__sagemath_objects import * + +from .html import html, pretty_print_default + +from .mathml import mathml + +from .table import table + +from .map_threaded import map_threaded + +from .mrange import xmrange, mrange, xmrange_iter, mrange_iter, cartesian_product_iterator + +from .defaults import (set_default_variable_name, + series_precision, set_series_precision) + + +from .functional import (additive_order, + base_ring, + base_field, + basis, + category, + charpoly, + characteristic_polynomial, + coerce, + cyclotomic_polynomial, + decomposition, + denominator, + det, + dimension, + dim, + discriminant, + disc, + eta, + fcp, + gen, + gens, + hecke_operator, + image, + integral, integrate, + integral_closure, + interval, + xinterval, + is_commutative, + is_even, + is_integrally_closed, + is_field, + is_odd, + kernel, + krull_dimension, + lift, + log as log_b, + minimal_polynomial, + minpoly, + multiplicative_order, + ngens, + norm, + numerator, + numerical_approx, + n, N, + objgens, + objgen, + order, + rank, + regulator, + round, + quotient, + quo, + isqrt, + squarefree_part, + sqrt, + symbolic_sum as sum, + symbolic_prod as product, + transpose) + +from .latex import LatexExpr, latex, view + +from .fpickle import pickle_function, unpickle_function + +from .persist import unpickle_global diff --git a/src/sage/misc/all__sagemath_modules.py b/src/sage/misc/all__sagemath_modules.py new file mode 100644 index 00000000000..3b30aaeca19 --- /dev/null +++ b/src/sage/misc/all__sagemath_modules.py @@ -0,0 +1,21 @@ +# All of sage.misc.all except for development tools, session management, +# and deprecated functionality + +from .lazy_attribute import lazy_attribute, lazy_class_attribute +from .lazy_import import lazy_import + +from .all__sagemath_categories import * + +from .misc import (BackslashOperator, # Depends on sage.env -- can lower to sagemath-objects after splitting this module + exists, forall, is_iterator, + random_sublist, + pad_zeros, + SAGE_DB, + newton_method_sizes, compose, + nest) + +from .temporary_file import tmp_dir, tmp_filename # Depends on sage.env + +from .mathml import mathml + +from .func_persist import func_persist diff --git a/src/sage/misc/all__sagemath_ntl.py b/src/sage/misc/all__sagemath_ntl.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/misc/all__sagemath_objects.py b/src/sage/misc/all__sagemath_objects.py index 43a9c1c06d5..c7363615ae5 100644 --- a/src/sage/misc/all__sagemath_objects.py +++ b/src/sage/misc/all__sagemath_objects.py @@ -33,4 +33,13 @@ from .abstract_method import abstract_method +from .randstate import seed, set_random_seed, initial_seed, current_randstate + +from .prandom import * + from .timing import walltime, cputime + +from .sage_timeit_class import timeit + +from .session import load_session, save_session, show_identifiers +from .reset import reset, restore diff --git a/src/sage/misc/all__sagemath_repl.py b/src/sage/misc/all__sagemath_repl.py index f5891ff1242..c3216265b45 100644 --- a/src/sage/misc/all__sagemath_repl.py +++ b/src/sage/misc/all__sagemath_repl.py @@ -1,3 +1,43 @@ +from .all__sagemath_objects import * + from .sage_eval import sage_eval, sageobj from .sage_input import sage_input + +from .banner import version + +lazy_import('sage.misc.banner', 'banner', deprecation=34259) + +lazy_import('sage.misc.sagedoc', ['browse_sage_doc', + 'search_src', 'search_def', 'search_doc', + 'tutorial', 'reference', 'manual', 'developer', + 'constructions', 'help']) + +lazy_import('pydoc', 'help', 'python_help') + +from .explain_pickle import explain_pickle, unpickle_newobj, unpickle_build, unpickle_instantiate, unpickle_persistent, unpickle_extension, unpickle_appends + +lazy_import('sage.misc.trace', 'trace', deprecation=34259) + +lazy_import('sage.misc.profiler', 'Profiler', deprecation=34259) + +from .dev_tools import import_statements + +lazy_import('sage.misc.dev_tools', 'runsnake', deprecation=34259) + +from .edit_module import edit + +lazy_import('sage.misc.edit_module', 'set_edit_template', deprecation=34259) + +lazy_import('sage.misc.pager', 'pager') + + +lazy_import("sage.misc.cython", "cython_lambda") +lazy_import("sage.misc.cython", "cython_compile", "cython") +lazy_import('sage.misc.inline_fortran', 'fortran') + +lazy_import('sage.misc.package', ('installed_packages', 'is_package_installed', + 'standard_packages', 'optional_packages', + 'experimental_packages', 'package_versions')) + +lazy_import('sage.misc.benchmark', 'benchmark', deprecation=34259) diff --git a/src/sage/modules/all__sagemath_linbox.py b/src/sage/modules/all__sagemath_linbox.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/modules/all__sagemath_objects.py b/src/sage/modules/all__sagemath_objects.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/modules/all__sagemath_symbolics.py b/src/sage/modules/all__sagemath_symbolics.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/monoids/all__sagemath_categories.py b/src/sage/monoids/all__sagemath_categories.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/numerical/all.py b/src/sage/numerical/all.py index 8b69da18652..a4f65cf44b5 100644 --- a/src/sage/numerical/all.py +++ b/src/sage/numerical/all.py @@ -1,7 +1,7 @@ +from .all__sagemath_modules import * + from sage.misc.lazy_import import lazy_import -lazy_import("sage.numerical.optimize", - ["find_fit", "find_local_maximum", "find_local_minimum", - "find_root", "minimize", "minimize_constrained"]) + lazy_import("sage.numerical.mip", ["MixedIntegerLinearProgram"]) lazy_import("sage.numerical.sdp", ["SemidefiniteProgram"]) lazy_import("sage.numerical.backends.generic_backend", ["default_mip_solver"]) diff --git a/src/sage/numerical/all__sagemath_categories.py b/src/sage/numerical/all__sagemath_categories.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/numerical/all__sagemath_glpk.py b/src/sage/numerical/all__sagemath_glpk.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/numerical/all__sagemath_modules.py b/src/sage/numerical/all__sagemath_modules.py new file mode 100644 index 00000000000..b1f25aedd4f --- /dev/null +++ b/src/sage/numerical/all__sagemath_modules.py @@ -0,0 +1,4 @@ +from sage.misc.lazy_import import lazy_import +lazy_import("sage.numerical.optimize", + ["find_fit", "find_local_maximum", "find_local_minimum", + "find_root", "minimize", "minimize_constrained"]) diff --git a/src/sage/numerical/backends/all__sagemath_categories.py b/src/sage/numerical/backends/all__sagemath_categories.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/numerical/backends/all__sagemath_glpk.py b/src/sage/numerical/backends/all__sagemath_glpk.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/plot/all.py b/src/sage/plot/all.py index 1f16e2d6789..2db3c52821d 100644 --- a/src/sage/plot/all.py +++ b/src/sage/plot/all.py @@ -34,6 +34,6 @@ from .step import plot_step_function -from .hyperbolic_arc import hyperbolic_arc -from .hyperbolic_polygon import hyperbolic_triangle, hyperbolic_polygon +lazy_import("sage.plot.hyperbolic_arc", "hyperbolic_arc") +lazy_import("sage.plot.hyperbolic_polygon", ["hyperbolic_triangle", "hyperbolic_polygon"]) lazy_import("sage.plot.hyperbolic_regular_polygon", "hyperbolic_regular_polygon") diff --git a/src/sage/quadratic_forms/all.py b/src/sage/quadratic_forms/all.py index 3445705978a..fbb7f2fdccb 100644 --- a/src/sage/quadratic_forms/all.py +++ b/src/sage/quadratic_forms/all.py @@ -1,17 +1,3 @@ -from .binary_qf import BinaryQF, BinaryQF_reduced_representatives -from .ternary_qf import TernaryQF, find_all_ternary_qf_by_level_disc, find_a_ternary_qf_by_level_disc - -from .quadratic_form import QuadraticForm, DiagonalQuadraticForm, quadratic_form_from_invariants - -from .random_quadraticform import (random_quadraticform, random_quadraticform_with_conditions, - random_ternaryqf, random_ternaryqf_with_conditions) - -from .extras import least_quadratic_nonresidue, extend_to_primitive, is_triangular_number - -from .special_values import (gamma__exact, zeta__exact, QuadraticBernoulliNumber, - quadratic_L_function__exact, quadratic_L_function__numerical) - -from .genera.genus import Genus - -from .constructions import BezoutianQuadraticForm, HyperbolicPlane_quadratic_form +from .all__sagemath_modules import * +from .all__sagemath_pari import * diff --git a/src/sage/quadratic_forms/all__sagemath_modules.py b/src/sage/quadratic_forms/all__sagemath_modules.py new file mode 100644 index 00000000000..e27f1eb15a9 --- /dev/null +++ b/src/sage/quadratic_forms/all__sagemath_modules.py @@ -0,0 +1,12 @@ +from .binary_qf import BinaryQF, BinaryQF_reduced_representatives + +from .ternary_qf import TernaryQF, find_all_ternary_qf_by_level_disc, find_a_ternary_qf_by_level_disc + +from .quadratic_form import QuadraticForm, DiagonalQuadraticForm, quadratic_form_from_invariants + +from .random_quadraticform import (random_quadraticform, random_quadraticform_with_conditions, + random_ternaryqf, random_ternaryqf_with_conditions) + +from .extras import least_quadratic_nonresidue, extend_to_primitive, is_triangular_number + +from .constructions import BezoutianQuadraticForm, HyperbolicPlane_quadratic_form diff --git a/src/sage/quadratic_forms/all__sagemath_pari.py b/src/sage/quadratic_forms/all__sagemath_pari.py new file mode 100644 index 00000000000..874de9d4f0b --- /dev/null +++ b/src/sage/quadratic_forms/all__sagemath_pari.py @@ -0,0 +1,5 @@ + +from .special_values import (gamma__exact, zeta__exact, QuadraticBernoulliNumber, + quadratic_L_function__exact, quadratic_L_function__numerical) + +from .genera.genus import Genus diff --git a/src/sage/rings/all.py b/src/sage/rings/all.py index 1d7b89601f5..89661c3c63c 100644 --- a/src/sage/rings/all.py +++ b/src/sage/rings/all.py @@ -12,157 +12,33 @@ # **************************************************************************** from sage.misc.lazy_import import lazy_import -from .all__sagemath_categories import * +from .all__sagemath_combinat import * +from .all__sagemath_flint import * +from .all__sagemath_modules import * -# Ring base classes -from .ring import (Ring, Field, CommutativeRing, IntegralDomain, - DedekindDomain, PrincipalIdealDomain, EuclideanDomain) - -# Ring element base classes -from sage.structure.element import (CommutativeAlgebraElement, - RingElement, CommutativeRingElement, IntegralDomainElement, - DedekindDomainElement, PrincipalIdealDomainElement, - EuclideanDomainElement, FieldElement) - -# Ideals -from .ideal import Ideal -ideal = Ideal - -# Quotient -from .quotient_ring import QuotientRing - -# Infinities -from .infinity import infinity, Infinity, InfinityRing, unsigned_infinity, UnsignedInfinityRing - -# Rational integers. -from .integer_ring import IntegerRing, ZZ, crt_basis -from .integer import Integer - -# Rational numbers -from .rational_field import RationalField, QQ -from .rational import Rational -Rationals = RationalField - -# Integers modulo n. -from sage.rings.finite_rings.integer_mod_ring import IntegerModRing, Zmod -from sage.rings.finite_rings.integer_mod import IntegerMod, Mod, mod -Integers = IntegerModRing +try: + from .all__sagemath_symbolics import * +except ImportError: + pass # Finite fields from .finite_rings.all import * -# Number field -from .number_field.all import * - # Function field from .function_field.all import * -# Finite residue fields -from .finite_rings.residue_field import ResidueField - -# p-adic field -from .padics.all import * -from .padics.padic_printing import _printer_defaults as padic_printing - -# valuations -from .valuation.all import * - -# Semirings -from .semirings.all import * - -# Real numbers -from .real_mpfr import (RealField, RR, - create_RealNumber as RealNumber) # this is used by the preparser to wrap real literals -- very important. -Reals = RealField - -from .real_double import RealDoubleField, RDF, RealDoubleElement - -from .real_lazy import RealLazyField, RLF, ComplexLazyField, CLF - -from sage.rings.real_arb import RealBallField, RBF - # Polynomial Rings and Polynomial Quotient Rings from .polynomial.all import * - -# Algebraic numbers -from .qqbar import (AlgebraicRealField, AA, - AlgebraicReal, - AlgebraicField, QQbar, - AlgebraicNumber, - number_field_elements_from_algebraics) -from .universal_cyclotomic_field import UniversalCyclotomicField, E - -# Intervals -from .real_mpfi import (RealIntervalField, - RIF, - RealInterval) - -# Complex numbers -from .complex_mpfr import ComplexField -from .complex_mpfr import create_ComplexNumber as ComplexNumber -Complexes = ComplexField -from .complex_interval_field import ComplexIntervalField -from .complex_interval import (create_ComplexIntervalFieldElement as ComplexIntervalFieldElement) - -from .complex_double import ComplexDoubleField, ComplexDoubleElement, CDF - -from .complex_mpc import MPComplexField - -from sage.rings.complex_arb import ComplexBallField, CBF - -lazy_import("sage.rings.imaginary_unit", "I") - -# Power series rings -from .power_series_ring import PowerSeriesRing - -# Laurent series ring in one variable -from .laurent_series_ring import LaurentSeriesRing - -# Lazy Laurent series ring -lazy_import('sage.rings.lazy_series_ring', ['LazyLaurentSeriesRing', 'LazyPowerSeriesRing', - 'LazySymmetricFunctions', 'LazyDirichletSeriesRing']) - -# Tate algebras -from .tate_algebra import TateAlgebra - -# Puiseux series ring -from .puiseux_series_ring import PuiseuxSeriesRing - -# Pseudo-ring of PARI objects. -from .pari_ring import PariRing, Pari - -# Big-oh notation -from .big_oh import O - -# Fraction field -from .fraction_field import FractionField -Frac = FractionField - -# Localization -from .localization import Localization - # c-finite sequences from .cfinite_sequence import CFiniteSequence, CFiniteSequences -from .bernoulli_mod_p import bernoulli_mod_p, bernoulli_mod_p_single - -from .monomials import monomials - -from .cc import CC -from .cif import CIF - -# invariant theory -from .invariants.all import * - from .fast_arith import prime_range -# continued fractions -from sage.rings.continued_fraction import (continued_fraction, - continued_fraction_list) - # asymptotic ring -from .asymptotic.all import * +#from .asymptotic.all import * +lazy_import('sage.rings.asymptotic.asymptotic_ring', 'AsymptoticRing') +lazy_import('sage.rings.asymptotic.asymptotic_expansion_generators', 'asymptotic_expansions') # Register classes in numbers abc from . import numbers_abc diff --git a/src/sage/rings/all__sagemath_brial.py b/src/sage/rings/all__sagemath_brial.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/rings/all__sagemath_categories.py b/src/sage/rings/all__sagemath_categories.py index 8d14e7afcda..b76975de3b2 100644 --- a/src/sage/rings/all__sagemath_categories.py +++ b/src/sage/rings/all__sagemath_categories.py @@ -1,6 +1,78 @@ # Ring base classes -from .ring import Ring +from .ring import (Ring, Field, CommutativeRing, IntegralDomain, + DedekindDomain, PrincipalIdealDomain, EuclideanDomain) + +# Ring element base classes +from sage.structure.element import (CommutativeAlgebraElement, + RingElement, CommutativeRingElement, IntegralDomainElement, + DedekindDomainElement, PrincipalIdealDomainElement, + EuclideanDomainElement, FieldElement) + +# Rational numbers +from .rational import Rational +from .rational_field import RationalField, QQ +Rationals = RationalField + +# Rational integers. +from .integer_ring import IntegerRing, ZZ, crt_basis +from .integer import Integer + +# Integers modulo n. +from sage.rings.finite_rings.integer_mod_ring import IntegerModRing, Zmod +from sage.rings.finite_rings.integer_mod import IntegerMod, Mod, mod +Integers = IntegerModRing + +# Infinities +from .infinity import infinity, Infinity, InfinityRing, unsigned_infinity, UnsignedInfinityRing +oo = infinity + +# Quotient +from .quotient_ring import QuotientRing + +# Localization +from .localization import Localization + +# Fraction field +from .fraction_field import FractionField +Frac = FractionField + +# Function field +from .function_field.all__sagemath_categories import * + +# Double precision floating point numbers +from .real_double import RealDoubleField, RDF, RealDoubleElement # Ideals from .ideal import Ideal ideal = Ideal + +# Semirings +from .semirings.all import * + +from .finite_rings.all__sagemath_categories import * +from .number_field.all__sagemath_categories import * +from .padics.all__sagemath_categories import * +from .polynomial.all__sagemath_categories import * + +# Power series rings +from .power_series_ring import PowerSeriesRing + +# Laurent series ring in one variable +from .laurent_series_ring import LaurentSeriesRing + +# Puiseux series ring +from .puiseux_series_ring import PuiseuxSeriesRing + +# Big-oh notation +from .big_oh import O + +# continued fractions +from sage.rings.continued_fraction import (continued_fraction, + continued_fraction_list) + +# Lazy reals +from .real_lazy import RealLazyField, RLF, ComplexLazyField, CLF + +# Preliminary version of real numbers for doctesting without sage.rings.real_mpfr. +# sage.rings.all redefines it. +RealNumber = RR = RDF # used by the preparser to wrap real literals diff --git a/src/sage/rings/all__sagemath_combinat.py b/src/sage/rings/all__sagemath_combinat.py new file mode 100644 index 00000000000..73acfce9257 --- /dev/null +++ b/src/sage/rings/all__sagemath_combinat.py @@ -0,0 +1,9 @@ +from .all__sagemath_categories import * + +from sage.misc.lazy_import import lazy_import + +# Lazy Laurent series ring +lazy_import('sage.rings.lazy_series_ring', ['LazyLaurentSeriesRing', 'LazyPowerSeriesRing', + 'LazySymmetricFunctions', 'LazyDirichletSeriesRing']) + +del lazy_import diff --git a/src/sage/rings/all__sagemath_flint.py b/src/sage/rings/all__sagemath_flint.py new file mode 100644 index 00000000000..61ca5667c9e --- /dev/null +++ b/src/sage/rings/all__sagemath_flint.py @@ -0,0 +1,34 @@ + +from .all__sagemath_ntl import * + +# Real numbers +from sage.rings.real_arb import RealBallField, RBF + +from sage.rings.complex_arb import ComplexBallField, CBF + +# Number field +from .number_field.all import * + +from .monomials import monomials + +# Algebraic numbers +from .qqbar import (AlgebraicRealField, AA, + AlgebraicReal, + AlgebraicField, QQbar, + AlgebraicNumber, + number_field_elements_from_algebraics) + +# Intervals +from .real_mpfi import (RealIntervalField, + RIF, + RealInterval) + +# Complex numbers +from .complex_interval_field import ComplexIntervalField +from .complex_interval import (create_ComplexIntervalFieldElement as ComplexIntervalFieldElement) + +from sage.misc.lazy_import import lazy_import + +lazy_import("sage.rings.imaginary_unit", "I") + +from .cif import CIF diff --git a/src/sage/rings/all__sagemath_gap.py b/src/sage/rings/all__sagemath_gap.py new file mode 100644 index 00000000000..82933d8cb54 --- /dev/null +++ b/src/sage/rings/all__sagemath_gap.py @@ -0,0 +1,6 @@ + +from sage.misc.lazy_import import lazy_import + +lazy_import('sage.rings.universal_cyclotomic_field', ['UniversalCyclotomicField', 'E']) + +del lazy_import diff --git a/src/sage/rings/all__sagemath_linbox.py b/src/sage/rings/all__sagemath_linbox.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/rings/all__sagemath_modules.py b/src/sage/rings/all__sagemath_modules.py new file mode 100644 index 00000000000..86c622842f9 --- /dev/null +++ b/src/sage/rings/all__sagemath_modules.py @@ -0,0 +1,24 @@ +from .all__sagemath_categories import * + +from .function_field.all__sagemath_modules import * +from .polynomial.all__sagemath_modules import * + +# Real numbers +from .real_mpfr import (RealField, RR, + create_RealNumber as RealNumber) # this is used by the preparser to wrap real literals -- very important. +Reals = RealField + +# Complex numbers + +from .complex_mpfr import ComplexField +from .complex_mpfr import create_ComplexNumber as ComplexNumber +Complexes = ComplexField + +from .complex_double import ComplexDoubleField, ComplexDoubleElement, CDF + +from .cc import CC + +from .complex_mpc import MPComplexField + +# invariant theory +from .invariants.all import * diff --git a/src/sage/rings/all__sagemath_ntl.py b/src/sage/rings/all__sagemath_ntl.py new file mode 100644 index 00000000000..2e4a22cd324 --- /dev/null +++ b/src/sage/rings/all__sagemath_ntl.py @@ -0,0 +1,6 @@ + +from .all__sagemath_pari import * + +from .padics.all__sagemath_ntl import * + +from .bernoulli_mod_p import bernoulli_mod_p, bernoulli_mod_p_single diff --git a/src/sage/rings/all__sagemath_pari.py b/src/sage/rings/all__sagemath_pari.py new file mode 100644 index 00000000000..cdb2f220cf9 --- /dev/null +++ b/src/sage/rings/all__sagemath_pari.py @@ -0,0 +1,12 @@ + +# Pseudo-ring of PARI objects. +from .pari_ring import PariRing, Pari + +# p-adic field +from .padics.all__sagemath_pari import * + +# valuations +from .valuation.all import * + +# Tate algebras +from .tate_algebra import TateAlgebra diff --git a/src/sage/rings/all__sagemath_singular.py b/src/sage/rings/all__sagemath_singular.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/rings/all__sagemath_symbolics.py b/src/sage/rings/all__sagemath_symbolics.py new file mode 100644 index 00000000000..1334936c7a3 --- /dev/null +++ b/src/sage/rings/all__sagemath_symbolics.py @@ -0,0 +1 @@ +from .all__sagemath_modules import * diff --git a/src/sage/rings/finite_rings/all.py b/src/sage/rings/finite_rings/all.py index 5d3d3f21c73..5e7e652e861 100644 --- a/src/sage/rings/finite_rings/all.py +++ b/src/sage/rings/finite_rings/all.py @@ -18,6 +18,4 @@ # http://www.gnu.org/licenses/ #***************************************************************************** -from .finite_field_constructor import FiniteField -from .conway_polynomials import conway_polynomial, exists_conway_polynomial -GF = FiniteField +from .all__sagemath_categories import * diff --git a/src/sage/rings/finite_rings/all__sagemath_categories.py b/src/sage/rings/finite_rings/all__sagemath_categories.py new file mode 100644 index 00000000000..00710ed2fe7 --- /dev/null +++ b/src/sage/rings/finite_rings/all__sagemath_categories.py @@ -0,0 +1,8 @@ +from .finite_field_constructor import FiniteField + +GF = FiniteField + +from .conway_polynomials import conway_polynomial, exists_conway_polynomial + +# Finite residue fields +from .residue_field import ResidueField diff --git a/src/sage/rings/finite_rings/all__sagemath_linbox.py b/src/sage/rings/finite_rings/all__sagemath_linbox.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/rings/finite_rings/all__sagemath_modules.py b/src/sage/rings/finite_rings/all__sagemath_modules.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/rings/finite_rings/all__sagemath_ntl.py b/src/sage/rings/finite_rings/all__sagemath_ntl.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/rings/finite_rings/all__sagemath_pari.py b/src/sage/rings/finite_rings/all__sagemath_pari.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/rings/function_field/all.py b/src/sage/rings/function_field/all.py index 455fa9fe19e..8922ed8d173 100644 --- a/src/sage/rings/function_field/all.py +++ b/src/sage/rings/function_field/all.py @@ -1,4 +1,9 @@ -from .constructor import FunctionField +from .all__sagemath_modules import * + +try: + from .all__sagemath_symbolics import * +except ImportError: + pass from sage.misc.lazy_import import lazy_import diff --git a/src/sage/rings/function_field/all__sagemath_categories.py b/src/sage/rings/function_field/all__sagemath_categories.py new file mode 100644 index 00000000000..b6bba3369c3 --- /dev/null +++ b/src/sage/rings/function_field/all__sagemath_categories.py @@ -0,0 +1 @@ +from .constructor import FunctionField diff --git a/src/sage/rings/function_field/all__sagemath_modules.py b/src/sage/rings/function_field/all__sagemath_modules.py new file mode 100644 index 00000000000..ae1d0ab8b43 --- /dev/null +++ b/src/sage/rings/function_field/all__sagemath_modules.py @@ -0,0 +1 @@ +from .all__sagemath_categories import * diff --git a/src/sage/rings/function_field/all__sagemath_pari.py b/src/sage/rings/function_field/all__sagemath_pari.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/rings/function_field/all__sagemath_singular.py b/src/sage/rings/function_field/all__sagemath_singular.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/rings/function_field/all__sagemath_symbolics.py b/src/sage/rings/function_field/all__sagemath_symbolics.py new file mode 100644 index 00000000000..1334936c7a3 --- /dev/null +++ b/src/sage/rings/function_field/all__sagemath_symbolics.py @@ -0,0 +1 @@ +from .all__sagemath_modules import * diff --git a/src/sage/rings/number_field/all__sagemath_categories.py b/src/sage/rings/number_field/all__sagemath_categories.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/rings/number_field/all__sagemath_flint.py b/src/sage/rings/number_field/all__sagemath_flint.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/rings/number_field/all__sagemath_pari.py b/src/sage/rings/number_field/all__sagemath_pari.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/rings/padics/all.py b/src/sage/rings/padics/all.py index 7014f5622d8..016d922fd8a 100644 --- a/src/sage/rings/padics/all.py +++ b/src/sage/rings/padics/all.py @@ -1,6 +1,2 @@ -from .factory import Zp, Zq, Zp as pAdicRing, ZpCR, ZpCA, ZpFM, ZpFP, ZpLC, ZpLF, ZqCR, ZqCA, ZqFM, ZqFP, ZpER -from .factory import Qp, Qq, Qp as pAdicField, QpCR, QpFP, QpLC, QpLF, QqCR, QqFP, QpER -from .factory import pAdicExtension -from .padic_generic import local_print_mode -from .pow_computer import PowComputer -from .pow_computer_ext import PowComputer_ext_maker + +from .all__sagemath_flint import * diff --git a/src/sage/rings/padics/all__sagemath_categories.py b/src/sage/rings/padics/all__sagemath_categories.py new file mode 100644 index 00000000000..c4e36e9c28b --- /dev/null +++ b/src/sage/rings/padics/all__sagemath_categories.py @@ -0,0 +1 @@ +from .padic_generic import local_print_mode diff --git a/src/sage/rings/padics/all__sagemath_flint.py b/src/sage/rings/padics/all__sagemath_flint.py new file mode 100644 index 00000000000..d91f726d26f --- /dev/null +++ b/src/sage/rings/padics/all__sagemath_flint.py @@ -0,0 +1,2 @@ + +from .all__sagemath_ntl import * diff --git a/src/sage/rings/padics/all__sagemath_ntl.py b/src/sage/rings/padics/all__sagemath_ntl.py new file mode 100644 index 00000000000..de062b61275 --- /dev/null +++ b/src/sage/rings/padics/all__sagemath_ntl.py @@ -0,0 +1,4 @@ + +from .all__sagemath_pari import * + +from .pow_computer_ext import PowComputer_ext_maker diff --git a/src/sage/rings/padics/all__sagemath_pari.py b/src/sage/rings/padics/all__sagemath_pari.py new file mode 100644 index 00000000000..4833e7a7e99 --- /dev/null +++ b/src/sage/rings/padics/all__sagemath_pari.py @@ -0,0 +1,10 @@ + +from .all__sagemath_categories import * + +from .factory import Zp, Zq, Zp as pAdicRing, ZpCR, ZpCA, ZpFM, ZpFP, ZpLC, ZpLF, ZqCR, ZqCA, ZqFM, ZqFP, ZpER +from .factory import Qp, Qq, Qp as pAdicField, QpCR, QpFP, QpLC, QpLF, QqCR, QqFP, QpER +from .factory import pAdicExtension + +from .padic_printing import _printer_defaults as padic_printing + +from .pow_computer import PowComputer diff --git a/src/sage/rings/polynomial/all.py b/src/sage/rings/polynomial/all.py index 853f422bdc7..36311c7c0b7 100644 --- a/src/sage/rings/polynomial/all.py +++ b/src/sage/rings/polynomial/all.py @@ -18,18 +18,8 @@ from sage.misc.lazy_import import lazy_import -# Quotient of polynomial ring -from sage.rings.polynomial.polynomial_quotient_ring import PolynomialQuotientRing -from sage.rings.polynomial.polynomial_quotient_ring_element import PolynomialQuotientRingElement - -# Univariate Polynomial Rings -from sage.rings.polynomial.polynomial_ring_constructor import PolynomialRing -from sage.rings.polynomial.polynomial_ring import polygen, polygens -from sage.rings.polynomial.polynomial_element import Polynomial - -# Multivariate Polynomial Rings -from sage.rings.polynomial.term_order import TermOrder -from sage.rings.polynomial.multi_polynomial_element import degree_lowest_rational_function +from .all__sagemath_categories import * +from .all__sagemath_modules import * # Generic convolution from sage.rings.polynomial.convolution import convolution @@ -38,19 +28,8 @@ from sage.rings.polynomial.polynomial_ring_constructor import BooleanPolynomialRing_constructor as BooleanPolynomialRing # Laurent Polynomial Rings -from sage.rings.polynomial.laurent_polynomial_ring import LaurentPolynomialRing lazy_import('sage.rings.polynomial.omega', 'MacMahonOmega') -# Infinite Polynomial Rings -from sage.rings.polynomial.infinite_polynomial_ring import InfinitePolynomialRing - -# Ore Polynomial Rings -lazy_import('sage.rings.polynomial.ore_polynomial_ring', 'OrePolynomialRing') -SkewPolynomialRing = OrePolynomialRing - -# Evaluation of cyclotomic polynomials -from sage.rings.polynomial.cyclotomic import cyclotomic_value - # Integer-valued Univariate Polynomial Ring lazy_import('sage.rings.polynomial.integer_valued_polynomials', 'IntegerValuedPolynomialRing') diff --git a/src/sage/rings/polynomial/all__sagemath_brial.py b/src/sage/rings/polynomial/all__sagemath_brial.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/rings/polynomial/all__sagemath_categories.py b/src/sage/rings/polynomial/all__sagemath_categories.py new file mode 100644 index 00000000000..2b79da92a4c --- /dev/null +++ b/src/sage/rings/polynomial/all__sagemath_categories.py @@ -0,0 +1,21 @@ +# Quotient of polynomial ring +from sage.rings.polynomial.polynomial_quotient_ring import PolynomialQuotientRing +from sage.rings.polynomial.polynomial_quotient_ring_element import PolynomialQuotientRingElement + +# Univariate Polynomial Rings +from sage.rings.polynomial.polynomial_ring_constructor import PolynomialRing +from sage.rings.polynomial.polynomial_ring import polygen, polygens +from sage.rings.polynomial.polynomial_element import Polynomial + +# Multivariate Polynomial Rings +from sage.rings.polynomial.term_order import TermOrder +from sage.rings.polynomial.multi_polynomial_element import degree_lowest_rational_function + +# Infinite Polynomial Rings +from sage.rings.polynomial.infinite_polynomial_ring import InfinitePolynomialRing + +# Laurent Polynomial Rings +from sage.rings.polynomial.laurent_polynomial_ring import LaurentPolynomialRing + +# Evaluation of cyclotomic polynomials +from sage.rings.polynomial.cyclotomic import cyclotomic_value diff --git a/src/sage/rings/polynomial/all__sagemath_flint.py b/src/sage/rings/polynomial/all__sagemath_flint.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/rings/polynomial/all__sagemath_linbox.py b/src/sage/rings/polynomial/all__sagemath_linbox.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/rings/polynomial/all__sagemath_modules.py b/src/sage/rings/polynomial/all__sagemath_modules.py new file mode 100644 index 00000000000..8634f2004c5 --- /dev/null +++ b/src/sage/rings/polynomial/all__sagemath_modules.py @@ -0,0 +1,6 @@ + +from sage.misc.lazy_import import lazy_import + +# Ore Polynomial Rings +lazy_import('sage.rings.polynomial.ore_polynomial_ring', 'OrePolynomialRing') +SkewPolynomialRing = OrePolynomialRing diff --git a/src/sage/rings/polynomial/all__sagemath_ntl.py b/src/sage/rings/polynomial/all__sagemath_ntl.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/rings/polynomial/all__sagemath_pari.py b/src/sage/rings/polynomial/all__sagemath_pari.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/rings/polynomial/all__sagemath_singular.py b/src/sage/rings/polynomial/all__sagemath_singular.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/rings/polynomial/all__sagemath_symbolics.py b/src/sage/rings/polynomial/all__sagemath_symbolics.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/schemes/all.py b/src/sage/schemes/all.py index 23858c6f0c8..9c70d129ed3 100644 --- a/src/sage/schemes/all.py +++ b/src/sage/schemes/all.py @@ -20,6 +20,8 @@ # http://www.gnu.org/licenses/ #***************************************************************************** +from .all__sagemath_categories import * + from .jacobians.all import * from .hyperelliptic_curves.all import * @@ -32,16 +34,6 @@ from .plane_quartics.all import * -from .generic.all import * - -from .toric.all import * - -from .affine.all import * - -from .projective.all import * - -from .product_projective.all import * - from .cyclic_covers.all import * from .berkovich.all import * diff --git a/src/sage/schemes/all__sagemath_categories.py b/src/sage/schemes/all__sagemath_categories.py new file mode 100644 index 00000000000..49d803c968b --- /dev/null +++ b/src/sage/schemes/all__sagemath_categories.py @@ -0,0 +1,4 @@ +from .generic.all import * +from .affine.all import * +from .projective.all import * +from .product_projective.all import * diff --git a/src/sage/schemes/all__sagemath_ntl.py b/src/sage/schemes/all__sagemath_ntl.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/schemes/all__sagemath_polyhedra.py b/src/sage/schemes/all__sagemath_polyhedra.py new file mode 100644 index 00000000000..2e641cf8c56 --- /dev/null +++ b/src/sage/schemes/all__sagemath_polyhedra.py @@ -0,0 +1 @@ +from .toric.all import * diff --git a/src/sage/schemes/hyperelliptic_curves/all__sagemath_ntl.py b/src/sage/schemes/hyperelliptic_curves/all__sagemath_ntl.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/stats/all.py b/src/sage/stats/all.py index 69fb8f01abd..253735e46d7 100644 --- a/src/sage/stats/all.py +++ b/src/sage/stats/all.py @@ -1,10 +1,12 @@ - -from .r import ttest from .basic_stats import (mean, mode, std, variance, median, moving_average) from .hmm import all as hmm +from sage.misc.lazy_import import lazy_import + +lazy_import("sage.stats.r", "ttest") + # We lazy_import the following modules since they import numpy which # slows down sage startup -from sage.misc.lazy_import import lazy_import + lazy_import("sage.stats.time_series", ["TimeSeries", "autoregressive_fit"]) lazy_import("sage.stats.intlist", ["IntList"]) diff --git a/src/sage/symbolic/all__sagemath_categories.py b/src/sage/symbolic/all__sagemath_categories.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/symbolic/all__sagemath_standard_no_symbolics.py b/src/sage/symbolic/all__sagemath_standard_no_symbolics.py new file mode 100644 index 00000000000..e69de29bb2d From a77700fb84da6a0ee9c46108a5d55a5f946b2ce6 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Tue, 7 Nov 2023 22:52:09 -0800 Subject: [PATCH 002/140] relative to absolute imports (cd src && for d in $(find sage -name __pycache__ -prune -o -type d -print); do sed -i.bak "/from *[.].*import/s/from /from $(echo $d | sed 's,/,.,g')/;s/[.] import / import /;" $d/all*.py; done) --- src/sage/algebras/all.py | 12 +- src/sage/algebras/all__sagemath_combinat.py | 4 +- src/sage/algebras/all__sagemath_modules.py | 8 +- .../finite_dimensional_algebras/all.py | 2 +- src/sage/algebras/quatalg/all.py | 2 +- src/sage/all.py | 2 +- src/sage/all__sagemath_categories.py | 2 +- src/sage/all__sagemath_repl.py | 4 +- src/sage/arith/all.py | 6 +- src/sage/calculus/all.py | 12 +- src/sage/calculus/all__sagemath_categories.py | 2 +- src/sage/calculus/all__sagemath_modules.py | 12 +- src/sage/calculus/transforms/all.py | 2 +- src/sage/categories/all.py | 154 +++++++++--------- src/sage/categories/all__sagemath_objects.py | 22 +-- src/sage/coding/source_coding/all.py | 2 +- src/sage/combinat/all.py | 8 +- src/sage/combinat/all__sagemath_categories.py | 20 +-- src/sage/combinat/all__sagemath_combinat.py | 50 +++--- src/sage/combinat/all__sagemath_graphs.py | 14 +- src/sage/combinat/all__sagemath_modules.py | 8 +- src/sage/combinat/designs/all.py | 2 +- src/sage/combinat/matrices/all.py | 2 +- src/sage/combinat/posets/all.py | 6 +- src/sage/combinat/root_system/all.py | 8 +- src/sage/combinat/words/all.py | 14 +- src/sage/cpython/all.py | 4 +- src/sage/data_structures/all.py | 2 +- .../all__sagemath_categories.py | 2 +- src/sage/databases/all.py | 6 +- src/sage/dynamics/all.py | 4 +- src/sage/dynamics/arithmetic_dynamics/all.py | 16 +- src/sage/functions/all.py | 36 ++-- src/sage/geometry/all.py | 6 +- src/sage/geometry/all__sagemath_polyhedra.py | 4 +- src/sage/geometry/triangulation/all.py | 2 +- src/sage/graphs/all.py | 8 +- src/sage/groups/abelian_gps/all.py | 4 +- .../groups/abelian_gps/all__sagemath_gap.py | 2 +- .../abelian_gps/all__sagemath_modules.py | 4 +- src/sage/groups/additive_abelian/all.py | 4 +- src/sage/groups/all.py | 8 +- src/sage/groups/all__sagemath_categories.py | 4 +- src/sage/groups/all__sagemath_gap.py | 4 +- src/sage/groups/all__sagemath_groups.py | 6 +- src/sage/groups/all__sagemath_modules.py | 8 +- src/sage/groups/matrix_gps/all.py | 2 +- src/sage/groups/perm_gps/all.py | 10 +- src/sage/homology/all.py | 2 +- src/sage/homology/all__sagemath_modules.py | 4 +- src/sage/interacts/all.py | 10 +- src/sage/interfaces/all.py | 14 +- src/sage/libs/all.py | 14 +- src/sage/libs/all__sagemath_flint.py | 4 +- src/sage/libs/eclib/all.py | 8 +- src/sage/libs/mpmath/all.py | 4 +- src/sage/libs/pari/all.py | 2 +- src/sage/libs/symmetrica/all.py | 132 +++++++-------- src/sage/logic/all.py | 4 +- src/sage/matrix/all.py | 4 +- src/sage/misc/all.py | 12 +- src/sage/misc/all__sagemath_categories.py | 22 +-- src/sage/misc/all__sagemath_environment.py | 2 +- src/sage/misc/all__sagemath_modules.py | 14 +- src/sage/misc/all__sagemath_objects.py | 40 ++--- src/sage/misc/all__sagemath_repl.py | 14 +- src/sage/modular/abvar/all.py | 2 +- src/sage/modular/all.py | 30 ++-- src/sage/modular/arithgroup/all.py | 18 +- src/sage/modular/btquotients/all.py | 2 +- src/sage/modular/hecke/all.py | 18 +- src/sage/modular/local_comp/all.py | 2 +- src/sage/modular/modform/all.py | 16 +- src/sage/modular/modform_hecketriangle/all.py | 10 +- src/sage/modular/modsym/all.py | 12 +- src/sage/modular/overconvergent/all.py | 6 +- src/sage/modular/pollack_stevens/all.py | 6 +- src/sage/modular/quasimodform/all.py | 2 +- src/sage/modular/quatalg/all.py | 2 +- src/sage/modules/all.py | 10 +- src/sage/monoids/all.py | 8 +- src/sage/numerical/all.py | 2 +- src/sage/parallel/all.py | 2 +- src/sage/plot/all.py | 48 +++--- src/sage/plot/plot3d/all.py | 16 +- src/sage/probability/all.py | 4 +- src/sage/quadratic_forms/all.py | 4 +- .../quadratic_forms/all__sagemath_modules.py | 12 +- .../quadratic_forms/all__sagemath_pari.py | 4 +- src/sage/quadratic_forms/genera/all.py | 2 +- src/sage/repl/ipython_kernel/all_jupyter.py | 4 +- src/sage/rings/all.py | 22 +-- src/sage/rings/all__sagemath_categories.py | 44 ++--- src/sage/rings/all__sagemath_combinat.py | 2 +- src/sage/rings/all__sagemath_flint.py | 16 +- src/sage/rings/all__sagemath_modules.py | 20 +-- src/sage/rings/all__sagemath_ntl.py | 6 +- src/sage/rings/all__sagemath_pari.py | 8 +- src/sage/rings/all__sagemath_symbolics.py | 2 +- src/sage/rings/finite_rings/all.py | 2 +- .../finite_rings/all__sagemath_categories.py | 6 +- src/sage/rings/function_field/all.py | 4 +- .../all__sagemath_categories.py | 2 +- .../function_field/all__sagemath_modules.py | 2 +- .../function_field/all__sagemath_symbolics.py | 2 +- src/sage/rings/number_field/all.py | 8 +- src/sage/rings/padics/all.py | 2 +- .../rings/padics/all__sagemath_categories.py | 2 +- src/sage/rings/padics/all__sagemath_flint.py | 2 +- src/sage/rings/padics/all__sagemath_ntl.py | 4 +- src/sage/rings/padics/all__sagemath_pari.py | 12 +- src/sage/rings/polynomial/all.py | 4 +- src/sage/rings/semirings/all.py | 4 +- src/sage/schemes/affine/all.py | 4 +- src/sage/schemes/all.py | 18 +- src/sage/schemes/all__sagemath_categories.py | 8 +- src/sage/schemes/all__sagemath_polyhedra.py | 2 +- src/sage/schemes/berkovich/all.py | 2 +- src/sage/schemes/curves/all.py | 4 +- src/sage/schemes/cyclic_covers/all.py | 2 +- src/sage/schemes/elliptic_curves/all.py | 10 +- src/sage/schemes/generic/all.py | 4 +- src/sage/schemes/hyperelliptic_curves/all.py | 8 +- src/sage/schemes/plane_conics/all.py | 2 +- src/sage/schemes/plane_quartics/all.py | 2 +- src/sage/schemes/projective/all.py | 2 +- src/sage/sets/all.py | 24 +-- src/sage/stats/all.py | 4 +- src/sage/structure/proof/all.py | 14 +- src/sage/symbolic/all.py | 12 +- src/sage/tensor/all.py | 2 +- src/sage/topology/all.py | 8 +- 132 files changed, 691 insertions(+), 691 deletions(-) diff --git a/src/sage/algebras/all.py b/src/sage/algebras/all.py index e02672ac54a..b2b9a102b1e 100644 --- a/src/sage/algebras/all.py +++ b/src/sage/algebras/all.py @@ -18,10 +18,10 @@ #***************************************************************************** from sage.misc.lazy_import import lazy_import -from .all__sagemath_modules import * -from .all__sagemath_combinat import * +from sage.algebras.all__sagemath_modules import * +from sage.algebras.all__sagemath_combinat import * -from .quatalg.all import * -from .fusion_rings.all import * -from .lie_algebras.all import * -from .lie_conformal_algebras.all import * +from sage.algebras.quatalg.all import * +from sage.algebras.fusion_rings.all import * +from sage.algebras.lie_algebras.all import * +from sage.algebras.lie_conformal_algebras.all import * diff --git a/src/sage/algebras/all__sagemath_combinat.py b/src/sage/algebras/all__sagemath_combinat.py index 23e1bd4217b..6cbe558cbdc 100644 --- a/src/sage/algebras/all__sagemath_combinat.py +++ b/src/sage/algebras/all__sagemath_combinat.py @@ -5,8 +5,8 @@ lazy_import('sage.algebras.free_algebra', 'FreeAlgebra') lazy_import('sage.algebras.free_algebra_quotient', 'FreeAlgebraQuotient') -from .steenrod.all import * -from .quantum_groups.all import * +from sage.algebras.steenrod.all import * +from sage.algebras.quantum_groups.all import * lazy_import('sage.algebras.iwahori_hecke_algebra', 'IwahoriHeckeAlgebra') lazy_import('sage.algebras.affine_nil_temperley_lieb', diff --git a/src/sage/algebras/all__sagemath_modules.py b/src/sage/algebras/all__sagemath_modules.py index d52f918d1a1..a88d884fd6b 100644 --- a/src/sage/algebras/all__sagemath_modules.py +++ b/src/sage/algebras/all__sagemath_modules.py @@ -2,10 +2,10 @@ lazy_import('sage.algebras.group_algebra', 'GroupAlgebra') -from .algebra import Algebra -from .finite_dimensional_algebras.all import FiniteDimensionalAlgebra -from .clifford_algebra import CliffordAlgebra, ExteriorAlgebra -from .weyl_algebra import DifferentialWeylAlgebra +from sage.algebras.algebra import Algebra +from sage.algebras.finite_dimensional_algebras.all import FiniteDimensionalAlgebra +from sage.algebras.clifford_algebra import CliffordAlgebra, ExteriorAlgebra +from sage.algebras.weyl_algebra import DifferentialWeylAlgebra lazy_import('sage.algebras.octonion_algebra', 'OctonionAlgebra') import sage.algebras.catalog as algebras diff --git a/src/sage/algebras/finite_dimensional_algebras/all.py b/src/sage/algebras/finite_dimensional_algebras/all.py index add5ff8ecd6..acf12b5758a 100644 --- a/src/sage/algebras/finite_dimensional_algebras/all.py +++ b/src/sage/algebras/finite_dimensional_algebras/all.py @@ -1 +1 @@ -from .finite_dimensional_algebra import FiniteDimensionalAlgebra +from sage.algebras.finite_dimensional_algebras.finite_dimensional_algebra import FiniteDimensionalAlgebra diff --git a/src/sage/algebras/quatalg/all.py b/src/sage/algebras/quatalg/all.py index 0f0d45c0217..23bd4edac89 100644 --- a/src/sage/algebras/quatalg/all.py +++ b/src/sage/algebras/quatalg/all.py @@ -1 +1 @@ -from .quaternion_algebra import QuaternionAlgebra +from sage.algebras.quatalg.quaternion_algebra import QuaternionAlgebra diff --git a/src/sage/all.py b/src/sage/all.py index b54610c819d..640a07cdbea 100644 --- a/src/sage/all.py +++ b/src/sage/all.py @@ -59,7 +59,7 @@ ################ end setup warnings ############################### -from .all__sagemath_repl import * # includes .all__sagemath_objects, .all__sagemath_environment +from sage.all__sagemath_repl import * # includes .all__sagemath_objects, .all__sagemath_environment ################################################################### diff --git a/src/sage/all__sagemath_categories.py b/src/sage/all__sagemath_categories.py index 4f438a77cbe..872e717af00 100644 --- a/src/sage/all__sagemath_categories.py +++ b/src/sage/all__sagemath_categories.py @@ -1,4 +1,4 @@ -from .all__sagemath_objects import * +from sage.all__sagemath_objects import * from sage.categories.all import * diff --git a/src/sage/all__sagemath_repl.py b/src/sage/all__sagemath_repl.py index c31b206bcb8..43bdb38e21f 100644 --- a/src/sage/all__sagemath_repl.py +++ b/src/sage/all__sagemath_repl.py @@ -97,8 +97,8 @@ r"removed from itertools in Python 3.14.") -from .all__sagemath_objects import * -from .all__sagemath_environment import * +from sage.all__sagemath_objects import * +from sage.all__sagemath_environment import * from sage.doctest.all import * from sage.repl.all import * diff --git a/src/sage/arith/all.py b/src/sage/arith/all.py index c93e9f05bc9..16e2344e93f 100644 --- a/src/sage/arith/all.py +++ b/src/sage/arith/all.py @@ -1,6 +1,6 @@ from sage.misc.lazy_import import lazy_import -from .misc import (algdep, bernoulli, is_prime, is_prime_power, +from sage.arith.misc import (algdep, bernoulli, is_prime, is_prime_power, is_pseudoprime, is_pseudoprime_power, prime_powers, primes_first_n, eratosthenes, primes, next_prime_power, next_probable_prime, next_prime, @@ -26,10 +26,10 @@ lazy_import('sage.arith.misc', ('Sigma', 'Moebius', 'Euler_Phi'), deprecation=30322) -from .functions import lcm +from sage.arith.functions import lcm LCM = lcm -from .srange import xsrange, srange, ellipsis_iter, ellipsis_range +from sage.arith.srange import xsrange, srange, ellipsis_iter, ellipsis_range sxrange = xsrange σ = sigma diff --git a/src/sage/calculus/all.py b/src/sage/calculus/all.py index 7f77f5c8dd3..b9e92f597a0 100644 --- a/src/sage/calculus/all.py +++ b/src/sage/calculus/all.py @@ -1,17 +1,17 @@ -from .all__sagemath_modules import * +from sage.calculus.all__sagemath_modules import * from sage.misc.lazy_import import lazy_import -from .calculus import maxima as maxima_calculus -from .calculus import (laplace, inverse_laplace, +from sage.calculus.calculus import maxima as maxima_calculus +from sage.calculus.calculus import (laplace, inverse_laplace, limit, lim) -from .desolvers import (desolve, desolve_laplace, desolve_system, +from sage.calculus.desolvers import (desolve, desolve_laplace, desolve_system, eulers_method, eulers_method_2x2, eulers_method_2x2_plot, desolve_rk4, desolve_system_rk4, desolve_odeint, desolve_mintides, desolve_tides_mpfr) -from .var import (var, function, clear_vars) +from sage.calculus.var import (var, function, clear_vars) lazy_import('sage.modules.free_module_element', ['vector', 'FreeModuleElement']) lazy_import('sage.matrix.constructor', 'matrix') @@ -213,4 +213,4 @@ def symbolic_expression(x): return SR(x) -from . import desolvers +from sage.calculus import desolvers diff --git a/src/sage/calculus/all__sagemath_categories.py b/src/sage/calculus/all__sagemath_categories.py index 63e6cb18214..cf9a7fbd0b2 100644 --- a/src/sage/calculus/all__sagemath_categories.py +++ b/src/sage/calculus/all__sagemath_categories.py @@ -1 +1 @@ -from .functional import diff, derivative, expand, simplify, taylor +from sage.calculus.functional import diff, derivative, expand, simplify, taylor diff --git a/src/sage/calculus/all__sagemath_modules.py b/src/sage/calculus/all__sagemath_modules.py index cf51c475f98..f2658a16cd9 100644 --- a/src/sage/calculus/all__sagemath_modules.py +++ b/src/sage/calculus/all__sagemath_modules.py @@ -1,17 +1,17 @@ -from .all__sagemath_categories import * +from sage.calculus.all__sagemath_categories import * -from .integration import numerical_integral, monte_carlo_integral +from sage.calculus.integration import numerical_integral, monte_carlo_integral integral_numerical = numerical_integral -from .interpolation import spline, Spline +from sage.calculus.interpolation import spline, Spline -from .functions import wronskian, jacobian +from sage.calculus.functions import wronskian, jacobian -from .ode import ode_solver, ode_system +from sage.calculus.ode import ode_solver, ode_system # We lazy_import the following modules since they import numpy which slows down sage startup from sage.misc.lazy_import import lazy_import lazy_import("sage.calculus.riemann", ["Riemann_Map"]) lazy_import("sage.calculus.interpolators", ["polygon_spline","complex_cubic_spline"]) -from .transforms.all import * +from sage.calculus.transforms.all import * diff --git a/src/sage/calculus/transforms/all.py b/src/sage/calculus/transforms/all.py index 379b3b69c37..4eca64a4321 100644 --- a/src/sage/calculus/transforms/all.py +++ b/src/sage/calculus/transforms/all.py @@ -2,4 +2,4 @@ lazy_import("sage.calculus.transforms.fft", ["FastFourierTransform", "FFT"]) lazy_import("sage.calculus.transforms.dwt", ["WaveletTransform", "DWT"]) -from .dft import IndexedSequence +from sage.calculus.transforms.dft import IndexedSequence diff --git a/src/sage/categories/all.py b/src/sage/categories/all.py index 110a9954da3..9c2b8bd6518 100644 --- a/src/sage/categories/all.py +++ b/src/sage/categories/all.py @@ -27,128 +27,128 @@ from sage.misc.namespace_package import install_doc install_doc(__package__, __doc__) -from . import primer +from sage.categories import primer from sage.misc.lazy_import import lazy_import -from .all__sagemath_objects import * +from sage.categories.all__sagemath_objects import * -from .basic import * +from sage.categories.basic import * -from .chain_complexes import ChainComplexes, HomologyFunctor +from sage.categories.chain_complexes import ChainComplexes, HomologyFunctor -from .simplicial_complexes import SimplicialComplexes +from sage.categories.simplicial_complexes import SimplicialComplexes -from .tensor import tensor -from .signed_tensor import tensor_signed +from sage.categories.tensor import tensor +from sage.categories.signed_tensor import tensor_signed -from .g_sets import GSets -from .pointed_sets import PointedSets +from sage.categories.g_sets import GSets +from sage.categories.pointed_sets import PointedSets -from .sets_with_grading import SetsWithGrading +from sage.categories.sets_with_grading import SetsWithGrading -from .groupoid import Groupoid -from .permutation_groups import PermutationGroups +from sage.categories.groupoid import Groupoid +from sage.categories.permutation_groups import PermutationGroups # enumerated sets -from .finite_sets import FiniteSets -from .enumerated_sets import EnumeratedSets -from .finite_enumerated_sets import FiniteEnumeratedSets -from .infinite_enumerated_sets import InfiniteEnumeratedSets +from sage.categories.finite_sets import FiniteSets +from sage.categories.enumerated_sets import EnumeratedSets +from sage.categories.finite_enumerated_sets import FiniteEnumeratedSets +from sage.categories.infinite_enumerated_sets import InfiniteEnumeratedSets # posets -from .posets import Posets -from .finite_posets import FinitePosets -from .lattice_posets import LatticePosets -from .finite_lattice_posets import FiniteLatticePosets +from sage.categories.posets import Posets +from sage.categories.finite_posets import FinitePosets +from sage.categories.lattice_posets import LatticePosets +from sage.categories.finite_lattice_posets import FiniteLatticePosets # finite groups/... -from .finite_semigroups import FiniteSemigroups -from .finite_monoids import FiniteMonoids -from .finite_groups import FiniteGroups -from .finite_permutation_groups import FinitePermutationGroups +from sage.categories.finite_semigroups import FiniteSemigroups +from sage.categories.finite_monoids import FiniteMonoids +from sage.categories.finite_groups import FiniteGroups +from sage.categories.finite_permutation_groups import FinitePermutationGroups # fields -from .number_fields import NumberFields -from .function_fields import FunctionFields +from sage.categories.number_fields import NumberFields +from sage.categories.function_fields import FunctionFields # modules -from .left_modules import LeftModules -from .right_modules import RightModules -from .bimodules import Bimodules +from sage.categories.left_modules import LeftModules +from sage.categories.right_modules import RightModules +from sage.categories.bimodules import Bimodules -from .modules import Modules +from sage.categories.modules import Modules RingModules = Modules -from .vector_spaces import VectorSpaces +from sage.categories.vector_spaces import VectorSpaces # (hopf) algebra structures -from .algebras import Algebras -from .commutative_algebras import CommutativeAlgebras -from .coalgebras import Coalgebras -from .bialgebras import Bialgebras -from .hopf_algebras import HopfAlgebras -from .lie_algebras import LieAlgebras +from sage.categories.algebras import Algebras +from sage.categories.commutative_algebras import CommutativeAlgebras +from sage.categories.coalgebras import Coalgebras +from sage.categories.bialgebras import Bialgebras +from sage.categories.hopf_algebras import HopfAlgebras +from sage.categories.lie_algebras import LieAlgebras # specific algebras -from .monoid_algebras import MonoidAlgebras -from .group_algebras import GroupAlgebras -from .matrix_algebras import MatrixAlgebras +from sage.categories.monoid_algebras import MonoidAlgebras +from sage.categories.group_algebras import GroupAlgebras +from sage.categories.matrix_algebras import MatrixAlgebras # ideals -from .ring_ideals import RingIdeals +from sage.categories.ring_ideals import RingIdeals Ideals = RingIdeals -from .commutative_ring_ideals import CommutativeRingIdeals -from .algebra_modules import AlgebraModules -from .algebra_ideals import AlgebraIdeals -from .commutative_algebra_ideals import CommutativeAlgebraIdeals +from sage.categories.commutative_ring_ideals import CommutativeRingIdeals +from sage.categories.algebra_modules import AlgebraModules +from sage.categories.algebra_ideals import AlgebraIdeals +from sage.categories.commutative_algebra_ideals import CommutativeAlgebraIdeals # schemes and varieties -from .modular_abelian_varieties import ModularAbelianVarieties -from .schemes import Schemes +from sage.categories.modular_abelian_varieties import ModularAbelianVarieties +from sage.categories.schemes import Schemes # * with basis -from .modules_with_basis import ModulesWithBasis +from sage.categories.modules_with_basis import ModulesWithBasis FreeModules = ModulesWithBasis -from .hecke_modules import HeckeModules -from .algebras_with_basis import AlgebrasWithBasis -from .coalgebras_with_basis import CoalgebrasWithBasis -from .bialgebras_with_basis import BialgebrasWithBasis -from .hopf_algebras_with_basis import HopfAlgebrasWithBasis +from sage.categories.hecke_modules import HeckeModules +from sage.categories.algebras_with_basis import AlgebrasWithBasis +from sage.categories.coalgebras_with_basis import CoalgebrasWithBasis +from sage.categories.bialgebras_with_basis import BialgebrasWithBasis +from sage.categories.hopf_algebras_with_basis import HopfAlgebrasWithBasis # finite dimensional * with basis -from .finite_dimensional_modules_with_basis import FiniteDimensionalModulesWithBasis -from .finite_dimensional_algebras_with_basis import FiniteDimensionalAlgebrasWithBasis -from .finite_dimensional_coalgebras_with_basis import FiniteDimensionalCoalgebrasWithBasis -from .finite_dimensional_bialgebras_with_basis import FiniteDimensionalBialgebrasWithBasis -from .finite_dimensional_hopf_algebras_with_basis import FiniteDimensionalHopfAlgebrasWithBasis +from sage.categories.finite_dimensional_modules_with_basis import FiniteDimensionalModulesWithBasis +from sage.categories.finite_dimensional_algebras_with_basis import FiniteDimensionalAlgebrasWithBasis +from sage.categories.finite_dimensional_coalgebras_with_basis import FiniteDimensionalCoalgebrasWithBasis +from sage.categories.finite_dimensional_bialgebras_with_basis import FiniteDimensionalBialgebrasWithBasis +from sage.categories.finite_dimensional_hopf_algebras_with_basis import FiniteDimensionalHopfAlgebrasWithBasis # graded * -from .graded_modules import GradedModules -from .graded_algebras import GradedAlgebras -from .graded_coalgebras import GradedCoalgebras -from .graded_bialgebras import GradedBialgebras -from .graded_hopf_algebras import GradedHopfAlgebras +from sage.categories.graded_modules import GradedModules +from sage.categories.graded_algebras import GradedAlgebras +from sage.categories.graded_coalgebras import GradedCoalgebras +from sage.categories.graded_bialgebras import GradedBialgebras +from sage.categories.graded_hopf_algebras import GradedHopfAlgebras # graded * with basis -from .graded_modules_with_basis import GradedModulesWithBasis -from .graded_algebras_with_basis import GradedAlgebrasWithBasis -from .graded_coalgebras_with_basis import GradedCoalgebrasWithBasis -from .graded_bialgebras_with_basis import GradedBialgebrasWithBasis -from .graded_hopf_algebras_with_basis import GradedHopfAlgebrasWithBasis +from sage.categories.graded_modules_with_basis import GradedModulesWithBasis +from sage.categories.graded_algebras_with_basis import GradedAlgebrasWithBasis +from sage.categories.graded_coalgebras_with_basis import GradedCoalgebrasWithBasis +from sage.categories.graded_bialgebras_with_basis import GradedBialgebrasWithBasis +from sage.categories.graded_hopf_algebras_with_basis import GradedHopfAlgebrasWithBasis # Coxeter groups -from .coxeter_groups import CoxeterGroups +from sage.categories.coxeter_groups import CoxeterGroups lazy_import('sage.categories.finite_coxeter_groups', 'FiniteCoxeterGroups') -from .weyl_groups import WeylGroups -from .finite_weyl_groups import FiniteWeylGroups -from .affine_weyl_groups import AffineWeylGroups +from sage.categories.weyl_groups import WeylGroups +from sage.categories.finite_weyl_groups import FiniteWeylGroups +from sage.categories.affine_weyl_groups import AffineWeylGroups # crystal bases -from .crystals import Crystals -from .highest_weight_crystals import HighestWeightCrystals -from .regular_crystals import RegularCrystals -from .finite_crystals import FiniteCrystals -from .classical_crystals import ClassicalCrystals +from sage.categories.crystals import Crystals +from sage.categories.highest_weight_crystals import HighestWeightCrystals +from sage.categories.regular_crystals import RegularCrystals +from sage.categories.finite_crystals import FiniteCrystals +from sage.categories.classical_crystals import ClassicalCrystals # polyhedra lazy_import('sage.categories.polyhedra', 'PolyhedralSets') diff --git a/src/sage/categories/all__sagemath_objects.py b/src/sage/categories/all__sagemath_objects.py index dee0881d787..938f7ce0703 100644 --- a/src/sage/categories/all__sagemath_objects.py +++ b/src/sage/categories/all__sagemath_objects.py @@ -6,26 +6,26 @@ # in initializing the category system. import sage.structure.category_object # imports sage.categories.category -# Small part of "from .basic import *": -from .objects import Objects -from .sets_cat import Sets, EmptySetError +# Small part of "from sage.categories.basic import *": +from sage.categories.objects import Objects +from sage.categories.sets_cat import Sets, EmptySetError -from .category import Category +from sage.categories.category import Category -from .category_types import Elements +from sage.categories.category_types import Elements -from .cartesian_product import cartesian_product +from sage.categories.cartesian_product import cartesian_product -from .functor import (ForgetfulFunctor, +from sage.categories.functor import (ForgetfulFunctor, IdentityFunctor) -from .homset import (Hom, hom, +from sage.categories.homset import (Hom, hom, End, end, Homset, HomsetWithBase) -from .morphism import Morphism +from sage.categories.morphism import Morphism -from .realizations import Realizations +from sage.categories.realizations import Realizations -from .sets_with_partial_maps import SetsWithPartialMaps +from sage.categories.sets_with_partial_maps import SetsWithPartialMaps diff --git a/src/sage/coding/source_coding/all.py b/src/sage/coding/source_coding/all.py index dc95b1fb9f3..119db02385e 100644 --- a/src/sage/coding/source_coding/all.py +++ b/src/sage/coding/source_coding/all.py @@ -1 +1 @@ -from .huffman import Huffman +from sage.coding.source_coding.huffman import Huffman diff --git a/src/sage/combinat/all.py b/src/sage/combinat/all.py index acef92816fe..243b27aaf45 100644 --- a/src/sage/combinat/all.py +++ b/src/sage/combinat/all.py @@ -50,12 +50,12 @@ install_doc(__package__, __doc__) # install modules quickref and tutorial to the containing package -from . import quickref, tutorial +from sage.combinat import quickref, tutorial install_dict(__package__, {'quickref': quickref, 'tutorial': tutorial}) del quickref, tutorial from sage.misc.lazy_import import lazy_import -from .all__sagemath_combinat import * -from .all__sagemath_modules import * -from .all__sagemath_graphs import * +from sage.combinat.all__sagemath_combinat import * +from sage.combinat.all__sagemath_modules import * +from sage.combinat.all__sagemath_graphs import * diff --git a/src/sage/combinat/all__sagemath_categories.py b/src/sage/combinat/all__sagemath_categories.py index f259743f620..6fcf3d375aa 100644 --- a/src/sage/combinat/all__sagemath_categories.py +++ b/src/sage/combinat/all__sagemath_categories.py @@ -1,10 +1,10 @@ # Integer lists -from .matrices.all__sagemath_categories import * +from sage.combinat.matrices.all__sagemath_categories import * -from .integer_lists import IntegerListsLex -from .integer_vector import IntegerVectors +from sage.combinat.integer_lists import IntegerListsLex +from sage.combinat.integer_vector import IntegerVectors -from .combinat import (CombinatorialClass, CombinatorialObject, +from sage.combinat.combinat import (CombinatorialClass, CombinatorialObject, MapCombinatorialClass, bell_number, bell_polynomial, bernoulli_polynomial, catalan_number, euler_number, @@ -19,11 +19,11 @@ 'FilteredCombinatorialClass'), deprecation=(31545, 'this class is deprecated, do not use')) -from .combination import Combinations -from .composition import Composition, Compositions -from .permutation import Permutation, Permutations, Arrangements, CyclicPermutations, CyclicPermutationsOfPartition -from .subset import Subsets, subsets, powerset, uniq -from .tuple import Tuples, UnorderedTuples +from sage.combinat.combination import Combinations +from sage.combinat.composition import Composition, Compositions +from sage.combinat.permutation import Permutation, Permutations, Arrangements, CyclicPermutations, CyclicPermutationsOfPartition +from sage.combinat.subset import Subsets, subsets, powerset, uniq +from sage.combinat.tuple import Tuples, UnorderedTuples -from .dlx import DLXMatrix, AllExactCovers, OneExactCover +from sage.combinat.dlx import DLXMatrix, AllExactCovers, OneExactCover diff --git a/src/sage/combinat/all__sagemath_combinat.py b/src/sage/combinat/all__sagemath_combinat.py index 9e06eeb0c08..36a8fd061cf 100644 --- a/src/sage/combinat/all__sagemath_combinat.py +++ b/src/sage/combinat/all__sagemath_combinat.py @@ -1,15 +1,15 @@ -from .all__sagemath_categories import * +from sage.combinat.all__sagemath_categories import * from sage.misc.lazy_import import lazy_import -from .expnums import expnums +from sage.combinat.expnums import expnums from sage.combinat.chas.all import * from sage.combinat.crystals.all import * -from .rigged_configurations.all import * +from sage.combinat.rigged_configurations.all import * # Free modules and friends -from .debruijn_sequence import DeBruijnSequences +from sage.combinat.debruijn_sequence import DeBruijnSequences lazy_import('sage.combinat.schubert_polynomial', 'SchubertPolynomialRing') lazy_import('sage.combinat.key_polynomial', 'KeyPolynomialBasis', as_='KeyPolynomials') @@ -21,23 +21,23 @@ lazy_import('sage.combinat.colored_permutations', ['ColoredPermutations', 'SignedPermutation', 'SignedPermutations']) -from .derangements import Derangements +from sage.combinat.derangements import Derangements lazy_import('sage.combinat.baxter_permutations', ['BaxterPermutations']) # RSK -from .rsk import RSK, RSK_inverse, robinson_schensted_knuth, robinson_schensted_knuth_inverse, InsertionRules +from sage.combinat.rsk import RSK, RSK_inverse, robinson_schensted_knuth, robinson_schensted_knuth_inverse, InsertionRules # HillmanGrassl lazy_import("sage.combinat.hillman_grassl", ["WeakReversePlanePartition", "WeakReversePlanePartitions"]) # PerfectMatchings -from .perfect_matching import PerfectMatching, PerfectMatchings +from sage.combinat.perfect_matching import PerfectMatching, PerfectMatchings # Compositions -from .composition_signed import SignedCompositions +from sage.combinat.composition_signed import SignedCompositions # Partitions -from .partition import (Partition, Partitions, PartitionsInBox, +from sage.combinat.partition import (Partition, Partitions, PartitionsInBox, OrderedPartitions, PartitionsGreatestLE, PartitionsGreatestEQ, number_of_partitions) @@ -69,21 +69,21 @@ 'SimilarityClassType', 'SimilarityClassTypes']) # Cores -from .core import Core, Cores +from sage.combinat.core import Core, Cores # Tableaux lazy_import('sage.combinat.tableau', ["Tableau", "SemistandardTableau", "StandardTableau", "RowStandardTableau", "IncreasingTableau", "Tableaux", "SemistandardTableaux", "StandardTableaux", "RowStandardTableaux", "IncreasingTableaux"]) -from .skew_tableau import SkewTableau, SkewTableaux, StandardSkewTableaux, SemistandardSkewTableaux -from .ribbon_shaped_tableau import RibbonShapedTableau, RibbonShapedTableaux, StandardRibbonShapedTableaux -from .ribbon_tableau import RibbonTableaux, RibbonTableau, MultiSkewTableaux, MultiSkewTableau, SemistandardMultiSkewTableaux -from .composition_tableau import CompositionTableau, CompositionTableaux +from sage.combinat.skew_tableau import SkewTableau, SkewTableaux, StandardSkewTableaux, SemistandardSkewTableaux +from sage.combinat.ribbon_shaped_tableau import RibbonShapedTableau, RibbonShapedTableaux, StandardRibbonShapedTableaux +from sage.combinat.ribbon_tableau import RibbonTableaux, RibbonTableau, MultiSkewTableaux, MultiSkewTableau, SemistandardMultiSkewTableaux +from sage.combinat.composition_tableau import CompositionTableau, CompositionTableaux lazy_import('sage.combinat.tableau_tuple', ['TableauTuple', 'StandardTableauTuple', 'RowStandardTableauTuple', 'TableauTuples', 'StandardTableauTuples', 'RowStandardTableauTuples']) -from .k_tableau import WeakTableau, WeakTableaux, StrongTableau, StrongTableaux +from sage.combinat.k_tableau import WeakTableau, WeakTableaux, StrongTableau, StrongTableaux lazy_import('sage.combinat.lr_tableau', ['LittlewoodRichardsonTableau', 'LittlewoodRichardsonTableaux']) lazy_import('sage.combinat.shifted_primed_tableau', ['ShiftedPrimedTableaux', @@ -94,7 +94,7 @@ ["StandardSuperTableau", "SemistandardSuperTableau", "StandardSuperTableaux", "SemistandardSuperTableaux"]) # Words -from .words.all import * +from sage.combinat.words.all import * lazy_import('sage.combinat.subword', 'Subwords') @@ -119,33 +119,33 @@ lazy_import('sage.combinat.parking_functions', ['ParkingFunctions', 'ParkingFunction']) -from .set_partition import SetPartition, SetPartitions -from .set_partition_ordered import OrderedSetPartition, OrderedSetPartitions +from sage.combinat.set_partition import SetPartition, SetPartitions +from sage.combinat.set_partition_ordered import OrderedSetPartition, OrderedSetPartitions lazy_import('sage.combinat.multiset_partition_into_sets_ordered', ['OrderedMultisetPartitionIntoSets', 'OrderedMultisetPartitionsIntoSets']) -from .necklace import Necklaces +from sage.combinat.necklace import Necklaces lazy_import('sage.combinat.dyck_word', ('DyckWords', 'DyckWord')) lazy_import('sage.combinat.nu_dyck_word', ('NuDyckWords', 'NuDyckWord')) -from .sloane_functions import sloane +from sage.combinat.sloane_functions import sloane lazy_import('sage.combinat.superpartition', ('SuperPartition', 'SuperPartitions')) lazy_import('sage.combinat.parallelogram_polyomino', ['ParallelogramPolyomino', 'ParallelogramPolyominoes']) -from .sf.all import * -from .ncsf_qsym.all import * -from .ncsym.all import * +from sage.combinat.sf.all import * +from sage.combinat.ncsf_qsym.all import * +from sage.combinat.ncsym.all import * lazy_import('sage.combinat.fqsym', 'FreeQuasisymmetricFunctions') -from .matrices.all import * +from sage.combinat.matrices.all import * lazy_import('sage.combinat.integer_vector_weighted', 'WeightedIntegerVectors') lazy_import('sage.combinat.integer_vectors_mod_permgroup', 'IntegerVectorsModPermutationGroup') lazy_import('sage.combinat.q_analogues', ['gaussian_binomial', 'q_binomial']) -from .species.all import * +from sage.combinat.species.all import * lazy_import('sage.combinat.kazhdan_lusztig', 'KazhdanLusztigPolynomial') diff --git a/src/sage/combinat/all__sagemath_graphs.py b/src/sage/combinat/all__sagemath_graphs.py index 2c022af4663..dc524200587 100644 --- a/src/sage/combinat/all__sagemath_graphs.py +++ b/src/sage/combinat/all__sagemath_graphs.py @@ -1,28 +1,28 @@ -from .all__sagemath_categories import * +from sage.combinat.all__sagemath_categories import * from sage.misc.lazy_import import lazy_import # Posets -from .posets.all import * +from sage.combinat.posets.all import * # Trees and Tamari interval posets -from .ordered_tree import (OrderedTree, OrderedTrees, +from sage.combinat.ordered_tree import (OrderedTree, OrderedTrees, LabelledOrderedTree, LabelledOrderedTrees) -from .binary_tree import (BinaryTree, BinaryTrees, +from sage.combinat.binary_tree import (BinaryTree, BinaryTrees, LabelledBinaryTree, LabelledBinaryTrees) lazy_import('sage.combinat.rooted_tree', ('RootedTree', 'RootedTrees', 'LabelledRootedTree', 'LabelledRootedTrees')) lazy_import('sage.combinat.interval_posets', ['TamariIntervalPoset', 'TamariIntervalPosets']) -from .graph_path import GraphPaths +from sage.combinat.graph_path import GraphPaths -from .yang_baxter_graph import YangBaxterGraph +from sage.combinat.yang_baxter_graph import YangBaxterGraph # block designs, etc from sage.combinat.designs.all import * # Cluster Algebras and Quivers -from .cluster_algebra_quiver.all import * +from sage.combinat.cluster_algebra_quiver.all import * # Finite State Machines (Automaton, Transducer) lazy_import('sage.combinat.finite_state_machine', diff --git a/src/sage/combinat/all__sagemath_modules.py b/src/sage/combinat/all__sagemath_modules.py index 540552d4473..a2459fcafc0 100644 --- a/src/sage/combinat/all__sagemath_modules.py +++ b/src/sage/combinat/all__sagemath_modules.py @@ -1,6 +1,6 @@ -from .all__sagemath_categories import * +from sage.combinat.all__sagemath_categories import * -from .free_module import CombinatorialFreeModule -from . import ranker +from sage.combinat.free_module import CombinatorialFreeModule +from sage.combinat import ranker -from .root_system.all import * +from sage.combinat.root_system.all import * diff --git a/src/sage/combinat/designs/all.py b/src/sage/combinat/designs/all.py index 0948c6fa281..22e600cd40c 100644 --- a/src/sage/combinat/designs/all.py +++ b/src/sage/combinat/designs/all.py @@ -51,4 +51,4 @@ lazy_import('sage.combinat.designs.covering_design', ['CoveringDesign', 'schonheim', 'trivial_covering_design']) -from . import design_catalog as designs +from sage.combinat.designs import design_catalog as designs diff --git a/src/sage/combinat/matrices/all.py b/src/sage/combinat/matrices/all.py index 45f3d0018f7..92df248b91b 100644 --- a/src/sage/combinat/matrices/all.py +++ b/src/sage/combinat/matrices/all.py @@ -10,7 +10,7 @@ from sage.misc.namespace_package import install_doc install_doc(__package__, __doc__) -from .all__sagemath_categories import * +from sage.combinat.matrices.all__sagemath_categories import * from sage.misc.lazy_import import lazy_import diff --git a/src/sage/combinat/posets/all.py b/src/sage/combinat/posets/all.py index f7f8bdcc7fc..3fd43f61938 100644 --- a/src/sage/combinat/posets/all.py +++ b/src/sage/combinat/posets/all.py @@ -36,8 +36,8 @@ from sage.misc.namespace_package import install_doc install_doc(__package__, __doc__) -from .posets import Poset +from sage.combinat.posets.posets import Poset -from .lattices import LatticePoset, MeetSemilattice, JoinSemilattice +from sage.combinat.posets.lattices import LatticePoset, MeetSemilattice, JoinSemilattice -from .poset_examples import posets, Posets +from sage.combinat.posets.poset_examples import posets, Posets diff --git a/src/sage/combinat/root_system/all.py b/src/sage/combinat/root_system/all.py index 95500f05cc6..9c91bc4b6fd 100644 --- a/src/sage/combinat/root_system/all.py +++ b/src/sage/combinat/root_system/all.py @@ -121,12 +121,12 @@ from sage.misc.lazy_import import lazy_import -from .cartan_type import CartanType +from sage.combinat.root_system.cartan_type import CartanType lazy_import('sage.combinat.root_system.dynkin_diagram', 'DynkinDiagram') lazy_import('sage.combinat.root_system.cartan_matrix', 'CartanMatrix') lazy_import('sage.combinat.root_system.coxeter_matrix', 'CoxeterMatrix') -from .coxeter_type import CoxeterType -from .root_system import RootSystem, WeylDim +from sage.combinat.root_system.coxeter_type import CoxeterType +from sage.combinat.root_system.root_system import RootSystem, WeylDim lazy_import('sage.combinat.root_system.weyl_group', ['WeylGroup', 'WeylGroupElement']) lazy_import('sage.combinat.root_system.reflection_group_real', @@ -136,7 +136,7 @@ lazy_import('sage.combinat.root_system.coxeter_group', 'CoxeterGroup') lazy_import('sage.combinat.root_system.weyl_characters', ['WeylCharacterRing', 'WeightRing']) -from .branching_rules import BranchingRule, branching_rule_from_plethysm, branching_rule +from sage.combinat.root_system.branching_rules import BranchingRule, branching_rule_from_plethysm, branching_rule lazy_import('sage.combinat.root_system.non_symmetric_macdonald_polynomials', 'NonSymmetricMacdonaldPolynomials') lazy_import('sage.combinat.root_system.integrable_representations', 'IntegrableRepresentation') diff --git a/src/sage/combinat/words/all.py b/src/sage/combinat/words/all.py index db32945a0f6..66a2fa38719 100644 --- a/src/sage/combinat/words/all.py +++ b/src/sage/combinat/words/all.py @@ -45,14 +45,14 @@ from sage.misc.lazy_import import lazy_import -from .alphabet import Alphabet, build_alphabet -from .morphism import WordMorphism +from sage.combinat.words.alphabet import Alphabet, build_alphabet +from sage.combinat.words.morphism import WordMorphism lazy_import('sage.combinat.words.paths', 'WordPaths') -from .word import Word -from .word_options import WordOptions -from .word_generators import words -from .words import Words, FiniteWords, InfiniteWords -from .lyndon_word import LyndonWord, LyndonWords, StandardBracketedLyndonWords +from sage.combinat.words.word import Word +from sage.combinat.words.word_options import WordOptions +from sage.combinat.words.word_generators import words +from sage.combinat.words.words import Words, FiniteWords, InfiniteWords +from sage.combinat.words.lyndon_word import LyndonWord, LyndonWords, StandardBracketedLyndonWords del install_doc del lazy_import diff --git a/src/sage/cpython/all.py b/src/sage/cpython/all.py index d35cd6f2e8a..d48ee4c7d45 100644 --- a/src/sage/cpython/all.py +++ b/src/sage/cpython/all.py @@ -1,2 +1,2 @@ -from .debug import getattr_debug, type_debug -from .getattr import raw_getattr +from sage.cpython.debug import getattr_debug, type_debug +from sage.cpython.getattr import raw_getattr diff --git a/src/sage/data_structures/all.py b/src/sage/data_structures/all.py index ae1d0ab8b43..7062ccf447e 100644 --- a/src/sage/data_structures/all.py +++ b/src/sage/data_structures/all.py @@ -1 +1 @@ -from .all__sagemath_categories import * +from sage.data_structures.all__sagemath_categories import * diff --git a/src/sage/data_structures/all__sagemath_categories.py b/src/sage/data_structures/all__sagemath_categories.py index 6140cf5b919..fe98668667d 100644 --- a/src/sage/data_structures/all__sagemath_categories.py +++ b/src/sage/data_structures/all__sagemath_categories.py @@ -1 +1 @@ -from .bitset import Bitset, FrozenBitset +from sage.data_structures.bitset import Bitset, FrozenBitset diff --git a/src/sage/databases/all.py b/src/sage/databases/all.py index 8f0daa2aac7..5619acadd5b 100644 --- a/src/sage/databases/all.py +++ b/src/sage/databases/all.py @@ -48,7 +48,7 @@ # **************************************************************************** from sage.misc.lazy_import import lazy_import -from .sql_db import SQLQuery, SQLDatabase +from sage.databases.sql_db import SQLQuery, SQLDatabase lazy_import('sage.databases.conway', 'ConwayPolynomials') @@ -67,14 +67,14 @@ lazy_import('sage.databases.odlyzko', 'zeta_zeros') -from .db_modular_polynomials import \ +from sage.databases.db_modular_polynomials import \ ClassicalModularPolynomialDatabase, \ DedekindEtaModularPolynomialDatabase, \ DedekindEtaModularCorrespondenceDatabase, \ AtkinModularPolynomialDatabase, \ AtkinModularCorrespondenceDatabase -from .db_class_polynomials import \ +from sage.databases.db_class_polynomials import \ HilbertClassPolynomialDatabase lazy_import('sage.databases.cunningham_tables', 'cunningham_prime_factors') diff --git a/src/sage/dynamics/all.py b/src/sage/dynamics/all.py index 1dbd9579e30..4d2af9a9dc2 100644 --- a/src/sage/dynamics/all.py +++ b/src/sage/dynamics/all.py @@ -20,10 +20,10 @@ from sage.misc.namespace_package import install_doc install_doc(__package__, __doc__) -from .all__sagemath_schemes import * +from sage.dynamics.all__sagemath_schemes import * try: - from .all__sagemath_symbolics import * + from sage.dynamics.all__sagemath_symbolics import * except ImportError: pass diff --git a/src/sage/dynamics/arithmetic_dynamics/all.py b/src/sage/dynamics/arithmetic_dynamics/all.py index f536734b5d9..8b32ff4cded 100644 --- a/src/sage/dynamics/arithmetic_dynamics/all.py +++ b/src/sage/dynamics/arithmetic_dynamics/all.py @@ -1,12 +1,12 @@ from sage.misc.lazy_import import lazy_import -from .generic_ds import DynamicalSystem -from .affine_ds import DynamicalSystem_affine -from .projective_ds import DynamicalSystem_projective -from .product_projective_ds import DynamicalSystem_product_projective -from .berkovich_ds import DynamicalSystem_Berkovich -from .dynamical_semigroup import DynamicalSemigroup -from .dynamical_semigroup import DynamicalSemigroup_affine -from .dynamical_semigroup import DynamicalSemigroup_projective +from sage.dynamics.arithmetic_dynamics.generic_ds import DynamicalSystem +from sage.dynamics.arithmetic_dynamics.affine_ds import DynamicalSystem_affine +from sage.dynamics.arithmetic_dynamics.projective_ds import DynamicalSystem_projective +from sage.dynamics.arithmetic_dynamics.product_projective_ds import DynamicalSystem_product_projective +from sage.dynamics.arithmetic_dynamics.berkovich_ds import DynamicalSystem_Berkovich +from sage.dynamics.arithmetic_dynamics.dynamical_semigroup import DynamicalSemigroup +from sage.dynamics.arithmetic_dynamics.dynamical_semigroup import DynamicalSemigroup_affine +from sage.dynamics.arithmetic_dynamics.dynamical_semigroup import DynamicalSemigroup_projective lazy_import('sage.dynamics.arithmetic_dynamics.wehlerK3', 'WehlerK3Surface') lazy_import('sage.dynamics.arithmetic_dynamics.wehlerK3', 'random_WehlerK3Surface') diff --git a/src/sage/functions/all.py b/src/sage/functions/all.py index 4cf9005f7e3..afcf9e57ee1 100644 --- a/src/sage/functions/all.py +++ b/src/sage/functions/all.py @@ -5,41 +5,41 @@ lazy_import('sage.functions.error', ['erf', 'erfc', 'erfi', 'erfinv', 'fresnel_sin', 'fresnel_cos']) -from .trig import ( sin, cos, sec, csc, cot, tan, +from sage.functions.trig import ( sin, cos, sec, csc, cot, tan, asin, acos, atan, acot, acsc, asec, arcsin, arccos, arctan, arccot, arccsc, arcsec, arctan2, atan2) -from .hyperbolic import ( tanh, sinh, cosh, coth, sech, csch, +from sage.functions.hyperbolic import ( tanh, sinh, cosh, coth, sech, csch, asinh, acosh, atanh, acoth, asech, acsch, arcsinh, arccosh, arctanh, arccoth, arcsech, arccsch ) reciprocal_trig_functions = {'sec': cos, 'csc': sin, 'cot': tan, 'sech': cosh, 'csch': sinh, 'coth': tanh} -from .other import ( ceil, floor, abs_symbolic, sqrt, real_nth_root, +from sage.functions.other import ( ceil, floor, abs_symbolic, sqrt, real_nth_root, arg, real_part, real, frac, factorial, binomial, imag_part, imag, imaginary, conjugate, cases, complex_root_of) -from .log import (exp, exp_polar, log, ln, polylog, dilog, lambert_w, harmonic_number) +from sage.functions.log import (exp, exp_polar, log, ln, polylog, dilog, lambert_w, harmonic_number) -from .transcendental import (zeta, zetaderiv, zeta_symmetric, hurwitz_zeta, +from sage.functions.transcendental import (zeta, zetaderiv, zeta_symmetric, hurwitz_zeta, dickman_rho, stieltjes) -from .bessel import (bessel_I, bessel_J, bessel_K, bessel_Y, +from sage.functions.bessel import (bessel_I, bessel_J, bessel_K, bessel_Y, Bessel, struve_H, struve_L, hankel1, hankel2, spherical_bessel_J, spherical_bessel_Y, spherical_hankel1, spherical_hankel2) -from .special import (spherical_harmonic, elliptic_e, +from sage.functions.special import (spherical_harmonic, elliptic_e, elliptic_f, elliptic_ec, elliptic_eu, elliptic_kc, elliptic_pi, elliptic_j) -from .jacobi import (jacobi, inverse_jacobi, jacobi_nd, jacobi_ns, jacobi_nc, +from sage.functions.jacobi import (jacobi, inverse_jacobi, jacobi_nd, jacobi_ns, jacobi_nc, jacobi_dn, jacobi_ds, jacobi_dc, jacobi_sn, jacobi_sd, jacobi_sc, jacobi_cn, jacobi_cd, jacobi_cs, jacobi_am, inverse_jacobi_nd, inverse_jacobi_ns, inverse_jacobi_nc, @@ -47,7 +47,7 @@ inverse_jacobi_sn, inverse_jacobi_sd, inverse_jacobi_sc, inverse_jacobi_cn, inverse_jacobi_cd, inverse_jacobi_cs) -from .orthogonal_polys import (chebyshev_T, +from sage.functions.orthogonal_polys import (chebyshev_T, chebyshev_U, gen_laguerre, gen_legendre_P, @@ -63,29 +63,29 @@ meixner, hahn) -from .spike_function import spike_function +from sage.functions.spike_function import spike_function -from .prime_pi import legendre_phi, partial_sieve_function, prime_pi +from sage.functions.prime_pi import legendre_phi, partial_sieve_function, prime_pi -from .wigner import (wigner_3j, clebsch_gordan, racah, wigner_6j, +from sage.functions.wigner import (wigner_3j, clebsch_gordan, racah, wigner_6j, wigner_9j, gaunt) -from .generalized import (dirac_delta, heaviside, unit_step, sgn, sign, +from sage.functions.generalized import (dirac_delta, heaviside, unit_step, sgn, sign, kronecker_delta) -from .min_max import max_symbolic, min_symbolic +from sage.functions.min_max import max_symbolic, min_symbolic -from .airy import airy_ai, airy_ai_prime, airy_bi, airy_bi_prime +from sage.functions.airy import airy_ai, airy_ai_prime, airy_bi, airy_bi_prime -from .exp_integral import (exp_integral_e, exp_integral_e1, log_integral, li, Li, +from sage.functions.exp_integral import (exp_integral_e, exp_integral_e1, log_integral, li, Li, log_integral_offset, sin_integral, cos_integral, Si, Ci, sinh_integral, cosh_integral, Shi, Chi, exponential_integral_1, Ei, exp_integral_ei) -from .hypergeometric import hypergeometric, hypergeometric_M, hypergeometric_U +from sage.functions.hypergeometric import hypergeometric, hypergeometric_M, hypergeometric_U -from .gamma import (gamma, psi, beta, log_gamma, +from sage.functions.gamma import (gamma, psi, beta, log_gamma, gamma_inc, gamma_inc_lower) Γ = gamma diff --git a/src/sage/geometry/all.py b/src/sage/geometry/all.py index e9f5e568a15..ebf0d36f808 100644 --- a/src/sage/geometry/all.py +++ b/src/sage/geometry/all.py @@ -1,12 +1,12 @@ -from .all__sagemath_polyhedra import * +from sage.geometry.all__sagemath_polyhedra import * try: - from .all__sagemath_symbolics import * + from sage.geometry.all__sagemath_symbolics import * except ImportError: pass try: - from .all__sagemath_gap import * + from sage.geometry.all__sagemath_gap import * except ImportError: pass diff --git a/src/sage/geometry/all__sagemath_polyhedra.py b/src/sage/geometry/all__sagemath_polyhedra.py index 1bc471abd2e..d49257ff37d 100644 --- a/src/sage/geometry/all__sagemath_polyhedra.py +++ b/src/sage/geometry/all__sagemath_polyhedra.py @@ -1,6 +1,6 @@ -from .all__sagemath_modules import * +from sage.geometry.all__sagemath_modules import * -from .polyhedron.all import * +from sage.geometry.polyhedron.all import * from sage.misc.lazy_import import lazy_import lazy_import('sage.geometry.polyhedral_complex', 'PolyhedralComplex') diff --git a/src/sage/geometry/triangulation/all.py b/src/sage/geometry/triangulation/all.py index d40e50321f8..fa72ba05f83 100644 --- a/src/sage/geometry/triangulation/all.py +++ b/src/sage/geometry/triangulation/all.py @@ -1 +1 @@ -from .point_configuration import PointConfiguration +from sage.geometry.triangulation.point_configuration import PointConfiguration diff --git a/src/sage/graphs/all.py b/src/sage/graphs/all.py index 2cbc65d0e23..bae84d0dc5a 100644 --- a/src/sage/graphs/all.py +++ b/src/sage/graphs/all.py @@ -5,13 +5,13 @@ lazy_import("sage.graphs.digraph_generators", "digraphs") lazy_import("sage.graphs.hypergraph_generators", "hypergraphs") lazy_import("sage.graphs.graph_database", ["GraphDatabase", "GenericGraphQuery", "GraphQuery"]) -from .graph import Graph -from .digraph import DiGraph -from .bipartite_graph import BipartiteGraph +from sage.graphs.graph import Graph +from sage.graphs.digraph import DiGraph +from sage.graphs.bipartite_graph import BipartiteGraph import sage.graphs.weakly_chordal import sage.graphs.lovasz_theta import sage.graphs.partial_cube -from . import graph_list as graphs_list +from sage.graphs import graph_list as graphs_list lazy_import("sage.graphs", "graph_coloring") lazy_import("sage.graphs.graph_database", "graph_db_info") lazy_import("sage.graphs.graph_editor", "graph_editor") diff --git a/src/sage/groups/abelian_gps/all.py b/src/sage/groups/abelian_gps/all.py index 98374be35ea..3a4b55e7e43 100644 --- a/src/sage/groups/abelian_gps/all.py +++ b/src/sage/groups/abelian_gps/all.py @@ -20,5 +20,5 @@ # http://www.gnu.org/licenses/ #***************************************************************************** -from .all__sagemath_modules import * -from .all__sagemath_gap import * +from sage.groups.abelian_gps.all__sagemath_modules import * +from sage.groups.abelian_gps.all__sagemath_gap import * diff --git a/src/sage/groups/abelian_gps/all__sagemath_gap.py b/src/sage/groups/abelian_gps/all__sagemath_gap.py index 0088c48b234..80c0bd46216 100644 --- a/src/sage/groups/abelian_gps/all__sagemath_gap.py +++ b/src/sage/groups/abelian_gps/all__sagemath_gap.py @@ -2,4 +2,4 @@ # TODO: # Implement group homset, conversion of generator images to morphism -from .abelian_group_morphism import AbelianGroupMorphism +from sage.groups.abelian_gps.abelian_group_morphism import AbelianGroupMorphism diff --git a/src/sage/groups/abelian_gps/all__sagemath_modules.py b/src/sage/groups/abelian_gps/all__sagemath_modules.py index 6ea25bb7085..b4d50cbaf28 100644 --- a/src/sage/groups/abelian_gps/all__sagemath_modules.py +++ b/src/sage/groups/abelian_gps/all__sagemath_modules.py @@ -1,4 +1,4 @@ #from dual_abelian_group import DualAbelianGroup -from .abelian_group import AbelianGroup, word_problem -from .values import AbelianGroupWithValues +from sage.groups.abelian_gps.abelian_group import AbelianGroup, word_problem +from sage.groups.abelian_gps.values import AbelianGroupWithValues diff --git a/src/sage/groups/additive_abelian/all.py b/src/sage/groups/additive_abelian/all.py index 956cf00614e..e65582f51b2 100644 --- a/src/sage/groups/additive_abelian/all.py +++ b/src/sage/groups/additive_abelian/all.py @@ -1,3 +1,3 @@ -from .additive_abelian_group import AdditiveAbelianGroup -from .additive_abelian_wrapper import * +from sage.groups.additive_abelian.additive_abelian_group import AdditiveAbelianGroup +from sage.groups.additive_abelian.additive_abelian_wrapper import * diff --git a/src/sage/groups/all.py b/src/sage/groups/all.py index 05055ce1883..52a20cea495 100644 --- a/src/sage/groups/all.py +++ b/src/sage/groups/all.py @@ -1,4 +1,4 @@ -from .all__sagemath_modules import * -from .all__sagemath_gap import * -from .all__sagemath_pari import * -from .all__sagemath_groups import * +from sage.groups.all__sagemath_modules import * +from sage.groups.all__sagemath_gap import * +from sage.groups.all__sagemath_pari import * +from sage.groups.all__sagemath_groups import * diff --git a/src/sage/groups/all__sagemath_categories.py b/src/sage/groups/all__sagemath_categories.py index 82406522b6f..960af07f9cc 100644 --- a/src/sage/groups/all__sagemath_categories.py +++ b/src/sage/groups/all__sagemath_categories.py @@ -1,6 +1,6 @@ -from .all__sagemath_objects import * +from sage.groups.all__sagemath_objects import * -from .generic import (discrete_log, discrete_log_rho, discrete_log_lambda, +from sage.groups.generic import (discrete_log, discrete_log_rho, discrete_log_lambda, linear_relation, multiple, multiples) from sage.misc.lazy_import import lazy_import diff --git a/src/sage/groups/all__sagemath_gap.py b/src/sage/groups/all__sagemath_gap.py index fc243cb01df..15278ba12aa 100644 --- a/src/sage/groups/all__sagemath_gap.py +++ b/src/sage/groups/all__sagemath_gap.py @@ -1,3 +1,3 @@ -from .perm_gps.all import * -from .abelian_gps.all__sagemath_gap import * +from sage.groups.perm_gps.all import * +from sage.groups.abelian_gps.all__sagemath_gap import * diff --git a/src/sage/groups/all__sagemath_groups.py b/src/sage/groups/all__sagemath_groups.py index 396a558de4c..99d024f0f35 100644 --- a/src/sage/groups/all__sagemath_groups.py +++ b/src/sage/groups/all__sagemath_groups.py @@ -1,11 +1,11 @@ -from .all__sagemath_modules import * +from sage.groups.all__sagemath_modules import * try: - from .all__sagemath_pari import * + from sage.groups.all__sagemath_pari import * except ImportError: pass -from .all__sagemath_gap import * +from sage.groups.all__sagemath_gap import * from sage.misc.lazy_import import lazy_import diff --git a/src/sage/groups/all__sagemath_modules.py b/src/sage/groups/all__sagemath_modules.py index 17aba8aa49d..bdd85f2a0c0 100644 --- a/src/sage/groups/all__sagemath_modules.py +++ b/src/sage/groups/all__sagemath_modules.py @@ -1,8 +1,8 @@ -from .all__sagemath_categories import * +from sage.groups.all__sagemath_categories import * -from .additive_abelian.all import * -from .abelian_gps.all__sagemath_modules import * -from .matrix_gps.all__sagemath_modules import * +from sage.groups.additive_abelian.all import * +from sage.groups.abelian_gps.all__sagemath_modules import * +from sage.groups.matrix_gps.all__sagemath_modules import * from sage.misc.lazy_import import lazy_import diff --git a/src/sage/groups/matrix_gps/all.py b/src/sage/groups/matrix_gps/all.py index bbdf725dc5e..08d8c04e6f7 100644 --- a/src/sage/groups/matrix_gps/all.py +++ b/src/sage/groups/matrix_gps/all.py @@ -1,3 +1,3 @@ -from .all__sagemath_modules import * +from sage.groups.matrix_gps.all__sagemath_modules import * import sage.groups.matrix_gps.pickling_overrides diff --git a/src/sage/groups/perm_gps/all.py b/src/sage/groups/perm_gps/all.py index ae405f298a2..b1622efb65a 100644 --- a/src/sage/groups/perm_gps/all.py +++ b/src/sage/groups/perm_gps/all.py @@ -1,4 +1,4 @@ -from .permgroup_named import (SymmetricGroup, AlternatingGroup, +from sage.groups.perm_gps.permgroup_named import (SymmetricGroup, AlternatingGroup, DihedralGroup, SplitMetacyclicGroup, SemidihedralGroup, CyclicPermutationGroup, DiCyclicGroup, TransitiveGroup, @@ -8,13 +8,13 @@ SuzukiGroup, TransitiveGroups, GeneralDihedralGroup, SmallPermutationGroup) -from .permgroup import PermutationGroup, PermutationGroup_generic, PermutationGroup_subgroup, direct_product_permgroups +from sage.groups.perm_gps.permgroup import PermutationGroup, PermutationGroup_generic, PermutationGroup_subgroup, direct_product_permgroups -from .constructor import PermutationGroupElement +from sage.groups.perm_gps.constructor import PermutationGroupElement -from .permgroup_morphism import (PermutationGroupMorphism as PermutationGroupMap, +from sage.groups.perm_gps.permgroup_morphism import (PermutationGroupMorphism as PermutationGroupMap, PermutationGroupMorphism_im_gens, PermutationGroupMorphism_id) PermutationGroupMorphism = PermutationGroupMorphism_im_gens -from .cubegroup import CubeGroup, RubiksCube +from sage.groups.perm_gps.cubegroup import CubeGroup, RubiksCube diff --git a/src/sage/homology/all.py b/src/sage/homology/all.py index 1334936c7a3..707eb9fb71d 100644 --- a/src/sage/homology/all.py +++ b/src/sage/homology/all.py @@ -1 +1 @@ -from .all__sagemath_modules import * +from sage.homology.all__sagemath_modules import * diff --git a/src/sage/homology/all__sagemath_modules.py b/src/sage/homology/all__sagemath_modules.py index d9306c19daa..21a95c6c4af 100644 --- a/src/sage/homology/all__sagemath_modules.py +++ b/src/sage/homology/all__sagemath_modules.py @@ -1,6 +1,6 @@ -from .chain_complex import ChainComplex +from sage.homology.chain_complex import ChainComplex -from .chain_complex_morphism import ChainComplexMorphism +from sage.homology.chain_complex_morphism import ChainComplexMorphism from sage.misc.lazy_import import lazy_import lazy_import('sage.homology.koszul_complex', 'KoszulComplex') diff --git a/src/sage/interacts/all.py b/src/sage/interacts/all.py index c53a1e11ecf..49517e8d76a 100644 --- a/src/sage/interacts/all.py +++ b/src/sage/interacts/all.py @@ -17,9 +17,9 @@ # **************************************************************************** from sage.misc.lazy_import import lazy_import -from . import calculus -from . import geometry -from . import statistics -from . import fractals -from . import algebra +from sage.interacts import calculus +from sage.interacts import geometry +from sage.interacts import statistics +from sage.interacts import fractals +from sage.interacts import algebra lazy_import('sage.interacts.library', 'demo') diff --git a/src/sage/interfaces/all.py b/src/sage/interfaces/all.py index 1e0623ec4ec..fa57d11c941 100644 --- a/src/sage/interfaces/all.py +++ b/src/sage/interfaces/all.py @@ -1,15 +1,15 @@ # interfaces to other interpreters -from .sage0 import sage0, sage0_version, Sage -from .gap import gap, gap_reset_workspace, Gap -from .gp import gp, gp_version, Gp +from sage.interfaces.sage0 import sage0, sage0_version, Sage +from sage.interfaces.gap import gap, gap_reset_workspace, Gap +from sage.interfaces.gp import gp, gp_version, Gp # import problems #from maxima_lib import maxima_lib -from .maxima import maxima, Maxima -from .singular import singular, singular_version, Singular +from sage.interfaces.maxima import maxima, Maxima +from sage.interfaces.singular import singular, singular_version, Singular -from .magma import magma, Magma -from .polymake import polymake +from sage.interfaces.magma import magma, Magma +from sage.interfaces.polymake import polymake from sage.misc.lazy_import import lazy_import diff --git a/src/sage/libs/all.py b/src/sage/libs/all.py index 5a446f66548..7c6e14767cf 100644 --- a/src/sage/libs/all.py +++ b/src/sage/libs/all.py @@ -1,11 +1,11 @@ -from .all__sagemath_combinat import * -from .all__sagemath_gap import * -from .all__sagemath_flint import * -from .all__sagemath_ntl import * -from .all__sagemath_pari import * -from .all__sagemath_eclib import * +from sage.libs.all__sagemath_combinat import * +from sage.libs.all__sagemath_gap import * +from sage.libs.all__sagemath_flint import * +from sage.libs.all__sagemath_ntl import * +from sage.libs.all__sagemath_pari import * +from sage.libs.all__sagemath_eclib import * try: - from .all__sagemath_symbolics import * + from sage.libs.all__sagemath_symbolics import * except ImportError: pass diff --git a/src/sage/libs/all__sagemath_flint.py b/src/sage/libs/all__sagemath_flint.py index 796eb12104d..d4ee16d7779 100644 --- a/src/sage/libs/all__sagemath_flint.py +++ b/src/sage/libs/all__sagemath_flint.py @@ -1,11 +1,11 @@ try: - from .all__sagemath_pari import * + from sage.libs.all__sagemath_pari import * except ImportError: pass try: - from .all__sagemath_ntl import * + from sage.libs.all__sagemath_ntl import * except ImportError: pass diff --git a/src/sage/libs/eclib/all.py b/src/sage/libs/eclib/all.py index 717a66fae7b..500cdfd1192 100644 --- a/src/sage/libs/eclib/all.py +++ b/src/sage/libs/eclib/all.py @@ -1,4 +1,4 @@ -from .constructor import CremonaModularSymbols -from .interface import mwrank_EllipticCurve, mwrank_MordellWeil -from .mwrank import get_precision, set_precision -from .mwrank import initprimes as mwrank_initprimes +from sage.libs.eclib.constructor import CremonaModularSymbols +from sage.libs.eclib.interface import mwrank_EllipticCurve, mwrank_MordellWeil +from sage.libs.eclib.mwrank import get_precision, set_precision +from sage.libs.eclib.mwrank import initprimes as mwrank_initprimes diff --git a/src/sage/libs/mpmath/all.py b/src/sage/libs/mpmath/all.py index cae40f79314..63dd7c0e1fb 100644 --- a/src/sage/libs/mpmath/all.py +++ b/src/sage/libs/mpmath/all.py @@ -1,7 +1,7 @@ import mpmath # Patch mpmath to use Cythonized functions -from . import utils as _utils +from sage.libs.mpmath import utils as _utils # Also import internal functions from mpmath.libmp import * @@ -10,7 +10,7 @@ from mpmath import * # Utilities -from .utils import call, mpmath_to_sage, sage_to_mpmath +from sage.libs.mpmath.utils import call, mpmath_to_sage, sage_to_mpmath # Use mpmath internal functions for constants, to avoid unnecessary overhead _constants_funcs = { diff --git a/src/sage/libs/pari/all.py b/src/sage/libs/pari/all.py index 8bcf5d827df..6cef5978cc1 100644 --- a/src/sage/libs/pari/all.py +++ b/src/sage/libs/pari/all.py @@ -1,3 +1,3 @@ from cypari2.gen import Gen as pari_gen from cypari2 import PariError -from . import pari +from sage.libs.pari import pari diff --git a/src/sage/libs/symmetrica/all.py b/src/sage/libs/symmetrica/all.py index 7c5215f6444..b2914f4aab8 100644 --- a/src/sage/libs/symmetrica/all.py +++ b/src/sage/libs/symmetrica/all.py @@ -1,100 +1,100 @@ #from symmetrica import * -from .symmetrica import start +from sage.libs.symmetrica.symmetrica import start #kostka -from .symmetrica import kostka_number_symmetrica as kostka_number -from .symmetrica import kostka_tab_symmetrica as kostka_tab -from .symmetrica import kostka_tafel_symmetrica as kostka_tafel +from sage.libs.symmetrica.symmetrica import kostka_number_symmetrica as kostka_number +from sage.libs.symmetrica.symmetrica import kostka_tab_symmetrica as kostka_tab +from sage.libs.symmetrica.symmetrica import kostka_tafel_symmetrica as kostka_tafel #sab -from .symmetrica import dimension_symmetrization_symmetrica as dimension_symmetrization -from .symmetrica import bdg_symmetrica as bdg -from .symmetrica import sdg_symmetrica as sdg -from .symmetrica import odg_symmetrica as odg -from .symmetrica import specht_dg_symmetrica as specht_dg -from .symmetrica import ndg_symmetrica as ndg +from sage.libs.symmetrica.symmetrica import dimension_symmetrization_symmetrica as dimension_symmetrization +from sage.libs.symmetrica.symmetrica import bdg_symmetrica as bdg +from sage.libs.symmetrica.symmetrica import sdg_symmetrica as sdg +from sage.libs.symmetrica.symmetrica import odg_symmetrica as odg +from sage.libs.symmetrica.symmetrica import specht_dg_symmetrica as specht_dg +from sage.libs.symmetrica.symmetrica import ndg_symmetrica as ndg #from symmetrica import glmndg_symmetrica as glmndg #sc -from .symmetrica import chartafel_symmetrica as chartafel -from .symmetrica import charvalue_symmetrica as charvalue -from .symmetrica import kranztafel_symmetrica as kranztafel +from sage.libs.symmetrica.symmetrica import chartafel_symmetrica as chartafel +from sage.libs.symmetrica.symmetrica import charvalue_symmetrica as charvalue +from sage.libs.symmetrica.symmetrica import kranztafel_symmetrica as kranztafel #from symmetrica import c_ijk_sn_symmetrica as c_ijk_sn #part -from .symmetrica import strict_to_odd_part_symmetrica as strict_to_odd_part -from .symmetrica import odd_to_strict_part_symmetrica as odd_to_strict -from .symmetrica import q_core_symmetrica as q_core -from .symmetrica import gupta_nm_symmetrica as gupta_nm -from .symmetrica import gupta_tafel_symmetrica as gupta_tafel -from .symmetrica import random_partition_symmetrica as random_partition +from sage.libs.symmetrica.symmetrica import strict_to_odd_part_symmetrica as strict_to_odd_part +from sage.libs.symmetrica.symmetrica import odd_to_strict_part_symmetrica as odd_to_strict +from sage.libs.symmetrica.symmetrica import q_core_symmetrica as q_core +from sage.libs.symmetrica.symmetrica import gupta_nm_symmetrica as gupta_nm +from sage.libs.symmetrica.symmetrica import gupta_tafel_symmetrica as gupta_tafel +from sage.libs.symmetrica.symmetrica import random_partition_symmetrica as random_partition #schur -from .symmetrica import outerproduct_schur_symmetrica as outerproduct_schur -from .symmetrica import dimension_schur_symmetrica as dimension_schur -from .symmetrica import part_part_skewschur_symmetrica as part_part_skewschur -from .symmetrica import newtrans_symmetrica as newtrans -from .symmetrica import compute_schur_with_alphabet_symmetrica as compute_schur_with_alphabet -from .symmetrica import compute_homsym_with_alphabet_symmetrica as compute_homsym_with_alphabet -from .symmetrica import compute_elmsym_with_alphabet_symmetrica as compute_elmsym_with_alphabet -from .symmetrica import compute_monomial_with_alphabet_symmetrica as compute_monomial_with_alphabet -from .symmetrica import compute_powsym_with_alphabet_symmetrica as compute_powsym_with_alphabet -from .symmetrica import compute_schur_with_alphabet_det_symmetrica as compute_schur_with_alphabet_det +from sage.libs.symmetrica.symmetrica import outerproduct_schur_symmetrica as outerproduct_schur +from sage.libs.symmetrica.symmetrica import dimension_schur_symmetrica as dimension_schur +from sage.libs.symmetrica.symmetrica import part_part_skewschur_symmetrica as part_part_skewschur +from sage.libs.symmetrica.symmetrica import newtrans_symmetrica as newtrans +from sage.libs.symmetrica.symmetrica import compute_schur_with_alphabet_symmetrica as compute_schur_with_alphabet +from sage.libs.symmetrica.symmetrica import compute_homsym_with_alphabet_symmetrica as compute_homsym_with_alphabet +from sage.libs.symmetrica.symmetrica import compute_elmsym_with_alphabet_symmetrica as compute_elmsym_with_alphabet +from sage.libs.symmetrica.symmetrica import compute_monomial_with_alphabet_symmetrica as compute_monomial_with_alphabet +from sage.libs.symmetrica.symmetrica import compute_powsym_with_alphabet_symmetrica as compute_powsym_with_alphabet +from sage.libs.symmetrica.symmetrica import compute_schur_with_alphabet_det_symmetrica as compute_schur_with_alphabet_det -from .symmetrica import t_SCHUR_MONOMIAL_symmetrica as t_SCHUR_MONOMIAL -from .symmetrica import t_SCHUR_HOMSYM_symmetrica as t_SCHUR_HOMSYM -from .symmetrica import t_SCHUR_POWSYM_symmetrica as t_SCHUR_POWSYM -from .symmetrica import t_SCHUR_ELMSYM_symmetrica as t_SCHUR_ELMSYM +from sage.libs.symmetrica.symmetrica import t_SCHUR_MONOMIAL_symmetrica as t_SCHUR_MONOMIAL +from sage.libs.symmetrica.symmetrica import t_SCHUR_HOMSYM_symmetrica as t_SCHUR_HOMSYM +from sage.libs.symmetrica.symmetrica import t_SCHUR_POWSYM_symmetrica as t_SCHUR_POWSYM +from sage.libs.symmetrica.symmetrica import t_SCHUR_ELMSYM_symmetrica as t_SCHUR_ELMSYM -from .symmetrica import t_MONOMIAL_SCHUR_symmetrica as t_MONOMIAL_SCHUR -from .symmetrica import t_MONOMIAL_HOMSYM_symmetrica as t_MONOMIAL_HOMSYM -from .symmetrica import t_MONOMIAL_POWSYM_symmetrica as t_MONOMIAL_POWSYM -from .symmetrica import t_MONOMIAL_ELMSYM_symmetrica as t_MONOMIAL_ELMSYM +from sage.libs.symmetrica.symmetrica import t_MONOMIAL_SCHUR_symmetrica as t_MONOMIAL_SCHUR +from sage.libs.symmetrica.symmetrica import t_MONOMIAL_HOMSYM_symmetrica as t_MONOMIAL_HOMSYM +from sage.libs.symmetrica.symmetrica import t_MONOMIAL_POWSYM_symmetrica as t_MONOMIAL_POWSYM +from sage.libs.symmetrica.symmetrica import t_MONOMIAL_ELMSYM_symmetrica as t_MONOMIAL_ELMSYM -from .symmetrica import t_ELMSYM_SCHUR_symmetrica as t_ELMSYM_SCHUR -from .symmetrica import t_ELMSYM_MONOMIAL_symmetrica as t_ELMSYM_MONOMIAL -from .symmetrica import t_ELMSYM_HOMSYM_symmetrica as t_ELMSYM_HOMSYM -from .symmetrica import t_ELMSYM_POWSYM_symmetrica as t_ELMSYM_POWSYM +from sage.libs.symmetrica.symmetrica import t_ELMSYM_SCHUR_symmetrica as t_ELMSYM_SCHUR +from sage.libs.symmetrica.symmetrica import t_ELMSYM_MONOMIAL_symmetrica as t_ELMSYM_MONOMIAL +from sage.libs.symmetrica.symmetrica import t_ELMSYM_HOMSYM_symmetrica as t_ELMSYM_HOMSYM +from sage.libs.symmetrica.symmetrica import t_ELMSYM_POWSYM_symmetrica as t_ELMSYM_POWSYM -from .symmetrica import t_HOMSYM_SCHUR_symmetrica as t_HOMSYM_SCHUR -from .symmetrica import t_HOMSYM_MONOMIAL_symmetrica as t_HOMSYM_MONOMIAL -from .symmetrica import t_HOMSYM_POWSYM_symmetrica as t_HOMSYM_POWSYM -from .symmetrica import t_HOMSYM_ELMSYM_symmetrica as t_HOMSYM_ELMSYM +from sage.libs.symmetrica.symmetrica import t_HOMSYM_SCHUR_symmetrica as t_HOMSYM_SCHUR +from sage.libs.symmetrica.symmetrica import t_HOMSYM_MONOMIAL_symmetrica as t_HOMSYM_MONOMIAL +from sage.libs.symmetrica.symmetrica import t_HOMSYM_POWSYM_symmetrica as t_HOMSYM_POWSYM +from sage.libs.symmetrica.symmetrica import t_HOMSYM_ELMSYM_symmetrica as t_HOMSYM_ELMSYM -from .symmetrica import t_POWSYM_SCHUR_symmetrica as t_POWSYM_SCHUR -from .symmetrica import t_POWSYM_HOMSYM_symmetrica as t_POWSYM_HOMSYM -from .symmetrica import t_POWSYM_ELMSYM_symmetrica as t_POWSYM_ELMSYM -from .symmetrica import t_POWSYM_MONOMIAL_symmetrica as t_POWSYM_MONOMIAL +from sage.libs.symmetrica.symmetrica import t_POWSYM_SCHUR_symmetrica as t_POWSYM_SCHUR +from sage.libs.symmetrica.symmetrica import t_POWSYM_HOMSYM_symmetrica as t_POWSYM_HOMSYM +from sage.libs.symmetrica.symmetrica import t_POWSYM_ELMSYM_symmetrica as t_POWSYM_ELMSYM +from sage.libs.symmetrica.symmetrica import t_POWSYM_MONOMIAL_symmetrica as t_POWSYM_MONOMIAL -from .symmetrica import mult_schur_schur_symmetrica as mult_schur_schur -from .symmetrica import mult_monomial_monomial_symmetrica as mult_monomial_monomial +from sage.libs.symmetrica.symmetrica import mult_schur_schur_symmetrica as mult_schur_schur +from sage.libs.symmetrica.symmetrica import mult_monomial_monomial_symmetrica as mult_monomial_monomial -from .symmetrica import hall_littlewood_symmetrica as hall_littlewood +from sage.libs.symmetrica.symmetrica import hall_littlewood_symmetrica as hall_littlewood -from .symmetrica import t_POLYNOM_POWER_symmetrica as t_POLYNOM_POWER -from .symmetrica import t_POLYNOM_SCHUR_symmetrica as t_POLYNOM_SCHUR -from .symmetrica import t_POLYNOM_ELMSYM_symmetrica as t_POLYNOM_ELMSYM -from .symmetrica import t_POLYNOM_MONOMIAL_symmetrica as t_POLYNOM_MONOMIAL +from sage.libs.symmetrica.symmetrica import t_POLYNOM_POWER_symmetrica as t_POLYNOM_POWER +from sage.libs.symmetrica.symmetrica import t_POLYNOM_SCHUR_symmetrica as t_POLYNOM_SCHUR +from sage.libs.symmetrica.symmetrica import t_POLYNOM_ELMSYM_symmetrica as t_POLYNOM_ELMSYM +from sage.libs.symmetrica.symmetrica import t_POLYNOM_MONOMIAL_symmetrica as t_POLYNOM_MONOMIAL -from .symmetrica import scalarproduct_schur_symmetrica as scalarproduct_schur +from sage.libs.symmetrica.symmetrica import scalarproduct_schur_symmetrica as scalarproduct_schur #plet -from .symmetrica import plethysm_symmetrica as plethysm -from .symmetrica import schur_schur_plet_symmetrica as schur_schur_plet +from sage.libs.symmetrica.symmetrica import plethysm_symmetrica as plethysm +from sage.libs.symmetrica.symmetrica import schur_schur_plet_symmetrica as schur_schur_plet #sb -from .symmetrica import mult_schubert_schubert_symmetrica as mult_schubert_schubert -from .symmetrica import t_SCHUBERT_POLYNOM_symmetrica as t_SCHUBERT_POLYNOM -from .symmetrica import t_POLYNOM_SCHUBERT_symmetrica as t_POLYNOM_SCHUBERT -from .symmetrica import mult_schubert_variable_symmetrica as mult_schubert_variable -from .symmetrica import divdiff_perm_schubert_symmetrica as divdiff_perm_schubert -from .symmetrica import scalarproduct_schubert_symmetrica as scalarproduct_schubert -from .symmetrica import divdiff_schubert_symmetrica as divdiff_schubert +from sage.libs.symmetrica.symmetrica import mult_schubert_schubert_symmetrica as mult_schubert_schubert +from sage.libs.symmetrica.symmetrica import t_SCHUBERT_POLYNOM_symmetrica as t_SCHUBERT_POLYNOM +from sage.libs.symmetrica.symmetrica import t_POLYNOM_SCHUBERT_symmetrica as t_POLYNOM_SCHUBERT +from sage.libs.symmetrica.symmetrica import mult_schubert_variable_symmetrica as mult_schubert_variable +from sage.libs.symmetrica.symmetrica import divdiff_perm_schubert_symmetrica as divdiff_perm_schubert +from sage.libs.symmetrica.symmetrica import scalarproduct_schubert_symmetrica as scalarproduct_schubert +from sage.libs.symmetrica.symmetrica import divdiff_schubert_symmetrica as divdiff_schubert start() diff --git a/src/sage/logic/all.py b/src/sage/logic/all.py index c8604a624e8..6fe860ea538 100644 --- a/src/sage/logic/all.py +++ b/src/sage/logic/all.py @@ -1,3 +1,3 @@ -from .logic import SymbolicLogic +from sage.logic.logic import SymbolicLogic -from . import propcalc +from sage.logic import propcalc diff --git a/src/sage/matrix/all.py b/src/sage/matrix/all.py index 041624f3853..47d2737bb53 100644 --- a/src/sage/matrix/all.py +++ b/src/sage/matrix/all.py @@ -1,6 +1,6 @@ from sage.misc.lazy_import import lazy_import -from .matrix_space import MatrixSpace -from .constructor import (matrix, Matrix, column_matrix, random_matrix, +from sage.matrix.matrix_space import MatrixSpace +from sage.matrix.constructor import (matrix, Matrix, column_matrix, random_matrix, diagonal_matrix, identity_matrix, block_matrix, block_diagonal_matrix, jordan_block, zero_matrix, ones_matrix, elementary_matrix, companion_matrix) diff --git a/src/sage/misc/all.py b/src/sage/misc/all.py index a1023596d51..005f730cd7b 100644 --- a/src/sage/misc/all.py +++ b/src/sage/misc/all.py @@ -1,12 +1,12 @@ -#from .all__sagemath_objects import * -from .all__sagemath_environment import * -from .all__sagemath_modules import * -from .all__sagemath_repl import * +#from sage.misc.all__sagemath_objects import * +from sage.misc.all__sagemath_environment import * +from sage.misc.all__sagemath_modules import * +from sage.misc.all__sagemath_repl import * -from .remote_file import get_remote_file +from sage.misc.remote_file import get_remote_file lazy_import('sage.misc.dist', 'install_scripts', deprecation=34259) -from .classgraph import class_graph +from sage.misc.classgraph import class_graph lazy_import('sage.repl.interpreter', 'logstr', deprecation=34259) diff --git a/src/sage/misc/all__sagemath_categories.py b/src/sage/misc/all__sagemath_categories.py index c64c3f97701..8145d387ae4 100644 --- a/src/sage/misc/all__sagemath_categories.py +++ b/src/sage/misc/all__sagemath_categories.py @@ -1,21 +1,21 @@ -from .all__sagemath_objects import * +from sage.misc.all__sagemath_objects import * -from .html import html, pretty_print_default +from sage.misc.html import html, pretty_print_default -from .mathml import mathml +from sage.misc.mathml import mathml -from .table import table +from sage.misc.table import table -from .map_threaded import map_threaded +from sage.misc.map_threaded import map_threaded -from .mrange import xmrange, mrange, xmrange_iter, mrange_iter, cartesian_product_iterator +from sage.misc.mrange import xmrange, mrange, xmrange_iter, mrange_iter, cartesian_product_iterator -from .defaults import (set_default_variable_name, +from sage.misc.defaults import (set_default_variable_name, series_precision, set_series_precision) -from .functional import (additive_order, +from sage.misc.functional import (additive_order, base_ring, base_field, basis, @@ -73,8 +73,8 @@ symbolic_prod as product, transpose) -from .latex import LatexExpr, latex, view +from sage.misc.latex import LatexExpr, latex, view -from .fpickle import pickle_function, unpickle_function +from sage.misc.fpickle import pickle_function, unpickle_function -from .persist import unpickle_global +from sage.misc.persist import unpickle_global diff --git a/src/sage/misc/all__sagemath_environment.py b/src/sage/misc/all__sagemath_environment.py index f25faa1289d..9ebcc85870b 100644 --- a/src/sage/misc/all__sagemath_environment.py +++ b/src/sage/misc/all__sagemath_environment.py @@ -1 +1 @@ -from .temporary_file import tmp_dir, tmp_filename +from sage.misc.temporary_file import tmp_dir, tmp_filename diff --git a/src/sage/misc/all__sagemath_modules.py b/src/sage/misc/all__sagemath_modules.py index 3b30aaeca19..e854b10a0be 100644 --- a/src/sage/misc/all__sagemath_modules.py +++ b/src/sage/misc/all__sagemath_modules.py @@ -1,12 +1,12 @@ # All of sage.misc.all except for development tools, session management, # and deprecated functionality -from .lazy_attribute import lazy_attribute, lazy_class_attribute -from .lazy_import import lazy_import +from sage.misc.lazy_attribute import lazy_attribute, lazy_class_attribute +from sage.misc.lazy_import import lazy_import -from .all__sagemath_categories import * +from sage.misc.all__sagemath_categories import * -from .misc import (BackslashOperator, # Depends on sage.env -- can lower to sagemath-objects after splitting this module +from sage.misc.misc import (BackslashOperator, # Depends on sage.env -- can lower to sagemath-objects after splitting this module exists, forall, is_iterator, random_sublist, pad_zeros, @@ -14,8 +14,8 @@ newton_method_sizes, compose, nest) -from .temporary_file import tmp_dir, tmp_filename # Depends on sage.env +from sage.misc.temporary_file import tmp_dir, tmp_filename # Depends on sage.env -from .mathml import mathml +from sage.misc.mathml import mathml -from .func_persist import func_persist +from sage.misc.func_persist import func_persist diff --git a/src/sage/misc/all__sagemath_objects.py b/src/sage/misc/all__sagemath_objects.py index c7363615ae5..efdf3f1eb7c 100644 --- a/src/sage/misc/all__sagemath_objects.py +++ b/src/sage/misc/all__sagemath_objects.py @@ -2,44 +2,44 @@ import sage.structure.all # to break a cyclic import -from .lazy_attribute import lazy_attribute, lazy_class_attribute -from .lazy_import import lazy_import +from sage.misc.lazy_attribute import lazy_attribute, lazy_class_attribute +from sage.misc.lazy_import import lazy_import -from .verbose import (set_verbose, set_verbose_files, +from sage.misc.verbose import (set_verbose, set_verbose_files, get_verbose_files, unset_verbose_files, get_verbose) lazy_import('sage.misc.verbose', 'verbose', deprecation=17815) -from .call import attrcall +from sage.misc.call import attrcall -from .misc_c import prod, running_total, balanced_sum +from sage.misc.misc_c import prod, running_total, balanced_sum mul = prod add = sum -from .repr import repr_lincomb +from sage.misc.repr import repr_lincomb -from .flatten import flatten +from sage.misc.flatten import flatten -from .persist import save, load, dumps, loads, db, db_save +from sage.misc.persist import save, load, dumps, loads, db, db_save -from .constant_function import ConstantFunction +from sage.misc.constant_function import ConstantFunction -from .sage_unittest import TestSuite +from sage.misc.sage_unittest import TestSuite -from .decorators import specialize, sage_wraps, infix_operator +from sage.misc.decorators import specialize, sage_wraps, infix_operator -from .unknown import Unknown, UnknownError +from sage.misc.unknown import Unknown, UnknownError -from .cachefunc import CachedFunction, cached_function, cached_method, cached_in_parent_method, disk_cached_function +from sage.misc.cachefunc import CachedFunction, cached_function, cached_method, cached_in_parent_method, disk_cached_function -from .abstract_method import abstract_method +from sage.misc.abstract_method import abstract_method -from .randstate import seed, set_random_seed, initial_seed, current_randstate +from sage.misc.randstate import seed, set_random_seed, initial_seed, current_randstate -from .prandom import * +from sage.misc.prandom import * -from .timing import walltime, cputime +from sage.misc.timing import walltime, cputime -from .sage_timeit_class import timeit +from sage.misc.sage_timeit_class import timeit -from .session import load_session, save_session, show_identifiers -from .reset import reset, restore +from sage.misc.session import load_session, save_session, show_identifiers +from sage.misc.reset import reset, restore diff --git a/src/sage/misc/all__sagemath_repl.py b/src/sage/misc/all__sagemath_repl.py index c3216265b45..d33895f25f0 100644 --- a/src/sage/misc/all__sagemath_repl.py +++ b/src/sage/misc/all__sagemath_repl.py @@ -1,10 +1,10 @@ -from .all__sagemath_objects import * +from sage.misc.all__sagemath_objects import * -from .sage_eval import sage_eval, sageobj +from sage.misc.sage_eval import sage_eval, sageobj -from .sage_input import sage_input +from sage.misc.sage_input import sage_input -from .banner import version +from sage.misc.banner import version lazy_import('sage.misc.banner', 'banner', deprecation=34259) @@ -15,17 +15,17 @@ lazy_import('pydoc', 'help', 'python_help') -from .explain_pickle import explain_pickle, unpickle_newobj, unpickle_build, unpickle_instantiate, unpickle_persistent, unpickle_extension, unpickle_appends +from sage.misc.explain_pickle import explain_pickle, unpickle_newobj, unpickle_build, unpickle_instantiate, unpickle_persistent, unpickle_extension, unpickle_appends lazy_import('sage.misc.trace', 'trace', deprecation=34259) lazy_import('sage.misc.profiler', 'Profiler', deprecation=34259) -from .dev_tools import import_statements +from sage.misc.dev_tools import import_statements lazy_import('sage.misc.dev_tools', 'runsnake', deprecation=34259) -from .edit_module import edit +from sage.misc.edit_module import edit lazy_import('sage.misc.edit_module', 'set_edit_template', deprecation=34259) diff --git a/src/sage/modular/abvar/all.py b/src/sage/modular/abvar/all.py index f0971bc0b42..fa744caa894 100644 --- a/src/sage/modular/abvar/all.py +++ b/src/sage/modular/abvar/all.py @@ -4,4 +4,4 @@ # http://www.gnu.org/licenses/ # ########################################################################### -from .constructor import J0, J1, JH, AbelianVariety +from sage.modular.abvar.constructor import J0, J1, JH, AbelianVariety diff --git a/src/sage/modular/all.py b/src/sage/modular/all.py index cfccb18e65f..1bfa60068bf 100644 --- a/src/sage/modular/all.py +++ b/src/sage/modular/all.py @@ -1,24 +1,24 @@ from sage.misc.lazy_import import lazy_import -from .quatalg.all import * +from sage.modular.quatalg.all import * -from .modsym.all import * +from sage.modular.modsym.all import * -from .modform.all import * +from sage.modular.modform.all import * -from .ssmod.all import * +from sage.modular.ssmod.all import * -from .abvar.all import * +from sage.modular.abvar.all import * -from .dirichlet import (DirichletGroup, +from sage.modular.dirichlet import (DirichletGroup, kronecker_character, kronecker_character_upside_down, trivial_character) -from .arithgroup.all import (Gamma0, Gamma1, GammaH, Gamma, SL2Z, +from sage.modular.arithgroup.all import (Gamma0, Gamma1, GammaH, Gamma, SL2Z, ArithmeticSubgroup_Permutation, CongruenceSubgroup, FareySymbol) -from .cusps import Cusp, Cusps +from sage.modular.cusps import Cusp, Cusps lazy_import('sage.modular.dims', ('dimension_cusp_forms', 'dimension_new_cusp_forms', @@ -27,19 +27,19 @@ 'sturm_bound'), deprecation=(32647, 'removed from main namespace')) -from .etaproducts import (EtaGroup, EtaProduct, EtaGroupElement, +from sage.modular.etaproducts import (EtaGroup, EtaProduct, EtaGroupElement, AllCusps, CuspFamily) lazy_import('sage.modular.multiple_zeta', ['Multizeta', 'Multizetas']) -from .overconvergent.all import * +from sage.modular.overconvergent.all import * -from .local_comp.all import * +from sage.modular.local_comp.all import * -from .cusps_nf import NFCusp, NFCusps, Gamma0_NFCusps +from sage.modular.cusps_nf import NFCusp, NFCusps, Gamma0_NFCusps -from .btquotients.all import * +from sage.modular.btquotients.all import * -from .pollack_stevens.all import * +from sage.modular.pollack_stevens.all import * -from .quasimodform.all import * +from sage.modular.quasimodform.all import * diff --git a/src/sage/modular/arithgroup/all.py b/src/sage/modular/arithgroup/all.py index d4fb241d1f9..7e9f6df38e4 100644 --- a/src/sage/modular/arithgroup/all.py +++ b/src/sage/modular/arithgroup/all.py @@ -1,18 +1,18 @@ # Note: the is_xxx functions are imported to here, but not from here up to sage.modular.all, so # they are invisible to the user but easy to import all in one go by other code that needs them. -from .arithgroup_generic import is_ArithmeticSubgroup -from .congroup_generic import is_CongruenceSubgroup, CongruenceSubgroup_constructor as CongruenceSubgroup -from .congroup_gammaH import GammaH_constructor as GammaH, is_GammaH -from .congroup_gamma1 import Gamma1_constructor as Gamma1, is_Gamma1 -from .congroup_gamma0 import Gamma0_constructor as Gamma0, is_Gamma0 -from .congroup_gamma import Gamma_constructor as Gamma, is_Gamma -from .congroup_sl2z import SL2Z, is_SL2Z +from sage.modular.arithgroup.arithgroup_generic import is_ArithmeticSubgroup +from sage.modular.arithgroup.congroup_generic import is_CongruenceSubgroup, CongruenceSubgroup_constructor as CongruenceSubgroup +from sage.modular.arithgroup.congroup_gammaH import GammaH_constructor as GammaH, is_GammaH +from sage.modular.arithgroup.congroup_gamma1 import Gamma1_constructor as Gamma1, is_Gamma1 +from sage.modular.arithgroup.congroup_gamma0 import Gamma0_constructor as Gamma0, is_Gamma0 +from sage.modular.arithgroup.congroup_gamma import Gamma_constructor as Gamma, is_Gamma +from sage.modular.arithgroup.congroup_sl2z import SL2Z, is_SL2Z from sage.misc.lazy_import import lazy_import lazy_import('sage.modular.arithgroup.arithgroup_perm', 'ArithmeticSubgroup_Permutation') -from .congroup import (degeneracy_coset_representatives_gamma0, +from sage.modular.arithgroup.congroup import (degeneracy_coset_representatives_gamma0, degeneracy_coset_representatives_gamma1) -from .farey_symbol import Farey as FareySymbol +from sage.modular.arithgroup.farey_symbol import Farey as FareySymbol diff --git a/src/sage/modular/btquotients/all.py b/src/sage/modular/btquotients/all.py index 3807442da70..5d11aed1020 100644 --- a/src/sage/modular/btquotients/all.py +++ b/src/sage/modular/btquotients/all.py @@ -1,3 +1,3 @@ -from .btquotient import BruhatTitsQuotient +from sage.modular.btquotients.btquotient import BruhatTitsQuotient #from pautomorphicform import pAdicAutomorphicForms #from pautomorphicform import BruhatTitsHarmonicCocycles diff --git a/src/sage/modular/hecke/all.py b/src/sage/modular/hecke/all.py index 0aaa2232773..bd5bb292c43 100644 --- a/src/sage/modular/hecke/all.py +++ b/src/sage/modular/hecke/all.py @@ -1,19 +1,19 @@ -from .homspace import HeckeModuleHomspace, is_HeckeModuleHomspace +from sage.modular.hecke.homspace import HeckeModuleHomspace, is_HeckeModuleHomspace -from .module import HeckeModule_free_module, HeckeModule_generic, is_HeckeModule +from sage.modular.hecke.module import HeckeModule_free_module, HeckeModule_generic, is_HeckeModule -from .hecke_operator import HeckeOperator, is_HeckeOperator +from sage.modular.hecke.hecke_operator import HeckeOperator, is_HeckeOperator -from .degenmap import DegeneracyMap +from sage.modular.hecke.degenmap import DegeneracyMap -from .algebra import HeckeAlgebra, is_HeckeAlgebra +from sage.modular.hecke.algebra import HeckeAlgebra, is_HeckeAlgebra -from .morphism import (HeckeModuleMorphism, HeckeModuleMorphism_matrix, +from sage.modular.hecke.morphism import (HeckeModuleMorphism, HeckeModuleMorphism_matrix, is_HeckeModuleMorphism, is_HeckeModuleMorphism_matrix) -from .element import HeckeModuleElement, is_HeckeModuleElement +from sage.modular.hecke.element import HeckeModuleElement, is_HeckeModuleElement -from .submodule import HeckeSubmodule, is_HeckeSubmodule +from sage.modular.hecke.submodule import HeckeSubmodule, is_HeckeSubmodule -from .ambient_module import AmbientHeckeModule, is_AmbientHeckeModule +from sage.modular.hecke.ambient_module import AmbientHeckeModule, is_AmbientHeckeModule diff --git a/src/sage/modular/local_comp/all.py b/src/sage/modular/local_comp/all.py index 1df1ec59fd6..1177acd9b7e 100644 --- a/src/sage/modular/local_comp/all.py +++ b/src/sage/modular/local_comp/all.py @@ -1 +1 @@ -from .local_comp import LocalComponent +from sage.modular.local_comp.local_comp import LocalComponent diff --git a/src/sage/modular/modform/all.py b/src/sage/modular/modform/all.py index feb1521d3ca..92d91fc34c5 100644 --- a/src/sage/modular/modform/all.py +++ b/src/sage/modular/modform/all.py @@ -6,23 +6,23 @@ # http://www.gnu.org/licenses/ ######################################################################### -from .constructor import ModularForms, CuspForms, EisensteinForms, Newforms, Newform +from sage.modular.modform.constructor import ModularForms, CuspForms, EisensteinForms, Newforms, Newform -from .eis_series import eisenstein_series_qexp, eisenstein_series_lseries +from sage.modular.modform.eis_series import eisenstein_series_qexp, eisenstein_series_lseries -from .half_integral import half_integral_weight_modform_basis +from sage.modular.modform.half_integral import half_integral_weight_modform_basis -from .theta import theta_qexp, theta2_qexp +from sage.modular.modform.theta import theta_qexp, theta2_qexp from sage.misc.lazy_import import lazy_import lazy_import('sage.modular.modform.j_invariant', 'j_invariant_qexp') lazy_import('sage.modular.modform.vm_basis', ['victor_miller_basis', 'delta_qexp']) -from .hecke_operator_on_qexp import hecke_operator_on_qexp, hecke_operator_on_basis +from sage.modular.modform.hecke_operator_on_qexp import hecke_operator_on_qexp, hecke_operator_on_basis -from .numerical import NumericalEigenforms as numerical_eigenforms +from sage.modular.modform.numerical import NumericalEigenforms as numerical_eigenforms -from .element import delta_lseries +from sage.modular.modform.element import delta_lseries -from .ring import ModularFormsRing +from sage.modular.modform.ring import ModularFormsRing diff --git a/src/sage/modular/modform_hecketriangle/all.py b/src/sage/modular/modform_hecketriangle/all.py index cd236efc334..1d3ad5aa289 100644 --- a/src/sage/modular/modform_hecketriangle/all.py +++ b/src/sage/modular/modform_hecketriangle/all.py @@ -11,19 +11,19 @@ # the License, or (at your option) any later version. # https://www.gnu.org/licenses/ # **************************************************************************** -from .hecke_triangle_groups import HeckeTriangleGroup +from sage.modular.modform_hecketriangle.hecke_triangle_groups import HeckeTriangleGroup -from .series_constructor import MFSeriesConstructor +from sage.modular.modform_hecketriangle.series_constructor import MFSeriesConstructor -from .graded_ring import (QuasiMeromorphicModularFormsRing, +from sage.modular.modform_hecketriangle.graded_ring import (QuasiMeromorphicModularFormsRing, QuasiWeakModularFormsRing, QuasiModularFormsRing, QuasiCuspFormsRing, MeromorphicModularFormsRing, WeakModularFormsRing, ModularFormsRing, CuspFormsRing) -from .space import (QuasiMeromorphicModularForms, QuasiWeakModularForms, +from sage.modular.modform_hecketriangle.space import (QuasiMeromorphicModularForms, QuasiWeakModularForms, QuasiModularForms, QuasiCuspForms, MeromorphicModularForms, WeakModularForms, ModularForms, CuspForms, ZeroForm) -from .subspace import ModularFormsSubSpace +from sage.modular.modform_hecketriangle.subspace import ModularFormsSubSpace diff --git a/src/sage/modular/modsym/all.py b/src/sage/modular/modsym/all.py index 798a4a7d55f..da5fd374c8b 100644 --- a/src/sage/modular/modsym/all.py +++ b/src/sage/modular/modsym/all.py @@ -1,15 +1,15 @@ from sage.misc.lazy_import import lazy_import -from .element import set_modsym_print_mode +from sage.modular.modsym.element import set_modsym_print_mode -from .modsym import ModularSymbols, ModularSymbols_clear_cache +from sage.modular.modsym.modsym import ModularSymbols, ModularSymbols_clear_cache lazy_import('sage.modular.modsym.heilbronn', ['HeilbronnCremona', 'HeilbronnMerel']) -from .p1list import P1List, lift_to_sl2z +from sage.modular.modsym.p1list import P1List, lift_to_sl2z -from .p1list_nf import P1NFList, MSymbol +from sage.modular.modsym.p1list_nf import P1NFList, MSymbol -from .ghlist import GHlist +from sage.modular.modsym.ghlist import GHlist -from .g1list import G1list +from sage.modular.modsym.g1list import G1list diff --git a/src/sage/modular/overconvergent/all.py b/src/sage/modular/overconvergent/all.py index 11e23071854..ed9c2310568 100644 --- a/src/sage/modular/overconvergent/all.py +++ b/src/sage/modular/overconvergent/all.py @@ -1,5 +1,5 @@ -from .weightspace import WeightSpace_constructor as pAdicWeightSpace +from sage.modular.overconvergent.weightspace import WeightSpace_constructor as pAdicWeightSpace -from .genus0 import OverconvergentModularForms +from sage.modular.overconvergent.genus0 import OverconvergentModularForms -from .hecke_series import hecke_series +from sage.modular.overconvergent.hecke_series import hecke_series diff --git a/src/sage/modular/pollack_stevens/all.py b/src/sage/modular/pollack_stevens/all.py index a51787d6fd2..981c5028543 100644 --- a/src/sage/modular/pollack_stevens/all.py +++ b/src/sage/modular/pollack_stevens/all.py @@ -1,3 +1,3 @@ -from .space import PollackStevensModularSymbols -from .distributions import Symk -from .distributions import OverconvergentDistributions +from sage.modular.pollack_stevens.space import PollackStevensModularSymbols +from sage.modular.pollack_stevens.distributions import Symk +from sage.modular.pollack_stevens.distributions import OverconvergentDistributions diff --git a/src/sage/modular/quasimodform/all.py b/src/sage/modular/quasimodform/all.py index 114783b2e37..f7e4444785d 100644 --- a/src/sage/modular/quasimodform/all.py +++ b/src/sage/modular/quasimodform/all.py @@ -1,2 +1,2 @@ # Quasimodular forms rings -from .ring import QuasiModularForms +from sage.modular.quasimodform.ring import QuasiModularForms diff --git a/src/sage/modular/quatalg/all.py b/src/sage/modular/quatalg/all.py index e554527d96c..53103006057 100644 --- a/src/sage/modular/quatalg/all.py +++ b/src/sage/modular/quatalg/all.py @@ -1,2 +1,2 @@ -from .brandt import BrandtModule +from sage.modular.quatalg.brandt import BrandtModule diff --git a/src/sage/modules/all.py b/src/sage/modules/all.py index 87621e61b29..9e39503c2c8 100644 --- a/src/sage/modules/all.py +++ b/src/sage/modules/all.py @@ -13,17 +13,17 @@ # http://www.gnu.org/licenses/ #***************************************************************************** -from .free_module import FreeModule, VectorSpace, span +from sage.modules.free_module import FreeModule, VectorSpace, span -from .free_quadratic_module import (FreeQuadraticModule, QuadraticSpace, +from sage.modules.free_quadratic_module import (FreeQuadraticModule, QuadraticSpace, InnerProductSpace) -from .free_module_element import (vector, free_module_element, zero_vector, +from sage.modules.free_module_element import (vector, free_module_element, zero_vector, random_vector) -from .vector_space_morphism import linear_transformation +from sage.modules.vector_space_morphism import linear_transformation -from .with_basis.all import * +from sage.modules.with_basis.all import * from sage.misc.lazy_import import lazy_import diff --git a/src/sage/monoids/all.py b/src/sage/monoids/all.py index cd2812c89f1..a08f8df0f43 100644 --- a/src/sage/monoids/all.py +++ b/src/sage/monoids/all.py @@ -1,11 +1,11 @@ -from .free_monoid import FreeMonoid -from .string_monoid import (BinaryStrings, OctalStrings, HexadecimalStrings, +from sage.monoids.free_monoid import FreeMonoid +from sage.monoids.string_monoid import (BinaryStrings, OctalStrings, HexadecimalStrings, Radix64Strings, AlphabeticStrings) -from .free_abelian_monoid import FreeAbelianMonoid +from sage.monoids.free_abelian_monoid import FreeAbelianMonoid -from .string_ops import ( +from sage.monoids.string_ops import ( strip_encoding, frequency_distribution, coincidence_index, diff --git a/src/sage/numerical/all.py b/src/sage/numerical/all.py index a4f65cf44b5..6e73790f9dc 100644 --- a/src/sage/numerical/all.py +++ b/src/sage/numerical/all.py @@ -1,4 +1,4 @@ -from .all__sagemath_modules import * +from sage.numerical.all__sagemath_modules import * from sage.misc.lazy_import import lazy_import diff --git a/src/sage/parallel/all.py b/src/sage/parallel/all.py index 85f69c86165..17d397c39f7 100644 --- a/src/sage/parallel/all.py +++ b/src/sage/parallel/all.py @@ -1,4 +1,4 @@ -from .decorate import parallel, fork +from sage.parallel.decorate import parallel, fork from sage.misc.lazy_import import lazy_import lazy_import('sage.parallel.parallelism', 'Parallelism') diff --git a/src/sage/plot/all.py b/src/sage/plot/all.py index 2db3c52821d..ec9a9027e87 100644 --- a/src/sage/plot/all.py +++ b/src/sage/plot/all.py @@ -1,38 +1,38 @@ -from .graphics import Graphics -from .plot import (plot, graphics_array, multi_graphics, list_plot, +from sage.plot.graphics import Graphics +from sage.plot.plot import (plot, graphics_array, multi_graphics, list_plot, parametric_plot, polar_plot, plot_loglog, plot_semilogx, plot_semilogy, list_plot_loglog, list_plot_semilogx, list_plot_semilogy) -from .line import line, line2d -from .arrow import arrow, arrow2d -from .bar_chart import bar_chart -from .histogram import histogram -from .bezier_path import bezier_path -from .scatter_plot import scatter_plot -from .disk import disk -from .point import point, points, point2d -from .matrix_plot import matrix_plot -from .plot_field import plot_vector_field, plot_slope_field -from .text import text -from .polygon import polygon, polygon2d -from .circle import circle -from .ellipse import ellipse -from .contour_plot import contour_plot, implicit_plot, region_plot -from .density_plot import density_plot -from .streamline_plot import streamline_plot +from sage.plot.line import line, line2d +from sage.plot.arrow import arrow, arrow2d +from sage.plot.bar_chart import bar_chart +from sage.plot.histogram import histogram +from sage.plot.bezier_path import bezier_path +from sage.plot.scatter_plot import scatter_plot +from sage.plot.disk import disk +from sage.plot.point import point, points, point2d +from sage.plot.matrix_plot import matrix_plot +from sage.plot.plot_field import plot_vector_field, plot_slope_field +from sage.plot.text import text +from sage.plot.polygon import polygon, polygon2d +from sage.plot.circle import circle +from sage.plot.ellipse import ellipse +from sage.plot.contour_plot import contour_plot, implicit_plot, region_plot +from sage.plot.density_plot import density_plot +from sage.plot.streamline_plot import streamline_plot from sage.misc.lazy_import import lazy_import lazy_import("sage.plot.complex_plot",["complex_plot"]) -from .arc import arc +from sage.plot.arc import arc -from .animate import animate +from sage.plot.animate import animate -from .plot3d.tachyon import Tachyon +from sage.plot.plot3d.tachyon import Tachyon -from .colors import Color, hue, rainbow, colors, colormaps +from sage.plot.colors import Color, hue, rainbow, colors, colormaps -from .step import plot_step_function +from sage.plot.step import plot_step_function lazy_import("sage.plot.hyperbolic_arc", "hyperbolic_arc") lazy_import("sage.plot.hyperbolic_polygon", ["hyperbolic_triangle", "hyperbolic_polygon"]) diff --git a/src/sage/plot/plot3d/all.py b/src/sage/plot/plot3d/all.py index 16c647c6b50..914261d9ead 100644 --- a/src/sage/plot/plot3d/all.py +++ b/src/sage/plot/plot3d/all.py @@ -1,20 +1,20 @@ -from .plot3d import plot3d, cylindrical_plot3d, spherical_plot3d, Spherical, SphericalElevation, Cylindrical -from .parametric_plot3d import parametric_plot3d -from .plot_field3d import plot_vector_field3d +from sage.plot.plot3d.plot3d import plot3d, cylindrical_plot3d, spherical_plot3d, Spherical, SphericalElevation, Cylindrical +from sage.plot.plot3d.parametric_plot3d import parametric_plot3d +from sage.plot.plot3d.plot_field3d import plot_vector_field3d # We lazy_import the following modules since they import numpy which slows down sage startup from sage.misc.lazy_import import lazy_import lazy_import("sage.plot.plot3d.implicit_plot3d",["implicit_plot3d"]) -from .list_plot3d import list_plot3d -from .revolution_plot3d import revolution_plot3d +from sage.plot.plot3d.list_plot3d import list_plot3d +from sage.plot.plot3d.revolution_plot3d import revolution_plot3d -from .platonic import tetrahedron, cube, octahedron, dodecahedron, icosahedron +from sage.plot.plot3d.platonic import tetrahedron, cube, octahedron, dodecahedron, icosahedron -from .shapes2 import sphere, line3d, polygon3d, polygons3d, point3d, text3d, bezier3d +from sage.plot.plot3d.shapes2 import sphere, line3d, polygon3d, polygons3d, point3d, text3d, bezier3d -from .shapes import arrow3d +from sage.plot.plot3d.shapes import arrow3d #from shapes import Box, ColorCube, Cone, Cylinder, LineSegment, Arrow, Sphere, Torus, Text as Text3D #from parametric_surface import ParametricSurface, MoebiusStrip diff --git a/src/sage/probability/all.py b/src/sage/probability/all.py index 689ee7a7934..6ac09a72160 100644 --- a/src/sage/probability/all.py +++ b/src/sage/probability/all.py @@ -1,9 +1,9 @@ -from .random_variable import ( +from sage.probability.random_variable import ( DiscreteRandomVariable, DiscreteProbabilitySpace ) -from .probability_distribution import ( +from sage.probability.probability_distribution import ( RealDistribution, SphericalDistribution, GeneralDiscreteDistribution ) diff --git a/src/sage/quadratic_forms/all.py b/src/sage/quadratic_forms/all.py index fbb7f2fdccb..e9e818af865 100644 --- a/src/sage/quadratic_forms/all.py +++ b/src/sage/quadratic_forms/all.py @@ -1,3 +1,3 @@ -from .all__sagemath_modules import * -from .all__sagemath_pari import * +from sage.quadratic_forms.all__sagemath_modules import * +from sage.quadratic_forms.all__sagemath_pari import * diff --git a/src/sage/quadratic_forms/all__sagemath_modules.py b/src/sage/quadratic_forms/all__sagemath_modules.py index e27f1eb15a9..a5430b77a9c 100644 --- a/src/sage/quadratic_forms/all__sagemath_modules.py +++ b/src/sage/quadratic_forms/all__sagemath_modules.py @@ -1,12 +1,12 @@ -from .binary_qf import BinaryQF, BinaryQF_reduced_representatives +from sage.quadratic_forms.binary_qf import BinaryQF, BinaryQF_reduced_representatives -from .ternary_qf import TernaryQF, find_all_ternary_qf_by_level_disc, find_a_ternary_qf_by_level_disc +from sage.quadratic_forms.ternary_qf import TernaryQF, find_all_ternary_qf_by_level_disc, find_a_ternary_qf_by_level_disc -from .quadratic_form import QuadraticForm, DiagonalQuadraticForm, quadratic_form_from_invariants +from sage.quadratic_forms.quadratic_form import QuadraticForm, DiagonalQuadraticForm, quadratic_form_from_invariants -from .random_quadraticform import (random_quadraticform, random_quadraticform_with_conditions, +from sage.quadratic_forms.random_quadraticform import (random_quadraticform, random_quadraticform_with_conditions, random_ternaryqf, random_ternaryqf_with_conditions) -from .extras import least_quadratic_nonresidue, extend_to_primitive, is_triangular_number +from sage.quadratic_forms.extras import least_quadratic_nonresidue, extend_to_primitive, is_triangular_number -from .constructions import BezoutianQuadraticForm, HyperbolicPlane_quadratic_form +from sage.quadratic_forms.constructions import BezoutianQuadraticForm, HyperbolicPlane_quadratic_form diff --git a/src/sage/quadratic_forms/all__sagemath_pari.py b/src/sage/quadratic_forms/all__sagemath_pari.py index 874de9d4f0b..eddc562392c 100644 --- a/src/sage/quadratic_forms/all__sagemath_pari.py +++ b/src/sage/quadratic_forms/all__sagemath_pari.py @@ -1,5 +1,5 @@ -from .special_values import (gamma__exact, zeta__exact, QuadraticBernoulliNumber, +from sage.quadratic_forms.special_values import (gamma__exact, zeta__exact, QuadraticBernoulliNumber, quadratic_L_function__exact, quadratic_L_function__numerical) -from .genera.genus import Genus +from sage.quadratic_forms.genera.genus import Genus diff --git a/src/sage/quadratic_forms/genera/all.py b/src/sage/quadratic_forms/genera/all.py index b1f48b5b8f6..e92279814dd 100644 --- a/src/sage/quadratic_forms/genera/all.py +++ b/src/sage/quadratic_forms/genera/all.py @@ -5,4 +5,4 @@ # # https://www.gnu.org/licenses/ # **************************************************************************** -from .genus import Genus, LocalGenusSymbol, is_GlobalGenus +from sage.quadratic_forms.genera.genus import Genus, LocalGenusSymbol, is_GlobalGenus diff --git a/src/sage/repl/ipython_kernel/all_jupyter.py b/src/sage/repl/ipython_kernel/all_jupyter.py index 37899e1c080..69bf0549da1 100644 --- a/src/sage/repl/ipython_kernel/all_jupyter.py +++ b/src/sage/repl/ipython_kernel/all_jupyter.py @@ -4,6 +4,6 @@ from sage.all_cmdline import * -from .widgets_sagenb import (input_box, text_control, slider, +from sage.repl.ipython_kernel.widgets_sagenb import (input_box, text_control, slider, range_slider, checkbox, selector, input_grid, color_selector) -from .interact import interact +from sage.repl.ipython_kernel.interact import interact diff --git a/src/sage/rings/all.py b/src/sage/rings/all.py index 89661c3c63c..4cffc119a67 100644 --- a/src/sage/rings/all.py +++ b/src/sage/rings/all.py @@ -12,33 +12,33 @@ # **************************************************************************** from sage.misc.lazy_import import lazy_import -from .all__sagemath_combinat import * -from .all__sagemath_flint import * -from .all__sagemath_modules import * +from sage.rings.all__sagemath_combinat import * +from sage.rings.all__sagemath_flint import * +from sage.rings.all__sagemath_modules import * try: - from .all__sagemath_symbolics import * + from sage.rings.all__sagemath_symbolics import * except ImportError: pass # Finite fields -from .finite_rings.all import * +from sage.rings.finite_rings.all import * # Function field -from .function_field.all import * +from sage.rings.function_field.all import * # Polynomial Rings and Polynomial Quotient Rings -from .polynomial.all import * +from sage.rings.polynomial.all import * # c-finite sequences -from .cfinite_sequence import CFiniteSequence, CFiniteSequences +from sage.rings.cfinite_sequence import CFiniteSequence, CFiniteSequences -from .fast_arith import prime_range +from sage.rings.fast_arith import prime_range # asymptotic ring -#from .asymptotic.all import * +#from sage.rings.asymptotic.all import * lazy_import('sage.rings.asymptotic.asymptotic_ring', 'AsymptoticRing') lazy_import('sage.rings.asymptotic.asymptotic_expansion_generators', 'asymptotic_expansions') # Register classes in numbers abc -from . import numbers_abc +from sage.rings import numbers_abc diff --git a/src/sage/rings/all__sagemath_categories.py b/src/sage/rings/all__sagemath_categories.py index b76975de3b2..ac3c996e2d2 100644 --- a/src/sage/rings/all__sagemath_categories.py +++ b/src/sage/rings/all__sagemath_categories.py @@ -1,5 +1,5 @@ # Ring base classes -from .ring import (Ring, Field, CommutativeRing, IntegralDomain, +from sage.rings.ring import (Ring, Field, CommutativeRing, IntegralDomain, DedekindDomain, PrincipalIdealDomain, EuclideanDomain) # Ring element base classes @@ -9,13 +9,13 @@ EuclideanDomainElement, FieldElement) # Rational numbers -from .rational import Rational -from .rational_field import RationalField, QQ +from sage.rings.rational import Rational +from sage.rings.rational_field import RationalField, QQ Rationals = RationalField # Rational integers. -from .integer_ring import IntegerRing, ZZ, crt_basis -from .integer import Integer +from sage.rings.integer_ring import IntegerRing, ZZ, crt_basis +from sage.rings.integer import Integer # Integers modulo n. from sage.rings.finite_rings.integer_mod_ring import IntegerModRing, Zmod @@ -23,55 +23,55 @@ Integers = IntegerModRing # Infinities -from .infinity import infinity, Infinity, InfinityRing, unsigned_infinity, UnsignedInfinityRing +from sage.rings.infinity import infinity, Infinity, InfinityRing, unsigned_infinity, UnsignedInfinityRing oo = infinity # Quotient -from .quotient_ring import QuotientRing +from sage.rings.quotient_ring import QuotientRing # Localization -from .localization import Localization +from sage.rings.localization import Localization # Fraction field -from .fraction_field import FractionField +from sage.rings.fraction_field import FractionField Frac = FractionField # Function field -from .function_field.all__sagemath_categories import * +from sage.rings.function_field.all__sagemath_categories import * # Double precision floating point numbers -from .real_double import RealDoubleField, RDF, RealDoubleElement +from sage.rings.real_double import RealDoubleField, RDF, RealDoubleElement # Ideals -from .ideal import Ideal +from sage.rings.ideal import Ideal ideal = Ideal # Semirings -from .semirings.all import * +from sage.rings.semirings.all import * -from .finite_rings.all__sagemath_categories import * -from .number_field.all__sagemath_categories import * -from .padics.all__sagemath_categories import * -from .polynomial.all__sagemath_categories import * +from sage.rings.finite_rings.all__sagemath_categories import * +from sage.rings.number_field.all__sagemath_categories import * +from sage.rings.padics.all__sagemath_categories import * +from sage.rings.polynomial.all__sagemath_categories import * # Power series rings -from .power_series_ring import PowerSeriesRing +from sage.rings.power_series_ring import PowerSeriesRing # Laurent series ring in one variable -from .laurent_series_ring import LaurentSeriesRing +from sage.rings.laurent_series_ring import LaurentSeriesRing # Puiseux series ring -from .puiseux_series_ring import PuiseuxSeriesRing +from sage.rings.puiseux_series_ring import PuiseuxSeriesRing # Big-oh notation -from .big_oh import O +from sage.rings.big_oh import O # continued fractions from sage.rings.continued_fraction import (continued_fraction, continued_fraction_list) # Lazy reals -from .real_lazy import RealLazyField, RLF, ComplexLazyField, CLF +from sage.rings.real_lazy import RealLazyField, RLF, ComplexLazyField, CLF # Preliminary version of real numbers for doctesting without sage.rings.real_mpfr. # sage.rings.all redefines it. diff --git a/src/sage/rings/all__sagemath_combinat.py b/src/sage/rings/all__sagemath_combinat.py index 73acfce9257..3e054b1da0b 100644 --- a/src/sage/rings/all__sagemath_combinat.py +++ b/src/sage/rings/all__sagemath_combinat.py @@ -1,4 +1,4 @@ -from .all__sagemath_categories import * +from sage.rings.all__sagemath_categories import * from sage.misc.lazy_import import lazy_import diff --git a/src/sage/rings/all__sagemath_flint.py b/src/sage/rings/all__sagemath_flint.py index 61ca5667c9e..47e6dfc5c45 100644 --- a/src/sage/rings/all__sagemath_flint.py +++ b/src/sage/rings/all__sagemath_flint.py @@ -1,5 +1,5 @@ -from .all__sagemath_ntl import * +from sage.rings.all__sagemath_ntl import * # Real numbers from sage.rings.real_arb import RealBallField, RBF @@ -7,28 +7,28 @@ from sage.rings.complex_arb import ComplexBallField, CBF # Number field -from .number_field.all import * +from sage.rings.number_field.all import * -from .monomials import monomials +from sage.rings.monomials import monomials # Algebraic numbers -from .qqbar import (AlgebraicRealField, AA, +from sage.rings.qqbar import (AlgebraicRealField, AA, AlgebraicReal, AlgebraicField, QQbar, AlgebraicNumber, number_field_elements_from_algebraics) # Intervals -from .real_mpfi import (RealIntervalField, +from sage.rings.real_mpfi import (RealIntervalField, RIF, RealInterval) # Complex numbers -from .complex_interval_field import ComplexIntervalField -from .complex_interval import (create_ComplexIntervalFieldElement as ComplexIntervalFieldElement) +from sage.rings.complex_interval_field import ComplexIntervalField +from sage.rings.complex_interval import (create_ComplexIntervalFieldElement as ComplexIntervalFieldElement) from sage.misc.lazy_import import lazy_import lazy_import("sage.rings.imaginary_unit", "I") -from .cif import CIF +from sage.rings.cif import CIF diff --git a/src/sage/rings/all__sagemath_modules.py b/src/sage/rings/all__sagemath_modules.py index 86c622842f9..3096135b7e0 100644 --- a/src/sage/rings/all__sagemath_modules.py +++ b/src/sage/rings/all__sagemath_modules.py @@ -1,24 +1,24 @@ -from .all__sagemath_categories import * +from sage.rings.all__sagemath_categories import * -from .function_field.all__sagemath_modules import * -from .polynomial.all__sagemath_modules import * +from sage.rings.function_field.all__sagemath_modules import * +from sage.rings.polynomial.all__sagemath_modules import * # Real numbers -from .real_mpfr import (RealField, RR, +from sage.rings.real_mpfr import (RealField, RR, create_RealNumber as RealNumber) # this is used by the preparser to wrap real literals -- very important. Reals = RealField # Complex numbers -from .complex_mpfr import ComplexField -from .complex_mpfr import create_ComplexNumber as ComplexNumber +from sage.rings.complex_mpfr import ComplexField +from sage.rings.complex_mpfr import create_ComplexNumber as ComplexNumber Complexes = ComplexField -from .complex_double import ComplexDoubleField, ComplexDoubleElement, CDF +from sage.rings.complex_double import ComplexDoubleField, ComplexDoubleElement, CDF -from .cc import CC +from sage.rings.cc import CC -from .complex_mpc import MPComplexField +from sage.rings.complex_mpc import MPComplexField # invariant theory -from .invariants.all import * +from sage.rings.invariants.all import * diff --git a/src/sage/rings/all__sagemath_ntl.py b/src/sage/rings/all__sagemath_ntl.py index 2e4a22cd324..c64b779350c 100644 --- a/src/sage/rings/all__sagemath_ntl.py +++ b/src/sage/rings/all__sagemath_ntl.py @@ -1,6 +1,6 @@ -from .all__sagemath_pari import * +from sage.rings.all__sagemath_pari import * -from .padics.all__sagemath_ntl import * +from sage.rings.padics.all__sagemath_ntl import * -from .bernoulli_mod_p import bernoulli_mod_p, bernoulli_mod_p_single +from sage.rings.bernoulli_mod_p import bernoulli_mod_p, bernoulli_mod_p_single diff --git a/src/sage/rings/all__sagemath_pari.py b/src/sage/rings/all__sagemath_pari.py index cdb2f220cf9..73f3230790e 100644 --- a/src/sage/rings/all__sagemath_pari.py +++ b/src/sage/rings/all__sagemath_pari.py @@ -1,12 +1,12 @@ # Pseudo-ring of PARI objects. -from .pari_ring import PariRing, Pari +from sage.rings.pari_ring import PariRing, Pari # p-adic field -from .padics.all__sagemath_pari import * +from sage.rings.padics.all__sagemath_pari import * # valuations -from .valuation.all import * +from sage.rings.valuation.all import * # Tate algebras -from .tate_algebra import TateAlgebra +from sage.rings.tate_algebra import TateAlgebra diff --git a/src/sage/rings/all__sagemath_symbolics.py b/src/sage/rings/all__sagemath_symbolics.py index 1334936c7a3..be07e478a77 100644 --- a/src/sage/rings/all__sagemath_symbolics.py +++ b/src/sage/rings/all__sagemath_symbolics.py @@ -1 +1 @@ -from .all__sagemath_modules import * +from sage.rings.all__sagemath_modules import * diff --git a/src/sage/rings/finite_rings/all.py b/src/sage/rings/finite_rings/all.py index 5e7e652e861..92c168e2623 100644 --- a/src/sage/rings/finite_rings/all.py +++ b/src/sage/rings/finite_rings/all.py @@ -18,4 +18,4 @@ # http://www.gnu.org/licenses/ #***************************************************************************** -from .all__sagemath_categories import * +from sage.rings.finite_rings.all__sagemath_categories import * diff --git a/src/sage/rings/finite_rings/all__sagemath_categories.py b/src/sage/rings/finite_rings/all__sagemath_categories.py index 00710ed2fe7..a2330a07fe4 100644 --- a/src/sage/rings/finite_rings/all__sagemath_categories.py +++ b/src/sage/rings/finite_rings/all__sagemath_categories.py @@ -1,8 +1,8 @@ -from .finite_field_constructor import FiniteField +from sage.rings.finite_rings.finite_field_constructor import FiniteField GF = FiniteField -from .conway_polynomials import conway_polynomial, exists_conway_polynomial +from sage.rings.finite_rings.conway_polynomials import conway_polynomial, exists_conway_polynomial # Finite residue fields -from .residue_field import ResidueField +from sage.rings.finite_rings.residue_field import ResidueField diff --git a/src/sage/rings/function_field/all.py b/src/sage/rings/function_field/all.py index 8922ed8d173..2cd27c3894d 100644 --- a/src/sage/rings/function_field/all.py +++ b/src/sage/rings/function_field/all.py @@ -1,7 +1,7 @@ -from .all__sagemath_modules import * +from sage.rings.function_field.all__sagemath_modules import * try: - from .all__sagemath_symbolics import * + from sage.rings.function_field.all__sagemath_symbolics import * except ImportError: pass diff --git a/src/sage/rings/function_field/all__sagemath_categories.py b/src/sage/rings/function_field/all__sagemath_categories.py index b6bba3369c3..1cc1f1b8b2f 100644 --- a/src/sage/rings/function_field/all__sagemath_categories.py +++ b/src/sage/rings/function_field/all__sagemath_categories.py @@ -1 +1 @@ -from .constructor import FunctionField +from sage.rings.function_field.constructor import FunctionField diff --git a/src/sage/rings/function_field/all__sagemath_modules.py b/src/sage/rings/function_field/all__sagemath_modules.py index ae1d0ab8b43..f1bd876653e 100644 --- a/src/sage/rings/function_field/all__sagemath_modules.py +++ b/src/sage/rings/function_field/all__sagemath_modules.py @@ -1 +1 @@ -from .all__sagemath_categories import * +from sage.rings.function_field.all__sagemath_categories import * diff --git a/src/sage/rings/function_field/all__sagemath_symbolics.py b/src/sage/rings/function_field/all__sagemath_symbolics.py index 1334936c7a3..7c97e664309 100644 --- a/src/sage/rings/function_field/all__sagemath_symbolics.py +++ b/src/sage/rings/function_field/all__sagemath_symbolics.py @@ -1 +1 @@ -from .all__sagemath_modules import * +from sage.rings.function_field.all__sagemath_modules import * diff --git a/src/sage/rings/number_field/all.py b/src/sage/rings/number_field/all.py index 5c56f8cff58..ada4ee855c5 100644 --- a/src/sage/rings/number_field/all.py +++ b/src/sage/rings/number_field/all.py @@ -1,9 +1,9 @@ -from .number_field import (NumberField, NumberFieldTower, CyclotomicField, QuadraticField, +from sage.rings.number_field.number_field import (NumberField, NumberFieldTower, CyclotomicField, QuadraticField, is_fundamental_discriminant, is_real_place) -from .number_field_element import NumberFieldElement +from sage.rings.number_field.number_field_element import NumberFieldElement -from .order import EquationOrder, GaussianIntegers, EisensteinIntegers +from sage.rings.number_field.order import EquationOrder, GaussianIntegers, EisensteinIntegers from sage.misc.lazy_import import lazy_import as _lazy_import @@ -12,4 +12,4 @@ _lazy_import('sage.rings.number_field.totallyreal_rel', 'enumerate_totallyreal_fields_all') _lazy_import('sage.rings.number_field.totallyreal_rel', 'enumerate_totallyreal_fields_rel') -from .unit_group import UnitGroup +from sage.rings.number_field.unit_group import UnitGroup diff --git a/src/sage/rings/padics/all.py b/src/sage/rings/padics/all.py index 016d922fd8a..457e8611c55 100644 --- a/src/sage/rings/padics/all.py +++ b/src/sage/rings/padics/all.py @@ -1,2 +1,2 @@ -from .all__sagemath_flint import * +from sage.rings.padics.all__sagemath_flint import * diff --git a/src/sage/rings/padics/all__sagemath_categories.py b/src/sage/rings/padics/all__sagemath_categories.py index c4e36e9c28b..fec72979f02 100644 --- a/src/sage/rings/padics/all__sagemath_categories.py +++ b/src/sage/rings/padics/all__sagemath_categories.py @@ -1 +1 @@ -from .padic_generic import local_print_mode +from sage.rings.padics.padic_generic import local_print_mode diff --git a/src/sage/rings/padics/all__sagemath_flint.py b/src/sage/rings/padics/all__sagemath_flint.py index d91f726d26f..6362a8551f0 100644 --- a/src/sage/rings/padics/all__sagemath_flint.py +++ b/src/sage/rings/padics/all__sagemath_flint.py @@ -1,2 +1,2 @@ -from .all__sagemath_ntl import * +from sage.rings.padics.all__sagemath_ntl import * diff --git a/src/sage/rings/padics/all__sagemath_ntl.py b/src/sage/rings/padics/all__sagemath_ntl.py index de062b61275..dfa31e55f90 100644 --- a/src/sage/rings/padics/all__sagemath_ntl.py +++ b/src/sage/rings/padics/all__sagemath_ntl.py @@ -1,4 +1,4 @@ -from .all__sagemath_pari import * +from sage.rings.padics.all__sagemath_pari import * -from .pow_computer_ext import PowComputer_ext_maker +from sage.rings.padics.pow_computer_ext import PowComputer_ext_maker diff --git a/src/sage/rings/padics/all__sagemath_pari.py b/src/sage/rings/padics/all__sagemath_pari.py index 4833e7a7e99..5072418e856 100644 --- a/src/sage/rings/padics/all__sagemath_pari.py +++ b/src/sage/rings/padics/all__sagemath_pari.py @@ -1,10 +1,10 @@ -from .all__sagemath_categories import * +from sage.rings.padics.all__sagemath_categories import * -from .factory import Zp, Zq, Zp as pAdicRing, ZpCR, ZpCA, ZpFM, ZpFP, ZpLC, ZpLF, ZqCR, ZqCA, ZqFM, ZqFP, ZpER -from .factory import Qp, Qq, Qp as pAdicField, QpCR, QpFP, QpLC, QpLF, QqCR, QqFP, QpER -from .factory import pAdicExtension +from sage.rings.padics.factory import Zp, Zq, Zp as pAdicRing, ZpCR, ZpCA, ZpFM, ZpFP, ZpLC, ZpLF, ZqCR, ZqCA, ZqFM, ZqFP, ZpER +from sage.rings.padics.factory import Qp, Qq, Qp as pAdicField, QpCR, QpFP, QpLC, QpLF, QqCR, QqFP, QpER +from sage.rings.padics.factory import pAdicExtension -from .padic_printing import _printer_defaults as padic_printing +from sage.rings.padics.padic_printing import _printer_defaults as padic_printing -from .pow_computer import PowComputer +from sage.rings.padics.pow_computer import PowComputer diff --git a/src/sage/rings/polynomial/all.py b/src/sage/rings/polynomial/all.py index 36311c7c0b7..73e2e09aed7 100644 --- a/src/sage/rings/polynomial/all.py +++ b/src/sage/rings/polynomial/all.py @@ -18,8 +18,8 @@ from sage.misc.lazy_import import lazy_import -from .all__sagemath_categories import * -from .all__sagemath_modules import * +from sage.rings.polynomial.all__sagemath_categories import * +from sage.rings.polynomial.all__sagemath_modules import * # Generic convolution from sage.rings.polynomial.convolution import convolution diff --git a/src/sage/rings/semirings/all.py b/src/sage/rings/semirings/all.py index b14da38328a..55e69042077 100644 --- a/src/sage/rings/semirings/all.py +++ b/src/sage/rings/semirings/all.py @@ -1,2 +1,2 @@ -from .non_negative_integer_semiring import NonNegativeIntegerSemiring, NN -from .tropical_semiring import TropicalSemiring +from sage.rings.semirings.non_negative_integer_semiring import NonNegativeIntegerSemiring, NN +from sage.rings.semirings.tropical_semiring import TropicalSemiring diff --git a/src/sage/schemes/affine/all.py b/src/sage/schemes/affine/all.py index 68a540a9f1f..31edc39276b 100644 --- a/src/sage/schemes/affine/all.py +++ b/src/sage/schemes/affine/all.py @@ -20,5 +20,5 @@ # http://www.gnu.org/licenses/ #***************************************************************************** -from .affine_space import AffineSpace -from .affine_rational_point import enum_affine_rational_field, enum_affine_finite_field +from sage.schemes.affine.affine_space import AffineSpace +from sage.schemes.affine.affine_rational_point import enum_affine_rational_field, enum_affine_finite_field diff --git a/src/sage/schemes/all.py b/src/sage/schemes/all.py index 9c70d129ed3..a40a19b9af4 100644 --- a/src/sage/schemes/all.py +++ b/src/sage/schemes/all.py @@ -20,20 +20,20 @@ # http://www.gnu.org/licenses/ #***************************************************************************** -from .all__sagemath_categories import * +from sage.schemes.all__sagemath_categories import * -from .jacobians.all import * +from sage.schemes.jacobians.all import * -from .hyperelliptic_curves.all import * +from sage.schemes.hyperelliptic_curves.all import * -from .curves.all import * +from sage.schemes.curves.all import * -from .plane_conics.all import * +from sage.schemes.plane_conics.all import * -from .elliptic_curves.all import * +from sage.schemes.elliptic_curves.all import * -from .plane_quartics.all import * +from sage.schemes.plane_quartics.all import * -from .cyclic_covers.all import * +from sage.schemes.cyclic_covers.all import * -from .berkovich.all import * +from sage.schemes.berkovich.all import * diff --git a/src/sage/schemes/all__sagemath_categories.py b/src/sage/schemes/all__sagemath_categories.py index 49d803c968b..02c6722874e 100644 --- a/src/sage/schemes/all__sagemath_categories.py +++ b/src/sage/schemes/all__sagemath_categories.py @@ -1,4 +1,4 @@ -from .generic.all import * -from .affine.all import * -from .projective.all import * -from .product_projective.all import * +from sage.schemes.generic.all import * +from sage.schemes.affine.all import * +from sage.schemes.projective.all import * +from sage.schemes.product_projective.all import * diff --git a/src/sage/schemes/all__sagemath_polyhedra.py b/src/sage/schemes/all__sagemath_polyhedra.py index 2e641cf8c56..2dc39d42014 100644 --- a/src/sage/schemes/all__sagemath_polyhedra.py +++ b/src/sage/schemes/all__sagemath_polyhedra.py @@ -1 +1 @@ -from .toric.all import * +from sage.schemes.toric.all import * diff --git a/src/sage/schemes/berkovich/all.py b/src/sage/schemes/berkovich/all.py index cc7af01a057..18b4254e4a8 100644 --- a/src/sage/schemes/berkovich/all.py +++ b/src/sage/schemes/berkovich/all.py @@ -2,4 +2,4 @@ all.py -- export of Berkovich spaces to all of Sage """ -from .berkovich_space import Berkovich_Cp_Affine, Berkovich_Cp_Projective +from sage.schemes.berkovich.berkovich_space import Berkovich_Cp_Affine, Berkovich_Cp_Projective diff --git a/src/sage/schemes/curves/all.py b/src/sage/schemes/curves/all.py index 147c2e1e6fe..ec0af61d2f7 100644 --- a/src/sage/schemes/curves/all.py +++ b/src/sage/schemes/curves/all.py @@ -20,6 +20,6 @@ # http://www.gnu.org/licenses/ #***************************************************************************** -from .constructor import Curve +from sage.schemes.curves.constructor import Curve -from .projective_curve import Hasse_bounds +from sage.schemes.curves.projective_curve import Hasse_bounds diff --git a/src/sage/schemes/cyclic_covers/all.py b/src/sage/schemes/cyclic_covers/all.py index b1fcd806e7a..88b3d6b3f04 100644 --- a/src/sage/schemes/cyclic_covers/all.py +++ b/src/sage/schemes/cyclic_covers/all.py @@ -1 +1 @@ -from .constructor import CyclicCover +from sage.schemes.cyclic_covers.constructor import CyclicCover diff --git a/src/sage/schemes/elliptic_curves/all.py b/src/sage/schemes/elliptic_curves/all.py index fd2fb992360..144f6a88df9 100644 --- a/src/sage/schemes/elliptic_curves/all.py +++ b/src/sage/schemes/elliptic_curves/all.py @@ -17,7 +17,7 @@ # http://www.gnu.org/licenses/ #***************************************************************************** -from .constructor import (EllipticCurve, +from sage.schemes.elliptic_curves.constructor import (EllipticCurve, EllipticCurve_from_c4c6, EllipticCurve_from_j, EllipticCurve_from_cubic, @@ -29,15 +29,15 @@ lazy_import('sage.schemes.elliptic_curves.ell_rational_field', ['cremona_curves', 'cremona_optimal_curves']) -from .cm import ( cm_orders, +from sage.schemes.elliptic_curves.cm import ( cm_orders, cm_j_invariants, cm_j_invariants_and_orders, hilbert_class_polynomial ) lazy_import('sage.schemes.elliptic_curves.ec_database', 'elliptic_curves') -from .kodaira_symbol import KodairaSymbol +from sage.schemes.elliptic_curves.kodaira_symbol import KodairaSymbol -from .ell_curve_isogeny import EllipticCurveIsogeny, isogeny_codomain_from_kernel +from sage.schemes.elliptic_curves.ell_curve_isogeny import EllipticCurveIsogeny, isogeny_codomain_from_kernel -from .heegner import heegner_points, heegner_point +from sage.schemes.elliptic_curves.heegner import heegner_points, heegner_point diff --git a/src/sage/schemes/generic/all.py b/src/sage/schemes/generic/all.py index b8ba9585bfa..a58cc24efd2 100644 --- a/src/sage/schemes/generic/all.py +++ b/src/sage/schemes/generic/all.py @@ -1,4 +1,4 @@ # code exports -from .spec import Spec -from .hypersurface import ProjectiveHypersurface, AffineHypersurface +from sage.schemes.generic.spec import Spec +from sage.schemes.generic.hypersurface import ProjectiveHypersurface, AffineHypersurface diff --git a/src/sage/schemes/hyperelliptic_curves/all.py b/src/sage/schemes/hyperelliptic_curves/all.py index ff4d929e891..298e40671fd 100644 --- a/src/sage/schemes/hyperelliptic_curves/all.py +++ b/src/sage/schemes/hyperelliptic_curves/all.py @@ -35,11 +35,11 @@ """ from sage.misc.lazy_import import lazy_import -from .constructor import HyperellipticCurve -from .kummer_surface import KummerSurface +from sage.schemes.hyperelliptic_curves.constructor import HyperellipticCurve +from sage.schemes.hyperelliptic_curves.kummer_surface import KummerSurface lazy_import('sage.schemes.hyperelliptic_curves.invariants', ['igusa_clebsch_invariants', 'absolute_igusa_invariants_kohel', 'absolute_igusa_invariants_wamelen', 'clebsch_invariants'], deprecation=28064) -from .mestre import (Mestre_conic, HyperellipticCurve_from_invariants) -from . import monsky_washnitzer +from sage.schemes.hyperelliptic_curves.mestre import (Mestre_conic, HyperellipticCurve_from_invariants) +from sage.schemes.hyperelliptic_curves import monsky_washnitzer diff --git a/src/sage/schemes/plane_conics/all.py b/src/sage/schemes/plane_conics/all.py index b0237ba2e7c..0ac534ebe27 100644 --- a/src/sage/schemes/plane_conics/all.py +++ b/src/sage/schemes/plane_conics/all.py @@ -18,4 +18,4 @@ # # https://www.gnu.org/licenses/ # **************************************************************************** -from .constructor import Conic +from sage.schemes.plane_conics.constructor import Conic diff --git a/src/sage/schemes/plane_quartics/all.py b/src/sage/schemes/plane_quartics/all.py index 6986f1ec1fa..1f60d332efe 100644 --- a/src/sage/schemes/plane_quartics/all.py +++ b/src/sage/schemes/plane_quartics/all.py @@ -1 +1 @@ -from .quartic_constructor import QuarticCurve +from sage.schemes.plane_quartics.quartic_constructor import QuarticCurve diff --git a/src/sage/schemes/projective/all.py b/src/sage/schemes/projective/all.py index 44e92ee5f23..91c821115d1 100644 --- a/src/sage/schemes/projective/all.py +++ b/src/sage/schemes/projective/all.py @@ -20,4 +20,4 @@ # http://www.gnu.org/licenses/ #***************************************************************************** -from .projective_space import ProjectiveSpace, is_ProjectiveSpace +from sage.schemes.projective.projective_space import ProjectiveSpace, is_ProjectiveSpace diff --git a/src/sage/sets/all.py b/src/sage/sets/all.py index 1c1a69e57a7..4ad89651388 100644 --- a/src/sage/sets/all.py +++ b/src/sage/sets/all.py @@ -1,15 +1,15 @@ from sage.misc.lazy_import import lazy_import lazy_import('sage.sets.real_set', 'RealSet') -from .set import Set -from .integer_range import IntegerRange -from .non_negative_integers import NonNegativeIntegers -from .positive_integers import PositiveIntegers -from .finite_enumerated_set import FiniteEnumeratedSet +from sage.sets.set import Set +from sage.sets.integer_range import IntegerRange +from sage.sets.non_negative_integers import NonNegativeIntegers +from sage.sets.positive_integers import PositiveIntegers +from sage.sets.finite_enumerated_set import FiniteEnumeratedSet lazy_import('sage.sets.recursively_enumerated_set','RecursivelyEnumeratedSet') -from .totally_ordered_finite_set import TotallyOrderedFiniteSet -from .disjoint_union_enumerated_sets import DisjointUnionEnumeratedSets -from .primes import Primes -from .family import Family -from .disjoint_set import DisjointSet -from .condition_set import ConditionSet -from .finite_set_maps import FiniteSetMaps +from sage.sets.totally_ordered_finite_set import TotallyOrderedFiniteSet +from sage.sets.disjoint_union_enumerated_sets import DisjointUnionEnumeratedSets +from sage.sets.primes import Primes +from sage.sets.family import Family +from sage.sets.disjoint_set import DisjointSet +from sage.sets.condition_set import ConditionSet +from sage.sets.finite_set_maps import FiniteSetMaps diff --git a/src/sage/stats/all.py b/src/sage/stats/all.py index 253735e46d7..63c3cb9c668 100644 --- a/src/sage/stats/all.py +++ b/src/sage/stats/all.py @@ -1,5 +1,5 @@ -from .basic_stats import (mean, mode, std, variance, median, moving_average) -from .hmm import all as hmm +from sage.stats.basic_stats import (mean, mode, std, variance, median, moving_average) +from sage.stats.hmm import all as hmm from sage.misc.lazy_import import lazy_import diff --git a/src/sage/structure/proof/all.py b/src/sage/structure/proof/all.py index c006c56c36d..06295f79e80 100644 --- a/src/sage/structure/proof/all.py +++ b/src/sage/structure/proof/all.py @@ -35,7 +35,7 @@ def arithmetic(t=None): sage: proof.arithmetic() True """ - from .proof import _proof_prefs + from sage.structure.proof.proof import _proof_prefs return _proof_prefs.arithmetic(t) @@ -73,7 +73,7 @@ def elliptic_curve(t=None): sage: proof.elliptic_curve() True """ - from .proof import _proof_prefs + from sage.structure.proof.proof import _proof_prefs return _proof_prefs.elliptic_curve(t) @@ -111,7 +111,7 @@ def linear_algebra(t=None): sage: proof.linear_algebra() True """ - from .proof import _proof_prefs + from sage.structure.proof.proof import _proof_prefs return _proof_prefs.linear_algebra(t) @@ -148,7 +148,7 @@ def number_field(t=None): sage: proof.number_field() True """ - from .proof import _proof_prefs + from sage.structure.proof.proof import _proof_prefs return _proof_prefs.number_field(t) @@ -185,7 +185,7 @@ def polynomial(t=None): sage: proof.polynomial() True """ - from .proof import _proof_prefs + from sage.structure.proof.proof import _proof_prefs return _proof_prefs.polynomial(t) @@ -234,11 +234,11 @@ def all(t=None): sage: proof.number_field() True """ - from .proof import _proof_prefs + from sage.structure.proof.proof import _proof_prefs if t is None: return _proof_prefs._require_proof.copy() for s in _proof_prefs._require_proof: _proof_prefs._require_proof[s] = bool(t) -from .proof import WithProof +from sage.structure.proof.proof import WithProof diff --git a/src/sage/symbolic/all.py b/src/sage/symbolic/all.py index b5a0883d202..742f49146ca 100644 --- a/src/sage/symbolic/all.py +++ b/src/sage/symbolic/all.py @@ -1,14 +1,14 @@ -from .ring import SR -from .constants import (pi, e, NaN, golden_ratio, log2, euler_gamma, catalan, +from sage.symbolic.ring import SR +from sage.symbolic.constants import (pi, e, NaN, golden_ratio, log2, euler_gamma, catalan, khinchin, twinprime, mertens, glaisher) -from .expression import Expression, solve_diophantine, hold -from .callable import CallableSymbolicExpressionRing +from sage.symbolic.expression import Expression, solve_diophantine, hold +from sage.symbolic.callable import CallableSymbolicExpressionRing from sage.symbolic.relation import solve, solve_mod, solve_ineq from sage.symbolic.assumptions import assume, forget, assumptions, assuming -from .units import units +from sage.symbolic.units import units π = pi -from .operators import D +from sage.symbolic.operators import D diff --git a/src/sage/tensor/all.py b/src/sage/tensor/all.py index dc52f0b09ed..e73549851e5 100644 --- a/src/sage/tensor/all.py +++ b/src/sage/tensor/all.py @@ -1 +1 @@ -from .modules.all import * +from sage.tensor.modules.all import * diff --git a/src/sage/topology/all.py b/src/sage/topology/all.py index 53b89564daa..32339d70cfa 100644 --- a/src/sage/topology/all.py +++ b/src/sage/topology/all.py @@ -1,11 +1,11 @@ # sage.doctest: needs sage.graphs -from .simplicial_complex import SimplicialComplex, Simplex +from sage.topology.simplicial_complex import SimplicialComplex, Simplex -from .simplicial_complex_morphism import SimplicialComplexMorphism +from sage.topology.simplicial_complex_morphism import SimplicialComplexMorphism -from .delta_complex import DeltaComplex, delta_complexes +from sage.topology.delta_complex import DeltaComplex, delta_complexes -from .cubical_complex import CubicalComplex, cubical_complexes +from sage.topology.cubical_complex import CubicalComplex, cubical_complexes from sage.misc.lazy_import import lazy_import lazy_import('sage.topology.filtered_simplicial_complex', 'FilteredSimplicialComplex') From eadafb3a33c71f033070f6aa537a010ad4cec659 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Wed, 8 Nov 2023 08:02:05 -0800 Subject: [PATCH 003/140] Fixups in .all* --- src/sage/libs/all__sagemath_gap.py | 2 ++ src/sage/rings/all.py | 1 + src/sage/schemes/all.py | 1 + 3 files changed, 4 insertions(+) diff --git a/src/sage/libs/all__sagemath_gap.py b/src/sage/libs/all__sagemath_gap.py index e69de29bb2d..05f57227606 100644 --- a/src/sage/libs/all__sagemath_gap.py +++ b/src/sage/libs/all__sagemath_gap.py @@ -0,0 +1,2 @@ +from sage.misc.lazy_import import lazy_import +lazy_import('sage.libs.gap.libgap', 'libgap') diff --git a/src/sage/rings/all.py b/src/sage/rings/all.py index 4cffc119a67..d66dcf2dad7 100644 --- a/src/sage/rings/all.py +++ b/src/sage/rings/all.py @@ -14,6 +14,7 @@ from sage.rings.all__sagemath_combinat import * from sage.rings.all__sagemath_flint import * +from sage.rings.all__sagemath_gap import * from sage.rings.all__sagemath_modules import * try: diff --git a/src/sage/schemes/all.py b/src/sage/schemes/all.py index a40a19b9af4..bc5b7441628 100644 --- a/src/sage/schemes/all.py +++ b/src/sage/schemes/all.py @@ -21,6 +21,7 @@ #***************************************************************************** from sage.schemes.all__sagemath_categories import * +from sage.schemes.all__sagemath_polyhedra import * from sage.schemes.jacobians.all import * From 7be4ed46d0b00f6d897f972d974014aff9cd0e6e Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Wed, 8 Nov 2023 12:09:39 -0800 Subject: [PATCH 004/140] Reverts --- src/sage/algebras/all__sagemath_combinat.py | 4 ++-- src/sage/combinat/all__sagemath_combinat.py | 4 +--- src/sage/combinat/sf/all.py | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/sage/algebras/all__sagemath_combinat.py b/src/sage/algebras/all__sagemath_combinat.py index 6cbe558cbdc..57e5006e1d4 100644 --- a/src/sage/algebras/all__sagemath_combinat.py +++ b/src/sage/algebras/all__sagemath_combinat.py @@ -2,8 +2,8 @@ # Algebra base classes -lazy_import('sage.algebras.free_algebra', 'FreeAlgebra') -lazy_import('sage.algebras.free_algebra_quotient', 'FreeAlgebraQuotient') +from sage.algebras.free_algebra import FreeAlgebra +from sage.algebras.free_algebra_quotient import FreeAlgebraQuotient from sage.algebras.steenrod.all import * from sage.algebras.quantum_groups.all import * diff --git a/src/sage/combinat/all__sagemath_combinat.py b/src/sage/combinat/all__sagemath_combinat.py index 36a8fd061cf..d7ea5dcc442 100644 --- a/src/sage/combinat/all__sagemath_combinat.py +++ b/src/sage/combinat/all__sagemath_combinat.py @@ -46,9 +46,7 @@ lazy_import('sage.combinat.skew_partition', ['SkewPartition', 'SkewPartitions']) # Partition algebra -lazy_import('sage.combinat.partition_algebra', ['SetPartitionsAk', 'SetPartitionsPk', 'SetPartitionsTk', - 'SetPartitionsIk', 'SetPartitionsBk', 'SetPartitionsSk', - 'SetPartitionsRk', 'SetPartitionsPRk']) +from .partition_algebra import SetPartitionsAk, SetPartitionsPk, SetPartitionsTk, SetPartitionsIk, SetPartitionsBk, SetPartitionsSk, SetPartitionsRk, SetPartitionsPRk # Raising operators lazy_import('sage.combinat.partition_shifting_algebras', 'ShiftingOperatorAlgebra') diff --git a/src/sage/combinat/sf/all.py b/src/sage/combinat/sf/all.py index 00f8e4f2bdf..e4601264e83 100644 --- a/src/sage/combinat/sf/all.py +++ b/src/sage/combinat/sf/all.py @@ -36,7 +36,7 @@ # In the long run, this will be the single entry point # Nothing else will be exported -lazy_import('sage.combinat.sf.sf', 'SymmetricFunctions') +from sage.combinat.sf.sf import SymmetricFunctions # Advanced stuff: From 6f62d6186452b434a8938a375e88d0e5102dfe22 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Wed, 8 Nov 2023 12:12:23 -0800 Subject: [PATCH 005/140] Restores --- src/sage/misc/all.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/sage/misc/all.py b/src/sage/misc/all.py index 005f730cd7b..8f1d920cec6 100644 --- a/src/sage/misc/all.py +++ b/src/sage/misc/all.py @@ -3,6 +3,16 @@ from sage.misc.all__sagemath_modules import * from sage.misc.all__sagemath_repl import * +from sage.misc.misc import (BackslashOperator, + exists, forall, is_iterator, + random_sublist, + pad_zeros, + SAGE_DB, + newton_method_sizes, compose, + nest) +lazy_import('sage.misc.misc', 'union', + deprecation=32096) + from sage.misc.remote_file import get_remote_file lazy_import('sage.misc.dist', 'install_scripts', deprecation=34259) From 03530708760c043f771ce15876f5df40b08e5911 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Wed, 8 Nov 2023 12:17:59 -0800 Subject: [PATCH 006/140] Restores --- src/sage/rings/all__sagemath_categories.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/sage/rings/all__sagemath_categories.py b/src/sage/rings/all__sagemath_categories.py index ac3c996e2d2..c2b285e3d89 100644 --- a/src/sage/rings/all__sagemath_categories.py +++ b/src/sage/rings/all__sagemath_categories.py @@ -72,7 +72,3 @@ # Lazy reals from sage.rings.real_lazy import RealLazyField, RLF, ComplexLazyField, CLF - -# Preliminary version of real numbers for doctesting without sage.rings.real_mpfr. -# sage.rings.all redefines it. -RealNumber = RR = RDF # used by the preparser to wrap real literals From 87aeee8645ac3fbc29558230f0d46bc4aea1ead1 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Wed, 8 Nov 2023 14:41:54 -0800 Subject: [PATCH 007/140] src/sage/combinat/all__sagemath_combinat.py: pycodestyle fix (whitespace) --- src/sage/combinat/all__sagemath_combinat.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/sage/combinat/all__sagemath_combinat.py b/src/sage/combinat/all__sagemath_combinat.py index d7ea5dcc442..dcbcf46383e 100644 --- a/src/sage/combinat/all__sagemath_combinat.py +++ b/src/sage/combinat/all__sagemath_combinat.py @@ -167,8 +167,6 @@ lazy_import('sage.combinat.recognizable_series', 'RecognizableSeriesSpace') lazy_import('sage.combinat.regular_sequence', 'RegularSequenceRing') - - # Six Vertex Model lazy_import('sage.combinat.six_vertex_model', 'SixVertexModel') From c6a06e13a1cfd095d4516bd6132798c3aefe6aa4 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Wed, 8 Nov 2023 18:53:21 -0800 Subject: [PATCH 008/140] src/sage/misc/dev_tools.py: Update doctest output --- src/sage/misc/dev_tools.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sage/misc/dev_tools.py b/src/sage/misc/dev_tools.py index 3ece7db2894..bbedcc56d2e 100644 --- a/src/sage/misc/dev_tools.py +++ b/src/sage/misc/dev_tools.py @@ -148,6 +148,7 @@ def load_submodules(module=None, exclude_pattern=None): EXAMPLES:: sage: sage.misc.dev_tools.load_submodules(sage.combinat) + load sage.combinat.affine_permutation... succeeded load sage.combinat.algebraic_combinatorics... succeeded ... load sage.combinat.words.suffix_trees... succeeded From c2000d80518f14e7ebdf18ee52fb98a9f844e13a Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Thu, 9 Nov 2023 13:09:16 -0800 Subject: [PATCH 009/140] src/sage/misc/sageinspect.py: Update doctests for increased use of lazy imports --- src/sage/misc/sageinspect.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sage/misc/sageinspect.py b/src/sage/misc/sageinspect.py index 8c734ecd36d..c4731b242d1 100644 --- a/src/sage/misc/sageinspect.py +++ b/src/sage/misc/sageinspect.py @@ -1361,6 +1361,7 @@ def sage_getfile(obj): sage: from sage.misc.sageinspect import sage_getfile sage: sage_getfile(sage.rings.rational) '...sage/rings/rational.pyx' + sage: from sage.algebras.steenrod.steenrod_algebra import Sq # needs sage.combinat sage.modules sage: sage_getfile(Sq) # needs sage.combinat sage.modules '...sage/algebras/steenrod/steenrod_algebra.py' sage: sage_getfile(x) # needs sage.symbolic @@ -1441,6 +1442,7 @@ def sage_getfile_relative(obj): sage: from sage.misc.sageinspect import sage_getfile_relative sage: sage_getfile_relative(sage.rings.rational) 'sage/rings/rational.pyx' + sage: from sage.algebras.steenrod.steenrod_algebra import Sq # needs sage.combinat sage.modules sage: sage_getfile_relative(Sq) # needs sage.combinat sage.modules 'sage/algebras/steenrod/steenrod_algebra.py' sage: sage_getfile_relative(x) # needs sage.symbolic @@ -2345,6 +2347,7 @@ def sage_getsourcelines(obj): EXAMPLES:: sage: from sage.misc.sageinspect import sage_getsourcelines + sage: from sage.matrix.constructor import matrix # needs sage.modules sage: sage_getsourcelines(matrix)[1] # needs sage.modules 21 sage: sage_getsourcelines(matrix)[0][0] # needs sage.modules From 5e246aed4f26267dc01d3eb9ac2e3cc44f915c1d Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Thu, 9 Nov 2023 15:54:58 -0800 Subject: [PATCH 010/140] Defer some changes to all__sagemath_{objects,categories} until #36566 --- src/sage/misc/all.py | 7 +++ src/sage/misc/all__sagemath_objects.py | 9 --- src/sage/rings/all.py | 69 ++++++++++++++++++++++ src/sage/rings/all__sagemath_categories.py | 65 ++------------------ 4 files changed, 82 insertions(+), 68 deletions(-) diff --git a/src/sage/misc/all.py b/src/sage/misc/all.py index 8f1d920cec6..2d1d66315ef 100644 --- a/src/sage/misc/all.py +++ b/src/sage/misc/all.py @@ -20,3 +20,10 @@ from sage.misc.classgraph import class_graph lazy_import('sage.repl.interpreter', 'logstr', deprecation=34259) + +# Following will go to all__sagemath_objects.py in #36566 +from sage.misc.randstate import seed, set_random_seed, initial_seed, current_randstate +from sage.misc.prandom import * +from sage.misc.sage_timeit_class import timeit +from sage.misc.session import load_session, save_session, show_identifiers +from sage.misc.reset import reset, restore diff --git a/src/sage/misc/all__sagemath_objects.py b/src/sage/misc/all__sagemath_objects.py index efdf3f1eb7c..30a76f38fab 100644 --- a/src/sage/misc/all__sagemath_objects.py +++ b/src/sage/misc/all__sagemath_objects.py @@ -33,13 +33,4 @@ from sage.misc.abstract_method import abstract_method -from sage.misc.randstate import seed, set_random_seed, initial_seed, current_randstate - -from sage.misc.prandom import * - from sage.misc.timing import walltime, cputime - -from sage.misc.sage_timeit_class import timeit - -from sage.misc.session import load_session, save_session, show_identifiers -from sage.misc.reset import reset, restore diff --git a/src/sage/rings/all.py b/src/sage/rings/all.py index d66dcf2dad7..e920a6f363d 100644 --- a/src/sage/rings/all.py +++ b/src/sage/rings/all.py @@ -22,20 +22,89 @@ except ImportError: pass +### Following will go to all__sagemath_categories.py in #36566 + +# Quotient +from sage.rings.quotient_ring import QuotientRing + +# Infinities +from sage.rings.infinity import infinity, Infinity, InfinityRing, unsigned_infinity, UnsignedInfinityRing +oo = infinity + +# Rational integers. +from sage.rings.integer_ring import IntegerRing, ZZ, crt_basis +from sage.rings.integer import Integer + +# Rational numbers +from sage.rings.rational import Rational +from sage.rings.rational_field import RationalField, QQ +Rationals = RationalField + +# Integers modulo n. +from sage.rings.finite_rings.integer_mod_ring import IntegerModRing, Zmod +from sage.rings.finite_rings.integer_mod import IntegerMod, Mod, mod +Integers = IntegerModRing + +### up to here (#36566) + # Finite fields from sage.rings.finite_rings.all import * # Function field from sage.rings.function_field.all import * +### Following will go to all__sagemath_categories.py in #36566 + +# Semirings +from sage.rings.semirings.all import * + +# Double precision floating point numbers +from sage.rings.real_double import RealDoubleField, RDF, RealDoubleElement + +# Lazy reals +from sage.rings.real_lazy import RealLazyField, RLF, ComplexLazyField, CLF + +### up to here (#36566) + # Polynomial Rings and Polynomial Quotient Rings from sage.rings.polynomial.all import * +### Following will go to all__sagemath_categories.py in #36566 + +# Power series rings +from sage.rings.power_series_ring import PowerSeriesRing + +# Laurent series ring in one variable +from sage.rings.laurent_series_ring import LaurentSeriesRing + +# Puiseux series ring +from sage.rings.puiseux_series_ring import PuiseuxSeriesRing + +# Big-oh notation +from sage.rings.big_oh import O + +# Fraction field +from sage.rings.fraction_field import FractionField +Frac = FractionField + +# Localization +from sage.rings.localization import Localization + +### up to here (#36566) + # c-finite sequences from sage.rings.cfinite_sequence import CFiniteSequence, CFiniteSequences from sage.rings.fast_arith import prime_range +### Following will go to all__sagemath_categories.py in #36566 + +# continued fractions +from sage.rings.continued_fraction import (continued_fraction, + continued_fraction_list) + +### up to here (#36566) + # asymptotic ring #from sage.rings.asymptotic.all import * lazy_import('sage.rings.asymptotic.asymptotic_ring', 'AsymptoticRing') diff --git a/src/sage/rings/all__sagemath_categories.py b/src/sage/rings/all__sagemath_categories.py index c2b285e3d89..04e818c55b0 100644 --- a/src/sage/rings/all__sagemath_categories.py +++ b/src/sage/rings/all__sagemath_categories.py @@ -8,67 +8,14 @@ DedekindDomainElement, PrincipalIdealDomainElement, EuclideanDomainElement, FieldElement) -# Rational numbers -from sage.rings.rational import Rational -from sage.rings.rational_field import RationalField, QQ -Rationals = RationalField - -# Rational integers. -from sage.rings.integer_ring import IntegerRing, ZZ, crt_basis -from sage.rings.integer import Integer - -# Integers modulo n. -from sage.rings.finite_rings.integer_mod_ring import IntegerModRing, Zmod -from sage.rings.finite_rings.integer_mod import IntegerMod, Mod, mod -Integers = IntegerModRing - -# Infinities -from sage.rings.infinity import infinity, Infinity, InfinityRing, unsigned_infinity, UnsignedInfinityRing -oo = infinity - -# Quotient -from sage.rings.quotient_ring import QuotientRing - -# Localization -from sage.rings.localization import Localization - -# Fraction field -from sage.rings.fraction_field import FractionField -Frac = FractionField - -# Function field -from sage.rings.function_field.all__sagemath_categories import * - -# Double precision floating point numbers -from sage.rings.real_double import RealDoubleField, RDF, RealDoubleElement - # Ideals from sage.rings.ideal import Ideal ideal = Ideal -# Semirings -from sage.rings.semirings.all import * - -from sage.rings.finite_rings.all__sagemath_categories import * -from sage.rings.number_field.all__sagemath_categories import * -from sage.rings.padics.all__sagemath_categories import * -from sage.rings.polynomial.all__sagemath_categories import * - -# Power series rings -from sage.rings.power_series_ring import PowerSeriesRing - -# Laurent series ring in one variable -from sage.rings.laurent_series_ring import LaurentSeriesRing - -# Puiseux series ring -from sage.rings.puiseux_series_ring import PuiseuxSeriesRing - -# Big-oh notation -from sage.rings.big_oh import O - -# continued fractions -from sage.rings.continued_fraction import (continued_fraction, - continued_fraction_list) +### To be added in #36566: -# Lazy reals -from sage.rings.real_lazy import RealLazyField, RLF, ComplexLazyField, CLF +#from sage.rings.finite_rings.all__sagemath_categories import * +#from sage.rings.function_field.all__sagemath_categories import * +#from sage.rings.number_field.all__sagemath_categories import * +#from sage.rings.padics.all__sagemath_categories import * +#from sage.rings.polynomial.all__sagemath_categories import * From e96396eade4a129f09c7195dc4799c9dbb457505 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Thu, 9 Nov 2023 17:59:26 -0800 Subject: [PATCH 011/140] src/sage/rings/all.py: Reorder imports --- src/sage/rings/all.py | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/src/sage/rings/all.py b/src/sage/rings/all.py index e920a6f363d..cd5932b0a90 100644 --- a/src/sage/rings/all.py +++ b/src/sage/rings/all.py @@ -12,15 +12,7 @@ # **************************************************************************** from sage.misc.lazy_import import lazy_import -from sage.rings.all__sagemath_combinat import * -from sage.rings.all__sagemath_flint import * -from sage.rings.all__sagemath_gap import * -from sage.rings.all__sagemath_modules import * - -try: - from sage.rings.all__sagemath_symbolics import * -except ImportError: - pass +from sage.rings.all__sagemath_categories import * ### Following will go to all__sagemath_categories.py in #36566 @@ -50,6 +42,16 @@ # Finite fields from sage.rings.finite_rings.all import * +from sage.rings.all__sagemath_combinat import * +from sage.rings.all__sagemath_flint import * +from sage.rings.all__sagemath_gap import * +from sage.rings.all__sagemath_modules import * + +try: + from sage.rings.all__sagemath_symbolics import * +except ImportError: + pass + # Function field from sage.rings.function_field.all import * From 1e9464c18b9eb1c170ecdfc3a70e3d39b0d65534 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Thu, 9 Nov 2023 18:04:53 -0800 Subject: [PATCH 012/140] sage -fixdoctests --no-test --distribution sagemath_categories --update-known-test-failures --- .../known-test-failures.json | 24 +++++++------------ 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/pkgs/sagemath-categories/known-test-failures.json b/pkgs/sagemath-categories/known-test-failures.json index ddae185a7d9..3f7973d7fee 100644 --- a/pkgs/sagemath-categories/known-test-failures.json +++ b/pkgs/sagemath-categories/known-test-failures.json @@ -26,7 +26,7 @@ "ntests": 28 }, "sage.categories.affine_weyl_groups": { - "ntests": 14 + "ntests": 15 }, "sage.categories.algebra_ideals": { "failed": true, @@ -148,7 +148,7 @@ }, "sage.categories.coxeter_groups": { "failed": true, - "ntests": 362 + "ntests": 363 }, "sage.categories.cw_complexes": { "failed": true, @@ -301,7 +301,7 @@ }, "sage.categories.finite_complex_reflection_groups": { "failed": true, - "ntests": 178 + "ntests": 199 }, "sage.categories.finite_coxeter_groups": { "ntests": 6 @@ -493,10 +493,6 @@ "failed": true, "ntests": 13 }, - "sage.categories.inner_product_spaces": { - "failed": true, - "ntests": 9 - }, "sage.categories.integral_domains": { "failed": true, "ntests": 22 @@ -783,7 +779,7 @@ }, "sage.cpython.debug": { "failed": true, - "ntests": 14 + "ntests": 13 }, "sage.cpython.dict_del_by_value": { "failed": true, @@ -826,7 +822,6 @@ "ntests": 321 }, "sage.doctest.reporting": { - "failed": true, "ntests": 124 }, "sage.doctest.sources": { @@ -1091,7 +1086,7 @@ }, "sage.misc.sageinspect": { "failed": true, - "ntests": 329 + "ntests": 332 }, "sage.misc.superseded": { "failed": true, @@ -1124,6 +1119,7 @@ "ntests": 128 }, "sage.repl.configuration": { + "failed": true, "ntests": 22 }, "sage.repl.display.fancy_repr": { @@ -1149,6 +1145,7 @@ "ntests": 42 }, "sage.repl.inputhook": { + "failed": true, "ntests": 7 }, "sage.repl.interface_magic": { @@ -1157,7 +1154,7 @@ }, "sage.repl.interpreter": { "failed": true, - "ntests": 118 + "ntests": 114 }, "sage.repl.ipython_extension": { "failed": true, @@ -1188,7 +1185,7 @@ }, "sage.repl.load": { "failed": true, - "ntests": 42 + "ntests": 38 }, "sage.repl.preparse": { "failed": true, @@ -1315,9 +1312,6 @@ "sage.structure.global_options": { "ntests": 145 }, - "sage.structure.graphics_file": { - "ntests": 8 - }, "sage.structure.indexed_generators": { "failed": true, "ntests": 90 From d2d5f4c6c5fb1c1d7305688b9145b6f64e6cd7c1 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Thu, 9 Nov 2023 18:24:32 -0800 Subject: [PATCH 013/140] Defer some changes to all__sagemath_repl until #36566 --- src/sage/misc/all.py | 25 ++++++++++++++++++++++++- src/sage/misc/all__sagemath_repl.py | 29 ----------------------------- 2 files changed, 24 insertions(+), 30 deletions(-) diff --git a/src/sage/misc/all.py b/src/sage/misc/all.py index 2d1d66315ef..e22f9c60cda 100644 --- a/src/sage/misc/all.py +++ b/src/sage/misc/all.py @@ -13,12 +13,35 @@ lazy_import('sage.misc.misc', 'union', deprecation=32096) +from sage.misc.dev_tools import import_statements + +from sage.misc.edit_module import edit + from sage.misc.remote_file import get_remote_file -lazy_import('sage.misc.dist', 'install_scripts', deprecation=34259) +lazy_import('sage.misc.pager', 'pager') from sage.misc.classgraph import class_graph +lazy_import("sage.misc.cython", "cython_lambda") +lazy_import("sage.misc.cython", "cython_compile", "cython") + +# Following will go to all__sagemath_repl.py in #36566 +from sage.misc.explain_pickle import explain_pickle, unpickle_newobj, unpickle_build, unpickle_instantiate, unpickle_persistent, unpickle_extension, unpickle_appends + +lazy_import('sage.misc.inline_fortran', 'fortran') + +lazy_import('sage.misc.banner', 'banner', deprecation=34259) +lazy_import('sage.misc.dev_tools', 'runsnake', deprecation=34259) +lazy_import('sage.misc.edit_module', 'set_edit_template', deprecation=34259) +lazy_import('sage.misc.profiler', 'Profiler', deprecation=34259) +lazy_import('sage.misc.dist', 'install_scripts', deprecation=34259) +lazy_import('sage.misc.trace', 'trace', deprecation=34259) +lazy_import('sage.misc.package', ('installed_packages', 'is_package_installed', + 'standard_packages', 'optional_packages', + 'experimental_packages', 'package_versions'), + deprecation=34259) +lazy_import('sage.misc.benchmark', 'benchmark', deprecation=34259) lazy_import('sage.repl.interpreter', 'logstr', deprecation=34259) # Following will go to all__sagemath_objects.py in #36566 diff --git a/src/sage/misc/all__sagemath_repl.py b/src/sage/misc/all__sagemath_repl.py index d33895f25f0..15074e16be1 100644 --- a/src/sage/misc/all__sagemath_repl.py +++ b/src/sage/misc/all__sagemath_repl.py @@ -6,38 +6,9 @@ from sage.misc.banner import version -lazy_import('sage.misc.banner', 'banner', deprecation=34259) - lazy_import('sage.misc.sagedoc', ['browse_sage_doc', 'search_src', 'search_def', 'search_doc', 'tutorial', 'reference', 'manual', 'developer', 'constructions', 'help']) lazy_import('pydoc', 'help', 'python_help') - -from sage.misc.explain_pickle import explain_pickle, unpickle_newobj, unpickle_build, unpickle_instantiate, unpickle_persistent, unpickle_extension, unpickle_appends - -lazy_import('sage.misc.trace', 'trace', deprecation=34259) - -lazy_import('sage.misc.profiler', 'Profiler', deprecation=34259) - -from sage.misc.dev_tools import import_statements - -lazy_import('sage.misc.dev_tools', 'runsnake', deprecation=34259) - -from sage.misc.edit_module import edit - -lazy_import('sage.misc.edit_module', 'set_edit_template', deprecation=34259) - -lazy_import('sage.misc.pager', 'pager') - - -lazy_import("sage.misc.cython", "cython_lambda") -lazy_import("sage.misc.cython", "cython_compile", "cython") -lazy_import('sage.misc.inline_fortran', 'fortran') - -lazy_import('sage.misc.package', ('installed_packages', 'is_package_installed', - 'standard_packages', 'optional_packages', - 'experimental_packages', 'package_versions')) - -lazy_import('sage.misc.benchmark', 'benchmark', deprecation=34259) From 7393d1554c1703b6010d4f745e211f110a2e515a Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Fri, 10 Nov 2023 09:11:10 -0800 Subject: [PATCH 014/140] src/sage/combinat/all__sagemath_combinat.py: one more relative to absolute import --- src/sage/combinat/all__sagemath_combinat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sage/combinat/all__sagemath_combinat.py b/src/sage/combinat/all__sagemath_combinat.py index dcbcf46383e..a52ffefe013 100644 --- a/src/sage/combinat/all__sagemath_combinat.py +++ b/src/sage/combinat/all__sagemath_combinat.py @@ -46,7 +46,7 @@ lazy_import('sage.combinat.skew_partition', ['SkewPartition', 'SkewPartitions']) # Partition algebra -from .partition_algebra import SetPartitionsAk, SetPartitionsPk, SetPartitionsTk, SetPartitionsIk, SetPartitionsBk, SetPartitionsSk, SetPartitionsRk, SetPartitionsPRk +from sage.combinat.partition_algebra import SetPartitionsAk, SetPartitionsPk, SetPartitionsTk, SetPartitionsIk, SetPartitionsBk, SetPartitionsSk, SetPartitionsRk, SetPartitionsPRk # Raising operators lazy_import('sage.combinat.partition_shifting_algebras', 'ShiftingOperatorAlgebra') From c431e38cdd776617f3bc21fa630d6ec892dee3be Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Fri, 10 Nov 2023 09:13:07 -0800 Subject: [PATCH 015/140] src/sage/calculus/all.py: Move import to top --- src/sage/calculus/all.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/sage/calculus/all.py b/src/sage/calculus/all.py index b9e92f597a0..84cce47586d 100644 --- a/src/sage/calculus/all.py +++ b/src/sage/calculus/all.py @@ -2,6 +2,7 @@ from sage.misc.lazy_import import lazy_import +from sage.calculus import desolvers from sage.calculus.calculus import maxima as maxima_calculus from sage.calculus.calculus import (laplace, inverse_laplace, limit, lim) @@ -211,6 +212,3 @@ def symbolic_expression(x): else: return SR(result).function(*vars) return SR(x) - - -from sage.calculus import desolvers From 4f39075039891574d95c0a28125ad67076581b9e Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Fri, 10 Nov 2023 13:48:46 -0800 Subject: [PATCH 016/140] src/sage/calculus/all.py: Move 'symbolic_expression' to new module .expr --- src/doc/en/reference/calculus/index.rst | 1 + src/sage/calculus/all.py | 203 +---------------------- src/sage/calculus/expr.py | 204 ++++++++++++++++++++++++ 3 files changed, 206 insertions(+), 202 deletions(-) create mode 100644 src/sage/calculus/expr.py diff --git a/src/doc/en/reference/calculus/index.rst b/src/doc/en/reference/calculus/index.rst index c9a5158e522..89174c4a062 100644 --- a/src/doc/en/reference/calculus/index.rst +++ b/src/doc/en/reference/calculus/index.rst @@ -23,6 +23,7 @@ Using calculus - :doc:`More about symbolic variables and functions ` - :doc:`Main operations on symbolic expressions ` +- :doc:`sage/calculus/expr` - :doc:`Assumptions about symbols and functions ` - :doc:`sage/symbolic/relation` - :doc:`sage/symbolic/integration/integral` diff --git a/src/sage/calculus/all.py b/src/sage/calculus/all.py index 84cce47586d..b597a15684b 100644 --- a/src/sage/calculus/all.py +++ b/src/sage/calculus/all.py @@ -1,7 +1,5 @@ from sage.calculus.all__sagemath_modules import * -from sage.misc.lazy_import import lazy_import - from sage.calculus import desolvers from sage.calculus.calculus import maxima as maxima_calculus from sage.calculus.calculus import (laplace, inverse_laplace, @@ -11,204 +9,5 @@ eulers_method, eulers_method_2x2, eulers_method_2x2_plot, desolve_rk4, desolve_system_rk4, desolve_odeint, desolve_mintides, desolve_tides_mpfr) - +from sage.calculus.expr import symbolic_expression from sage.calculus.var import (var, function, clear_vars) - -lazy_import('sage.modules.free_module_element', ['vector', 'FreeModuleElement']) -lazy_import('sage.matrix.constructor', 'matrix') - - -def symbolic_expression(x): - """ - Create a symbolic expression or vector of symbolic expressions from x. - - INPUT: - - - ``x`` - an object - - OUTPUT: - - - a symbolic expression. - - EXAMPLES:: - - sage: a = symbolic_expression(3/2); a - 3/2 - sage: type(a) - - sage: R. = QQ[]; type(x) - - sage: a = symbolic_expression(2*x^2 + 3); a - 2*x^2 + 3 - sage: type(a) - - sage: from sage.structure.element import Expression - sage: isinstance(a, Expression) - True - sage: a in SR - True - sage: a.parent() - Symbolic Ring - - Note that equations exist in the symbolic ring:: - - sage: # needs sage.schemes - sage: E = EllipticCurve('15a'); E - Elliptic Curve defined by y^2 + x*y + y = x^3 + x^2 - 10*x - 10 over Rational Field - sage: symbolic_expression(E) - x*y + y^2 + y == x^3 + x^2 - 10*x - 10 - sage: symbolic_expression(E) in SR - True - - If ``x`` is a list or tuple, create a vector of symbolic expressions:: - - sage: v = symbolic_expression([x,1]); v - (x, 1) - sage: v.base_ring() - Symbolic Ring - sage: v = symbolic_expression((x,1)); v - (x, 1) - sage: v.base_ring() - Symbolic Ring - sage: v = symbolic_expression((3,1)); v - (3, 1) - sage: v.base_ring() - Symbolic Ring - sage: E = EllipticCurve('15a'); E - Elliptic Curve defined by y^2 + x*y + y = x^3 + x^2 - 10*x - 10 over Rational Field - sage: v = symbolic_expression([E,E]); v - (x*y + y^2 + y == x^3 + x^2 - 10*x - 10, x*y + y^2 + y == x^3 + x^2 - 10*x - 10) - sage: v.base_ring() - Symbolic Ring - - Likewise, if ``x`` is a vector, create a vector of symbolic expressions:: - - sage: u = vector([1, 2, 3]) - sage: v = symbolic_expression(u); v - (1, 2, 3) - sage: v.parent() - Vector space of dimension 3 over Symbolic Ring - - If ``x`` is a list or tuple of lists/tuples/vectors, create a matrix of symbolic expressions:: - - sage: M = symbolic_expression([[1, x, x^2], (x, x^2, x^3), vector([x^2, x^3, x^4])]); M - [ 1 x x^2] - [ x x^2 x^3] - [x^2 x^3 x^4] - sage: M.parent() - Full MatrixSpace of 3 by 3 dense matrices over Symbolic Ring - - If ``x`` is a matrix, create a matrix of symbolic expressions:: - - sage: A = matrix([[1, 2, 3], [4, 5, 6]]) - sage: B = symbolic_expression(A); B - [1 2 3] - [4 5 6] - sage: B.parent() - Full MatrixSpace of 2 by 3 dense matrices over Symbolic Ring - - If ``x`` is a function, for example defined by a ``lambda`` expression, create a - symbolic function:: - - sage: f = symbolic_expression(lambda z: z^2 + 1); f - z |--> z^2 + 1 - sage: f.parent() - Callable function ring with argument z - sage: f(7) - 50 - - If ``x`` is a list or tuple of functions, or if ``x`` is a function that returns a list - or tuple, create a callable symbolic vector:: - - sage: symbolic_expression([lambda mu, nu: mu^2 + nu^2, lambda mu, nu: mu^2 - nu^2]) - (mu, nu) |--> (mu^2 + nu^2, mu^2 - nu^2) - sage: f = symbolic_expression(lambda uwu: [1, uwu, uwu^2]); f - uwu |--> (1, uwu, uwu^2) - sage: f.parent() - Vector space of dimension 3 over Callable function ring with argument uwu - sage: f(5) - (1, 5, 25) - sage: f(5).parent() - Vector space of dimension 3 over Symbolic Ring - - TESTS: - - Lists, tuples, and vectors of length 0 become vectors over a symbolic ring:: - - sage: symbolic_expression([]).parent() - Vector space of dimension 0 over Symbolic Ring - sage: symbolic_expression(()).parent() - Vector space of dimension 0 over Symbolic Ring - sage: symbolic_expression(vector(QQ, 0)).parent() - Vector space of dimension 0 over Symbolic Ring - - If a matrix has dimension 0, the result is still a matrix over a symbolic ring:: - - sage: symbolic_expression(matrix(QQ, 2, 0)).parent() - Full MatrixSpace of 2 by 0 dense matrices over Symbolic Ring - sage: symbolic_expression(matrix(QQ, 0, 3)).parent() - Full MatrixSpace of 0 by 3 dense matrices over Symbolic Ring - - Also functions defined using ``def`` can be used, but we do not advertise it as a use case:: - - sage: def sos(x, y): - ....: return x^2 + y^2 - sage: symbolic_expression(sos) - (x, y) |--> x^2 + y^2 - - Functions that take a varying number of arguments or keyword-only arguments are not accepted:: - - sage: def variadic(x, *y): - ....: return x - sage: symbolic_expression(variadic) - Traceback (most recent call last): - ... - TypeError: unable to convert to a symbolic expression - - sage: def function_with_keyword_only_arg(x, *, sign=1): - ....: return sign * x - sage: symbolic_expression(function_with_keyword_only_arg) - Traceback (most recent call last): - ... - TypeError: unable to convert - to a symbolic expression - """ - from sage.structure.element import is_Matrix - from sage.symbolic.expression import Expression - from sage.symbolic.ring import SR - - if isinstance(x, Expression): - return x - elif hasattr(x, '_symbolic_'): - return x._symbolic_(SR) - elif isinstance(x, (tuple, list, FreeModuleElement)): - expressions = [symbolic_expression(item) for item in x] - if not expressions: - # Make sure it is symbolic also when length is 0 - return vector(SR, 0) - if isinstance(expressions[0], FreeModuleElement): - return matrix(expressions) - return vector(expressions) - elif is_Matrix(x): - if not x.nrows() or not x.ncols(): - # Make sure it is symbolic and of correct dimensions - # also when a matrix dimension is 0 - return matrix(SR, x.nrows(), x.ncols()) - rows = [symbolic_expression(row) for row in x.rows()] - return matrix(rows) - elif callable(x): - from inspect import signature, Parameter - try: - s = signature(x) - except ValueError: - pass - else: - if all(param.kind in (Parameter.POSITIONAL_ONLY, Parameter.POSITIONAL_OR_KEYWORD) - for param in s.parameters.values()): - vars = [SR.var(name) for name in s.parameters.keys()] - result = x(*vars) - if isinstance(result, (tuple, list)): - return vector(SR, result).function(*vars) - else: - return SR(result).function(*vars) - return SR(x) diff --git a/src/sage/calculus/expr.py b/src/sage/calculus/expr.py new file mode 100644 index 00000000000..236b46a94d9 --- /dev/null +++ b/src/sage/calculus/expr.py @@ -0,0 +1,204 @@ +r""" +Constructor for symbolic expressions +""" + +from sage.misc.lazy_import import lazy_import + +lazy_import('sage.modules.free_module_element', ['vector', 'FreeModuleElement']) +lazy_import('sage.matrix.constructor', 'matrix') + + +def symbolic_expression(x): + """ + Create a symbolic expression or vector of symbolic expressions from x. + + INPUT: + + - ``x`` - an object + + OUTPUT: + + - a symbolic expression. + + EXAMPLES:: + + sage: a = symbolic_expression(3/2); a + 3/2 + sage: type(a) + + sage: R. = QQ[]; type(x) + + sage: a = symbolic_expression(2*x^2 + 3); a + 2*x^2 + 3 + sage: type(a) + + sage: from sage.structure.element import Expression + sage: isinstance(a, Expression) + True + sage: a in SR + True + sage: a.parent() + Symbolic Ring + + Note that equations exist in the symbolic ring:: + + sage: # needs sage.schemes + sage: E = EllipticCurve('15a'); E + Elliptic Curve defined by y^2 + x*y + y = x^3 + x^2 - 10*x - 10 over Rational Field + sage: symbolic_expression(E) + x*y + y^2 + y == x^3 + x^2 - 10*x - 10 + sage: symbolic_expression(E) in SR + True + + If ``x`` is a list or tuple, create a vector of symbolic expressions:: + + sage: v = symbolic_expression([x,1]); v + (x, 1) + sage: v.base_ring() + Symbolic Ring + sage: v = symbolic_expression((x,1)); v + (x, 1) + sage: v.base_ring() + Symbolic Ring + sage: v = symbolic_expression((3,1)); v + (3, 1) + sage: v.base_ring() + Symbolic Ring + sage: E = EllipticCurve('15a'); E + Elliptic Curve defined by y^2 + x*y + y = x^3 + x^2 - 10*x - 10 over Rational Field + sage: v = symbolic_expression([E,E]); v + (x*y + y^2 + y == x^3 + x^2 - 10*x - 10, x*y + y^2 + y == x^3 + x^2 - 10*x - 10) + sage: v.base_ring() + Symbolic Ring + + Likewise, if ``x`` is a vector, create a vector of symbolic expressions:: + + sage: u = vector([1, 2, 3]) + sage: v = symbolic_expression(u); v + (1, 2, 3) + sage: v.parent() + Vector space of dimension 3 over Symbolic Ring + + If ``x`` is a list or tuple of lists/tuples/vectors, create a matrix of symbolic expressions:: + + sage: M = symbolic_expression([[1, x, x^2], (x, x^2, x^3), vector([x^2, x^3, x^4])]); M + [ 1 x x^2] + [ x x^2 x^3] + [x^2 x^3 x^4] + sage: M.parent() + Full MatrixSpace of 3 by 3 dense matrices over Symbolic Ring + + If ``x`` is a matrix, create a matrix of symbolic expressions:: + + sage: A = matrix([[1, 2, 3], [4, 5, 6]]) + sage: B = symbolic_expression(A); B + [1 2 3] + [4 5 6] + sage: B.parent() + Full MatrixSpace of 2 by 3 dense matrices over Symbolic Ring + + If ``x`` is a function, for example defined by a ``lambda`` expression, create a + symbolic function:: + + sage: f = symbolic_expression(lambda z: z^2 + 1); f + z |--> z^2 + 1 + sage: f.parent() + Callable function ring with argument z + sage: f(7) + 50 + + If ``x`` is a list or tuple of functions, or if ``x`` is a function that returns a list + or tuple, create a callable symbolic vector:: + + sage: symbolic_expression([lambda mu, nu: mu^2 + nu^2, lambda mu, nu: mu^2 - nu^2]) + (mu, nu) |--> (mu^2 + nu^2, mu^2 - nu^2) + sage: f = symbolic_expression(lambda uwu: [1, uwu, uwu^2]); f + uwu |--> (1, uwu, uwu^2) + sage: f.parent() + Vector space of dimension 3 over Callable function ring with argument uwu + sage: f(5) + (1, 5, 25) + sage: f(5).parent() + Vector space of dimension 3 over Symbolic Ring + + TESTS: + + Lists, tuples, and vectors of length 0 become vectors over a symbolic ring:: + + sage: symbolic_expression([]).parent() + Vector space of dimension 0 over Symbolic Ring + sage: symbolic_expression(()).parent() + Vector space of dimension 0 over Symbolic Ring + sage: symbolic_expression(vector(QQ, 0)).parent() + Vector space of dimension 0 over Symbolic Ring + + If a matrix has dimension 0, the result is still a matrix over a symbolic ring:: + + sage: symbolic_expression(matrix(QQ, 2, 0)).parent() + Full MatrixSpace of 2 by 0 dense matrices over Symbolic Ring + sage: symbolic_expression(matrix(QQ, 0, 3)).parent() + Full MatrixSpace of 0 by 3 dense matrices over Symbolic Ring + + Also functions defined using ``def`` can be used, but we do not advertise it as a use case:: + + sage: def sos(x, y): + ....: return x^2 + y^2 + sage: symbolic_expression(sos) + (x, y) |--> x^2 + y^2 + + Functions that take a varying number of arguments or keyword-only arguments are not accepted:: + + sage: def variadic(x, *y): + ....: return x + sage: symbolic_expression(variadic) + Traceback (most recent call last): + ... + TypeError: unable to convert to a symbolic expression + + sage: def function_with_keyword_only_arg(x, *, sign=1): + ....: return sign * x + sage: symbolic_expression(function_with_keyword_only_arg) + Traceback (most recent call last): + ... + TypeError: unable to convert + to a symbolic expression + """ + from sage.structure.element import is_Matrix + from sage.symbolic.expression import Expression + from sage.symbolic.ring import SR + + if isinstance(x, Expression): + return x + elif hasattr(x, '_symbolic_'): + return x._symbolic_(SR) + elif isinstance(x, (tuple, list, FreeModuleElement)): + expressions = [symbolic_expression(item) for item in x] + if not expressions: + # Make sure it is symbolic also when length is 0 + return vector(SR, 0) + if isinstance(expressions[0], FreeModuleElement): + return matrix(expressions) + return vector(expressions) + elif is_Matrix(x): + if not x.nrows() or not x.ncols(): + # Make sure it is symbolic and of correct dimensions + # also when a matrix dimension is 0 + return matrix(SR, x.nrows(), x.ncols()) + rows = [symbolic_expression(row) for row in x.rows()] + return matrix(rows) + elif callable(x): + from inspect import signature, Parameter + try: + s = signature(x) + except ValueError: + pass + else: + if all(param.kind in (Parameter.POSITIONAL_ONLY, Parameter.POSITIONAL_OR_KEYWORD) + for param in s.parameters.values()): + vars = [SR.var(name) for name in s.parameters.keys()] + result = x(*vars) + if isinstance(result, (tuple, list)): + return vector(SR, result).function(*vars) + else: + return SR(result).function(*vars) + return SR(x) From ef16a9356c8d3ef32ce38f78fd5151fceefce814 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Sat, 11 Nov 2023 10:21:33 -0800 Subject: [PATCH 017/140] for a in $(git --no-pager grep -l lazy_import src/sage/**/all*.py); do if ! grep -q 'del lazy_import' $a; then echo 'del lazy_import' >> $a; fi; done --- src/sage/algebras/all.py | 1 + src/sage/algebras/all__sagemath_combinat.py | 2 ++ src/sage/algebras/all__sagemath_modules.py | 1 + src/sage/algebras/fusion_rings/all.py | 1 + src/sage/algebras/hecke_algebras/all.py | 1 + src/sage/algebras/lie_algebras/all.py | 1 + src/sage/algebras/lie_conformal_algebras/all.py | 1 + src/sage/algebras/quantum_groups/all.py | 1 + src/sage/algebras/steenrod/all.py | 1 + src/sage/all.py | 1 + src/sage/all_cmdline.py | 1 + src/sage/arith/all.py | 1 + src/sage/calculus/all__sagemath_modules.py | 1 + src/sage/calculus/transforms/all.py | 1 + src/sage/categories/all.py | 1 + src/sage/categories/all__sagemath_objects.py | 1 + src/sage/coding/all.py | 1 + src/sage/combinat/all.py | 1 + src/sage/combinat/all__sagemath_categories.py | 1 + src/sage/combinat/all__sagemath_combinat.py | 1 + src/sage/combinat/all__sagemath_graphs.py | 1 + src/sage/combinat/chas/all.py | 1 + src/sage/combinat/crystals/all.py | 1 + src/sage/combinat/designs/all.py | 1 + src/sage/combinat/matrices/all__sagemath_categories.py | 1 + src/sage/combinat/rigged_configurations/all.py | 1 + src/sage/combinat/root_system/all.py | 1 + src/sage/combinat/sf/all.py | 1 + src/sage/crypto/all.py | 1 + src/sage/crypto/block_cipher/all.py | 1 + src/sage/crypto/public_key/all.py | 1 + src/sage/databases/all.py | 1 + src/sage/doctest/all.py | 1 + src/sage/dynamics/all.py | 1 + src/sage/dynamics/all__sagemath_symbolics.py | 1 + src/sage/dynamics/arithmetic_dynamics/all.py | 1 + src/sage/dynamics/cellular_automata/all.py | 1 + src/sage/dynamics/complex_dynamics/all.py | 1 + src/sage/functions/all.py | 1 + src/sage/game_theory/all.py | 1 + src/sage/games/all.py | 1 + src/sage/geometry/all__sagemath_gap.py | 1 + src/sage/geometry/all__sagemath_modules.py | 1 + src/sage/geometry/hyperbolic_space/all.py | 1 + src/sage/geometry/polyhedron/all.py | 1 + src/sage/geometry/riemannian_manifolds/all.py | 1 + src/sage/graphs/all.py | 1 + src/sage/groups/all__sagemath_groups.py | 1 + src/sage/groups/all__sagemath_modules.py | 1 + src/sage/groups/matrix_gps/all__sagemath_modules.py | 1 + src/sage/homology/all__sagemath_modules.py | 1 + src/sage/interacts/all.py | 1 + src/sage/interfaces/all.py | 1 + src/sage/knots/all.py | 1 + src/sage/lfunctions/all.py | 1 + src/sage/libs/all__sagemath_gap.py | 1 + src/sage/libs/all__sagemath_symbolics.py | 1 + src/sage/manifolds/all.py | 1 + src/sage/matrix/all.py | 1 + src/sage/matroids/all.py | 1 + src/sage/misc/all.py | 1 + src/sage/misc/all__sagemath_modules.py | 1 + src/sage/misc/all__sagemath_objects.py | 1 + src/sage/misc/all__sagemath_repl.py | 1 + src/sage/modular/all.py | 1 + src/sage/modular/arithgroup/all.py | 1 + src/sage/modular/modform/all.py | 1 + src/sage/modular/modsym/all.py | 1 + src/sage/modular/ssmod/all.py | 1 + src/sage/modules/all.py | 1 + src/sage/numerical/all.py | 1 + src/sage/numerical/all__sagemath_modules.py | 1 + src/sage/numerical/all__sagemath_polyhedra.py | 1 + src/sage/parallel/all.py | 1 + src/sage/plot/all.py | 1 + src/sage/plot/plot3d/all.py | 1 + src/sage/repl/all.py | 1 + src/sage/rings/all.py | 1 + src/sage/rings/all__sagemath_flint.py | 1 + src/sage/rings/asymptotic/all.py | 1 + src/sage/rings/function_field/all.py | 1 + src/sage/rings/invariants/all.py | 1 + src/sage/rings/number_field/all.py | 1 + src/sage/rings/polynomial/all.py | 1 + src/sage/rings/polynomial/all__sagemath_modules.py | 1 + src/sage/rings/polynomial/weil/all.py | 1 + src/sage/rings/valuation/all.py | 1 + src/sage/sandpiles/all.py | 1 + src/sage/sat/all.py | 1 + src/sage/schemes/elliptic_curves/all.py | 1 + src/sage/schemes/hyperelliptic_curves/all.py | 1 + src/sage/schemes/product_projective/all.py | 1 + src/sage/schemes/toric/all.py | 1 + src/sage/sets/all.py | 1 + src/sage/stats/all.py | 1 + src/sage/stats/hmm/all.py | 1 + src/sage/tensor/modules/all.py | 1 + src/sage/topology/all.py | 1 + src/sage/typeset/all.py | 1 + 99 files changed, 100 insertions(+) diff --git a/src/sage/algebras/all.py b/src/sage/algebras/all.py index b2b9a102b1e..c6f34034ae9 100644 --- a/src/sage/algebras/all.py +++ b/src/sage/algebras/all.py @@ -25,3 +25,4 @@ from sage.algebras.fusion_rings.all import * from sage.algebras.lie_algebras.all import * from sage.algebras.lie_conformal_algebras.all import * +del lazy_import diff --git a/src/sage/algebras/all__sagemath_combinat.py b/src/sage/algebras/all__sagemath_combinat.py index 57e5006e1d4..eb86573ec54 100644 --- a/src/sage/algebras/all__sagemath_combinat.py +++ b/src/sage/algebras/all__sagemath_combinat.py @@ -33,3 +33,5 @@ lazy_import('sage.algebras.cluster_algebra', 'ClusterAlgebra') lazy_import('sage.algebras.yangian', 'Yangian') + +del lazy_import diff --git a/src/sage/algebras/all__sagemath_modules.py b/src/sage/algebras/all__sagemath_modules.py index a88d884fd6b..3917d3c2fff 100644 --- a/src/sage/algebras/all__sagemath_modules.py +++ b/src/sage/algebras/all__sagemath_modules.py @@ -9,3 +9,4 @@ lazy_import('sage.algebras.octonion_algebra', 'OctonionAlgebra') import sage.algebras.catalog as algebras +del lazy_import diff --git a/src/sage/algebras/fusion_rings/all.py b/src/sage/algebras/fusion_rings/all.py index bf9c016510f..44484309add 100644 --- a/src/sage/algebras/fusion_rings/all.py +++ b/src/sage/algebras/fusion_rings/all.py @@ -15,3 +15,4 @@ lazy_import('sage.algebras.fusion_rings.fusion_ring', ['FusionRing']) lazy_import('sage.algebras.fusion_rings.fusion_double', ['FusionDouble']) +del lazy_import diff --git a/src/sage/algebras/hecke_algebras/all.py b/src/sage/algebras/hecke_algebras/all.py index 20f53ea58fe..fe5d6d3892f 100644 --- a/src/sage/algebras/hecke_algebras/all.py +++ b/src/sage/algebras/hecke_algebras/all.py @@ -2,3 +2,4 @@ Hecke Algebras """ #from sage.misc.lazy_import import lazy_import +del lazy_import diff --git a/src/sage/algebras/lie_algebras/all.py b/src/sage/algebras/lie_algebras/all.py index 73ea8361ff1..dd90b695923 100644 --- a/src/sage/algebras/lie_algebras/all.py +++ b/src/sage/algebras/lie_algebras/all.py @@ -21,3 +21,4 @@ lazy_import('sage.algebras.lie_algebras.lie_algebra', 'LieAlgebra') #from kac_moody import KacMoodyAlgebra lazy_import('sage.algebras.lie_algebras', 'examples', 'lie_algebras') +del lazy_import diff --git a/src/sage/algebras/lie_conformal_algebras/all.py b/src/sage/algebras/lie_conformal_algebras/all.py index 7d78e0a260c..f8cbbcf7fa4 100644 --- a/src/sage/algebras/lie_conformal_algebras/all.py +++ b/src/sage/algebras/lie_conformal_algebras/all.py @@ -12,3 +12,4 @@ from sage.misc.lazy_import import lazy_import lazy_import('sage.algebras.lie_conformal_algebras.lie_conformal_algebra','LieConformalAlgebra') lazy_import('sage.algebras.lie_conformal_algebras', 'examples', 'lie_conformal_algebras') +del lazy_import diff --git a/src/sage/algebras/quantum_groups/all.py b/src/sage/algebras/quantum_groups/all.py index 9d249f02100..33ff442e7b4 100644 --- a/src/sage/algebras/quantum_groups/all.py +++ b/src/sage/algebras/quantum_groups/all.py @@ -5,3 +5,4 @@ from sage.misc.lazy_import import lazy_import lazy_import('sage.algebras.quantum_groups.fock_space', 'FockSpace') lazy_import('sage.algebras.quantum_groups.quantum_group_gap', 'QuantumGroup') +del lazy_import diff --git a/src/sage/algebras/steenrod/all.py b/src/sage/algebras/steenrod/all.py index 387a88ec6e1..7b35a79d6d5 100644 --- a/src/sage/algebras/steenrod/all.py +++ b/src/sage/algebras/steenrod/all.py @@ -6,3 +6,4 @@ lazy_import('sage.algebras.steenrod.steenrod_algebra_bases', 'steenrod_algebra_basis', deprecation=(32647, 'removed from namespace')) +del lazy_import diff --git a/src/sage/all.py b/src/sage/all.py index 640a07cdbea..ddc3aa588aa 100644 --- a/src/sage/all.py +++ b/src/sage/all.py @@ -263,3 +263,4 @@ def sage_globals(): False """ return globals() +del lazy_import diff --git a/src/sage/all_cmdline.py b/src/sage/all_cmdline.py index 197d34ebc90..946ff48c379 100644 --- a/src/sage/all_cmdline.py +++ b/src/sage/all_cmdline.py @@ -30,3 +30,4 @@ lazy_import('sage.interfaces.maxima_abstract', 'maxima_console') sage.misc.session.init() +del lazy_import diff --git a/src/sage/arith/all.py b/src/sage/arith/all.py index 16e2344e93f..c230a2fb28d 100644 --- a/src/sage/arith/all.py +++ b/src/sage/arith/all.py @@ -33,3 +33,4 @@ sxrange = xsrange σ = sigma +del lazy_import diff --git a/src/sage/calculus/all__sagemath_modules.py b/src/sage/calculus/all__sagemath_modules.py index f2658a16cd9..cab2bf3629f 100644 --- a/src/sage/calculus/all__sagemath_modules.py +++ b/src/sage/calculus/all__sagemath_modules.py @@ -15,3 +15,4 @@ lazy_import("sage.calculus.interpolators", ["polygon_spline","complex_cubic_spline"]) from sage.calculus.transforms.all import * +del lazy_import diff --git a/src/sage/calculus/transforms/all.py b/src/sage/calculus/transforms/all.py index 4eca64a4321..c42ae401653 100644 --- a/src/sage/calculus/transforms/all.py +++ b/src/sage/calculus/transforms/all.py @@ -3,3 +3,4 @@ lazy_import("sage.calculus.transforms.fft", ["FastFourierTransform", "FFT"]) lazy_import("sage.calculus.transforms.dwt", ["WaveletTransform", "DWT"]) from sage.calculus.transforms.dft import IndexedSequence +del lazy_import diff --git a/src/sage/categories/all.py b/src/sage/categories/all.py index 9c2b8bd6518..00ddc1240d6 100644 --- a/src/sage/categories/all.py +++ b/src/sage/categories/all.py @@ -155,3 +155,4 @@ # lie conformal algebras lazy_import('sage.categories.lie_conformal_algebras', 'LieConformalAlgebras') +del lazy_import diff --git a/src/sage/categories/all__sagemath_objects.py b/src/sage/categories/all__sagemath_objects.py index 938f7ce0703..5dd65dfee63 100644 --- a/src/sage/categories/all__sagemath_objects.py +++ b/src/sage/categories/all__sagemath_objects.py @@ -29,3 +29,4 @@ from sage.categories.realizations import Realizations from sage.categories.sets_with_partial_maps import SetsWithPartialMaps +del lazy_import diff --git a/src/sage/coding/all.py b/src/sage/coding/all.py index e5ff88308b7..dff56d4c58c 100644 --- a/src/sage/coding/all.py +++ b/src/sage/coding/all.py @@ -10,3 +10,4 @@ _lazy_import('sage.coding', 'codes_catalog', 'codes') _lazy_import('sage.coding', 'channels_catalog', 'channels') +del lazy_import diff --git a/src/sage/combinat/all.py b/src/sage/combinat/all.py index 243b27aaf45..dcd327b4d1d 100644 --- a/src/sage/combinat/all.py +++ b/src/sage/combinat/all.py @@ -59,3 +59,4 @@ from sage.combinat.all__sagemath_combinat import * from sage.combinat.all__sagemath_modules import * from sage.combinat.all__sagemath_graphs import * +del lazy_import diff --git a/src/sage/combinat/all__sagemath_categories.py b/src/sage/combinat/all__sagemath_categories.py index 6fcf3d375aa..b7f96441daa 100644 --- a/src/sage/combinat/all__sagemath_categories.py +++ b/src/sage/combinat/all__sagemath_categories.py @@ -27,3 +27,4 @@ from sage.combinat.dlx import DLXMatrix, AllExactCovers, OneExactCover +del lazy_import diff --git a/src/sage/combinat/all__sagemath_combinat.py b/src/sage/combinat/all__sagemath_combinat.py index a52ffefe013..06551f002ae 100644 --- a/src/sage/combinat/all__sagemath_combinat.py +++ b/src/sage/combinat/all__sagemath_combinat.py @@ -191,3 +191,4 @@ # Bijectionist lazy_import('sage.combinat.bijectionist', 'Bijectionist') +del lazy_import diff --git a/src/sage/combinat/all__sagemath_graphs.py b/src/sage/combinat/all__sagemath_graphs.py index dc524200587..1fe628586f8 100644 --- a/src/sage/combinat/all__sagemath_graphs.py +++ b/src/sage/combinat/all__sagemath_graphs.py @@ -29,3 +29,4 @@ ['Automaton', 'Transducer', 'FiniteStateMachine']) lazy_import('sage.combinat.finite_state_machine_generators', ['automata', 'transducers']) +del lazy_import diff --git a/src/sage/combinat/chas/all.py b/src/sage/combinat/chas/all.py index 5833abbe49c..f92d84aeffb 100644 --- a/src/sage/combinat/chas/all.py +++ b/src/sage/combinat/chas/all.py @@ -18,3 +18,4 @@ lazy_import('sage.combinat.chas.fsym', ['FreeSymmetricFunctions']) lazy_import('sage.combinat.chas.wqsym', ['WordQuasiSymmetricFunctions']) +del lazy_import diff --git a/src/sage/combinat/crystals/all.py b/src/sage/combinat/crystals/all.py index 397639405c9..bfe319bd10c 100644 --- a/src/sage/combinat/crystals/all.py +++ b/src/sage/combinat/crystals/all.py @@ -28,3 +28,4 @@ from sage.misc.lazy_import import lazy_import lazy_import('sage.combinat.crystals', 'catalog', 'crystals') +del lazy_import diff --git a/src/sage/combinat/designs/all.py b/src/sage/combinat/designs/all.py index 22e600cd40c..fea919db24e 100644 --- a/src/sage/combinat/designs/all.py +++ b/src/sage/combinat/designs/all.py @@ -52,3 +52,4 @@ ['CoveringDesign', 'schonheim', 'trivial_covering_design']) from sage.combinat.designs import design_catalog as designs +del lazy_import diff --git a/src/sage/combinat/matrices/all__sagemath_categories.py b/src/sage/combinat/matrices/all__sagemath_categories.py index a27a2bb4ecb..b168b0b1127 100644 --- a/src/sage/combinat/matrices/all__sagemath_categories.py +++ b/src/sage/combinat/matrices/all__sagemath_categories.py @@ -1,3 +1,4 @@ from sage.misc.lazy_import import lazy_import lazy_import('sage.combinat.matrices.dlxcpp', 'DLXCPP') +del lazy_import diff --git a/src/sage/combinat/rigged_configurations/all.py b/src/sage/combinat/rigged_configurations/all.py index 36a10774a89..f56543510b1 100644 --- a/src/sage/combinat/rigged_configurations/all.py +++ b/src/sage/combinat/rigged_configurations/all.py @@ -41,3 +41,4 @@ lazy_import('sage.combinat.rigged_configurations.rigged_configurations', 'RiggedConfigurations') +del lazy_import diff --git a/src/sage/combinat/root_system/all.py b/src/sage/combinat/root_system/all.py index 9c91bc4b6fd..5a6aef8d2e8 100644 --- a/src/sage/combinat/root_system/all.py +++ b/src/sage/combinat/root_system/all.py @@ -140,3 +140,4 @@ lazy_import('sage.combinat.root_system.non_symmetric_macdonald_polynomials', 'NonSymmetricMacdonaldPolynomials') lazy_import('sage.combinat.root_system.integrable_representations', 'IntegrableRepresentation') +del lazy_import diff --git a/src/sage/combinat/sf/all.py b/src/sage/combinat/sf/all.py index e4601264e83..b693ae74ee8 100644 --- a/src/sage/combinat/sf/all.py +++ b/src/sage/combinat/sf/all.py @@ -45,3 +45,4 @@ lazy_import('sage.combinat.sf.ns_macdonald', ['NonattackingFillings', 'AugmentedLatticeDiagramFilling', 'LatticeDiagram']) +del lazy_import diff --git a/src/sage/crypto/all.py b/src/sage/crypto/all.py index 1ea6c8f20a7..3645d45acea 100644 --- a/src/sage/crypto/all.py +++ b/src/sage/crypto/all.py @@ -20,3 +20,4 @@ 'lfsr_autocorrelation', 'lfsr_connection_polynomial', ]) +del lazy_import diff --git a/src/sage/crypto/block_cipher/all.py b/src/sage/crypto/block_cipher/all.py index 0a5ec657f5d..66ce4ca0a59 100644 --- a/src/sage/crypto/block_cipher/all.py +++ b/src/sage/crypto/block_cipher/all.py @@ -3,3 +3,4 @@ lazy_import('sage.crypto.block_cipher.miniaes', 'MiniAES') lazy_import('sage.crypto.block_cipher.sdes', 'SimplifiedDES') lazy_import('sage.crypto.block_cipher.present', 'PRESENT') +del lazy_import diff --git a/src/sage/crypto/public_key/all.py b/src/sage/crypto/public_key/all.py index 56416dd76b5..984a36108ca 100644 --- a/src/sage/crypto/public_key/all.py +++ b/src/sage/crypto/public_key/all.py @@ -1,3 +1,4 @@ from sage.misc.lazy_import import lazy_import lazy_import('sage.crypto.public_key.blum_goldwasser', 'BlumGoldwasser') +del lazy_import diff --git a/src/sage/databases/all.py b/src/sage/databases/all.py index 5619acadd5b..871abbd5700 100644 --- a/src/sage/databases/all.py +++ b/src/sage/databases/all.py @@ -80,3 +80,4 @@ lazy_import('sage.databases.cunningham_tables', 'cunningham_prime_factors') lazy_import('sage.databases.findstat', ['findstat', 'findmap']) +del lazy_import diff --git a/src/sage/doctest/all.py b/src/sage/doctest/all.py index bc363e7830c..136452e0c28 100644 --- a/src/sage/doctest/all.py +++ b/src/sage/doctest/all.py @@ -1,2 +1,3 @@ from sage.misc.lazy_import import lazy_import lazy_import('sage.doctest.control', 'run_doctests') +del lazy_import diff --git a/src/sage/dynamics/all.py b/src/sage/dynamics/all.py index 4d2af9a9dc2..2502baaec8a 100644 --- a/src/sage/dynamics/all.py +++ b/src/sage/dynamics/all.py @@ -36,3 +36,4 @@ ['DiscreteDynamicalSystem']) lazy_import('sage.dynamics', 'finite_dynamical_system_catalog', 'finite_dynamical_systems') +del lazy_import diff --git a/src/sage/dynamics/all__sagemath_symbolics.py b/src/sage/dynamics/all__sagemath_symbolics.py index cd94b937f2f..1bffe1dffa6 100644 --- a/src/sage/dynamics/all__sagemath_symbolics.py +++ b/src/sage/dynamics/all__sagemath_symbolics.py @@ -2,3 +2,4 @@ lazy_import('sage.dynamics.complex_dynamics.mandel_julia', ["mandelbrot_plot", "external_ray", "kneading_sequence", "julia_plot"]) +del lazy_import diff --git a/src/sage/dynamics/arithmetic_dynamics/all.py b/src/sage/dynamics/arithmetic_dynamics/all.py index 8b32ff4cded..66773e29d76 100644 --- a/src/sage/dynamics/arithmetic_dynamics/all.py +++ b/src/sage/dynamics/arithmetic_dynamics/all.py @@ -10,3 +10,4 @@ from sage.dynamics.arithmetic_dynamics.dynamical_semigroup import DynamicalSemigroup_projective lazy_import('sage.dynamics.arithmetic_dynamics.wehlerK3', 'WehlerK3Surface') lazy_import('sage.dynamics.arithmetic_dynamics.wehlerK3', 'random_WehlerK3Surface') +del lazy_import diff --git a/src/sage/dynamics/cellular_automata/all.py b/src/sage/dynamics/cellular_automata/all.py index 9f13ad1c13a..ff4151c0588 100644 --- a/src/sage/dynamics/cellular_automata/all.py +++ b/src/sage/dynamics/cellular_automata/all.py @@ -3,3 +3,4 @@ from sage.misc.lazy_import import lazy_import lazy_import("sage.dynamics.cellular_automata.solitons", ["SolitonCellularAutomata", "PeriodicSolitonCellularAutomata"]) +del lazy_import diff --git a/src/sage/dynamics/complex_dynamics/all.py b/src/sage/dynamics/complex_dynamics/all.py index a4f82d614e5..0d8c4797497 100644 --- a/src/sage/dynamics/complex_dynamics/all.py +++ b/src/sage/dynamics/complex_dynamics/all.py @@ -1,3 +1,4 @@ from sage.misc.lazy_import import lazy_import lazy_import("sage.dynamics.complex_dynamics.mandel_julia", ["mandelbrot_plot", "external_ray", "kneading_sequence", "julia_plot"]) +del lazy_import diff --git a/src/sage/functions/all.py b/src/sage/functions/all.py index afcf9e57ee1..78faebe29e2 100644 --- a/src/sage/functions/all.py +++ b/src/sage/functions/all.py @@ -91,3 +91,4 @@ Γ = gamma ψ = psi ζ = zeta +del lazy_import diff --git a/src/sage/game_theory/all.py b/src/sage/game_theory/all.py index 4658885c3ab..30fa5c52f2e 100644 --- a/src/sage/game_theory/all.py +++ b/src/sage/game_theory/all.py @@ -4,3 +4,4 @@ lazy_import('sage.game_theory.cooperative_game', 'CooperativeGame') lazy_import('sage.game_theory.normal_form_game', 'NormalFormGame') lazy_import('sage.game_theory.matching_game', 'MatchingGame') +del lazy_import diff --git a/src/sage/games/all.py b/src/sage/games/all.py index 6cf915addde..976d6cce6aa 100644 --- a/src/sage/games/all.py +++ b/src/sage/games/all.py @@ -2,3 +2,4 @@ lazy_import('sage.games.sudoku', ['Sudoku', 'sudoku']) lazy_import('sage.games.hexad', ['Minimog']) +del lazy_import diff --git a/src/sage/geometry/all__sagemath_gap.py b/src/sage/geometry/all__sagemath_gap.py index 411a7c76d9a..34dc2709543 100644 --- a/src/sage/geometry/all__sagemath_gap.py +++ b/src/sage/geometry/all__sagemath_gap.py @@ -2,3 +2,4 @@ from sage.misc.lazy_import import lazy_import lazy_import('sage.geometry.ribbon_graph', 'RibbonGraph') +del lazy_import diff --git a/src/sage/geometry/all__sagemath_modules.py b/src/sage/geometry/all__sagemath_modules.py index 9490f68a162..4ea1510f4ab 100644 --- a/src/sage/geometry/all__sagemath_modules.py +++ b/src/sage/geometry/all__sagemath_modules.py @@ -1,3 +1,4 @@ from sage.misc.lazy_import import lazy_import lazy_import('sage.geometry.toric_lattice', 'ToricLattice') +del lazy_import diff --git a/src/sage/geometry/hyperbolic_space/all.py b/src/sage/geometry/hyperbolic_space/all.py index d1b2a930e04..3a2f359a125 100644 --- a/src/sage/geometry/hyperbolic_space/all.py +++ b/src/sage/geometry/hyperbolic_space/all.py @@ -1,3 +1,4 @@ from sage.misc.lazy_import import lazy_import lazy_import('sage.geometry.hyperbolic_space.hyperbolic_interface', 'HyperbolicPlane') +del lazy_import diff --git a/src/sage/geometry/polyhedron/all.py b/src/sage/geometry/polyhedron/all.py index 3668a0b8b50..dac1e2e5d0e 100644 --- a/src/sage/geometry/polyhedron/all.py +++ b/src/sage/geometry/polyhedron/all.py @@ -3,3 +3,4 @@ lazy_import('sage.geometry.polyhedron.constructor', 'Polyhedron') lazy_import('sage.geometry.polyhedron.library', 'polytopes') lazy_import('sage.geometry.polyhedron.combinatorial_polyhedron.base' , 'CombinatorialPolyhedron') +del lazy_import diff --git a/src/sage/geometry/riemannian_manifolds/all.py b/src/sage/geometry/riemannian_manifolds/all.py index b375f473546..705438b39c0 100644 --- a/src/sage/geometry/riemannian_manifolds/all.py +++ b/src/sage/geometry/riemannian_manifolds/all.py @@ -3,3 +3,4 @@ 'ParametrizedSurface3D') lazy_import('sage.geometry.riemannian_manifolds.surface3d_generators', 'surfaces') +del lazy_import diff --git a/src/sage/graphs/all.py b/src/sage/graphs/all.py index bae84d0dc5a..fd4c5457afd 100644 --- a/src/sage/graphs/all.py +++ b/src/sage/graphs/all.py @@ -37,3 +37,4 @@ ... NameError: name 'clique_number' is not defined """ +del lazy_import diff --git a/src/sage/groups/all__sagemath_groups.py b/src/sage/groups/all__sagemath_groups.py index 99d024f0f35..5f149199669 100644 --- a/src/sage/groups/all__sagemath_groups.py +++ b/src/sage/groups/all__sagemath_groups.py @@ -27,3 +27,4 @@ lazy_import('sage.groups.group_exp', ['GroupExp', 'GroupExp_Class', 'GroupExpElement']) lazy_import('sage.groups.group_semidirect_product', ['GroupSemidirectProduct', 'GroupSemidirectProductElement']) +del lazy_import diff --git a/src/sage/groups/all__sagemath_modules.py b/src/sage/groups/all__sagemath_modules.py index bdd85f2a0c0..6a3eb638a9b 100644 --- a/src/sage/groups/all__sagemath_modules.py +++ b/src/sage/groups/all__sagemath_modules.py @@ -8,3 +8,4 @@ lazy_import('sage.groups.affine_gps.affine_group', 'AffineGroup') lazy_import('sage.groups.affine_gps.euclidean_group', 'EuclideanGroup') +del lazy_import diff --git a/src/sage/groups/matrix_gps/all__sagemath_modules.py b/src/sage/groups/matrix_gps/all__sagemath_modules.py index 99cdea05871..e8ff9cf4fa6 100644 --- a/src/sage/groups/matrix_gps/all__sagemath_modules.py +++ b/src/sage/groups/matrix_gps/all__sagemath_modules.py @@ -9,3 +9,4 @@ lazy_import('sage.groups.matrix_gps.orthogonal', 'SO') lazy_import('sage.groups.matrix_gps.finitely_generated', 'MatrixGroup') lazy_import('sage.groups.matrix_gps.finitely_generated', 'QuaternionMatrixGroupGF3') +del lazy_import diff --git a/src/sage/homology/all__sagemath_modules.py b/src/sage/homology/all__sagemath_modules.py index 21a95c6c4af..5ebb7604432 100644 --- a/src/sage/homology/all__sagemath_modules.py +++ b/src/sage/homology/all__sagemath_modules.py @@ -4,3 +4,4 @@ from sage.misc.lazy_import import lazy_import lazy_import('sage.homology.koszul_complex', 'KoszulComplex') +del lazy_import diff --git a/src/sage/interacts/all.py b/src/sage/interacts/all.py index 49517e8d76a..87d00072798 100644 --- a/src/sage/interacts/all.py +++ b/src/sage/interacts/all.py @@ -23,3 +23,4 @@ from sage.interacts import fractals from sage.interacts import algebra lazy_import('sage.interacts.library', 'demo') +del lazy_import diff --git a/src/sage/interfaces/all.py b/src/sage/interfaces/all.py index fa57d11c941..fcd8b15731b 100644 --- a/src/sage/interfaces/all.py +++ b/src/sage/interfaces/all.py @@ -48,3 +48,4 @@ 'kash', 'magma', 'macaulay2', 'maple', 'maxima', 'mathematica', 'mwrank', 'octave', 'r', 'singular', 'sage0', 'sage'] +del lazy_import diff --git a/src/sage/knots/all.py b/src/sage/knots/all.py index 02223efef57..db3eb42aa2f 100644 --- a/src/sage/knots/all.py +++ b/src/sage/knots/all.py @@ -5,3 +5,4 @@ lazy_import('sage.knots.link', 'Link') if DatabaseKnotInfo().is_present(): lazy_import('sage.knots.knotinfo', ['KnotInfo', 'KnotInfoSeries']) +del lazy_import diff --git a/src/sage/lfunctions/all.py b/src/sage/lfunctions/all.py index 9281f97ebbe..9f0cc052fed 100644 --- a/src/sage/lfunctions/all.py +++ b/src/sage/lfunctions/all.py @@ -4,3 +4,4 @@ _lazy_import_("sage.lfunctions.sympow", "sympow") _lazy_import_("sage.lfunctions.zero_sums", "LFunctionZeroSum") _lazy_import_("sage.lfunctions.lcalc", "lcalc") +del lazy_import diff --git a/src/sage/libs/all__sagemath_gap.py b/src/sage/libs/all__sagemath_gap.py index 05f57227606..e4b82d9deb5 100644 --- a/src/sage/libs/all__sagemath_gap.py +++ b/src/sage/libs/all__sagemath_gap.py @@ -1,2 +1,3 @@ from sage.misc.lazy_import import lazy_import lazy_import('sage.libs.gap.libgap', 'libgap') +del lazy_import diff --git a/src/sage/libs/all__sagemath_symbolics.py b/src/sage/libs/all__sagemath_symbolics.py index 18cbb5d7ca1..9c096062eb5 100644 --- a/src/sage/libs/all__sagemath_symbolics.py +++ b/src/sage/libs/all__sagemath_symbolics.py @@ -1,3 +1,4 @@ from sage.misc.lazy_import import lazy_import lazy_import('sage.libs.giac.giac', 'libgiac') +del lazy_import diff --git a/src/sage/manifolds/all.py b/src/sage/manifolds/all.py index 68a489d08d0..33ee90bc9d9 100644 --- a/src/sage/manifolds/all.py +++ b/src/sage/manifolds/all.py @@ -4,3 +4,4 @@ deprecation=31881) lazy_import('sage.manifolds.differentiable.examples.euclidean', 'EuclideanSpace') lazy_import('sage.manifolds', 'catalog', 'manifolds') +del lazy_import diff --git a/src/sage/matrix/all.py b/src/sage/matrix/all.py index 47d2737bb53..698b5f3c7c2 100644 --- a/src/sage/matrix/all.py +++ b/src/sage/matrix/all.py @@ -5,3 +5,4 @@ block_diagonal_matrix, jordan_block, zero_matrix, ones_matrix, elementary_matrix, companion_matrix) Mat = MatrixSpace +del lazy_import diff --git a/src/sage/matroids/all.py b/src/sage/matroids/all.py index e647629c988..6907ccfba8d 100644 --- a/src/sage/matroids/all.py +++ b/src/sage/matroids/all.py @@ -10,3 +10,4 @@ # import matroids_catalog as matroids lazy_import('sage.matroids.constructor', 'Matroid') lazy_import('sage.matroids', 'matroids_catalog', 'matroids') +del lazy_import diff --git a/src/sage/misc/all.py b/src/sage/misc/all.py index e22f9c60cda..76392a9ebc6 100644 --- a/src/sage/misc/all.py +++ b/src/sage/misc/all.py @@ -50,3 +50,4 @@ from sage.misc.sage_timeit_class import timeit from sage.misc.session import load_session, save_session, show_identifiers from sage.misc.reset import reset, restore +del lazy_import diff --git a/src/sage/misc/all__sagemath_modules.py b/src/sage/misc/all__sagemath_modules.py index e854b10a0be..3f65decdeff 100644 --- a/src/sage/misc/all__sagemath_modules.py +++ b/src/sage/misc/all__sagemath_modules.py @@ -19,3 +19,4 @@ from sage.misc.mathml import mathml from sage.misc.func_persist import func_persist +del lazy_import diff --git a/src/sage/misc/all__sagemath_objects.py b/src/sage/misc/all__sagemath_objects.py index 30a76f38fab..7f5c99d193f 100644 --- a/src/sage/misc/all__sagemath_objects.py +++ b/src/sage/misc/all__sagemath_objects.py @@ -34,3 +34,4 @@ from sage.misc.abstract_method import abstract_method from sage.misc.timing import walltime, cputime +del lazy_import diff --git a/src/sage/misc/all__sagemath_repl.py b/src/sage/misc/all__sagemath_repl.py index 15074e16be1..6cb1f34d1ef 100644 --- a/src/sage/misc/all__sagemath_repl.py +++ b/src/sage/misc/all__sagemath_repl.py @@ -12,3 +12,4 @@ 'constructions', 'help']) lazy_import('pydoc', 'help', 'python_help') +del lazy_import diff --git a/src/sage/modular/all.py b/src/sage/modular/all.py index 1bfa60068bf..75aa498109e 100644 --- a/src/sage/modular/all.py +++ b/src/sage/modular/all.py @@ -43,3 +43,4 @@ from sage.modular.pollack_stevens.all import * from sage.modular.quasimodform.all import * +del lazy_import diff --git a/src/sage/modular/arithgroup/all.py b/src/sage/modular/arithgroup/all.py index 7e9f6df38e4..3e189a658c9 100644 --- a/src/sage/modular/arithgroup/all.py +++ b/src/sage/modular/arithgroup/all.py @@ -16,3 +16,4 @@ degeneracy_coset_representatives_gamma1) from sage.modular.arithgroup.farey_symbol import Farey as FareySymbol +del lazy_import diff --git a/src/sage/modular/modform/all.py b/src/sage/modular/modform/all.py index 92d91fc34c5..5a108fce80d 100644 --- a/src/sage/modular/modform/all.py +++ b/src/sage/modular/modform/all.py @@ -26,3 +26,4 @@ from sage.modular.modform.element import delta_lseries from sage.modular.modform.ring import ModularFormsRing +del lazy_import diff --git a/src/sage/modular/modsym/all.py b/src/sage/modular/modsym/all.py index da5fd374c8b..f398a735a1e 100644 --- a/src/sage/modular/modsym/all.py +++ b/src/sage/modular/modsym/all.py @@ -13,3 +13,4 @@ from sage.modular.modsym.ghlist import GHlist from sage.modular.modsym.g1list import G1list +del lazy_import diff --git a/src/sage/modular/ssmod/all.py b/src/sage/modular/ssmod/all.py index 1257c107a99..62e371a3c25 100644 --- a/src/sage/modular/ssmod/all.py +++ b/src/sage/modular/ssmod/all.py @@ -4,3 +4,4 @@ 'supersingular_j', 'SupersingularModule', 'supersingular_D']) +del lazy_import diff --git a/src/sage/modules/all.py b/src/sage/modules/all.py index 660f1ef3807..2511d53d1e6 100644 --- a/src/sage/modules/all.py +++ b/src/sage/modules/all.py @@ -38,3 +38,4 @@ lazy_import("sage.modules.multi_filtered_vector_space", "MultiFilteredVectorSpace") lazy_import("sage.modules.free_quadratic_module_integer_symmetric", "IntegralLattice") lazy_import("sage.modules.torsion_quadratic_module", "TorsionQuadraticForm") +del lazy_import diff --git a/src/sage/numerical/all.py b/src/sage/numerical/all.py index 6e73790f9dc..751ec929b7c 100644 --- a/src/sage/numerical/all.py +++ b/src/sage/numerical/all.py @@ -9,3 +9,4 @@ lazy_import("sage.numerical.interactive_simplex_method", ["InteractiveLPProblem", "InteractiveLPProblemStandardForm"]) +del lazy_import diff --git a/src/sage/numerical/all__sagemath_modules.py b/src/sage/numerical/all__sagemath_modules.py index b1f25aedd4f..7a2c2778373 100644 --- a/src/sage/numerical/all__sagemath_modules.py +++ b/src/sage/numerical/all__sagemath_modules.py @@ -2,3 +2,4 @@ lazy_import("sage.numerical.optimize", ["find_fit", "find_local_maximum", "find_local_minimum", "find_root", "minimize", "minimize_constrained"]) +del lazy_import diff --git a/src/sage/numerical/all__sagemath_polyhedra.py b/src/sage/numerical/all__sagemath_polyhedra.py index 6de2a9af502..df27ac0d1ec 100644 --- a/src/sage/numerical/all__sagemath_polyhedra.py +++ b/src/sage/numerical/all__sagemath_polyhedra.py @@ -7,3 +7,4 @@ lazy_import("sage.numerical.interactive_simplex_method", ["InteractiveLPProblem", "InteractiveLPProblemStandardForm"]) +del lazy_import diff --git a/src/sage/parallel/all.py b/src/sage/parallel/all.py index 17d397c39f7..dbb6ba2c851 100644 --- a/src/sage/parallel/all.py +++ b/src/sage/parallel/all.py @@ -2,3 +2,4 @@ from sage.parallel.decorate import parallel, fork from sage.misc.lazy_import import lazy_import lazy_import('sage.parallel.parallelism', 'Parallelism') +del lazy_import diff --git a/src/sage/plot/all.py b/src/sage/plot/all.py index ec9a9027e87..6d10496e11c 100644 --- a/src/sage/plot/all.py +++ b/src/sage/plot/all.py @@ -37,3 +37,4 @@ lazy_import("sage.plot.hyperbolic_arc", "hyperbolic_arc") lazy_import("sage.plot.hyperbolic_polygon", ["hyperbolic_triangle", "hyperbolic_polygon"]) lazy_import("sage.plot.hyperbolic_regular_polygon", "hyperbolic_regular_polygon") +del lazy_import diff --git a/src/sage/plot/plot3d/all.py b/src/sage/plot/plot3d/all.py index 914261d9ead..4838f73c016 100644 --- a/src/sage/plot/plot3d/all.py +++ b/src/sage/plot/plot3d/all.py @@ -19,3 +19,4 @@ #from shapes import Box, ColorCube, Cone, Cylinder, LineSegment, Arrow, Sphere, Torus, Text as Text3D #from parametric_surface import ParametricSurface, MoebiusStrip #from plot3d import plot3d, axes as axes3d +del lazy_import diff --git a/src/sage/repl/all.py b/src/sage/repl/all.py index 96fd6de5f6d..0b0ef116059 100644 --- a/src/sage/repl/all.py +++ b/src/sage/repl/all.py @@ -11,3 +11,4 @@ from sage.repl.rich_output.display_manager import get_display_manager from sage.repl.rich_output.pretty_print import pretty_print, show +del lazy_import diff --git a/src/sage/rings/all.py b/src/sage/rings/all.py index cd5932b0a90..82293bfd1c4 100644 --- a/src/sage/rings/all.py +++ b/src/sage/rings/all.py @@ -114,3 +114,4 @@ # Register classes in numbers abc from sage.rings import numbers_abc +del lazy_import diff --git a/src/sage/rings/all__sagemath_flint.py b/src/sage/rings/all__sagemath_flint.py index 47e6dfc5c45..95373001294 100644 --- a/src/sage/rings/all__sagemath_flint.py +++ b/src/sage/rings/all__sagemath_flint.py @@ -32,3 +32,4 @@ lazy_import("sage.rings.imaginary_unit", "I") from sage.rings.cif import CIF +del lazy_import diff --git a/src/sage/rings/asymptotic/all.py b/src/sage/rings/asymptotic/all.py index 9353f267624..ba428ed2240 100644 --- a/src/sage/rings/asymptotic/all.py +++ b/src/sage/rings/asymptotic/all.py @@ -1,3 +1,4 @@ from sage.misc.lazy_import import lazy_import lazy_import('sage.rings.asymptotic.asymptotic_ring', 'AsymptoticRing') lazy_import('sage.rings.asymptotic.asymptotic_expansion_generators', 'asymptotic_expansions') +del lazy_import diff --git a/src/sage/rings/function_field/all.py b/src/sage/rings/function_field/all.py index 2cd27c3894d..e74571b211d 100644 --- a/src/sage/rings/function_field/all.py +++ b/src/sage/rings/function_field/all.py @@ -8,3 +8,4 @@ from sage.misc.lazy_import import lazy_import lazy_import("sage.rings.function_field.drinfeld_modules.drinfeld_module", "DrinfeldModule") +del lazy_import diff --git a/src/sage/rings/invariants/all.py b/src/sage/rings/invariants/all.py index eb0cce3175f..d852ae19f3b 100644 --- a/src/sage/rings/invariants/all.py +++ b/src/sage/rings/invariants/all.py @@ -1,2 +1,3 @@ from sage.misc.lazy_import import lazy_import lazy_import('sage.rings.invariants.invariant_theory', 'invariant_theory') +del lazy_import diff --git a/src/sage/rings/number_field/all.py b/src/sage/rings/number_field/all.py index ada4ee855c5..3da44c157f9 100644 --- a/src/sage/rings/number_field/all.py +++ b/src/sage/rings/number_field/all.py @@ -13,3 +13,4 @@ _lazy_import('sage.rings.number_field.totallyreal_rel', 'enumerate_totallyreal_fields_rel') from sage.rings.number_field.unit_group import UnitGroup +del lazy_import diff --git a/src/sage/rings/polynomial/all.py b/src/sage/rings/polynomial/all.py index 73e2e09aed7..78e29ac0bb9 100644 --- a/src/sage/rings/polynomial/all.py +++ b/src/sage/rings/polynomial/all.py @@ -33,3 +33,4 @@ # Integer-valued Univariate Polynomial Ring lazy_import('sage.rings.polynomial.integer_valued_polynomials', 'IntegerValuedPolynomialRing') +del lazy_import diff --git a/src/sage/rings/polynomial/all__sagemath_modules.py b/src/sage/rings/polynomial/all__sagemath_modules.py index 8634f2004c5..647d682eb84 100644 --- a/src/sage/rings/polynomial/all__sagemath_modules.py +++ b/src/sage/rings/polynomial/all__sagemath_modules.py @@ -4,3 +4,4 @@ # Ore Polynomial Rings lazy_import('sage.rings.polynomial.ore_polynomial_ring', 'OrePolynomialRing') SkewPolynomialRing = OrePolynomialRing +del lazy_import diff --git a/src/sage/rings/polynomial/weil/all.py b/src/sage/rings/polynomial/weil/all.py index 6b00c9bee88..bb0a807c3da 100644 --- a/src/sage/rings/polynomial/weil/all.py +++ b/src/sage/rings/polynomial/weil/all.py @@ -1,2 +1,3 @@ from sage.misc.lazy_import import lazy_import lazy_import('sage.rings.polynomial.weil.weil_polynomials', 'WeilPolynomials') +del lazy_import diff --git a/src/sage/rings/valuation/all.py b/src/sage/rings/valuation/all.py index 3f90ef9daa0..ebebe8f7a1f 100644 --- a/src/sage/rings/valuation/all.py +++ b/src/sage/rings/valuation/all.py @@ -3,3 +3,4 @@ lazy_import('sage.rings.valuation.gauss_valuation', 'GaussValuation') lazy_import('sage.rings.valuation', 'valuations_catalog', 'valuations') lazy_import('sage.rings.valuation.value_group', 'DiscreteValueGroup') +del lazy_import diff --git a/src/sage/sandpiles/all.py b/src/sage/sandpiles/all.py index 7ddccbf3869..8d26966aa38 100644 --- a/src/sage/sandpiles/all.py +++ b/src/sage/sandpiles/all.py @@ -9,3 +9,4 @@ lazy_import('sage.sandpiles.sandpile', 'triangle_sandpile') lazy_import('sage.sandpiles.examples', 'sandpiles') +del lazy_import diff --git a/src/sage/sat/all.py b/src/sage/sat/all.py index d4beeb2a9a1..ad1a0ec2c14 100644 --- a/src/sage/sat/all.py +++ b/src/sage/sat/all.py @@ -1,2 +1,3 @@ from sage.misc.lazy_import import lazy_import lazy_import('sage.sat.solvers.satsolver', 'SAT') +del lazy_import diff --git a/src/sage/schemes/elliptic_curves/all.py b/src/sage/schemes/elliptic_curves/all.py index 144f6a88df9..0b79dee7dc8 100644 --- a/src/sage/schemes/elliptic_curves/all.py +++ b/src/sage/schemes/elliptic_curves/all.py @@ -41,3 +41,4 @@ from sage.schemes.elliptic_curves.ell_curve_isogeny import EllipticCurveIsogeny, isogeny_codomain_from_kernel from sage.schemes.elliptic_curves.heegner import heegner_points, heegner_point +del lazy_import diff --git a/src/sage/schemes/hyperelliptic_curves/all.py b/src/sage/schemes/hyperelliptic_curves/all.py index 298e40671fd..e314dceb1e0 100644 --- a/src/sage/schemes/hyperelliptic_curves/all.py +++ b/src/sage/schemes/hyperelliptic_curves/all.py @@ -43,3 +43,4 @@ deprecation=28064) from sage.schemes.hyperelliptic_curves.mestre import (Mestre_conic, HyperellipticCurve_from_invariants) from sage.schemes.hyperelliptic_curves import monsky_washnitzer +del lazy_import diff --git a/src/sage/schemes/product_projective/all.py b/src/sage/schemes/product_projective/all.py index c9ee0d6b51f..e529331007b 100644 --- a/src/sage/schemes/product_projective/all.py +++ b/src/sage/schemes/product_projective/all.py @@ -2,3 +2,4 @@ lazy_import('sage.schemes.product_projective.space', 'ProductProjectiveSpaces') lazy_import('sage.schemes.product_projective.space', 'is_ProductProjectiveSpaces') +del lazy_import diff --git a/src/sage/schemes/toric/all.py b/src/sage/schemes/toric/all.py index 71ad52ef5c6..17965d2899c 100644 --- a/src/sage/schemes/toric/all.py +++ b/src/sage/schemes/toric/all.py @@ -6,3 +6,4 @@ lazy_import('sage.schemes.toric.library', 'toric_varieties') lazy_import('sage.schemes.toric.fano_variety', 'CPRFanoToricVariety') lazy_import('sage.schemes.toric.ideal', 'ToricIdeal') +del lazy_import diff --git a/src/sage/sets/all.py b/src/sage/sets/all.py index 4ad89651388..328fcfa96ac 100644 --- a/src/sage/sets/all.py +++ b/src/sage/sets/all.py @@ -13,3 +13,4 @@ from sage.sets.disjoint_set import DisjointSet from sage.sets.condition_set import ConditionSet from sage.sets.finite_set_maps import FiniteSetMaps +del lazy_import diff --git a/src/sage/stats/all.py b/src/sage/stats/all.py index 63c3cb9c668..450991bd576 100644 --- a/src/sage/stats/all.py +++ b/src/sage/stats/all.py @@ -10,3 +10,4 @@ lazy_import("sage.stats.time_series", ["TimeSeries", "autoregressive_fit"]) lazy_import("sage.stats.intlist", ["IntList"]) +del lazy_import diff --git a/src/sage/stats/hmm/all.py b/src/sage/stats/hmm/all.py index 2e1bcacd23d..d331f45b41c 100644 --- a/src/sage/stats/hmm/all.py +++ b/src/sage/stats/hmm/all.py @@ -10,3 +10,4 @@ lazy_import("sage.stats.hmm.hmm", ["DiscreteHiddenMarkovModel"]) lazy_import("sage.stats.hmm.chmm", ["GaussianHiddenMarkovModel","GaussianMixtureHiddenMarkovModel"]) lazy_import("sage.stats.hmm.distributions", ["GaussianMixtureDistribution"]) +del lazy_import diff --git a/src/sage/tensor/modules/all.py b/src/sage/tensor/modules/all.py index 72f37f49fe9..83dbee6f4ac 100644 --- a/src/sage/tensor/modules/all.py +++ b/src/sage/tensor/modules/all.py @@ -4,3 +4,4 @@ # NB: in Sage 8.8.beta2, the lazy import of FiniteRankFreeModule is necessary # to avoid some import order issue when Chart is imported in # free_module_tensor, see comments 12 to 18 in :trac:`27655`. +del lazy_import diff --git a/src/sage/topology/all.py b/src/sage/topology/all.py index 32339d70cfa..18b553e873d 100644 --- a/src/sage/topology/all.py +++ b/src/sage/topology/all.py @@ -18,3 +18,4 @@ # # For taking care of old pickles # from sage.misc.persist import register_unpickle_override # register_unpickle_override('sage.topology.simplicial_complex_examples', 'SimplicialSurface', SimplicialComplex) +del lazy_import diff --git a/src/sage/typeset/all.py b/src/sage/typeset/all.py index f2327dfdb20..b8e1a5f547c 100644 --- a/src/sage/typeset/all.py +++ b/src/sage/typeset/all.py @@ -2,3 +2,4 @@ lazy_import('sage.typeset.ascii_art', 'ascii_art') lazy_import('sage.typeset.unicode_art', 'unicode_art') +del lazy_import From 15386c74aef3001f34f5d261c20e32eb4a5d5f39 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Sat, 11 Nov 2023 10:45:37 -0800 Subject: [PATCH 018/140] Manual fixes re 'del lazy_import' --- src/sage/algebras/all.py | 2 -- src/sage/algebras/hecke_algebras/all.py | 2 -- src/sage/all.py | 1 - src/sage/all_cmdline.py | 1 - src/sage/coding/all.py | 13 +++++++------ src/sage/combinat/all__sagemath_categories.py | 5 ++++- src/sage/lfunctions/all.py | 11 ++++++----- src/sage/misc/all.py | 1 - src/sage/misc/all__sagemath_modules.py | 2 -- src/sage/misc/all__sagemath_objects.py | 1 - src/sage/misc/all__sagemath_repl.py | 1 - src/sage/rings/number_field/all.py | 11 ++++++----- 12 files changed, 23 insertions(+), 28 deletions(-) diff --git a/src/sage/algebras/all.py b/src/sage/algebras/all.py index c6f34034ae9..9718eac16b7 100644 --- a/src/sage/algebras/all.py +++ b/src/sage/algebras/all.py @@ -16,7 +16,6 @@ # # http://www.gnu.org/licenses/ #***************************************************************************** -from sage.misc.lazy_import import lazy_import from sage.algebras.all__sagemath_modules import * from sage.algebras.all__sagemath_combinat import * @@ -25,4 +24,3 @@ from sage.algebras.fusion_rings.all import * from sage.algebras.lie_algebras.all import * from sage.algebras.lie_conformal_algebras.all import * -del lazy_import diff --git a/src/sage/algebras/hecke_algebras/all.py b/src/sage/algebras/hecke_algebras/all.py index fe5d6d3892f..052c816e1e5 100644 --- a/src/sage/algebras/hecke_algebras/all.py +++ b/src/sage/algebras/hecke_algebras/all.py @@ -1,5 +1,3 @@ """ Hecke Algebras """ -#from sage.misc.lazy_import import lazy_import -del lazy_import diff --git a/src/sage/all.py b/src/sage/all.py index ddc3aa588aa..640a07cdbea 100644 --- a/src/sage/all.py +++ b/src/sage/all.py @@ -263,4 +263,3 @@ def sage_globals(): False """ return globals() -del lazy_import diff --git a/src/sage/all_cmdline.py b/src/sage/all_cmdline.py index 946ff48c379..197d34ebc90 100644 --- a/src/sage/all_cmdline.py +++ b/src/sage/all_cmdline.py @@ -30,4 +30,3 @@ lazy_import('sage.interfaces.maxima_abstract', 'maxima_console') sage.misc.session.init() -del lazy_import diff --git a/src/sage/coding/all.py b/src/sage/coding/all.py index dff56d4c58c..3d7b19900c1 100644 --- a/src/sage/coding/all.py +++ b/src/sage/coding/all.py @@ -1,13 +1,14 @@ -from sage.misc.lazy_import import lazy_import as _lazy_import +from sage.misc.lazy_import import lazy_import -_lazy_import("sage.coding.code_constructions", ["permutation_action", - "walsh_matrix"]) +lazy_import("sage.coding.code_constructions", ["permutation_action", + "walsh_matrix"]) -_lazy_import("sage.coding.linear_code", "LinearCode") +lazy_import("sage.coding.linear_code", "LinearCode") # Functions removed from the global namespace -_lazy_import('sage.coding', 'codes_catalog', 'codes') -_lazy_import('sage.coding', 'channels_catalog', 'channels') +lazy_import('sage.coding', 'codes_catalog', 'codes') +lazy_import('sage.coding', 'channels_catalog', 'channels') + del lazy_import diff --git a/src/sage/combinat/all__sagemath_categories.py b/src/sage/combinat/all__sagemath_categories.py index b7f96441daa..99c58eb881a 100644 --- a/src/sage/combinat/all__sagemath_categories.py +++ b/src/sage/combinat/all__sagemath_categories.py @@ -1,6 +1,8 @@ -# Integer lists from sage.combinat.matrices.all__sagemath_categories import * +from sage.misc.lazy_import import lazy_import + +# Integer lists from sage.combinat.integer_lists import IntegerListsLex from sage.combinat.integer_vector import IntegerVectors @@ -27,4 +29,5 @@ from sage.combinat.dlx import DLXMatrix, AllExactCovers, OneExactCover + del lazy_import diff --git a/src/sage/lfunctions/all.py b/src/sage/lfunctions/all.py index 9f0cc052fed..80b30c2ec6e 100644 --- a/src/sage/lfunctions/all.py +++ b/src/sage/lfunctions/all.py @@ -1,7 +1,8 @@ -from sage.misc.lazy_import import lazy_import as _lazy_import_ +from sage.misc.lazy_import import lazy_import + +lazy_import("sage.lfunctions.dokchitser", "Dokchitser") +lazy_import("sage.lfunctions.sympow", "sympow") +lazy_import("sage.lfunctions.zero_sums", "LFunctionZeroSum") +lazy_import("sage.lfunctions.lcalc", "lcalc") -_lazy_import_("sage.lfunctions.dokchitser", "Dokchitser") -_lazy_import_("sage.lfunctions.sympow", "sympow") -_lazy_import_("sage.lfunctions.zero_sums", "LFunctionZeroSum") -_lazy_import_("sage.lfunctions.lcalc", "lcalc") del lazy_import diff --git a/src/sage/misc/all.py b/src/sage/misc/all.py index 76392a9ebc6..e22f9c60cda 100644 --- a/src/sage/misc/all.py +++ b/src/sage/misc/all.py @@ -50,4 +50,3 @@ from sage.misc.sage_timeit_class import timeit from sage.misc.session import load_session, save_session, show_identifiers from sage.misc.reset import reset, restore -del lazy_import diff --git a/src/sage/misc/all__sagemath_modules.py b/src/sage/misc/all__sagemath_modules.py index 3f65decdeff..158f41ed686 100644 --- a/src/sage/misc/all__sagemath_modules.py +++ b/src/sage/misc/all__sagemath_modules.py @@ -2,7 +2,6 @@ # and deprecated functionality from sage.misc.lazy_attribute import lazy_attribute, lazy_class_attribute -from sage.misc.lazy_import import lazy_import from sage.misc.all__sagemath_categories import * @@ -19,4 +18,3 @@ from sage.misc.mathml import mathml from sage.misc.func_persist import func_persist -del lazy_import diff --git a/src/sage/misc/all__sagemath_objects.py b/src/sage/misc/all__sagemath_objects.py index 7f5c99d193f..30a76f38fab 100644 --- a/src/sage/misc/all__sagemath_objects.py +++ b/src/sage/misc/all__sagemath_objects.py @@ -34,4 +34,3 @@ from sage.misc.abstract_method import abstract_method from sage.misc.timing import walltime, cputime -del lazy_import diff --git a/src/sage/misc/all__sagemath_repl.py b/src/sage/misc/all__sagemath_repl.py index 6cb1f34d1ef..15074e16be1 100644 --- a/src/sage/misc/all__sagemath_repl.py +++ b/src/sage/misc/all__sagemath_repl.py @@ -12,4 +12,3 @@ 'constructions', 'help']) lazy_import('pydoc', 'help', 'python_help') -del lazy_import diff --git a/src/sage/rings/number_field/all.py b/src/sage/rings/number_field/all.py index 3da44c157f9..72e0d56d1a0 100644 --- a/src/sage/rings/number_field/all.py +++ b/src/sage/rings/number_field/all.py @@ -5,12 +5,13 @@ from sage.rings.number_field.order import EquationOrder, GaussianIntegers, EisensteinIntegers -from sage.misc.lazy_import import lazy_import as _lazy_import +from sage.misc.lazy_import import lazy_import -_lazy_import('sage.rings.number_field.totallyreal', 'enumerate_totallyreal_fields_prim') -_lazy_import('sage.rings.number_field.totallyreal_data', 'hermite_constant') -_lazy_import('sage.rings.number_field.totallyreal_rel', 'enumerate_totallyreal_fields_all') -_lazy_import('sage.rings.number_field.totallyreal_rel', 'enumerate_totallyreal_fields_rel') +lazy_import('sage.rings.number_field.totallyreal', 'enumerate_totallyreal_fields_prim') +lazy_import('sage.rings.number_field.totallyreal_data', 'hermite_constant') +lazy_import('sage.rings.number_field.totallyreal_rel', 'enumerate_totallyreal_fields_all') +lazy_import('sage.rings.number_field.totallyreal_rel', 'enumerate_totallyreal_fields_rel') from sage.rings.number_field.unit_group import UnitGroup + del lazy_import From 3bbdcbf703c1b845186638c6ccdfb9b50bfc2111 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Sun, 12 Nov 2023 11:04:34 -0800 Subject: [PATCH 019/140] autopep8 --in-place --ignore E402 --max-line-length=88 src/sage/**/all*.py --- src/sage/algebras/all.py | 4 +- src/sage/algebras/lie_algebras/all.py | 6 +- .../algebras/lie_conformal_algebras/all.py | 10 +- src/sage/all.py | 115 ++++++++++-------- src/sage/all__sagemath_objects.py | 12 +- src/sage/all__sagemath_repl.py | 31 ++--- src/sage/all_cmdline.py | 2 +- src/sage/arith/all.py | 44 +++---- src/sage/arith/all__sagemath_objects.py | 2 +- src/sage/calculus/all.py | 8 +- src/sage/calculus/all__sagemath_modules.py | 2 +- src/sage/categories/all.py | 32 ++--- src/sage/categories/all__sagemath_objects.py | 10 +- src/sage/combinat/all__sagemath_categories.py | 16 +-- src/sage/combinat/all__sagemath_combinat.py | 16 ++- src/sage/combinat/all__sagemath_graphs.py | 9 +- .../combinat/cluster_algebra_quiver/all.py | 3 +- src/sage/combinat/designs/all.py | 3 +- src/sage/combinat/root_system/all.py | 6 +- src/sage/crypto/all.py | 6 +- src/sage/databases/all.py | 12 +- src/sage/dynamics/all.py | 3 +- src/sage/ext/all__sagemath_categories.py | 4 +- src/sage/functions/all.py | 98 +++++++-------- src/sage/geometry/all__sagemath_polyhedra.py | 3 +- src/sage/geometry/all__sagemath_symbolics.py | 2 +- src/sage/geometry/polyhedron/all.py | 3 +- src/sage/graphs/all.py | 3 +- src/sage/groups/abelian_gps/all.py | 4 +- .../abelian_gps/all__sagemath_modules.py | 2 +- src/sage/groups/all__sagemath_categories.py | 2 +- src/sage/groups/all__sagemath_groups.py | 6 +- src/sage/groups/perm_gps/all.py | 20 +-- src/sage/interfaces/all.py | 2 +- src/sage/libs/mpmath/all.py | 9 +- src/sage/libs/ntl/all.py | 8 +- src/sage/libs/symmetrica/all.py | 20 +-- src/sage/matrix/all.py | 6 +- src/sage/misc/all.py | 2 +- src/sage/misc/all__sagemath_categories.py | 114 ++++++++--------- src/sage/misc/all__sagemath_modules.py | 12 +- src/sage/misc/all__sagemath_objects.py | 2 +- src/sage/misc/all__sagemath_repl.py | 6 +- src/sage/modular/all.py | 10 +- src/sage/modular/arithgroup/all.py | 2 +- src/sage/modular/btquotients/all.py | 4 +- src/sage/modular/hecke/all.py | 4 +- src/sage/modular/modform_hecketriangle/all.py | 14 +-- src/sage/monoids/all.py | 2 +- src/sage/plot/all.py | 11 +- src/sage/plot/plot3d/all.py | 20 +-- src/sage/probability/all.py | 6 +- .../quadratic_forms/all__sagemath_modules.py | 2 +- .../quadratic_forms/all__sagemath_pari.py | 2 +- src/sage/repl/all.py | 4 +- src/sage/repl/ipython_kernel/all_jupyter.py | 2 +- src/sage/rings/all.py | 21 ++-- src/sage/rings/all__sagemath_categories.py | 20 +-- src/sage/rings/all__sagemath_flint.py | 15 +-- src/sage/rings/all__sagemath_modules.py | 2 +- src/sage/rings/asymptotic/all.py | 3 +- src/sage/rings/finite_rings/all.py | 4 +- src/sage/rings/number_field/all.py | 8 +- src/sage/schemes/affine/all.py | 4 +- src/sage/schemes/all.py | 4 +- src/sage/schemes/curves/all.py | 4 +- src/sage/schemes/elliptic_curves/all.py | 20 +-- src/sage/schemes/hyperelliptic_curves/all.py | 3 +- src/sage/schemes/jacobians/all.py | 2 +- src/sage/schemes/projective/all.py | 4 +- src/sage/sets/all.py | 2 +- src/sage/stats/hmm/all.py | 3 +- src/sage/structure/all.py | 2 +- src/sage/symbolic/all.py | 2 +- 74 files changed, 461 insertions(+), 425 deletions(-) diff --git a/src/sage/algebras/all.py b/src/sage/algebras/all.py index 9718eac16b7..c923e42a887 100644 --- a/src/sage/algebras/all.py +++ b/src/sage/algebras/all.py @@ -2,7 +2,7 @@ Algebras """ -#***************************************************************************** +# ***************************************************************************** # Copyright (C) 2005 William Stein # # Distributed under the terms of the GNU General Public License (GPL) @@ -15,7 +15,7 @@ # The full text of the GPL is available at: # # http://www.gnu.org/licenses/ -#***************************************************************************** +# ***************************************************************************** from sage.algebras.all__sagemath_modules import * from sage.algebras.all__sagemath_combinat import * diff --git a/src/sage/algebras/lie_algebras/all.py b/src/sage/algebras/lie_algebras/all.py index dd90b695923..510bcb23f24 100644 --- a/src/sage/algebras/lie_algebras/all.py +++ b/src/sage/algebras/lie_algebras/all.py @@ -2,7 +2,7 @@ Lie Algebras """ -#***************************************************************************** +# ***************************************************************************** # Copyright (C) 2013 Travis Scrimshaw # # Distributed under the terms of the GNU General Public License (GPL) @@ -15,10 +15,10 @@ # The full text of the GPL is available at: # # http://www.gnu.org/licenses/ -#***************************************************************************** +# ***************************************************************************** from sage.misc.lazy_import import lazy_import lazy_import('sage.algebras.lie_algebras.lie_algebra', 'LieAlgebra') -#from kac_moody import KacMoodyAlgebra +# from kac_moody import KacMoodyAlgebra lazy_import('sage.algebras.lie_algebras', 'examples', 'lie_algebras') del lazy_import diff --git a/src/sage/algebras/lie_conformal_algebras/all.py b/src/sage/algebras/lie_conformal_algebras/all.py index f8cbbcf7fa4..14925d4ac08 100644 --- a/src/sage/algebras/lie_conformal_algebras/all.py +++ b/src/sage/algebras/lie_conformal_algebras/all.py @@ -1,4 +1,4 @@ -#****************************************************************************** +# ****************************************************************************** # Copyright (C) 2020 Reimundo Heluani # # This program is free software: you can redistribute it and/or modify @@ -6,10 +6,12 @@ # the Free Software Foundation, either version 2 of the License, or # (at your option) any later version. # http://www.gnu.org/licenses/ -#***************************************************************************** +# ***************************************************************************** from sage.misc.lazy_import import lazy_import -lazy_import('sage.algebras.lie_conformal_algebras.lie_conformal_algebra','LieConformalAlgebra') -lazy_import('sage.algebras.lie_conformal_algebras', 'examples', 'lie_conformal_algebras') +lazy_import('sage.algebras.lie_conformal_algebras.lie_conformal_algebra', + 'LieConformalAlgebra') +lazy_import('sage.algebras.lie_conformal_algebras', + 'examples', 'lie_conformal_algebras') del lazy_import diff --git a/src/sage/all.py b/src/sage/all.py index 640a07cdbea..5bead6ff7ff 100644 --- a/src/sage/all.py +++ b/src/sage/all.py @@ -59,96 +59,97 @@ ################ end setup warnings ############################### -from sage.all__sagemath_repl import * # includes .all__sagemath_objects, .all__sagemath_environment +# includes .all__sagemath_objects, .all__sagemath_environment +from sage.all__sagemath_repl import * ################################################################### # This import also sets up the interrupt handler from cysignals.signals import (AlarmInterrupt, SignalError, - sig_on_reset as sig_on_count) + sig_on_reset as sig_on_count) -from time import sleep +from time import sleep from functools import reduce # in order to keep reduce in python3 import sage.misc.lazy_import -from sage.misc.all import * # takes a while -from sage.typeset.all import * +from sage.misc.all import * # takes a while +from sage.typeset.all import * from sage.misc.sh import sh -from sage.libs.all import * +from sage.libs.all import * from sage.data_structures.all import * -from sage.structure.all import * -from sage.rings.all import * -from sage.arith.all import * -from sage.matrix.all import * - -from sage.symbolic.all import * -from sage.modules.all import * -from sage.monoids.all import * -from sage.algebras.all import * -from sage.modular.all import * -from sage.sat.all import * -from sage.schemes.all import * -from sage.graphs.all import * -from sage.groups.all import * -from sage.arith.power import generic_power as power -from sage.databases.all import * +from sage.structure.all import * +from sage.rings.all import * +from sage.arith.all import * +from sage.matrix.all import * + +from sage.symbolic.all import * +from sage.modules.all import * +from sage.monoids.all import * +from sage.algebras.all import * +from sage.modular.all import * +from sage.sat.all import * +from sage.schemes.all import * +from sage.graphs.all import * +from sage.groups.all import * +from sage.arith.power import generic_power as power +from sage.databases.all import * from sage.categories.all import * -from sage.sets.all import * +from sage.sets.all import * from sage.probability.all import * from sage.interfaces.all import * -from sage.functions.all import * -from sage.calculus.all import * +from sage.functions.all import * +from sage.calculus.all import * lazy_import('sage.tests', 'all', as_='tests', deprecation=27337) -from sage.cpython.all import * +from sage.cpython.all import * -from sage.crypto.all import * +from sage.crypto.all import * import sage.crypto.mq as mq -from sage.plot.all import * -from sage.plot.plot3d.all import * +from sage.plot.all import * +from sage.plot.plot3d.all import * -from sage.coding.all import * -from sage.combinat.all import * +from sage.coding.all import * +from sage.combinat.all import * from sage.lfunctions.all import * -from sage.geometry.all import * -from sage.geometry.triangulation.all import * -from sage.geometry.riemannian_manifolds.all import * +from sage.geometry.all import * +from sage.geometry.triangulation.all import * +from sage.geometry.riemannian_manifolds.all import * -from sage.dynamics.all import * +from sage.dynamics.all import * -from sage.homology.all import * +from sage.homology.all import * -from sage.topology.all import * +from sage.topology.all import * from sage.quadratic_forms.all import * -from sage.games.all import * +from sage.games.all import * -from sage.logic.all import * +from sage.logic.all import * -from sage.numerical.all import * +from sage.numerical.all import * -from sage.stats.all import * +from sage.stats.all import * import sage.stats.all as stats -from sage.parallel.all import * +from sage.parallel.all import * -from sage.ext.fast_callable import fast_callable -from sage.ext.fast_eval import fast_float +from sage.ext.fast_callable import fast_callable +from sage.ext.fast_eval import fast_float from sage.sandpiles.all import * -from sage.tensor.all import * +from sage.tensor.all import * -from sage.matroids.all import * +from sage.matroids.all import * from sage.game_theory.all import * @@ -168,7 +169,7 @@ _init_qqbar() ########################################################### -#### WARNING: +# WARNING: # DO *not* import numpy / matplotlib / networkx here!! # Each takes a surprisingly long time to initialize, # and that initialization should be done more on-the-fly @@ -190,31 +191,37 @@ copying = license copyright = license + def quit_sage(verbose=True): """ Does nothing. Code that needs cleanup should register its own handler using the atexit module. """ from sage.misc.superseded import deprecation - deprecation(8784, 'quit_sage is deprecated and now does nothing; please simply delete it') + deprecation( + 8784, 'quit_sage is deprecated and now does nothing; please simply delete it') from sage.misc.persist import register_unpickle_override register_unpickle_override('sage.categories.category', 'Sets', Sets) -register_unpickle_override('sage.categories.category_types', 'HeckeModules', HeckeModules) +register_unpickle_override('sage.categories.category_types', + 'HeckeModules', HeckeModules) register_unpickle_override('sage.categories.category_types', 'Objects', Objects) register_unpickle_override('sage.categories.category_types', 'Rings', Rings) register_unpickle_override('sage.categories.category_types', 'Fields', Fields) -register_unpickle_override('sage.categories.category_types', 'VectorSpaces', VectorSpaces) -register_unpickle_override('sage.categories.category_types', 'Schemes_over_base', sage.categories.schemes.Schemes_over_base) -register_unpickle_override('sage.categories.category_types', 'ModularAbelianVarieties', ModularAbelianVarieties) +register_unpickle_override('sage.categories.category_types', + 'VectorSpaces', VectorSpaces) +register_unpickle_override('sage.categories.category_types', + 'Schemes_over_base', sage.categories.schemes.Schemes_over_base) +register_unpickle_override('sage.categories.category_types', + 'ModularAbelianVarieties', ModularAbelianVarieties) register_unpickle_override('sage.libs.pari.gen_py', 'pari', pari) # Cache the contents of star imports. sage.misc.lazy_import.save_cache_file() -### Debugging for Singular, see trac #10903 +# Debugging for Singular, see trac #10903 # from sage.libs.singular.ring import poison_currRing # sys.settrace(poison_currRing) @@ -241,7 +248,7 @@ def quit_sage(verbose=True): sage.misc.lazy_import.finish_startup() -### Python broke large ints; see trac #34506 +# Python broke large ints; see trac #34506 if hasattr(sys, "set_int_max_str_digits"): sys.set_int_max_str_digits(0) diff --git a/src/sage/all__sagemath_objects.py b/src/sage/all__sagemath_objects.py index 7780f245aae..36a12b3f339 100644 --- a/src/sage/all__sagemath_objects.py +++ b/src/sage/all__sagemath_objects.py @@ -9,16 +9,16 @@ # This import also sets up the interrupt handler from cysignals.signals import (AlarmInterrupt, SignalError, - sig_on_reset as sig_on_count) + sig_on_reset as sig_on_count) -from time import sleep +from time import sleep -from sage.misc.all__sagemath_objects import * -from sage.structure.all import * -from sage.arith.power import generic_power as power +from sage.misc.all__sagemath_objects import * +from sage.structure.all import * +from sage.arith.power import generic_power as power from sage.categories.all__sagemath_objects import * -from sage.cpython.all import * +from sage.cpython.all import * from cysignals.alarm import alarm, cancel_alarm diff --git a/src/sage/all__sagemath_repl.py b/src/sage/all__sagemath_repl.py index 43bdb38e21f..6ef86e4dd0e 100644 --- a/src/sage/all__sagemath_repl.py +++ b/src/sage/all__sagemath_repl.py @@ -2,7 +2,8 @@ import sys import warnings -__with_pydebug = hasattr(sys, 'gettotalrefcount') # This is a Python debug build (--with-pydebug) +# This is a Python debug build (--with-pydebug) +__with_pydebug = hasattr(sys, 'gettotalrefcount') if __with_pydebug: # a debug build does not install the default warning filters. Sadly, this breaks doctests so we # have to re-add them: @@ -16,38 +17,38 @@ # Ignore all deprecations from IPython etc. warnings.filterwarnings('ignore', category=DeprecationWarning, - module='(IPython|ipykernel|jupyter_client|jupyter_core|nbformat|notebook|ipywidgets|storemagic|jedi)') + module='(IPython|ipykernel|jupyter_client|jupyter_core|nbformat|notebook|ipywidgets|storemagic|jedi)') # scipy 1.18 introduced reprecation warnings on a number of things they are moving to # numpy, e.g. DeprecationWarning: scipy.array is deprecated # and will be removed in SciPy 2.0.0, use numpy.array instead # This affects networkx 2.2 up and including 2.4 (cf. :trac:29766) warnings.filterwarnings('ignore', category=DeprecationWarning, - module='(scipy|networkx)') + module='(scipy|networkx)') # However, be sure to keep OUR deprecation warnings warnings.filterwarnings('default', category=DeprecationWarning, - message=r'[\s\S]*See https?://trac\.sagemath\.org/[0-9]* for details.') + message=r'[\s\S]*See https?://trac\.sagemath\.org/[0-9]* for details.') # Ignore Python 3.9 deprecation warnings warnings.filterwarnings('ignore', category=DeprecationWarning, - module='ast') + module='ast') # Ignore packaging 20.5 deprecation warnings warnings.filterwarnings('ignore', category=DeprecationWarning, - module='(.*[.]_vendor[.])?packaging') + module='(.*[.]_vendor[.])?packaging') # Ignore a few warnings triggered by pythran 0.12.1 warnings.filterwarnings('ignore', category=DeprecationWarning, - message='\n\n `numpy.distutils` is deprecated since NumPy 1.23.0', - module='pythran.dist') + message='\n\n `numpy.distutils` is deprecated since NumPy 1.23.0', + module='pythran.dist') warnings.filterwarnings('ignore', category=DeprecationWarning, - message='pkg_resources is deprecated as an API|' - 'Deprecated call to `pkg_resources.declare_namespace(.*)`', - module='pkg_resources|setuptools.sandbox') + message='pkg_resources is deprecated as an API|' + 'Deprecated call to `pkg_resources.declare_namespace(.*)`', + module='pkg_resources|setuptools.sandbox') warnings.filterwarnings('ignore', category=DeprecationWarning, - message='msvccompiler is deprecated and slated to be removed', - module='distutils.msvccompiler') + message='msvccompiler is deprecated and slated to be removed', + module='distutils.msvccompiler') warnings.filterwarnings('ignore', category=DeprecationWarning, message='The distutils(.sysconfig module| package) is deprecated', @@ -100,8 +101,8 @@ from sage.all__sagemath_objects import * from sage.all__sagemath_environment import * -from sage.doctest.all import * -from sage.repl.all import * +from sage.doctest.all import * +from sage.repl.all import * from sage.misc.all__sagemath_repl import * # For doctesting. These are overwritten later diff --git a/src/sage/all_cmdline.py b/src/sage/all_cmdline.py index 197d34ebc90..33d0712c996 100644 --- a/src/sage/all_cmdline.py +++ b/src/sage/all_cmdline.py @@ -19,7 +19,7 @@ from sage.misc.lazy_import import lazy_import -for pkg in ['axiom', 'fricas', 'gap' , 'gap3', 'giac', 'gp', +for pkg in ['axiom', 'fricas', 'gap', 'gap3', 'giac', 'gp', 'gnuplot', 'kash', 'magma', 'macaulay2', 'maple', 'mathematica', 'mathics', 'matlab', 'mupad', 'mwrank', 'octave', 'qepcad', 'singular', diff --git a/src/sage/arith/all.py b/src/sage/arith/all.py index c230a2fb28d..c96f8ed202e 100644 --- a/src/sage/arith/all.py +++ b/src/sage/arith/all.py @@ -1,28 +1,28 @@ from sage.misc.lazy_import import lazy_import from sage.arith.misc import (algdep, bernoulli, is_prime, is_prime_power, - is_pseudoprime, is_pseudoprime_power, - prime_powers, primes_first_n, eratosthenes, primes, - next_prime_power, next_probable_prime, next_prime, - previous_prime, previous_prime_power, random_prime, - divisors, sigma, gcd, GCD, xlcm, xgcd, xkcd, - inverse_mod, get_gcd, get_inverse_mod, power_mod, - rational_reconstruction, mqrr_rational_reconstruction, - trial_division, factor, prime_divisors, odd_part, prime_to_m_part, - is_square, is_squarefree, euler_phi, carmichael_lambda, crt, CRT, - CRT_list, CRT_basis, CRT_vectors, multinomial, multinomial_coefficients, - binomial, factorial, kronecker_symbol, kronecker, legendre_symbol, - primitive_root, nth_prime, quadratic_residues, moebius, - continuant, number_of_divisors, hilbert_symbol, hilbert_conductor, - hilbert_conductor_inverse, falling_factorial, rising_factorial, - integer_ceil, integer_floor, - two_squares, three_squares, four_squares, sum_of_k_squares, - subfactorial, is_power_of_two, differences, - sort_complex_numbers_for_display, - fundamental_discriminant, squarefree_divisors, - radical, binomial_coefficients, jacobi_symbol, - dedekind_sum, - prime_factors, prime_range, valuation) + is_pseudoprime, is_pseudoprime_power, + prime_powers, primes_first_n, eratosthenes, primes, + next_prime_power, next_probable_prime, next_prime, + previous_prime, previous_prime_power, random_prime, + divisors, sigma, gcd, GCD, xlcm, xgcd, xkcd, + inverse_mod, get_gcd, get_inverse_mod, power_mod, + rational_reconstruction, mqrr_rational_reconstruction, + trial_division, factor, prime_divisors, odd_part, prime_to_m_part, + is_square, is_squarefree, euler_phi, carmichael_lambda, crt, CRT, + CRT_list, CRT_basis, CRT_vectors, multinomial, multinomial_coefficients, + binomial, factorial, kronecker_symbol, kronecker, legendre_symbol, + primitive_root, nth_prime, quadratic_residues, moebius, + continuant, number_of_divisors, hilbert_symbol, hilbert_conductor, + hilbert_conductor_inverse, falling_factorial, rising_factorial, + integer_ceil, integer_floor, + two_squares, three_squares, four_squares, sum_of_k_squares, + subfactorial, is_power_of_two, differences, + sort_complex_numbers_for_display, + fundamental_discriminant, squarefree_divisors, + radical, binomial_coefficients, jacobi_symbol, + dedekind_sum, + prime_factors, prime_range, valuation) lazy_import('sage.arith.misc', ('Sigma', 'Moebius', 'Euler_Phi'), deprecation=30322) diff --git a/src/sage/arith/all__sagemath_objects.py b/src/sage/arith/all__sagemath_objects.py index ccd64831912..f1a05b60932 100644 --- a/src/sage/arith/all__sagemath_objects.py +++ b/src/sage/arith/all__sagemath_objects.py @@ -1,4 +1,4 @@ # The presence of this file ensures that sage_setup for sagemath-objects # considers this directory as a namespace package -from sage.arith.power import generic_power as power +from sage.arith.power import generic_power as power diff --git a/src/sage/calculus/all.py b/src/sage/calculus/all.py index b597a15684b..e9e26918527 100644 --- a/src/sage/calculus/all.py +++ b/src/sage/calculus/all.py @@ -3,11 +3,11 @@ from sage.calculus import desolvers from sage.calculus.calculus import maxima as maxima_calculus from sage.calculus.calculus import (laplace, inverse_laplace, - limit, lim) + limit, lim) from sage.calculus.desolvers import (desolve, desolve_laplace, desolve_system, - eulers_method, eulers_method_2x2, - eulers_method_2x2_plot, desolve_rk4, desolve_system_rk4, - desolve_odeint, desolve_mintides, desolve_tides_mpfr) + eulers_method, eulers_method_2x2, + eulers_method_2x2_plot, desolve_rk4, desolve_system_rk4, + desolve_odeint, desolve_mintides, desolve_tides_mpfr) from sage.calculus.expr import symbolic_expression from sage.calculus.var import (var, function, clear_vars) diff --git a/src/sage/calculus/all__sagemath_modules.py b/src/sage/calculus/all__sagemath_modules.py index cab2bf3629f..f12d63a3b7f 100644 --- a/src/sage/calculus/all__sagemath_modules.py +++ b/src/sage/calculus/all__sagemath_modules.py @@ -12,7 +12,7 @@ # We lazy_import the following modules since they import numpy which slows down sage startup from sage.misc.lazy_import import lazy_import lazy_import("sage.calculus.riemann", ["Riemann_Map"]) -lazy_import("sage.calculus.interpolators", ["polygon_spline","complex_cubic_spline"]) +lazy_import("sage.calculus.interpolators", ["polygon_spline", "complex_cubic_spline"]) from sage.calculus.transforms.all import * del lazy_import diff --git a/src/sage/categories/all.py b/src/sage/categories/all.py index 00ddc1240d6..9904917ac0a 100644 --- a/src/sage/categories/all.py +++ b/src/sage/categories/all.py @@ -109,31 +109,31 @@ # * with basis from sage.categories.modules_with_basis import ModulesWithBasis FreeModules = ModulesWithBasis -from sage.categories.hecke_modules import HeckeModules -from sage.categories.algebras_with_basis import AlgebrasWithBasis -from sage.categories.coalgebras_with_basis import CoalgebrasWithBasis -from sage.categories.bialgebras_with_basis import BialgebrasWithBasis +from sage.categories.hecke_modules import HeckeModules +from sage.categories.algebras_with_basis import AlgebrasWithBasis +from sage.categories.coalgebras_with_basis import CoalgebrasWithBasis +from sage.categories.bialgebras_with_basis import BialgebrasWithBasis from sage.categories.hopf_algebras_with_basis import HopfAlgebrasWithBasis # finite dimensional * with basis -from sage.categories.finite_dimensional_modules_with_basis import FiniteDimensionalModulesWithBasis -from sage.categories.finite_dimensional_algebras_with_basis import FiniteDimensionalAlgebrasWithBasis -from sage.categories.finite_dimensional_coalgebras_with_basis import FiniteDimensionalCoalgebrasWithBasis -from sage.categories.finite_dimensional_bialgebras_with_basis import FiniteDimensionalBialgebrasWithBasis +from sage.categories.finite_dimensional_modules_with_basis import FiniteDimensionalModulesWithBasis +from sage.categories.finite_dimensional_algebras_with_basis import FiniteDimensionalAlgebrasWithBasis +from sage.categories.finite_dimensional_coalgebras_with_basis import FiniteDimensionalCoalgebrasWithBasis +from sage.categories.finite_dimensional_bialgebras_with_basis import FiniteDimensionalBialgebrasWithBasis from sage.categories.finite_dimensional_hopf_algebras_with_basis import FiniteDimensionalHopfAlgebrasWithBasis # graded * -from sage.categories.graded_modules import GradedModules -from sage.categories.graded_algebras import GradedAlgebras -from sage.categories.graded_coalgebras import GradedCoalgebras -from sage.categories.graded_bialgebras import GradedBialgebras +from sage.categories.graded_modules import GradedModules +from sage.categories.graded_algebras import GradedAlgebras +from sage.categories.graded_coalgebras import GradedCoalgebras +from sage.categories.graded_bialgebras import GradedBialgebras from sage.categories.graded_hopf_algebras import GradedHopfAlgebras # graded * with basis -from sage.categories.graded_modules_with_basis import GradedModulesWithBasis -from sage.categories.graded_algebras_with_basis import GradedAlgebrasWithBasis -from sage.categories.graded_coalgebras_with_basis import GradedCoalgebrasWithBasis -from sage.categories.graded_bialgebras_with_basis import GradedBialgebrasWithBasis +from sage.categories.graded_modules_with_basis import GradedModulesWithBasis +from sage.categories.graded_algebras_with_basis import GradedAlgebrasWithBasis +from sage.categories.graded_coalgebras_with_basis import GradedCoalgebrasWithBasis +from sage.categories.graded_bialgebras_with_basis import GradedBialgebrasWithBasis from sage.categories.graded_hopf_algebras_with_basis import GradedHopfAlgebrasWithBasis # Coxeter groups diff --git a/src/sage/categories/all__sagemath_objects.py b/src/sage/categories/all__sagemath_objects.py index 5dd65dfee63..76504d81be2 100644 --- a/src/sage/categories/all__sagemath_objects.py +++ b/src/sage/categories/all__sagemath_objects.py @@ -17,12 +17,12 @@ from sage.categories.cartesian_product import cartesian_product -from sage.categories.functor import (ForgetfulFunctor, - IdentityFunctor) +from sage.categories.functor import (ForgetfulFunctor, + IdentityFunctor) -from sage.categories.homset import (Hom, hom, - End, end, - Homset, HomsetWithBase) +from sage.categories.homset import (Hom, hom, + End, end, + Homset, HomsetWithBase) from sage.categories.morphism import Morphism diff --git a/src/sage/combinat/all__sagemath_categories.py b/src/sage/combinat/all__sagemath_categories.py index 99c58eb881a..854cf866f40 100644 --- a/src/sage/combinat/all__sagemath_categories.py +++ b/src/sage/combinat/all__sagemath_categories.py @@ -7,14 +7,14 @@ from sage.combinat.integer_vector import IntegerVectors from sage.combinat.combinat import (CombinatorialClass, CombinatorialObject, - MapCombinatorialClass, - bell_number, bell_polynomial, bernoulli_polynomial, - catalan_number, euler_number, - fibonacci, fibonacci_sequence, fibonacci_xrange, - lucas_number1, lucas_number2, - number_of_tuples, number_of_unordered_tuples, - polygonal_number, stirling_number1, stirling_number2, - tuples, unordered_tuples) + MapCombinatorialClass, + bell_number, bell_polynomial, bernoulli_polynomial, + catalan_number, euler_number, + fibonacci, fibonacci_sequence, fibonacci_xrange, + lucas_number1, lucas_number2, + number_of_tuples, number_of_unordered_tuples, + polygonal_number, stirling_number1, stirling_number2, + tuples, unordered_tuples) lazy_import('sage.combinat.combinat', ('InfiniteAbstractCombinatorialClass', 'UnionCombinatorialClass', diff --git a/src/sage/combinat/all__sagemath_combinat.py b/src/sage/combinat/all__sagemath_combinat.py index 06551f002ae..3d73df44d28 100644 --- a/src/sage/combinat/all__sagemath_combinat.py +++ b/src/sage/combinat/all__sagemath_combinat.py @@ -13,8 +13,10 @@ lazy_import('sage.combinat.schubert_polynomial', 'SchubertPolynomialRing') lazy_import('sage.combinat.key_polynomial', 'KeyPolynomialBasis', as_='KeyPolynomials') -lazy_import('sage.combinat.symmetric_group_algebra', ['SymmetricGroupAlgebra', 'HeckeAlgebraSymmetricGroupT']) -lazy_import('sage.combinat.symmetric_group_representations', ['SymmetricGroupRepresentation', 'SymmetricGroupRepresentations']) +lazy_import('sage.combinat.symmetric_group_algebra', [ + 'SymmetricGroupAlgebra', 'HeckeAlgebraSymmetricGroupT']) +lazy_import('sage.combinat.symmetric_group_representations', [ + 'SymmetricGroupRepresentation', 'SymmetricGroupRepresentations']) # Permutations lazy_import('sage.combinat.affine_permutation', 'AffinePermutationGroup') @@ -28,7 +30,8 @@ from sage.combinat.rsk import RSK, RSK_inverse, robinson_schensted_knuth, robinson_schensted_knuth_inverse, InsertionRules # HillmanGrassl -lazy_import("sage.combinat.hillman_grassl", ["WeakReversePlanePartition", "WeakReversePlanePartitions"]) +lazy_import("sage.combinat.hillman_grassl", [ + "WeakReversePlanePartition", "WeakReversePlanePartitions"]) # PerfectMatchings from sage.combinat.perfect_matching import PerfectMatching, PerfectMatchings @@ -38,8 +41,8 @@ # Partitions from sage.combinat.partition import (Partition, Partitions, PartitionsInBox, - OrderedPartitions, PartitionsGreatestLE, - PartitionsGreatestEQ, number_of_partitions) + OrderedPartitions, PartitionsGreatestLE, + PartitionsGreatestEQ, number_of_partitions) lazy_import('sage.combinat.partition_tuple', ['PartitionTuple', 'PartitionTuples']) lazy_import('sage.combinat.partition_kleshchev', ['KleshchevPartitions']) @@ -139,7 +142,8 @@ from sage.combinat.matrices.all import * lazy_import('sage.combinat.integer_vector_weighted', 'WeightedIntegerVectors') -lazy_import('sage.combinat.integer_vectors_mod_permgroup', 'IntegerVectorsModPermutationGroup') +lazy_import('sage.combinat.integer_vectors_mod_permgroup', + 'IntegerVectorsModPermutationGroup') lazy_import('sage.combinat.q_analogues', ['gaussian_binomial', 'q_binomial']) diff --git a/src/sage/combinat/all__sagemath_graphs.py b/src/sage/combinat/all__sagemath_graphs.py index 1fe628586f8..d789b89078b 100644 --- a/src/sage/combinat/all__sagemath_graphs.py +++ b/src/sage/combinat/all__sagemath_graphs.py @@ -7,12 +7,13 @@ # Trees and Tamari interval posets from sage.combinat.ordered_tree import (OrderedTree, OrderedTrees, - LabelledOrderedTree, LabelledOrderedTrees) + LabelledOrderedTree, LabelledOrderedTrees) from sage.combinat.binary_tree import (BinaryTree, BinaryTrees, - LabelledBinaryTree, LabelledBinaryTrees) + LabelledBinaryTree, LabelledBinaryTrees) lazy_import('sage.combinat.rooted_tree', ('RootedTree', 'RootedTrees', - 'LabelledRootedTree', 'LabelledRootedTrees')) -lazy_import('sage.combinat.interval_posets', ['TamariIntervalPoset', 'TamariIntervalPosets']) + 'LabelledRootedTree', 'LabelledRootedTrees')) +lazy_import('sage.combinat.interval_posets', [ + 'TamariIntervalPoset', 'TamariIntervalPosets']) from sage.combinat.graph_path import GraphPaths diff --git a/src/sage/combinat/cluster_algebra_quiver/all.py b/src/sage/combinat/cluster_algebra_quiver/all.py index 5b28d09d1c6..9659105e91a 100644 --- a/src/sage/combinat/cluster_algebra_quiver/all.py +++ b/src/sage/combinat/cluster_algebra_quiver/all.py @@ -12,7 +12,8 @@ install_doc(__package__, __doc__) from sage.misc.lazy_import import lazy_import -lazy_import("sage.combinat.cluster_algebra_quiver.quiver_mutation_type", "QuiverMutationType") +lazy_import("sage.combinat.cluster_algebra_quiver.quiver_mutation_type", + "QuiverMutationType") lazy_import("sage.combinat.cluster_algebra_quiver.quiver", "ClusterQuiver") lazy_import("sage.combinat.cluster_algebra_quiver.cluster_seed", "ClusterSeed") diff --git a/src/sage/combinat/designs/all.py b/src/sage/combinat/designs/all.py index fea919db24e..d27679a09a1 100644 --- a/src/sage/combinat/designs/all.py +++ b/src/sage/combinat/designs/all.py @@ -43,7 +43,8 @@ lazy_import('sage.combinat.designs.incidence_structures', 'IncidenceStructure') -lazy_import('sage.combinat.designs.incidence_structures', 'IncidenceStructure', 'BlockDesign') +lazy_import('sage.combinat.designs.incidence_structures', + 'IncidenceStructure', 'BlockDesign') lazy_import('sage.combinat.designs.incidence_structures', 'IncidenceStructure', as_='Hypergraph') diff --git a/src/sage/combinat/root_system/all.py b/src/sage/combinat/root_system/all.py index 5a6aef8d2e8..935e6ad73cc 100644 --- a/src/sage/combinat/root_system/all.py +++ b/src/sage/combinat/root_system/all.py @@ -138,6 +138,8 @@ 'WeightRing']) from sage.combinat.root_system.branching_rules import BranchingRule, branching_rule_from_plethysm, branching_rule -lazy_import('sage.combinat.root_system.non_symmetric_macdonald_polynomials', 'NonSymmetricMacdonaldPolynomials') -lazy_import('sage.combinat.root_system.integrable_representations', 'IntegrableRepresentation') +lazy_import('sage.combinat.root_system.non_symmetric_macdonald_polynomials', + 'NonSymmetricMacdonaldPolynomials') +lazy_import('sage.combinat.root_system.integrable_representations', + 'IntegrableRepresentation') del lazy_import diff --git a/src/sage/crypto/all.py b/src/sage/crypto/all.py index 3645d45acea..811ee2c6a78 100644 --- a/src/sage/crypto/all.py +++ b/src/sage/crypto/all.py @@ -10,14 +10,14 @@ 'ShiftCryptosystem', 'TranspositionCryptosystem', 'VigenereCryptosystem', - ]) + ]) lazy_import('sage.crypto.stream', ['LFSRCryptosystem', 'ShrinkingGeneratorCryptosystem', - ]) + ]) lazy_import('sage.crypto.lfsr', ['lfsr_sequence', 'lfsr_autocorrelation', 'lfsr_connection_polynomial', - ]) + ]) del lazy_import diff --git a/src/sage/databases/all.py b/src/sage/databases/all.py index 871abbd5700..1b7e329a0f8 100644 --- a/src/sage/databases/all.py +++ b/src/sage/databases/all.py @@ -68,14 +68,14 @@ lazy_import('sage.databases.odlyzko', 'zeta_zeros') from sage.databases.db_modular_polynomials import \ - ClassicalModularPolynomialDatabase, \ - DedekindEtaModularPolynomialDatabase, \ - DedekindEtaModularCorrespondenceDatabase, \ - AtkinModularPolynomialDatabase, \ - AtkinModularCorrespondenceDatabase + ClassicalModularPolynomialDatabase, \ + DedekindEtaModularPolynomialDatabase, \ + DedekindEtaModularCorrespondenceDatabase, \ + AtkinModularPolynomialDatabase, \ + AtkinModularCorrespondenceDatabase from sage.databases.db_class_polynomials import \ - HilbertClassPolynomialDatabase + HilbertClassPolynomialDatabase lazy_import('sage.databases.cunningham_tables', 'cunningham_prime_factors') diff --git a/src/sage/dynamics/all.py b/src/sage/dynamics/all.py index 2502baaec8a..21b0bd54f9f 100644 --- a/src/sage/dynamics/all.py +++ b/src/sage/dynamics/all.py @@ -35,5 +35,6 @@ lazy_import('sage.dynamics.finite_dynamical_system', ['DiscreteDynamicalSystem']) -lazy_import('sage.dynamics', 'finite_dynamical_system_catalog', 'finite_dynamical_systems') +lazy_import('sage.dynamics', 'finite_dynamical_system_catalog', + 'finite_dynamical_systems') del lazy_import diff --git a/src/sage/ext/all__sagemath_categories.py b/src/sage/ext/all__sagemath_categories.py index 6210c1c60cb..ec13d6e405f 100644 --- a/src/sage/ext/all__sagemath_categories.py +++ b/src/sage/ext/all__sagemath_categories.py @@ -1,2 +1,2 @@ -from sage.ext.fast_callable import fast_callable -from sage.ext.fast_eval import fast_float +from sage.ext.fast_callable import fast_callable +from sage.ext.fast_eval import fast_float diff --git a/src/sage/functions/all.py b/src/sage/functions/all.py index 78faebe29e2..4e4c092bc0f 100644 --- a/src/sage/functions/all.py +++ b/src/sage/functions/all.py @@ -3,90 +3,92 @@ lazy_import('sage.functions.piecewise', 'piecewise') lazy_import('sage.functions.error', ['erf', 'erfc', 'erfi', 'erfinv', - 'fresnel_sin', 'fresnel_cos']) + 'fresnel_sin', 'fresnel_cos']) -from sage.functions.trig import ( sin, cos, sec, csc, cot, tan, - asin, acos, atan, - acot, acsc, asec, - arcsin, arccos, arctan, - arccot, arccsc, arcsec, - arctan2, atan2) +from sage.functions.trig import (sin, cos, sec, csc, cot, tan, + asin, acos, atan, + acot, acsc, asec, + arcsin, arccos, arctan, + arccot, arccsc, arcsec, + arctan2, atan2) -from sage.functions.hyperbolic import ( tanh, sinh, cosh, coth, sech, csch, - asinh, acosh, atanh, acoth, asech, acsch, - arcsinh, arccosh, arctanh, arccoth, arcsech, arccsch ) +from sage.functions.hyperbolic import (tanh, sinh, cosh, coth, sech, csch, + asinh, acosh, atanh, acoth, asech, acsch, + arcsinh, arccosh, arctanh, arccoth, arcsech, arccsch) -reciprocal_trig_functions = {'sec': cos, 'csc': sin, 'cot': tan, 'sech': cosh, 'csch': sinh, 'coth': tanh} +reciprocal_trig_functions = {'sec': cos, 'csc': sin, + 'cot': tan, 'sech': cosh, 'csch': sinh, 'coth': tanh} -from sage.functions.other import ( ceil, floor, abs_symbolic, sqrt, real_nth_root, - arg, real_part, real, frac, - factorial, binomial, - imag_part, imag, imaginary, conjugate, cases, - complex_root_of) +from sage.functions.other import (ceil, floor, abs_symbolic, sqrt, real_nth_root, + arg, real_part, real, frac, + factorial, binomial, + imag_part, imag, imaginary, conjugate, cases, + complex_root_of) -from sage.functions.log import (exp, exp_polar, log, ln, polylog, dilog, lambert_w, harmonic_number) +from sage.functions.log import (exp, exp_polar, log, ln, + polylog, dilog, lambert_w, harmonic_number) from sage.functions.transcendental import (zeta, zetaderiv, zeta_symmetric, hurwitz_zeta, - dickman_rho, stieltjes) + dickman_rho, stieltjes) from sage.functions.bessel import (bessel_I, bessel_J, bessel_K, bessel_Y, - Bessel, struve_H, struve_L, hankel1, hankel2, + Bessel, struve_H, struve_L, hankel1, hankel2, spherical_bessel_J, spherical_bessel_Y, spherical_hankel1, spherical_hankel2) from sage.functions.special import (spherical_harmonic, elliptic_e, - elliptic_f, elliptic_ec, elliptic_eu, - elliptic_kc, elliptic_pi, elliptic_j) + elliptic_f, elliptic_ec, elliptic_eu, + elliptic_kc, elliptic_pi, elliptic_j) from sage.functions.jacobi import (jacobi, inverse_jacobi, jacobi_nd, jacobi_ns, jacobi_nc, - jacobi_dn, jacobi_ds, jacobi_dc, jacobi_sn, jacobi_sd, - jacobi_sc, jacobi_cn, jacobi_cd, jacobi_cs, jacobi_am, - inverse_jacobi_nd, inverse_jacobi_ns, inverse_jacobi_nc, - inverse_jacobi_dn, inverse_jacobi_ds, inverse_jacobi_dc, - inverse_jacobi_sn, inverse_jacobi_sd, inverse_jacobi_sc, - inverse_jacobi_cn, inverse_jacobi_cd, inverse_jacobi_cs) + jacobi_dn, jacobi_ds, jacobi_dc, jacobi_sn, jacobi_sd, + jacobi_sc, jacobi_cn, jacobi_cd, jacobi_cs, jacobi_am, + inverse_jacobi_nd, inverse_jacobi_ns, inverse_jacobi_nc, + inverse_jacobi_dn, inverse_jacobi_ds, inverse_jacobi_dc, + inverse_jacobi_sn, inverse_jacobi_sd, inverse_jacobi_sc, + inverse_jacobi_cn, inverse_jacobi_cd, inverse_jacobi_cs) from sage.functions.orthogonal_polys import (chebyshev_T, - chebyshev_U, - gen_laguerre, - gen_legendre_P, - gen_legendre_Q, - hermite, - jacobi_P, - laguerre, - legendre_P, - legendre_Q, - ultraspherical, - gegenbauer, - krawtchouk, - meixner, - hahn) + chebyshev_U, + gen_laguerre, + gen_legendre_P, + gen_legendre_Q, + hermite, + jacobi_P, + laguerre, + legendre_P, + legendre_Q, + ultraspherical, + gegenbauer, + krawtchouk, + meixner, + hahn) from sage.functions.spike_function import spike_function from sage.functions.prime_pi import legendre_phi, partial_sieve_function, prime_pi from sage.functions.wigner import (wigner_3j, clebsch_gordan, racah, wigner_6j, - wigner_9j, gaunt) + wigner_9j, gaunt) from sage.functions.generalized import (dirac_delta, heaviside, unit_step, sgn, sign, - kronecker_delta) + kronecker_delta) from sage.functions.min_max import max_symbolic, min_symbolic from sage.functions.airy import airy_ai, airy_ai_prime, airy_bi, airy_bi_prime from sage.functions.exp_integral import (exp_integral_e, exp_integral_e1, log_integral, li, Li, - log_integral_offset, - sin_integral, cos_integral, Si, Ci, - sinh_integral, cosh_integral, Shi, Chi, - exponential_integral_1, Ei, exp_integral_ei) + log_integral_offset, + sin_integral, cos_integral, Si, Ci, + sinh_integral, cosh_integral, Shi, Chi, + exponential_integral_1, Ei, exp_integral_ei) from sage.functions.hypergeometric import hypergeometric, hypergeometric_M, hypergeometric_U from sage.functions.gamma import (gamma, psi, beta, log_gamma, - gamma_inc, gamma_inc_lower) + gamma_inc, gamma_inc_lower) Γ = gamma ψ = psi diff --git a/src/sage/geometry/all__sagemath_polyhedra.py b/src/sage/geometry/all__sagemath_polyhedra.py index d49257ff37d..0b1852de7a5 100644 --- a/src/sage/geometry/all__sagemath_polyhedra.py +++ b/src/sage/geometry/all__sagemath_polyhedra.py @@ -14,6 +14,7 @@ lazy_import('sage.geometry', 'lattice_polytope') lazy_import('sage.geometry', 'toric_plotter') lazy_import('sage.geometry.voronoi_diagram', 'VoronoiDiagram') -lazy_import('sage.geometry.hyperplane_arrangement.arrangement', 'HyperplaneArrangements') +lazy_import('sage.geometry.hyperplane_arrangement.arrangement', + 'HyperplaneArrangements') lazy_import('sage.geometry.hyperplane_arrangement.library', 'hyperplane_arrangements') del lazy_import diff --git a/src/sage/geometry/all__sagemath_symbolics.py b/src/sage/geometry/all__sagemath_symbolics.py index fb2ddf22675..fb690c97312 100644 --- a/src/sage/geometry/all__sagemath_symbolics.py +++ b/src/sage/geometry/all__sagemath_symbolics.py @@ -2,6 +2,6 @@ lazy_import('sage.geometry.hyperbolic_space.hyperbolic_interface', 'HyperbolicPlane') -from sage.geometry.riemannian_manifolds.all import * +from sage.geometry.riemannian_manifolds.all import * del lazy_import diff --git a/src/sage/geometry/polyhedron/all.py b/src/sage/geometry/polyhedron/all.py index dac1e2e5d0e..cda722f4d6b 100644 --- a/src/sage/geometry/polyhedron/all.py +++ b/src/sage/geometry/polyhedron/all.py @@ -2,5 +2,6 @@ from sage.misc.lazy_import import lazy_import lazy_import('sage.geometry.polyhedron.constructor', 'Polyhedron') lazy_import('sage.geometry.polyhedron.library', 'polytopes') -lazy_import('sage.geometry.polyhedron.combinatorial_polyhedron.base' , 'CombinatorialPolyhedron') +lazy_import('sage.geometry.polyhedron.combinatorial_polyhedron.base', + 'CombinatorialPolyhedron') del lazy_import diff --git a/src/sage/graphs/all.py b/src/sage/graphs/all.py index fd4c5457afd..58c96585dc6 100644 --- a/src/sage/graphs/all.py +++ b/src/sage/graphs/all.py @@ -4,7 +4,8 @@ lazy_import("sage.graphs.graph_generators", "graphs") lazy_import("sage.graphs.digraph_generators", "digraphs") lazy_import("sage.graphs.hypergraph_generators", "hypergraphs") -lazy_import("sage.graphs.graph_database", ["GraphDatabase", "GenericGraphQuery", "GraphQuery"]) +lazy_import("sage.graphs.graph_database", [ + "GraphDatabase", "GenericGraphQuery", "GraphQuery"]) from sage.graphs.graph import Graph from sage.graphs.digraph import DiGraph from sage.graphs.bipartite_graph import BipartiteGraph diff --git a/src/sage/groups/abelian_gps/all.py b/src/sage/groups/abelian_gps/all.py index 3a4b55e7e43..7efc7473356 100644 --- a/src/sage/groups/abelian_gps/all.py +++ b/src/sage/groups/abelian_gps/all.py @@ -2,7 +2,7 @@ all.py -- export of abelian groups to Sage """ -#***************************************************************************** +# ***************************************************************************** # # Sage: Open Source Mathematical Software # @@ -18,7 +18,7 @@ # The full text of the GPL is available at: # # http://www.gnu.org/licenses/ -#***************************************************************************** +# ***************************************************************************** from sage.groups.abelian_gps.all__sagemath_modules import * from sage.groups.abelian_gps.all__sagemath_gap import * diff --git a/src/sage/groups/abelian_gps/all__sagemath_modules.py b/src/sage/groups/abelian_gps/all__sagemath_modules.py index b4d50cbaf28..32a1f65f720 100644 --- a/src/sage/groups/abelian_gps/all__sagemath_modules.py +++ b/src/sage/groups/abelian_gps/all__sagemath_modules.py @@ -1,4 +1,4 @@ -#from dual_abelian_group import DualAbelianGroup +# from dual_abelian_group import DualAbelianGroup from sage.groups.abelian_gps.abelian_group import AbelianGroup, word_problem from sage.groups.abelian_gps.values import AbelianGroupWithValues diff --git a/src/sage/groups/all__sagemath_categories.py b/src/sage/groups/all__sagemath_categories.py index 960af07f9cc..18f110bd599 100644 --- a/src/sage/groups/all__sagemath_categories.py +++ b/src/sage/groups/all__sagemath_categories.py @@ -1,7 +1,7 @@ from sage.groups.all__sagemath_objects import * from sage.groups.generic import (discrete_log, discrete_log_rho, discrete_log_lambda, - linear_relation, multiple, multiples) + linear_relation, multiple, multiples) from sage.misc.lazy_import import lazy_import diff --git a/src/sage/groups/all__sagemath_groups.py b/src/sage/groups/all__sagemath_groups.py index 5f149199669..c27a9ca05c5 100644 --- a/src/sage/groups/all__sagemath_groups.py +++ b/src/sage/groups/all__sagemath_groups.py @@ -22,9 +22,11 @@ lazy_import('sage.groups.artin', 'ArtinGroup') lazy_import('sage.groups.raag', 'RightAngledArtinGroup') -lazy_import('sage.groups.semimonomial_transformations.semimonomial_transformation_group', 'SemimonomialTransformationGroup') +lazy_import('sage.groups.semimonomial_transformations.semimonomial_transformation_group', + 'SemimonomialTransformationGroup') lazy_import('sage.groups.group_exp', ['GroupExp', 'GroupExp_Class', 'GroupExpElement']) -lazy_import('sage.groups.group_semidirect_product', ['GroupSemidirectProduct', 'GroupSemidirectProductElement']) +lazy_import('sage.groups.group_semidirect_product', [ + 'GroupSemidirectProduct', 'GroupSemidirectProductElement']) del lazy_import diff --git a/src/sage/groups/perm_gps/all.py b/src/sage/groups/perm_gps/all.py index b1622efb65a..2cda7602d8c 100644 --- a/src/sage/groups/perm_gps/all.py +++ b/src/sage/groups/perm_gps/all.py @@ -1,20 +1,20 @@ from sage.groups.perm_gps.permgroup_named import (SymmetricGroup, AlternatingGroup, - DihedralGroup, SplitMetacyclicGroup, - SemidihedralGroup, CyclicPermutationGroup, - DiCyclicGroup, TransitiveGroup, - PGL, PSL, PSp, PSU, PGU, - MathieuGroup, KleinFourGroup, QuaternionGroup, - PrimitiveGroup, PrimitiveGroups, - SuzukiGroup, TransitiveGroups, - GeneralDihedralGroup, SmallPermutationGroup) + DihedralGroup, SplitMetacyclicGroup, + SemidihedralGroup, CyclicPermutationGroup, + DiCyclicGroup, TransitiveGroup, + PGL, PSL, PSp, PSU, PGU, + MathieuGroup, KleinFourGroup, QuaternionGroup, + PrimitiveGroup, PrimitiveGroups, + SuzukiGroup, TransitiveGroups, + GeneralDihedralGroup, SmallPermutationGroup) from sage.groups.perm_gps.permgroup import PermutationGroup, PermutationGroup_generic, PermutationGroup_subgroup, direct_product_permgroups from sage.groups.perm_gps.constructor import PermutationGroupElement from sage.groups.perm_gps.permgroup_morphism import (PermutationGroupMorphism as PermutationGroupMap, - PermutationGroupMorphism_im_gens, - PermutationGroupMorphism_id) + PermutationGroupMorphism_im_gens, + PermutationGroupMorphism_id) PermutationGroupMorphism = PermutationGroupMorphism_im_gens from sage.groups.perm_gps.cubegroup import CubeGroup, RubiksCube diff --git a/src/sage/interfaces/all.py b/src/sage/interfaces/all.py index fcd8b15731b..83100b2c3de 100644 --- a/src/sage/interfaces/all.py +++ b/src/sage/interfaces/all.py @@ -4,7 +4,7 @@ from sage.interfaces.gap import gap, gap_reset_workspace, Gap from sage.interfaces.gp import gp, gp_version, Gp # import problems -#from maxima_lib import maxima_lib +# from maxima_lib import maxima_lib from sage.interfaces.maxima import maxima, Maxima from sage.interfaces.singular import singular, singular_version, Singular diff --git a/src/sage/libs/mpmath/all.py b/src/sage/libs/mpmath/all.py index 63dd7c0e1fb..ea35faeb721 100644 --- a/src/sage/libs/mpmath/all.py +++ b/src/sage/libs/mpmath/all.py @@ -14,12 +14,13 @@ # Use mpmath internal functions for constants, to avoid unnecessary overhead _constants_funcs = { - 'glaisher': glaisher_fixed, - 'khinchin': khinchin_fixed, - 'twinprime': twinprime_fixed, - 'mertens': mertens_fixed + 'glaisher': glaisher_fixed, + 'khinchin': khinchin_fixed, + 'twinprime': twinprime_fixed, + 'mertens': mertens_fixed } + def eval_constant(name, ring): prec = ring.precision() + 20 return ring(_constants_funcs[name](prec)) >> prec diff --git a/src/sage/libs/ntl/all.py b/src/sage/libs/ntl/all.py index e9d4271879a..752ddf03899 100644 --- a/src/sage/libs/ntl/all.py +++ b/src/sage/libs/ntl/all.py @@ -29,12 +29,12 @@ from sage.libs.ntl.ntl_ZZ_pContext import ntl_ZZ_pContext as ZZ_pContext from sage.libs.ntl.ntl_ZZ_p import ( - ntl_ZZ_p as ZZ_p, - ntl_ZZ_p_random_element as ZZ_p_random ) + ntl_ZZ_p as ZZ_p, + ntl_ZZ_p_random_element as ZZ_p_random) from sage.libs.ntl.ntl_ZZX import ( - ntl_ZZX as ZZX, - zero_ZZX, one_ZZX ) + ntl_ZZX as ZZX, + zero_ZZX, one_ZZX) from sage.libs.ntl.ntl_ZZ_pX import ntl_ZZ_pX as ZZ_pX diff --git a/src/sage/libs/symmetrica/all.py b/src/sage/libs/symmetrica/all.py index b2914f4aab8..f69490654af 100644 --- a/src/sage/libs/symmetrica/all.py +++ b/src/sage/libs/symmetrica/all.py @@ -1,30 +1,30 @@ -#from symmetrica import * +# from symmetrica import * from sage.libs.symmetrica.symmetrica import start -#kostka +# kostka from sage.libs.symmetrica.symmetrica import kostka_number_symmetrica as kostka_number from sage.libs.symmetrica.symmetrica import kostka_tab_symmetrica as kostka_tab from sage.libs.symmetrica.symmetrica import kostka_tafel_symmetrica as kostka_tafel -#sab +# sab from sage.libs.symmetrica.symmetrica import dimension_symmetrization_symmetrica as dimension_symmetrization from sage.libs.symmetrica.symmetrica import bdg_symmetrica as bdg from sage.libs.symmetrica.symmetrica import sdg_symmetrica as sdg from sage.libs.symmetrica.symmetrica import odg_symmetrica as odg from sage.libs.symmetrica.symmetrica import specht_dg_symmetrica as specht_dg from sage.libs.symmetrica.symmetrica import ndg_symmetrica as ndg -#from symmetrica import glmndg_symmetrica as glmndg +# from symmetrica import glmndg_symmetrica as glmndg -#sc +# sc from sage.libs.symmetrica.symmetrica import chartafel_symmetrica as chartafel from sage.libs.symmetrica.symmetrica import charvalue_symmetrica as charvalue from sage.libs.symmetrica.symmetrica import kranztafel_symmetrica as kranztafel -#from symmetrica import c_ijk_sn_symmetrica as c_ijk_sn +# from symmetrica import c_ijk_sn_symmetrica as c_ijk_sn -#part +# part from sage.libs.symmetrica.symmetrica import strict_to_odd_part_symmetrica as strict_to_odd_part from sage.libs.symmetrica.symmetrica import odd_to_strict_part_symmetrica as odd_to_strict from sage.libs.symmetrica.symmetrica import q_core_symmetrica as q_core @@ -33,7 +33,7 @@ from sage.libs.symmetrica.symmetrica import random_partition_symmetrica as random_partition -#schur +# schur from sage.libs.symmetrica.symmetrica import outerproduct_schur_symmetrica as outerproduct_schur from sage.libs.symmetrica.symmetrica import dimension_schur_symmetrica as dimension_schur from sage.libs.symmetrica.symmetrica import part_part_skewschur_symmetrica as part_part_skewschur @@ -84,11 +84,11 @@ from sage.libs.symmetrica.symmetrica import scalarproduct_schur_symmetrica as scalarproduct_schur -#plet +# plet from sage.libs.symmetrica.symmetrica import plethysm_symmetrica as plethysm from sage.libs.symmetrica.symmetrica import schur_schur_plet_symmetrica as schur_schur_plet -#sb +# sb from sage.libs.symmetrica.symmetrica import mult_schubert_schubert_symmetrica as mult_schubert_schubert from sage.libs.symmetrica.symmetrica import t_SCHUBERT_POLYNOM_symmetrica as t_SCHUBERT_POLYNOM from sage.libs.symmetrica.symmetrica import t_POLYNOM_SCHUBERT_symmetrica as t_POLYNOM_SCHUBERT diff --git a/src/sage/matrix/all.py b/src/sage/matrix/all.py index 698b5f3c7c2..0902e081afb 100644 --- a/src/sage/matrix/all.py +++ b/src/sage/matrix/all.py @@ -1,8 +1,8 @@ from sage.misc.lazy_import import lazy_import from sage.matrix.matrix_space import MatrixSpace from sage.matrix.constructor import (matrix, Matrix, column_matrix, random_matrix, - diagonal_matrix, identity_matrix, block_matrix, - block_diagonal_matrix, jordan_block, zero_matrix, - ones_matrix, elementary_matrix, companion_matrix) + diagonal_matrix, identity_matrix, block_matrix, + block_diagonal_matrix, jordan_block, zero_matrix, + ones_matrix, elementary_matrix, companion_matrix) Mat = MatrixSpace del lazy_import diff --git a/src/sage/misc/all.py b/src/sage/misc/all.py index e22f9c60cda..c74ffe9727a 100644 --- a/src/sage/misc/all.py +++ b/src/sage/misc/all.py @@ -1,4 +1,4 @@ -#from sage.misc.all__sagemath_objects import * +# from sage.misc.all__sagemath_objects import * from sage.misc.all__sagemath_environment import * from sage.misc.all__sagemath_modules import * from sage.misc.all__sagemath_repl import * diff --git a/src/sage/misc/all__sagemath_categories.py b/src/sage/misc/all__sagemath_categories.py index 8145d387ae4..46be65b787c 100644 --- a/src/sage/misc/all__sagemath_categories.py +++ b/src/sage/misc/all__sagemath_categories.py @@ -12,66 +12,66 @@ from sage.misc.mrange import xmrange, mrange, xmrange_iter, mrange_iter, cartesian_product_iterator from sage.misc.defaults import (set_default_variable_name, - series_precision, set_series_precision) + series_precision, set_series_precision) from sage.misc.functional import (additive_order, - base_ring, - base_field, - basis, - category, - charpoly, - characteristic_polynomial, - coerce, - cyclotomic_polynomial, - decomposition, - denominator, - det, - dimension, - dim, - discriminant, - disc, - eta, - fcp, - gen, - gens, - hecke_operator, - image, - integral, integrate, - integral_closure, - interval, - xinterval, - is_commutative, - is_even, - is_integrally_closed, - is_field, - is_odd, - kernel, - krull_dimension, - lift, - log as log_b, - minimal_polynomial, - minpoly, - multiplicative_order, - ngens, - norm, - numerator, - numerical_approx, - n, N, - objgens, - objgen, - order, - rank, - regulator, - round, - quotient, - quo, - isqrt, - squarefree_part, - sqrt, - symbolic_sum as sum, - symbolic_prod as product, - transpose) + base_ring, + base_field, + basis, + category, + charpoly, + characteristic_polynomial, + coerce, + cyclotomic_polynomial, + decomposition, + denominator, + det, + dimension, + dim, + discriminant, + disc, + eta, + fcp, + gen, + gens, + hecke_operator, + image, + integral, integrate, + integral_closure, + interval, + xinterval, + is_commutative, + is_even, + is_integrally_closed, + is_field, + is_odd, + kernel, + krull_dimension, + lift, + log as log_b, + minimal_polynomial, + minpoly, + multiplicative_order, + ngens, + norm, + numerator, + numerical_approx, + n, N, + objgens, + objgen, + order, + rank, + regulator, + round, + quotient, + quo, + isqrt, + squarefree_part, + sqrt, + symbolic_sum as sum, + symbolic_prod as product, + transpose) from sage.misc.latex import LatexExpr, latex, view diff --git a/src/sage/misc/all__sagemath_modules.py b/src/sage/misc/all__sagemath_modules.py index 158f41ed686..8111aee2a29 100644 --- a/src/sage/misc/all__sagemath_modules.py +++ b/src/sage/misc/all__sagemath_modules.py @@ -6,12 +6,12 @@ from sage.misc.all__sagemath_categories import * from sage.misc.misc import (BackslashOperator, # Depends on sage.env -- can lower to sagemath-objects after splitting this module - exists, forall, is_iterator, - random_sublist, - pad_zeros, - SAGE_DB, - newton_method_sizes, compose, - nest) + exists, forall, is_iterator, + random_sublist, + pad_zeros, + SAGE_DB, + newton_method_sizes, compose, + nest) from sage.misc.temporary_file import tmp_dir, tmp_filename # Depends on sage.env diff --git a/src/sage/misc/all__sagemath_objects.py b/src/sage/misc/all__sagemath_objects.py index 30a76f38fab..2ae6508a5ea 100644 --- a/src/sage/misc/all__sagemath_objects.py +++ b/src/sage/misc/all__sagemath_objects.py @@ -6,7 +6,7 @@ from sage.misc.lazy_import import lazy_import from sage.misc.verbose import (set_verbose, set_verbose_files, - get_verbose_files, unset_verbose_files, get_verbose) + get_verbose_files, unset_verbose_files, get_verbose) lazy_import('sage.misc.verbose', 'verbose', deprecation=17815) from sage.misc.call import attrcall diff --git a/src/sage/misc/all__sagemath_repl.py b/src/sage/misc/all__sagemath_repl.py index 15074e16be1..2f638230b42 100644 --- a/src/sage/misc/all__sagemath_repl.py +++ b/src/sage/misc/all__sagemath_repl.py @@ -7,8 +7,8 @@ from sage.misc.banner import version lazy_import('sage.misc.sagedoc', ['browse_sage_doc', - 'search_src', 'search_def', 'search_doc', - 'tutorial', 'reference', 'manual', 'developer', - 'constructions', 'help']) + 'search_src', 'search_def', 'search_doc', + 'tutorial', 'reference', 'manual', 'developer', + 'constructions', 'help']) lazy_import('pydoc', 'help', 'python_help') diff --git a/src/sage/modular/all.py b/src/sage/modular/all.py index 75aa498109e..73048018c69 100644 --- a/src/sage/modular/all.py +++ b/src/sage/modular/all.py @@ -11,12 +11,12 @@ from sage.modular.abvar.all import * from sage.modular.dirichlet import (DirichletGroup, - kronecker_character, kronecker_character_upside_down, - trivial_character) + kronecker_character, kronecker_character_upside_down, + trivial_character) from sage.modular.arithgroup.all import (Gamma0, Gamma1, GammaH, Gamma, SL2Z, - ArithmeticSubgroup_Permutation, - CongruenceSubgroup, FareySymbol) + ArithmeticSubgroup_Permutation, + CongruenceSubgroup, FareySymbol) from sage.modular.cusps import Cusp, Cusps @@ -28,7 +28,7 @@ deprecation=(32647, 'removed from main namespace')) from sage.modular.etaproducts import (EtaGroup, EtaProduct, EtaGroupElement, - AllCusps, CuspFamily) + AllCusps, CuspFamily) lazy_import('sage.modular.multiple_zeta', ['Multizeta', 'Multizetas']) diff --git a/src/sage/modular/arithgroup/all.py b/src/sage/modular/arithgroup/all.py index 3e189a658c9..2915566b73c 100644 --- a/src/sage/modular/arithgroup/all.py +++ b/src/sage/modular/arithgroup/all.py @@ -13,7 +13,7 @@ lazy_import('sage.modular.arithgroup.arithgroup_perm', 'ArithmeticSubgroup_Permutation') from sage.modular.arithgroup.congroup import (degeneracy_coset_representatives_gamma0, - degeneracy_coset_representatives_gamma1) + degeneracy_coset_representatives_gamma1) from sage.modular.arithgroup.farey_symbol import Farey as FareySymbol del lazy_import diff --git a/src/sage/modular/btquotients/all.py b/src/sage/modular/btquotients/all.py index 5d11aed1020..1e96b2db99b 100644 --- a/src/sage/modular/btquotients/all.py +++ b/src/sage/modular/btquotients/all.py @@ -1,3 +1,3 @@ from sage.modular.btquotients.btquotient import BruhatTitsQuotient -#from pautomorphicform import pAdicAutomorphicForms -#from pautomorphicform import BruhatTitsHarmonicCocycles +# from pautomorphicform import pAdicAutomorphicForms +# from pautomorphicform import BruhatTitsHarmonicCocycles diff --git a/src/sage/modular/hecke/all.py b/src/sage/modular/hecke/all.py index bd5bb292c43..3c9230a2520 100644 --- a/src/sage/modular/hecke/all.py +++ b/src/sage/modular/hecke/all.py @@ -9,8 +9,8 @@ from sage.modular.hecke.algebra import HeckeAlgebra, is_HeckeAlgebra from sage.modular.hecke.morphism import (HeckeModuleMorphism, HeckeModuleMorphism_matrix, - is_HeckeModuleMorphism, - is_HeckeModuleMorphism_matrix) + is_HeckeModuleMorphism, + is_HeckeModuleMorphism_matrix) from sage.modular.hecke.element import HeckeModuleElement, is_HeckeModuleElement diff --git a/src/sage/modular/modform_hecketriangle/all.py b/src/sage/modular/modform_hecketriangle/all.py index 1d3ad5aa289..1c2bfeccdc6 100644 --- a/src/sage/modular/modform_hecketriangle/all.py +++ b/src/sage/modular/modform_hecketriangle/all.py @@ -16,14 +16,14 @@ from sage.modular.modform_hecketriangle.series_constructor import MFSeriesConstructor from sage.modular.modform_hecketriangle.graded_ring import (QuasiMeromorphicModularFormsRing, - QuasiWeakModularFormsRing, QuasiModularFormsRing, - QuasiCuspFormsRing, MeromorphicModularFormsRing, - WeakModularFormsRing, - ModularFormsRing, CuspFormsRing) + QuasiWeakModularFormsRing, QuasiModularFormsRing, + QuasiCuspFormsRing, MeromorphicModularFormsRing, + WeakModularFormsRing, + ModularFormsRing, CuspFormsRing) from sage.modular.modform_hecketriangle.space import (QuasiMeromorphicModularForms, QuasiWeakModularForms, - QuasiModularForms, QuasiCuspForms, - MeromorphicModularForms, WeakModularForms, ModularForms, - CuspForms, ZeroForm) + QuasiModularForms, QuasiCuspForms, + MeromorphicModularForms, WeakModularForms, ModularForms, + CuspForms, ZeroForm) from sage.modular.modform_hecketriangle.subspace import ModularFormsSubSpace diff --git a/src/sage/monoids/all.py b/src/sage/monoids/all.py index a08f8df0f43..7b4543dd34c 100644 --- a/src/sage/monoids/all.py +++ b/src/sage/monoids/all.py @@ -1,7 +1,7 @@ from sage.monoids.free_monoid import FreeMonoid from sage.monoids.string_monoid import (BinaryStrings, OctalStrings, HexadecimalStrings, - Radix64Strings, AlphabeticStrings) + Radix64Strings, AlphabeticStrings) from sage.monoids.free_abelian_monoid import FreeAbelianMonoid diff --git a/src/sage/plot/all.py b/src/sage/plot/all.py index 6d10496e11c..4d7d65ecf62 100644 --- a/src/sage/plot/all.py +++ b/src/sage/plot/all.py @@ -1,8 +1,8 @@ from sage.plot.graphics import Graphics from sage.plot.plot import (plot, graphics_array, multi_graphics, list_plot, - parametric_plot, polar_plot, plot_loglog, plot_semilogx, - plot_semilogy, list_plot_loglog, list_plot_semilogx, - list_plot_semilogy) + parametric_plot, polar_plot, plot_loglog, plot_semilogx, + plot_semilogy, list_plot_loglog, list_plot_semilogx, + list_plot_semilogy) from sage.plot.line import line, line2d from sage.plot.arrow import arrow, arrow2d from sage.plot.bar_chart import bar_chart @@ -22,7 +22,7 @@ from sage.plot.streamline_plot import streamline_plot from sage.misc.lazy_import import lazy_import -lazy_import("sage.plot.complex_plot",["complex_plot"]) +lazy_import("sage.plot.complex_plot", ["complex_plot"]) from sage.plot.arc import arc @@ -35,6 +35,7 @@ from sage.plot.step import plot_step_function lazy_import("sage.plot.hyperbolic_arc", "hyperbolic_arc") -lazy_import("sage.plot.hyperbolic_polygon", ["hyperbolic_triangle", "hyperbolic_polygon"]) +lazy_import("sage.plot.hyperbolic_polygon", [ + "hyperbolic_triangle", "hyperbolic_polygon"]) lazy_import("sage.plot.hyperbolic_regular_polygon", "hyperbolic_regular_polygon") del lazy_import diff --git a/src/sage/plot/plot3d/all.py b/src/sage/plot/plot3d/all.py index 4838f73c016..1fc801284f5 100644 --- a/src/sage/plot/plot3d/all.py +++ b/src/sage/plot/plot3d/all.py @@ -1,22 +1,22 @@ -from sage.plot.plot3d.plot3d import plot3d, cylindrical_plot3d, spherical_plot3d, Spherical, SphericalElevation, Cylindrical +from sage.plot.plot3d.plot3d import plot3d, cylindrical_plot3d, spherical_plot3d, Spherical, SphericalElevation, Cylindrical from sage.plot.plot3d.parametric_plot3d import parametric_plot3d -from sage.plot.plot3d.plot_field3d import plot_vector_field3d +from sage.plot.plot3d.plot_field3d import plot_vector_field3d # We lazy_import the following modules since they import numpy which slows down sage startup from sage.misc.lazy_import import lazy_import -lazy_import("sage.plot.plot3d.implicit_plot3d",["implicit_plot3d"]) +lazy_import("sage.plot.plot3d.implicit_plot3d", ["implicit_plot3d"]) -from sage.plot.plot3d.list_plot3d import list_plot3d +from sage.plot.plot3d.list_plot3d import list_plot3d from sage.plot.plot3d.revolution_plot3d import revolution_plot3d -from sage.plot.plot3d.platonic import tetrahedron, cube, octahedron, dodecahedron, icosahedron +from sage.plot.plot3d.platonic import tetrahedron, cube, octahedron, dodecahedron, icosahedron -from sage.plot.plot3d.shapes2 import sphere, line3d, polygon3d, polygons3d, point3d, text3d, bezier3d +from sage.plot.plot3d.shapes2 import sphere, line3d, polygon3d, polygons3d, point3d, text3d, bezier3d -from sage.plot.plot3d.shapes import arrow3d +from sage.plot.plot3d.shapes import arrow3d -#from shapes import Box, ColorCube, Cone, Cylinder, LineSegment, Arrow, Sphere, Torus, Text as Text3D -#from parametric_surface import ParametricSurface, MoebiusStrip -#from plot3d import plot3d, axes as axes3d +# from shapes import Box, ColorCube, Cone, Cylinder, LineSegment, Arrow, Sphere, Torus, Text as Text3D +# from parametric_surface import ParametricSurface, MoebiusStrip +# from plot3d import plot3d, axes as axes3d del lazy_import diff --git a/src/sage/probability/all.py b/src/sage/probability/all.py index 6ac09a72160..646f3d5a2ad 100644 --- a/src/sage/probability/all.py +++ b/src/sage/probability/all.py @@ -1,9 +1,9 @@ from sage.probability.random_variable import ( - DiscreteRandomVariable, - DiscreteProbabilitySpace ) + DiscreteRandomVariable, + DiscreteProbabilitySpace) from sage.probability.probability_distribution import ( RealDistribution, SphericalDistribution, - GeneralDiscreteDistribution ) + GeneralDiscreteDistribution) diff --git a/src/sage/quadratic_forms/all__sagemath_modules.py b/src/sage/quadratic_forms/all__sagemath_modules.py index a5430b77a9c..62516aead2a 100644 --- a/src/sage/quadratic_forms/all__sagemath_modules.py +++ b/src/sage/quadratic_forms/all__sagemath_modules.py @@ -5,7 +5,7 @@ from sage.quadratic_forms.quadratic_form import QuadraticForm, DiagonalQuadraticForm, quadratic_form_from_invariants from sage.quadratic_forms.random_quadraticform import (random_quadraticform, random_quadraticform_with_conditions, - random_ternaryqf, random_ternaryqf_with_conditions) + random_ternaryqf, random_ternaryqf_with_conditions) from sage.quadratic_forms.extras import least_quadratic_nonresidue, extend_to_primitive, is_triangular_number diff --git a/src/sage/quadratic_forms/all__sagemath_pari.py b/src/sage/quadratic_forms/all__sagemath_pari.py index eddc562392c..3217ed8cd0a 100644 --- a/src/sage/quadratic_forms/all__sagemath_pari.py +++ b/src/sage/quadratic_forms/all__sagemath_pari.py @@ -1,5 +1,5 @@ from sage.quadratic_forms.special_values import (gamma__exact, zeta__exact, QuadraticBernoulliNumber, - quadratic_L_function__exact, quadratic_L_function__numerical) + quadratic_L_function__exact, quadratic_L_function__numerical) from sage.quadratic_forms.genera.genus import Genus diff --git a/src/sage/repl/all.py b/src/sage/repl/all.py index 0b0ef116059..809cea7d7e5 100644 --- a/src/sage/repl/all.py +++ b/src/sage/repl/all.py @@ -5,8 +5,8 @@ lazy_import('sage.repl.interpreter', 'preparser') lazy_import('sage.repl.attach', [ - 'attach', 'detach', 'attached_files', 'load_attach_path', - 'reset_load_attach_path', 'load_attach_mode']) + 'attach', 'detach', 'attached_files', 'load_attach_path', + 'reset_load_attach_path', 'load_attach_mode']) from sage.repl.rich_output.display_manager import get_display_manager diff --git a/src/sage/repl/ipython_kernel/all_jupyter.py b/src/sage/repl/ipython_kernel/all_jupyter.py index 69bf0549da1..3e6eca3e004 100644 --- a/src/sage/repl/ipython_kernel/all_jupyter.py +++ b/src/sage/repl/ipython_kernel/all_jupyter.py @@ -5,5 +5,5 @@ from sage.all_cmdline import * from sage.repl.ipython_kernel.widgets_sagenb import (input_box, text_control, slider, - range_slider, checkbox, selector, input_grid, color_selector) + range_slider, checkbox, selector, input_grid, color_selector) from sage.repl.ipython_kernel.interact import interact diff --git a/src/sage/rings/all.py b/src/sage/rings/all.py index 82293bfd1c4..965f83d02f6 100644 --- a/src/sage/rings/all.py +++ b/src/sage/rings/all.py @@ -14,7 +14,7 @@ from sage.rings.all__sagemath_categories import * -### Following will go to all__sagemath_categories.py in #36566 +# Following will go to all__sagemath_categories.py in #36566 # Quotient from sage.rings.quotient_ring import QuotientRing @@ -37,7 +37,7 @@ from sage.rings.finite_rings.integer_mod import IntegerMod, Mod, mod Integers = IntegerModRing -### up to here (#36566) +# up to here (#36566) # Finite fields from sage.rings.finite_rings.all import * @@ -55,7 +55,7 @@ # Function field from sage.rings.function_field.all import * -### Following will go to all__sagemath_categories.py in #36566 +# Following will go to all__sagemath_categories.py in #36566 # Semirings from sage.rings.semirings.all import * @@ -66,12 +66,12 @@ # Lazy reals from sage.rings.real_lazy import RealLazyField, RLF, ComplexLazyField, CLF -### up to here (#36566) +# up to here (#36566) # Polynomial Rings and Polynomial Quotient Rings from sage.rings.polynomial.all import * -### Following will go to all__sagemath_categories.py in #36566 +# Following will go to all__sagemath_categories.py in #36566 # Power series rings from sage.rings.power_series_ring import PowerSeriesRing @@ -92,25 +92,26 @@ # Localization from sage.rings.localization import Localization -### up to here (#36566) +# up to here (#36566) # c-finite sequences from sage.rings.cfinite_sequence import CFiniteSequence, CFiniteSequences from sage.rings.fast_arith import prime_range -### Following will go to all__sagemath_categories.py in #36566 +# Following will go to all__sagemath_categories.py in #36566 # continued fractions from sage.rings.continued_fraction import (continued_fraction, continued_fraction_list) -### up to here (#36566) +# up to here (#36566) # asymptotic ring -#from sage.rings.asymptotic.all import * +# from sage.rings.asymptotic.all import * lazy_import('sage.rings.asymptotic.asymptotic_ring', 'AsymptoticRing') -lazy_import('sage.rings.asymptotic.asymptotic_expansion_generators', 'asymptotic_expansions') +lazy_import('sage.rings.asymptotic.asymptotic_expansion_generators', + 'asymptotic_expansions') # Register classes in numbers abc from sage.rings import numbers_abc diff --git a/src/sage/rings/all__sagemath_categories.py b/src/sage/rings/all__sagemath_categories.py index 04e818c55b0..7c69f137275 100644 --- a/src/sage/rings/all__sagemath_categories.py +++ b/src/sage/rings/all__sagemath_categories.py @@ -1,21 +1,21 @@ # Ring base classes from sage.rings.ring import (Ring, Field, CommutativeRing, IntegralDomain, - DedekindDomain, PrincipalIdealDomain, EuclideanDomain) + DedekindDomain, PrincipalIdealDomain, EuclideanDomain) # Ring element base classes from sage.structure.element import (CommutativeAlgebraElement, - RingElement, CommutativeRingElement, IntegralDomainElement, - DedekindDomainElement, PrincipalIdealDomainElement, - EuclideanDomainElement, FieldElement) + RingElement, CommutativeRingElement, IntegralDomainElement, + DedekindDomainElement, PrincipalIdealDomainElement, + EuclideanDomainElement, FieldElement) # Ideals from sage.rings.ideal import Ideal ideal = Ideal -### To be added in #36566: +# To be added in #36566: -#from sage.rings.finite_rings.all__sagemath_categories import * -#from sage.rings.function_field.all__sagemath_categories import * -#from sage.rings.number_field.all__sagemath_categories import * -#from sage.rings.padics.all__sagemath_categories import * -#from sage.rings.polynomial.all__sagemath_categories import * +# from sage.rings.finite_rings.all__sagemath_categories import * +# from sage.rings.function_field.all__sagemath_categories import * +# from sage.rings.number_field.all__sagemath_categories import * +# from sage.rings.padics.all__sagemath_categories import * +# from sage.rings.polynomial.all__sagemath_categories import * diff --git a/src/sage/rings/all__sagemath_flint.py b/src/sage/rings/all__sagemath_flint.py index 95373001294..098426b0e9b 100644 --- a/src/sage/rings/all__sagemath_flint.py +++ b/src/sage/rings/all__sagemath_flint.py @@ -13,19 +13,20 @@ # Algebraic numbers from sage.rings.qqbar import (AlgebraicRealField, AA, - AlgebraicReal, - AlgebraicField, QQbar, - AlgebraicNumber, - number_field_elements_from_algebraics) + AlgebraicReal, + AlgebraicField, QQbar, + AlgebraicNumber, + number_field_elements_from_algebraics) # Intervals from sage.rings.real_mpfi import (RealIntervalField, - RIF, - RealInterval) + RIF, + RealInterval) # Complex numbers from sage.rings.complex_interval_field import ComplexIntervalField -from sage.rings.complex_interval import (create_ComplexIntervalFieldElement as ComplexIntervalFieldElement) +from sage.rings.complex_interval import ( + create_ComplexIntervalFieldElement as ComplexIntervalFieldElement) from sage.misc.lazy_import import lazy_import diff --git a/src/sage/rings/all__sagemath_modules.py b/src/sage/rings/all__sagemath_modules.py index 3096135b7e0..c82909b5984 100644 --- a/src/sage/rings/all__sagemath_modules.py +++ b/src/sage/rings/all__sagemath_modules.py @@ -5,7 +5,7 @@ # Real numbers from sage.rings.real_mpfr import (RealField, RR, - create_RealNumber as RealNumber) # this is used by the preparser to wrap real literals -- very important. + create_RealNumber as RealNumber) # this is used by the preparser to wrap real literals -- very important. Reals = RealField # Complex numbers diff --git a/src/sage/rings/asymptotic/all.py b/src/sage/rings/asymptotic/all.py index ba428ed2240..27e4d289212 100644 --- a/src/sage/rings/asymptotic/all.py +++ b/src/sage/rings/asymptotic/all.py @@ -1,4 +1,5 @@ from sage.misc.lazy_import import lazy_import lazy_import('sage.rings.asymptotic.asymptotic_ring', 'AsymptoticRing') -lazy_import('sage.rings.asymptotic.asymptotic_expansion_generators', 'asymptotic_expansions') +lazy_import('sage.rings.asymptotic.asymptotic_expansion_generators', + 'asymptotic_expansions') del lazy_import diff --git a/src/sage/rings/finite_rings/all.py b/src/sage/rings/finite_rings/all.py index 92c168e2623..06187529bd6 100644 --- a/src/sage/rings/finite_rings/all.py +++ b/src/sage/rings/finite_rings/all.py @@ -2,7 +2,7 @@ Finite Fields """ -#***************************************************************************** +# ***************************************************************************** # Copyright (C) 2010 David Roe # William Stein # @@ -16,6 +16,6 @@ # The full text of the GPL is available at: # # http://www.gnu.org/licenses/ -#***************************************************************************** +# ***************************************************************************** from sage.rings.finite_rings.all__sagemath_categories import * diff --git a/src/sage/rings/number_field/all.py b/src/sage/rings/number_field/all.py index 72e0d56d1a0..73cf7750d43 100644 --- a/src/sage/rings/number_field/all.py +++ b/src/sage/rings/number_field/all.py @@ -1,6 +1,6 @@ from sage.rings.number_field.number_field import (NumberField, NumberFieldTower, CyclotomicField, QuadraticField, - is_fundamental_discriminant, is_real_place) + is_fundamental_discriminant, is_real_place) from sage.rings.number_field.number_field_element import NumberFieldElement from sage.rings.number_field.order import EquationOrder, GaussianIntegers, EisensteinIntegers @@ -9,8 +9,10 @@ lazy_import('sage.rings.number_field.totallyreal', 'enumerate_totallyreal_fields_prim') lazy_import('sage.rings.number_field.totallyreal_data', 'hermite_constant') -lazy_import('sage.rings.number_field.totallyreal_rel', 'enumerate_totallyreal_fields_all') -lazy_import('sage.rings.number_field.totallyreal_rel', 'enumerate_totallyreal_fields_rel') +lazy_import('sage.rings.number_field.totallyreal_rel', + 'enumerate_totallyreal_fields_all') +lazy_import('sage.rings.number_field.totallyreal_rel', + 'enumerate_totallyreal_fields_rel') from sage.rings.number_field.unit_group import UnitGroup diff --git a/src/sage/schemes/affine/all.py b/src/sage/schemes/affine/all.py index 31edc39276b..bae2e970277 100644 --- a/src/sage/schemes/affine/all.py +++ b/src/sage/schemes/affine/all.py @@ -2,7 +2,7 @@ all.py -- export of affine to Sage """ -#***************************************************************************** +# ***************************************************************************** # # Sage: Open Source Mathematical Software # @@ -18,7 +18,7 @@ # The full text of the GPL is available at: # # http://www.gnu.org/licenses/ -#***************************************************************************** +# ***************************************************************************** from sage.schemes.affine.affine_space import AffineSpace from sage.schemes.affine.affine_rational_point import enum_affine_rational_field, enum_affine_finite_field diff --git a/src/sage/schemes/all.py b/src/sage/schemes/all.py index bc5b7441628..ce3c29058fd 100644 --- a/src/sage/schemes/all.py +++ b/src/sage/schemes/all.py @@ -2,7 +2,7 @@ all.py -- export of schemes to Sage """ -#***************************************************************************** +# ***************************************************************************** # # Sage: Open Source Mathematical Software # @@ -18,7 +18,7 @@ # The full text of the GPL is available at: # # http://www.gnu.org/licenses/ -#***************************************************************************** +# ***************************************************************************** from sage.schemes.all__sagemath_categories import * from sage.schemes.all__sagemath_polyhedra import * diff --git a/src/sage/schemes/curves/all.py b/src/sage/schemes/curves/all.py index ec0af61d2f7..67f19a5dbbe 100644 --- a/src/sage/schemes/curves/all.py +++ b/src/sage/schemes/curves/all.py @@ -2,7 +2,7 @@ Plane curves """ -#***************************************************************************** +# ***************************************************************************** # # Sage: Open Source Mathematical Software # @@ -18,7 +18,7 @@ # The full text of the GPL is available at: # # http://www.gnu.org/licenses/ -#***************************************************************************** +# ***************************************************************************** from sage.schemes.curves.constructor import Curve diff --git a/src/sage/schemes/elliptic_curves/all.py b/src/sage/schemes/elliptic_curves/all.py index 0b79dee7dc8..35e49ae4806 100644 --- a/src/sage/schemes/elliptic_curves/all.py +++ b/src/sage/schemes/elliptic_curves/all.py @@ -2,7 +2,7 @@ Exported elliptic curves functionality """ -#***************************************************************************** +# ***************************************************************************** # Copyright (C) 2005 William Stein # # Distributed under the terms of the GNU General Public License (GPL) @@ -15,13 +15,13 @@ # The full text of the GPL is available at: # # http://www.gnu.org/licenses/ -#***************************************************************************** +# ***************************************************************************** from sage.schemes.elliptic_curves.constructor import (EllipticCurve, - EllipticCurve_from_c4c6, - EllipticCurve_from_j, - EllipticCurve_from_cubic, - EllipticCurves_with_good_reduction_outside_S) + EllipticCurve_from_c4c6, + EllipticCurve_from_j, + EllipticCurve_from_cubic, + EllipticCurves_with_good_reduction_outside_S) from sage.misc.lazy_import import lazy_import lazy_import('sage.schemes.elliptic_curves.jacobian', 'Jacobian') @@ -29,10 +29,10 @@ lazy_import('sage.schemes.elliptic_curves.ell_rational_field', ['cremona_curves', 'cremona_optimal_curves']) -from sage.schemes.elliptic_curves.cm import ( cm_orders, - cm_j_invariants, - cm_j_invariants_and_orders, - hilbert_class_polynomial ) +from sage.schemes.elliptic_curves.cm import (cm_orders, + cm_j_invariants, + cm_j_invariants_and_orders, + hilbert_class_polynomial) lazy_import('sage.schemes.elliptic_curves.ec_database', 'elliptic_curves') diff --git a/src/sage/schemes/hyperelliptic_curves/all.py b/src/sage/schemes/hyperelliptic_curves/all.py index e314dceb1e0..40c8b58e823 100644 --- a/src/sage/schemes/hyperelliptic_curves/all.py +++ b/src/sage/schemes/hyperelliptic_curves/all.py @@ -41,6 +41,7 @@ ['igusa_clebsch_invariants', 'absolute_igusa_invariants_kohel', 'absolute_igusa_invariants_wamelen', 'clebsch_invariants'], deprecation=28064) -from sage.schemes.hyperelliptic_curves.mestre import (Mestre_conic, HyperellipticCurve_from_invariants) +from sage.schemes.hyperelliptic_curves.mestre import ( + Mestre_conic, HyperellipticCurve_from_invariants) from sage.schemes.hyperelliptic_curves import monsky_washnitzer del lazy_import diff --git a/src/sage/schemes/jacobians/all.py b/src/sage/schemes/jacobians/all.py index ec769450947..f087d853e90 100644 --- a/src/sage/schemes/jacobians/all.py +++ b/src/sage/schemes/jacobians/all.py @@ -1 +1 @@ -#from abstract_jacobian import is_Jacobian, Jacobian +# from abstract_jacobian import is_Jacobian, Jacobian diff --git a/src/sage/schemes/projective/all.py b/src/sage/schemes/projective/all.py index 91c821115d1..665f57da9ee 100644 --- a/src/sage/schemes/projective/all.py +++ b/src/sage/schemes/projective/all.py @@ -2,7 +2,7 @@ all.py -- export of projective schemes to Sage """ -#***************************************************************************** +# ***************************************************************************** # # Sage: Open Source Mathematical Software # @@ -18,6 +18,6 @@ # The full text of the GPL is available at: # # http://www.gnu.org/licenses/ -#***************************************************************************** +# ***************************************************************************** from sage.schemes.projective.projective_space import ProjectiveSpace, is_ProjectiveSpace diff --git a/src/sage/sets/all.py b/src/sage/sets/all.py index 328fcfa96ac..8cdd85ed269 100644 --- a/src/sage/sets/all.py +++ b/src/sage/sets/all.py @@ -5,7 +5,7 @@ from sage.sets.non_negative_integers import NonNegativeIntegers from sage.sets.positive_integers import PositiveIntegers from sage.sets.finite_enumerated_set import FiniteEnumeratedSet -lazy_import('sage.sets.recursively_enumerated_set','RecursivelyEnumeratedSet') +lazy_import('sage.sets.recursively_enumerated_set', 'RecursivelyEnumeratedSet') from sage.sets.totally_ordered_finite_set import TotallyOrderedFiniteSet from sage.sets.disjoint_union_enumerated_sets import DisjointUnionEnumeratedSets from sage.sets.primes import Primes diff --git a/src/sage/stats/hmm/all.py b/src/sage/stats/hmm/all.py index d331f45b41c..e2880a402dc 100644 --- a/src/sage/stats/hmm/all.py +++ b/src/sage/stats/hmm/all.py @@ -8,6 +8,7 @@ # We lazy_import the following modules since they import numpy which slows down sage startup from sage.misc.lazy_import import lazy_import lazy_import("sage.stats.hmm.hmm", ["DiscreteHiddenMarkovModel"]) -lazy_import("sage.stats.hmm.chmm", ["GaussianHiddenMarkovModel","GaussianMixtureHiddenMarkovModel"]) +lazy_import("sage.stats.hmm.chmm", [ + "GaussianHiddenMarkovModel", "GaussianMixtureHiddenMarkovModel"]) lazy_import("sage.stats.hmm.distributions", ["GaussianMixtureDistribution"]) del lazy_import diff --git a/src/sage/structure/all.py b/src/sage/structure/all.py index df0114c8382..673a6488625 100644 --- a/src/sage/structure/all.py +++ b/src/sage/structure/all.py @@ -12,7 +12,7 @@ get_coercion_model, coercion_traceback, parent - ) +) from sage.structure.parent import Parent diff --git a/src/sage/symbolic/all.py b/src/sage/symbolic/all.py index 742f49146ca..8e1c9600409 100644 --- a/src/sage/symbolic/all.py +++ b/src/sage/symbolic/all.py @@ -1,6 +1,6 @@ from sage.symbolic.ring import SR from sage.symbolic.constants import (pi, e, NaN, golden_ratio, log2, euler_gamma, catalan, - khinchin, twinprime, mertens, glaisher) + khinchin, twinprime, mertens, glaisher) from sage.symbolic.expression import Expression, solve_diophantine, hold from sage.symbolic.callable import CallableSymbolicExpressionRing From 3c2fd607c4576bb831173d0e91bc522f15cdaa77 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Sun, 12 Nov 2023 11:09:46 -0800 Subject: [PATCH 020/140] sed -i.bak 's,http:,https:,g' src/sage/**/all*.py --- src/sage/algebras/all.py | 2 +- src/sage/algebras/lie_algebras/all.py | 2 +- src/sage/algebras/lie_conformal_algebras/all.py | 2 +- src/sage/databases/all.py | 2 +- src/sage/groups/abelian_gps/all.py | 2 +- src/sage/modular/abvar/all.py | 2 +- src/sage/modular/modform/all.py | 2 +- src/sage/modules/all.py | 2 +- src/sage/rings/finite_rings/all.py | 2 +- src/sage/schemes/affine/all.py | 2 +- src/sage/schemes/all.py | 2 +- src/sage/schemes/curves/all.py | 2 +- src/sage/schemes/elliptic_curves/all.py | 2 +- src/sage/schemes/projective/all.py | 2 +- src/sage/stats/hmm/all.py | 2 +- 15 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/sage/algebras/all.py b/src/sage/algebras/all.py index c923e42a887..ce4a3c44dcc 100644 --- a/src/sage/algebras/all.py +++ b/src/sage/algebras/all.py @@ -14,7 +14,7 @@ # # The full text of the GPL is available at: # -# http://www.gnu.org/licenses/ +# https://www.gnu.org/licenses/ # ***************************************************************************** from sage.algebras.all__sagemath_modules import * diff --git a/src/sage/algebras/lie_algebras/all.py b/src/sage/algebras/lie_algebras/all.py index 510bcb23f24..cf2fd88ac76 100644 --- a/src/sage/algebras/lie_algebras/all.py +++ b/src/sage/algebras/lie_algebras/all.py @@ -14,7 +14,7 @@ # # The full text of the GPL is available at: # -# http://www.gnu.org/licenses/ +# https://www.gnu.org/licenses/ # ***************************************************************************** from sage.misc.lazy_import import lazy_import diff --git a/src/sage/algebras/lie_conformal_algebras/all.py b/src/sage/algebras/lie_conformal_algebras/all.py index 14925d4ac08..17a13f01371 100644 --- a/src/sage/algebras/lie_conformal_algebras/all.py +++ b/src/sage/algebras/lie_conformal_algebras/all.py @@ -5,7 +5,7 @@ # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 2 of the License, or # (at your option) any later version. -# http://www.gnu.org/licenses/ +# https://www.gnu.org/licenses/ # ***************************************************************************** diff --git a/src/sage/databases/all.py b/src/sage/databases/all.py index 1b7e329a0f8..22fe796a0cb 100644 --- a/src/sage/databases/all.py +++ b/src/sage/databases/all.py @@ -5,7 +5,7 @@ * CremonaDatabase() - Cremona's tables of elliptic curves and related data. - * findstat -- The FindStat database (http://www.findstat.org/). + * findstat -- The FindStat database (https://www.findstat.org/). * JonesDatabase() -- returns the John Jones table of number fields with bounded ramification and degree <= 6. diff --git a/src/sage/groups/abelian_gps/all.py b/src/sage/groups/abelian_gps/all.py index 7efc7473356..a6c6c72899a 100644 --- a/src/sage/groups/abelian_gps/all.py +++ b/src/sage/groups/abelian_gps/all.py @@ -17,7 +17,7 @@ # # The full text of the GPL is available at: # -# http://www.gnu.org/licenses/ +# https://www.gnu.org/licenses/ # ***************************************************************************** from sage.groups.abelian_gps.all__sagemath_modules import * diff --git a/src/sage/modular/abvar/all.py b/src/sage/modular/abvar/all.py index fa744caa894..6ba2c77225d 100644 --- a/src/sage/modular/abvar/all.py +++ b/src/sage/modular/abvar/all.py @@ -1,7 +1,7 @@ ########################################################################### # Copyright (C) 2007 William Stein # # Distributed under the terms of the GNU General Public License (GPL) # -# http://www.gnu.org/licenses/ # +# https://www.gnu.org/licenses/ # ########################################################################### from sage.modular.abvar.constructor import J0, J1, JH, AbelianVariety diff --git a/src/sage/modular/modform/all.py b/src/sage/modular/modform/all.py index 5a108fce80d..6461e3c7083 100644 --- a/src/sage/modular/modform/all.py +++ b/src/sage/modular/modform/all.py @@ -3,7 +3,7 @@ # # Distributed under the terms of the GNU General Public License (GPL) # -# http://www.gnu.org/licenses/ +# https://www.gnu.org/licenses/ ######################################################################### from sage.modular.modform.constructor import ModularForms, CuspForms, EisensteinForms, Newforms, Newform diff --git a/src/sage/modules/all.py b/src/sage/modules/all.py index 2511d53d1e6..955a2c72d4c 100644 --- a/src/sage/modules/all.py +++ b/src/sage/modules/all.py @@ -10,7 +10,7 @@ # # The full text of the GPL is available at: # -# http://www.gnu.org/licenses/ +# https://www.gnu.org/licenses/ # ***************************************************************************** from sage.modules.free_module import FreeModule, VectorSpace, span diff --git a/src/sage/rings/finite_rings/all.py b/src/sage/rings/finite_rings/all.py index 06187529bd6..a3dbfe5764f 100644 --- a/src/sage/rings/finite_rings/all.py +++ b/src/sage/rings/finite_rings/all.py @@ -15,7 +15,7 @@ # # The full text of the GPL is available at: # -# http://www.gnu.org/licenses/ +# https://www.gnu.org/licenses/ # ***************************************************************************** from sage.rings.finite_rings.all__sagemath_categories import * diff --git a/src/sage/schemes/affine/all.py b/src/sage/schemes/affine/all.py index bae2e970277..e761ce307c9 100644 --- a/src/sage/schemes/affine/all.py +++ b/src/sage/schemes/affine/all.py @@ -17,7 +17,7 @@ # # The full text of the GPL is available at: # -# http://www.gnu.org/licenses/ +# https://www.gnu.org/licenses/ # ***************************************************************************** from sage.schemes.affine.affine_space import AffineSpace diff --git a/src/sage/schemes/all.py b/src/sage/schemes/all.py index ce3c29058fd..2aa1a51d1ab 100644 --- a/src/sage/schemes/all.py +++ b/src/sage/schemes/all.py @@ -17,7 +17,7 @@ # # The full text of the GPL is available at: # -# http://www.gnu.org/licenses/ +# https://www.gnu.org/licenses/ # ***************************************************************************** from sage.schemes.all__sagemath_categories import * diff --git a/src/sage/schemes/curves/all.py b/src/sage/schemes/curves/all.py index 67f19a5dbbe..49bea579013 100644 --- a/src/sage/schemes/curves/all.py +++ b/src/sage/schemes/curves/all.py @@ -17,7 +17,7 @@ # # The full text of the GPL is available at: # -# http://www.gnu.org/licenses/ +# https://www.gnu.org/licenses/ # ***************************************************************************** from sage.schemes.curves.constructor import Curve diff --git a/src/sage/schemes/elliptic_curves/all.py b/src/sage/schemes/elliptic_curves/all.py index 35e49ae4806..0701ab54a00 100644 --- a/src/sage/schemes/elliptic_curves/all.py +++ b/src/sage/schemes/elliptic_curves/all.py @@ -14,7 +14,7 @@ # # The full text of the GPL is available at: # -# http://www.gnu.org/licenses/ +# https://www.gnu.org/licenses/ # ***************************************************************************** from sage.schemes.elliptic_curves.constructor import (EllipticCurve, diff --git a/src/sage/schemes/projective/all.py b/src/sage/schemes/projective/all.py index 665f57da9ee..b9e210c8ae0 100644 --- a/src/sage/schemes/projective/all.py +++ b/src/sage/schemes/projective/all.py @@ -17,7 +17,7 @@ # # The full text of the GPL is available at: # -# http://www.gnu.org/licenses/ +# https://www.gnu.org/licenses/ # ***************************************************************************** from sage.schemes.projective.projective_space import ProjectiveSpace, is_ProjectiveSpace diff --git a/src/sage/stats/hmm/all.py b/src/sage/stats/hmm/all.py index e2880a402dc..4666e022fac 100644 --- a/src/sage/stats/hmm/all.py +++ b/src/sage/stats/hmm/all.py @@ -2,7 +2,7 @@ # Copyright (C) 2010 William Stein # Distributed under the terms of the GNU General Public License (GPL), v2+. # The full text of the GPL is available at: -# http://www.gnu.org/licenses/ +# https://www.gnu.org/licenses/ ############################################################################# # We lazy_import the following modules since they import numpy which slows down sage startup From d62bed88a6eb0f162b36deb5b50e7906182fc0ec Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Sun, 12 Nov 2023 11:33:40 -0800 Subject: [PATCH 021/140] Fix errors from 'sage -tox -e pycodestyle -- --ignore E402 src/sage/**/all*.py' --- src/sage/all.py | 4 ---- src/sage/all__sagemath_repl.py | 3 ++- src/sage/combinat/all__sagemath_combinat.py | 5 ++++- src/sage/misc/all.py | 4 +++- 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/sage/all.py b/src/sage/all.py index 5bead6ff7ff..da70600a025 100644 --- a/src/sage/all.py +++ b/src/sage/all.py @@ -57,13 +57,9 @@ import operator import math -################ end setup warnings ############################### - # includes .all__sagemath_objects, .all__sagemath_environment from sage.all__sagemath_repl import * -################################################################### - # This import also sets up the interrupt handler from cysignals.signals import (AlarmInterrupt, SignalError, sig_on_reset as sig_on_count) diff --git a/src/sage/all__sagemath_repl.py b/src/sage/all__sagemath_repl.py index 6ef86e4dd0e..631b044152f 100644 --- a/src/sage/all__sagemath_repl.py +++ b/src/sage/all__sagemath_repl.py @@ -1,4 +1,5 @@ -############ setup warning filters before importing Sage stuff #### +# Set up warning filters before importing Sage stuff + import sys import warnings diff --git a/src/sage/combinat/all__sagemath_combinat.py b/src/sage/combinat/all__sagemath_combinat.py index 3d73df44d28..fd6658a3ec0 100644 --- a/src/sage/combinat/all__sagemath_combinat.py +++ b/src/sage/combinat/all__sagemath_combinat.py @@ -49,7 +49,10 @@ lazy_import('sage.combinat.skew_partition', ['SkewPartition', 'SkewPartitions']) # Partition algebra -from sage.combinat.partition_algebra import SetPartitionsAk, SetPartitionsPk, SetPartitionsTk, SetPartitionsIk, SetPartitionsBk, SetPartitionsSk, SetPartitionsRk, SetPartitionsPRk +from sage.combinat.partition_algebra import (SetPartitionsAk, SetPartitionsPk, + SetPartitionsTk, SetPartitionsIk, + SetPartitionsBk, SetPartitionsSk, + SetPartitionsRk, SetPartitionsPRk) # Raising operators lazy_import('sage.combinat.partition_shifting_algebras', 'ShiftingOperatorAlgebra') diff --git a/src/sage/misc/all.py b/src/sage/misc/all.py index c74ffe9727a..dfa47c89ca6 100644 --- a/src/sage/misc/all.py +++ b/src/sage/misc/all.py @@ -27,7 +27,9 @@ lazy_import("sage.misc.cython", "cython_compile", "cython") # Following will go to all__sagemath_repl.py in #36566 -from sage.misc.explain_pickle import explain_pickle, unpickle_newobj, unpickle_build, unpickle_instantiate, unpickle_persistent, unpickle_extension, unpickle_appends +from sage.misc.explain_pickle import (explain_pickle, unpickle_newobj, unpickle_build, + unpickle_instantiate, unpickle_persistent, + unpickle_extension, unpickle_appends) lazy_import('sage.misc.inline_fortran', 'fortran') From 94cca3fca29813b9298786a18a3f4d9fd42969e2 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Sun, 12 Nov 2023 19:57:33 -0800 Subject: [PATCH 022/140] src/doc/en/reference/calculus/index.rst: Add sage.calculus.expr to toctree --- src/doc/en/reference/calculus/index.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/src/doc/en/reference/calculus/index.rst b/src/doc/en/reference/calculus/index.rst index 89174c4a062..0f451a50613 100644 --- a/src/doc/en/reference/calculus/index.rst +++ b/src/doc/en/reference/calculus/index.rst @@ -66,6 +66,7 @@ Internal functionality supporting calculus sage/symbolic/expression sage/symbolic/callable + sage/calculus/expr sage/symbolic/assumptions sage/symbolic/relation sage/calculus/calculus From a0c821cffe993e0f443f2a201545c60f842e0ed2 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Mon, 13 Nov 2023 14:51:11 -0800 Subject: [PATCH 023/140] src/sage/calculus/expr.py: Move imports from method to module --- src/sage/calculus/expr.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/sage/calculus/expr.py b/src/sage/calculus/expr.py index 236b46a94d9..0aa62851d24 100644 --- a/src/sage/calculus/expr.py +++ b/src/sage/calculus/expr.py @@ -3,6 +3,9 @@ """ from sage.misc.lazy_import import lazy_import +from sage.structure.element import is_Matrix +from sage.symbolic.expression import Expression +from sage.symbolic.ring import SR lazy_import('sage.modules.free_module_element', ['vector', 'FreeModuleElement']) lazy_import('sage.matrix.constructor', 'matrix') @@ -163,10 +166,6 @@ def symbolic_expression(x): TypeError: unable to convert to a symbolic expression """ - from sage.structure.element import is_Matrix - from sage.symbolic.expression import Expression - from sage.symbolic.ring import SR - if isinstance(x, Expression): return x elif hasattr(x, '_symbolic_'): From 8de494c640b890455ba22d53bceb3c8b3de4a17e Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Mon, 13 Nov 2023 14:53:54 -0800 Subject: [PATCH 024/140] for a in $(git --no-pager grep -l install_doc src/sage/**/all*.py); do if ! grep -q 'del install_doc' $a; then echo 'del install_doc' >> $a; fi; done --- src/sage/categories/all.py | 1 + src/sage/combinat/all.py | 1 + src/sage/combinat/chas/all.py | 1 + src/sage/combinat/crystals/all.py | 1 + src/sage/combinat/designs/all.py | 1 + src/sage/combinat/path_tableaux/all.py | 1 + src/sage/combinat/posets/all.py | 2 ++ src/sage/combinat/rigged_configurations/all.py | 1 + src/sage/combinat/root_system/all.py | 1 + src/sage/combinat/sf/all.py | 1 + src/sage/combinat/species/all.py | 1 + src/sage/dynamics/all.py | 1 + src/sage/matroids/all.py | 1 + src/sage/modules/with_basis/all.py | 1 + 14 files changed, 15 insertions(+) diff --git a/src/sage/categories/all.py b/src/sage/categories/all.py index 9904917ac0a..a0e1ce94577 100644 --- a/src/sage/categories/all.py +++ b/src/sage/categories/all.py @@ -156,3 +156,4 @@ # lie conformal algebras lazy_import('sage.categories.lie_conformal_algebras', 'LieConformalAlgebras') del lazy_import +del install_doc diff --git a/src/sage/combinat/all.py b/src/sage/combinat/all.py index dcd327b4d1d..54c18fa88b4 100644 --- a/src/sage/combinat/all.py +++ b/src/sage/combinat/all.py @@ -60,3 +60,4 @@ from sage.combinat.all__sagemath_modules import * from sage.combinat.all__sagemath_graphs import * del lazy_import +del install_doc diff --git a/src/sage/combinat/chas/all.py b/src/sage/combinat/chas/all.py index f92d84aeffb..cc4da145e9a 100644 --- a/src/sage/combinat/chas/all.py +++ b/src/sage/combinat/chas/all.py @@ -19,3 +19,4 @@ lazy_import('sage.combinat.chas.fsym', ['FreeSymmetricFunctions']) lazy_import('sage.combinat.chas.wqsym', ['WordQuasiSymmetricFunctions']) del lazy_import +del install_doc diff --git a/src/sage/combinat/crystals/all.py b/src/sage/combinat/crystals/all.py index bfe319bd10c..be8576c0e02 100644 --- a/src/sage/combinat/crystals/all.py +++ b/src/sage/combinat/crystals/all.py @@ -29,3 +29,4 @@ lazy_import('sage.combinat.crystals', 'catalog', 'crystals') del lazy_import +del install_doc diff --git a/src/sage/combinat/designs/all.py b/src/sage/combinat/designs/all.py index d27679a09a1..bf00b490c3b 100644 --- a/src/sage/combinat/designs/all.py +++ b/src/sage/combinat/designs/all.py @@ -54,3 +54,4 @@ from sage.combinat.designs import design_catalog as designs del lazy_import +del install_doc diff --git a/src/sage/combinat/path_tableaux/all.py b/src/sage/combinat/path_tableaux/all.py index 42a2e8ca4a5..e0dcaf67bf7 100644 --- a/src/sage/combinat/path_tableaux/all.py +++ b/src/sage/combinat/path_tableaux/all.py @@ -10,3 +10,4 @@ # install the docstring of this module to the containing package from sage.misc.namespace_package import install_doc install_doc(__package__, __doc__) +del install_doc diff --git a/src/sage/combinat/posets/all.py b/src/sage/combinat/posets/all.py index 3fd43f61938..b608b0094d1 100644 --- a/src/sage/combinat/posets/all.py +++ b/src/sage/combinat/posets/all.py @@ -41,3 +41,5 @@ from sage.combinat.posets.lattices import LatticePoset, MeetSemilattice, JoinSemilattice from sage.combinat.posets.poset_examples import posets, Posets + +del install_doc diff --git a/src/sage/combinat/rigged_configurations/all.py b/src/sage/combinat/rigged_configurations/all.py index f56543510b1..e068cb4aed6 100644 --- a/src/sage/combinat/rigged_configurations/all.py +++ b/src/sage/combinat/rigged_configurations/all.py @@ -42,3 +42,4 @@ lazy_import('sage.combinat.rigged_configurations.rigged_configurations', 'RiggedConfigurations') del lazy_import +del install_doc diff --git a/src/sage/combinat/root_system/all.py b/src/sage/combinat/root_system/all.py index 935e6ad73cc..bb55e491b44 100644 --- a/src/sage/combinat/root_system/all.py +++ b/src/sage/combinat/root_system/all.py @@ -143,3 +143,4 @@ lazy_import('sage.combinat.root_system.integrable_representations', 'IntegrableRepresentation') del lazy_import +del install_doc diff --git a/src/sage/combinat/sf/all.py b/src/sage/combinat/sf/all.py index b693ae74ee8..daa673af502 100644 --- a/src/sage/combinat/sf/all.py +++ b/src/sage/combinat/sf/all.py @@ -46,3 +46,4 @@ 'AugmentedLatticeDiagramFilling', 'LatticeDiagram']) del lazy_import +del install_doc diff --git a/src/sage/combinat/species/all.py b/src/sage/combinat/species/all.py index 6bda0eab5db..58bfc1a756f 100644 --- a/src/sage/combinat/species/all.py +++ b/src/sage/combinat/species/all.py @@ -48,3 +48,4 @@ lazy_import("sage.combinat.species.recursive_species", "CombinatorialSpecies") lazy_import("sage.combinat.species", "library", as_="species") del lazy_import +del install_doc diff --git a/src/sage/dynamics/all.py b/src/sage/dynamics/all.py index 21b0bd54f9f..fddc4e83a98 100644 --- a/src/sage/dynamics/all.py +++ b/src/sage/dynamics/all.py @@ -38,3 +38,4 @@ lazy_import('sage.dynamics', 'finite_dynamical_system_catalog', 'finite_dynamical_systems') del lazy_import +del install_doc diff --git a/src/sage/matroids/all.py b/src/sage/matroids/all.py index 6907ccfba8d..5a9a4805e41 100644 --- a/src/sage/matroids/all.py +++ b/src/sage/matroids/all.py @@ -11,3 +11,4 @@ lazy_import('sage.matroids.constructor', 'Matroid') lazy_import('sage.matroids', 'matroids_catalog', 'matroids') del lazy_import +del install_doc diff --git a/src/sage/modules/with_basis/all.py b/src/sage/modules/with_basis/all.py index 1f352bcc768..6bfc5d5f6d1 100644 --- a/src/sage/modules/with_basis/all.py +++ b/src/sage/modules/with_basis/all.py @@ -11,3 +11,4 @@ # install the docstring of this module to the containing package from sage.misc.namespace_package import install_doc install_doc(__package__, __doc__) +del install_doc From 7067c124b0b2403cca9ca73e7de08e9c032a053e Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Mon, 13 Nov 2023 15:17:39 -0800 Subject: [PATCH 025/140] src/sage/combinat/all.py: Also del install_dict --- src/sage/combinat/all.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sage/combinat/all.py b/src/sage/combinat/all.py index 54c18fa88b4..4bdd5a6bad0 100644 --- a/src/sage/combinat/all.py +++ b/src/sage/combinat/all.py @@ -60,4 +60,5 @@ from sage.combinat.all__sagemath_modules import * from sage.combinat.all__sagemath_graphs import * del lazy_import +del install_dict del install_doc From 1d735ffa060ee022392d8ff9aa38dbbf39786934 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Wed, 29 Nov 2023 13:41:26 -0800 Subject: [PATCH 026/140] src/sage/arith/all.py: Fix merge --- src/sage/arith/all.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/sage/arith/all.py b/src/sage/arith/all.py index 7bc6ccec7f6..c7bcd7224f6 100644 --- a/src/sage/arith/all.py +++ b/src/sage/arith/all.py @@ -26,8 +26,6 @@ lazy_import("sage.arith.misc", ("Sigma", "Moebius", "Euler_Phi"), deprecation=30322) -from sage.arith.functions import lcm - from sage.arith.functions import lcm LCM = lcm From 1a7155619605066b6feba0f2a1451dac8c4a8e8b Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Sat, 23 Dec 2023 12:02:27 -0800 Subject: [PATCH 027/140] src/pyproject.toml.m4: Merge all metadata from src/setup.cfg.m4, remove src/setup.cfg.m4, update docs --- bootstrap | 3 +- build/bin/write-dockerfile.sh | 2 +- pkgs/sagemath-standard/setup.cfg | 1 - pkgs/sagemath-standard/setup.cfg.m4 | 1 - pkgs/sagemath-standard/tox.ini | 4 +- src/Pipfile.m4 | 8 +- src/doc/en/developer/coding_basics.rst | 4 +- src/doc/en/developer/coding_in_python.rst | 5 +- .../en/developer/packaging_sage_library.rst | 25 +-- src/pyproject.toml.m4 | 164 ++++++++++++++++-- src/setup.cfg.m4 | 133 -------------- 11 files changed, 175 insertions(+), 175 deletions(-) delete mode 120000 pkgs/sagemath-standard/setup.cfg delete mode 120000 pkgs/sagemath-standard/setup.cfg.m4 delete mode 100644 src/setup.cfg.m4 diff --git a/bootstrap b/bootstrap index 5070b5df44a..b068431c14b 100755 --- a/bootstrap +++ b/bootstrap @@ -232,8 +232,7 @@ save () { src/environment-optional-3.[89].yml src/environment-optional-3.1[0-9].yml \ src/Pipfile \ src/pyproject.toml \ - src/requirements.txt \ - src/setup.cfg + src/requirements.txt # Update version echo "$NEWCONFVERSION" >$PKG/package-version.txt diff --git a/build/bin/write-dockerfile.sh b/build/bin/write-dockerfile.sh index 104f7c19b31..a6d8af24843 100755 --- a/build/bin/write-dockerfile.sh +++ b/build/bin/write-dockerfile.sh @@ -225,7 +225,7 @@ $ADD Makefile VERSION.txt COPYING.txt condarc.yml README.md bootstrap bootstrap- $ADD config/config.rpath config/config.rpath $ADD src/doc/bootstrap src/doc/bootstrap $ADD src/bin src/bin -$ADD src/Pipfile.m4 src/pyproject.toml.m4 src/requirements.txt.m4 src/setup.cfg.m4 src/VERSION.txt src/ +$ADD src/Pipfile.m4 src/pyproject.toml.m4 src/requirements.txt.m4 src/VERSION.txt src/ $ADD m4 ./m4 $ADD pkgs pkgs $ADD build ./build diff --git a/pkgs/sagemath-standard/setup.cfg b/pkgs/sagemath-standard/setup.cfg deleted file mode 120000 index ba9b315730a..00000000000 --- a/pkgs/sagemath-standard/setup.cfg +++ /dev/null @@ -1 +0,0 @@ -../../src/setup.cfg \ No newline at end of file diff --git a/pkgs/sagemath-standard/setup.cfg.m4 b/pkgs/sagemath-standard/setup.cfg.m4 deleted file mode 120000 index 8934d7b5955..00000000000 --- a/pkgs/sagemath-standard/setup.cfg.m4 +++ /dev/null @@ -1 +0,0 @@ -../../src/setup.cfg.m4 \ No newline at end of file diff --git a/pkgs/sagemath-standard/tox.ini b/pkgs/sagemath-standard/tox.ini index 6aae1ef1bfa..fcd32d0764b 100644 --- a/pkgs/sagemath-standard/tox.ini +++ b/pkgs/sagemath-standard/tox.ini @@ -17,7 +17,7 @@ [tox] envlist = # Build and test without using the concrete dependencies specified by requirements.txt, - # using the dependencies declared in pyproject.toml and setup.cfg (install-requires) only: + # using the dependencies declared in pyproject.toml (build-system requires, dependencies) only: # Still use ONLY the wheels built and stored by the Sage distribution (no PyPI). # # ./sage -sh -c '(cd pkgs/sagemath-standard && tox -v -v -v -e sagepython-sagewheels-nopypi-norequirements)' @@ -45,7 +45,7 @@ envlist = # # ./sage -sh -c '(cd pkgs/sagemath-standard && tox -v -v -v -e sagepython-sagewheels-pipenv-dist)' # - # Build using the dependencies declared in pyproject.toml and setup.cfg (install-requires) only. + # Build using the dependencies declared in pyproject.toml (build-system requires, dependencies) only: # Use the wheels built and stored by the Sage distribution, # and additionally allow packages from PyPI. # diff --git a/src/Pipfile.m4 b/src/Pipfile.m4 index feca57f7de9..d03a2a12814 100644 --- a/src/Pipfile.m4 +++ b/src/Pipfile.m4 @@ -6,8 +6,8 @@ url = "https://pypi.org/simple" verify_ssl = true [dev-packages] -## We do not list packages that are already declared as install_requires -## in setup.cfg +## We do not list packages that are already declared as dependencies (install_requires) +## in pyproject.toml pycodestyle = "*" tox = "*" pytest = "*" @@ -15,8 +15,8 @@ rope = "*" six = "*" [packages] -## We do not list packages that are already declared as install_requires -## in setup.cfg +## We do not list packages that are already declared as dependencies (install_requires) +## in pyproject.toml [packages.e1839a8] path = "." diff --git a/src/doc/en/developer/coding_basics.rst b/src/doc/en/developer/coding_basics.rst index 0ef64de57e8..c7dbec401e0 100644 --- a/src/doc/en/developer/coding_basics.rst +++ b/src/doc/en/developer/coding_basics.rst @@ -174,8 +174,8 @@ of the following places: file = os.path.join(SAGE_EXTCODE, 'directory', 'file') In both cases, the files must be listed (explicitly or via wildcards) in -the section ``options.package_data`` of the file -``SAGE_ROOT/pkgs/sagemath-standard/setup.cfg.m4`` (or the corresponding +the section ``[tool.setuptools.package-data]`` of the file +``SAGE_ROOT/pkgs/sagemath-standard/pyproject.toml.m4`` (or the corresponding file of another distribution). diff --git a/src/doc/en/developer/coding_in_python.rst b/src/doc/en/developer/coding_in_python.rst index e39a3f72c4d..1a257e98548 100644 --- a/src/doc/en/developer/coding_in_python.rst +++ b/src/doc/en/developer/coding_in_python.rst @@ -13,8 +13,9 @@ Python language standard Sage library code needs to be compatible with all versions of Python that Sage supports. The information regarding the supported versions -can be found in the files ``build/pkgs/python3/spkg-configure.m4`` and -``src/setup.cfg.m4``. +can be found in the files ``build/pkgs/python3/spkg-configure.m4`` +(for the Sage distribution), ``m4/pyproject_toml_metadata.m4`` (for +the Sage library and most other distribution packages in ``pkgs/``). Python 3.9 is the oldest supported version. Hence, all language and library features that are available in Python 3.9 can diff --git a/src/doc/en/developer/packaging_sage_library.rst b/src/doc/en/developer/packaging_sage_library.rst index d5f5a3dac4b..cd6e365ca62 100644 --- a/src/doc/en/developer/packaging_sage_library.rst +++ b/src/doc/en/developer/packaging_sage_library.rst @@ -174,8 +174,7 @@ The source directory of a distribution package, such as $ ./sage --fixdistributions --set all --from-egg-info -- `pyproject.toml `_, - `setup.cfg `_, +- `pyproject.toml `_ and `requirements.txt `_ -- standard Python packaging metadata, declaring the distribution name, dependencies, etc. @@ -288,8 +287,9 @@ modules must be part of the distribution, or provided by another distribution -- which then must be declared as a run-time dependency. *Declaring run-time dependencies:* These dependencies are declared in -``setup.cfg`` (generated from ``setup.cfg.m4``) as -`install_requires `_. +``pyproject.toml`` (generated from ``pyproject.toml.m4``) as +`[project] dependencies `_ (in the older terminology of ``setup.cfg`` and ``setup.py``, +these dependencies were known as ``install_requires``). *Reducing module-level run-time dependencies:* @@ -467,14 +467,17 @@ features, which will only be working if the user also has installed **sagemath-symbolics**. *Declaring optional run-time dependencies:* It is possible to declare -such optional dependencies as `extras_require `_ in ``setup.cfg`` -(generated from ``setup.cfg.m4``). This is a very limited mechanism +such dependencies as `[project.optional-dependencies] `_ in ``pyproject.toml`` +(generated from ``pyproject.toml.m4``). +(In the older terminology of ``setup.cfg`` and ``setup.py``, +these optional dependencies were known as ``extras_require``.) +This is a very limited mechanism -- in particular it does not affect the build phase of the distribution in any way. It basically only provides a way to give a nickname to a distribution that can be installed as an add-on. -In our example, we could declare an ``extras_require`` so that users -could use ``pip install sagemath-coding[symbolics]``. +In our example, we could declare an optional dependency so that users +could use ``pip install "sagemath-coding[symbolics]"``. Doctest-only dependencies @@ -516,7 +519,7 @@ The version information for dependencies comes from the files ``build/pkgs/*/package-version.txt``. We use the `m4 `_ macro processor to insert the version information in the generated files -``pyproject.toml``, ``setup.cfg``, ``requirements.txt``. +``pyproject.toml`` and ``requirements.txt``. Hierarchy of distribution packages @@ -546,8 +549,8 @@ Hierarchy of distribution packages sphinx_plot(g, figsize=(8, 4), axes=False) -Solid arrows indicate ``install_requires``, i.e., a declared runtime dependency. -Dashed arrows indicate ``extras_require``, i.e., a declared optional runtime dependency. +Solid arrows indicate declared runtime dependencies (``install_requires``). +Dashed arrows indicate declared optional runtime dependencies (``extras_require``). Not shown in the diagram are build dependencies and optional dependencies for testing. - `sage_conf `_ is a configuration diff --git a/src/pyproject.toml.m4 b/src/pyproject.toml.m4 index 2d60708affa..219637160b5 100644 --- a/src/pyproject.toml.m4 +++ b/src/pyproject.toml.m4 @@ -1,3 +1,4 @@ +include(`sage_spkg_versions_toml.m4')dnl' -*- conf-toml -*- [build-system] # Minimum requirements for the build system to execute. requires = [ @@ -5,20 +6,151 @@ requires = [ # Some version of sage-conf is required. # Note that PEP517/518 have no notion of optional sage_spkg dependencies: # https://github.com/pypa/pip/issues/6144 - esyscmd(`sage-get-system-packages install-requires-toml \ - sage_conf \ - setuptools \ - wheel \ - sage_setup \ - cypari \ - cysignals \ - cython \ - gmpy2 \ - jinja2 \ - jupyter_core \ - numpy \ - pkgconfig \ - pplpy \ - memory_allocator \ - ')] + SPKG_INSTALL_REQUIRES_sage_conf + SPKG_INSTALL_REQUIRES_setuptools + SPKG_INSTALL_REQUIRES_wheel + SPKG_INSTALL_REQUIRES_sage_setup + SPKG_INSTALL_REQUIRES_cypari + SPKG_INSTALL_REQUIRES_cysignals + SPKG_INSTALL_REQUIRES_cython + SPKG_INSTALL_REQUIRES_gmpy2 + SPKG_INSTALL_REQUIRES_jupyter_core + SPKG_INSTALL_REQUIRES_memory_allocator + SPKG_INSTALL_REQUIRES_numpy + SPKG_INSTALL_REQUIRES_pkgconfig + SPKG_INSTALL_REQUIRES_pplpy +] build-backend = "setuptools.build_meta" + +[project] +name = "sagemath-standard" +description = "Sage: Open Source Mathematics Software: Standard Python Library" +dependencies = [ + SPKG_INSTALL_REQUIRES_sage_conf + SPKG_INSTALL_REQUIRES_six +dnl From build/pkgs/sagelib/dependencies + SPKG_INSTALL_REQUIRES_conway_polynomials + SPKG_INSTALL_REQUIRES_cypari + SPKG_INSTALL_REQUIRES_cysignals + SPKG_INSTALL_REQUIRES_cython + SPKG_INSTALL_REQUIRES_gmpy2 + SPKG_INSTALL_REQUIRES_importlib_metadata + SPKG_INSTALL_REQUIRES_importlib_resources + SPKG_INSTALL_REQUIRES_jupyter_core + SPKG_INSTALL_REQUIRES_lrcalc_python + SPKG_INSTALL_REQUIRES_memory_allocator + SPKG_INSTALL_REQUIRES_numpy + SPKG_INSTALL_REQUIRES_pkgconfig + SPKG_INSTALL_REQUIRES_pplpy + SPKG_INSTALL_REQUIRES_primecountpy + SPKG_INSTALL_REQUIRES_requests + SPKG_INSTALL_REQUIRES_typing_extensions +dnl From Makefile.in: SAGERUNTIME + SPKG_INSTALL_REQUIRES_ipython + SPKG_INSTALL_REQUIRES_pexpect +dnl From Makefile.in: DOC_DEPENDENCIES + SPKG_INSTALL_REQUIRES_sphinx + SPKG_INSTALL_REQUIRES_networkx + SPKG_INSTALL_REQUIRES_scipy + SPKG_INSTALL_REQUIRES_sympy + SPKG_INSTALL_REQUIRES_matplotlib + SPKG_INSTALL_REQUIRES_pillow + SPKG_INSTALL_REQUIRES_mpmath + SPKG_INSTALL_REQUIRES_ipykernel + SPKG_INSTALL_REQUIRES_jupyter_client + SPKG_INSTALL_REQUIRES_ipywidgets + SPKG_INSTALL_REQUIRES_fpylll +dnl pycryptosat # Sage distribution installs it as part of cryptominisat. According to its README on https://pypi.org/project/pycryptosat/: "The pycryptosat python package compiles while compiling CryptoMiniSat. It cannot be compiled on its own, it must be compiled at the same time as CryptoMiniSat." +dnl Packages with important upper version bounds + SPKG_INSTALL_REQUIRES_ptyprocess +] +dynamic = ["version"] +include(`pyproject_toml_metadata.m4')dnl' + +[project.optional-dependencies] +R = [ + SPKG_INSTALL_REQUIRES_rpy2 +] + +[project.readme] +file = "README.rst" +content-type = "text/x-rst" + +[tool.setuptools] +script-files = [ + # The sage script + "bin/sage", + # Other scripts that should be in the path also for OS packaging of sage: + "bin/sage-eval", + # Included because it is useful for doctesting/coverage testing user scripts too: + "bin/sage-runtests", + "bin/sage-fixdoctests", + "bin/sage-coverage", + # The following is deprecated but might still be used in user package install scripts + "bin/sage-cython", + # Helper scripts invoked by sage script + # (they would actually belong to something like libexec) + "bin/sage-cachegrind", + "bin/sage-callgrind", + "bin/sage-massif", + "bin/sage-omega", + "bin/sage-valgrind", + "bin/sage-venv-config", + "bin/sage-version.sh", + "bin/sage-cleaner", + # Only makes sense in sage-the-distribution. TODO: Move to another installation script. + "bin/sage-list-packages", + # Uncategorized scripts in alphabetical order + "bin/math-readline", + "bin/sage-env", + # sage-env-config -- installed by sage_conf + # sage-env-config.in -- not to be installed + "bin/sage-grep", + "bin/sage-grepdoc", + "bin/sage-inline-fortran", + "bin/sage-ipynb2rst", + "bin/sage-ipython", + "bin/sage-notebook", + "bin/sage-num-threads.py", + "bin/sage-preparse", + "bin/sage-python", + "bin/sage-run", + "bin/sage-run-cython", + "bin/sage-startuptime.py", + "bin/sage-update-version", +] +license-files = ["LICENSE.txt"] +include-package-data = false + +[tool.setuptools.package-data] +"sage.libs.gap" = ["sage.gaprc"] +"sage.interfaces" = ["sage-maxima.lisp"] +"sage.doctest" = ["tests/*"] +"sage.repl.rich_output" = ["example*"] +sage = [ + "ext_data/*", + "ext_data/kenzo/*", + "ext_data/singular/*", + "ext_data/singular/function_field/*", + "ext_data/images/*", + "ext_data/doctest/*", + "ext_data/doctest/invalid/*", + "ext_data/gap/*", + "ext_data/gap/joyner/*", + "ext_data/mwrank/*", + "ext_data/notebook-ipython/*", + "ext_data/nbconvert/*", + "ext_data/graphs/*", + "ext_data/pari/*", + "ext_data/pari/dokchitser/*", + "ext_data/pari/buzzard/*", + "ext_data/pari/simon/*", + "ext_data/magma/*", + "ext_data/magma/latex/*", + "ext_data/magma/sage/*", + "ext_data/valgrind/*", + "ext_data/threejs/*", +] + +[tool.setuptools.dynamic] +version = {file = ["VERSION.txt"]} diff --git a/src/setup.cfg.m4 b/src/setup.cfg.m4 deleted file mode 100644 index 23f3d6cb166..00000000000 --- a/src/setup.cfg.m4 +++ /dev/null @@ -1,133 +0,0 @@ -include(`sage_spkg_versions.m4')dnl' -*- conf-unix -*- -[metadata] -name = sagemath-standard -version = file: VERSION.txt -description = Sage: Open Source Mathematics Software: Standard Python Library -long_description = file: README.rst -long_description_content_type = text/x-rst -license_files = LICENSE.txt -include(`setup_cfg_metadata.m4')dnl' - -[options] -python_requires = >=3.9, <3.12 -install_requires = - SPKG_INSTALL_REQUIRES_sage_conf - SPKG_INSTALL_REQUIRES_six -dnl From build/pkgs/sagelib/dependencies - SPKG_INSTALL_REQUIRES_conway_polynomials - SPKG_INSTALL_REQUIRES_cypari - SPKG_INSTALL_REQUIRES_cysignals - SPKG_INSTALL_REQUIRES_cython - SPKG_INSTALL_REQUIRES_gmpy2 - SPKG_INSTALL_REQUIRES_importlib_metadata - SPKG_INSTALL_REQUIRES_importlib_resources - SPKG_INSTALL_REQUIRES_jupyter_core - SPKG_INSTALL_REQUIRES_lrcalc_python - SPKG_INSTALL_REQUIRES_memory_allocator - SPKG_INSTALL_REQUIRES_numpy - SPKG_INSTALL_REQUIRES_pkgconfig - SPKG_INSTALL_REQUIRES_pplpy - SPKG_INSTALL_REQUIRES_primecountpy - SPKG_INSTALL_REQUIRES_requests - SPKG_INSTALL_REQUIRES_typing_extensions -dnl From Makefile.in: SAGERUNTIME - SPKG_INSTALL_REQUIRES_ipython - SPKG_INSTALL_REQUIRES_pexpect -dnl From Makefile.in: DOC_DEPENDENCIES - SPKG_INSTALL_REQUIRES_sphinx - SPKG_INSTALL_REQUIRES_networkx - SPKG_INSTALL_REQUIRES_scipy - SPKG_INSTALL_REQUIRES_sympy - SPKG_INSTALL_REQUIRES_matplotlib - SPKG_INSTALL_REQUIRES_pillow - SPKG_INSTALL_REQUIRES_mpmath - SPKG_INSTALL_REQUIRES_ipykernel - SPKG_INSTALL_REQUIRES_jupyter_client - SPKG_INSTALL_REQUIRES_ipywidgets - SPKG_INSTALL_REQUIRES_fpylll -dnl pycryptosat # Sage distribution installs it as part of cryptominisat. According to its README on https://pypi.org/project/pycryptosat/: "The pycryptosat python package compiles while compiling CryptoMiniSat. It cannot be compiled on its own, it must be compiled at the same time as CryptoMiniSat." -dnl Packages with important upper version bounds - SPKG_INSTALL_REQUIRES_ptyprocess - -scripts = - # The sage script - bin/sage - # Other scripts that should be in the path also for OS packaging of sage: - bin/sage-eval - # Included because it is useful for doctesting/coverage testing user scripts too: - bin/sage-runtests - bin/sage-fixdoctests - bin/sage-coverage - # The following is deprecated but might still be used in user package install scripts - bin/sage-cython - # Helper scripts invoked by sage script - # (they would actually belong to something like libexec) - bin/sage-cachegrind - bin/sage-callgrind - bin/sage-massif - bin/sage-omega - bin/sage-valgrind - bin/sage-venv-config - bin/sage-version.sh - bin/sage-cleaner - # Only makes sense in sage-the-distribution. TODO: Move to another installation script. - bin/sage-list-packages - # Uncategorized scripts in alphabetical order - bin/math-readline - bin/sage-env - # sage-env-config -- installed by sage_conf - # sage-env-config.in -- not to be installed - bin/sage-grep - bin/sage-grepdoc - bin/sage-inline-fortran - bin/sage-ipynb2rst - bin/sage-ipython - bin/sage-notebook - bin/sage-num-threads.py - bin/sage-preparse - bin/sage-python - bin/sage-run - bin/sage-run-cython - bin/sage-startuptime.py - bin/sage-update-version - -[options.package_data] - -sage.libs.gap = - sage.gaprc - -sage.interfaces = - sage-maxima.lisp - -sage.doctest = - tests/* - -sage.repl.rich_output = - example* - -sage = - ext_data/* - ext_data/kenzo/* - ext_data/singular/* - ext_data/singular/function_field/* - ext_data/images/* - ext_data/doctest/* - ext_data/doctest/invalid/* - ext_data/gap/* - ext_data/gap/joyner/* - ext_data/mwrank/* - ext_data/notebook-ipython/* - ext_data/nbconvert/* - ext_data/graphs/* - ext_data/pari/* - ext_data/pari/dokchitser/* - ext_data/pari/buzzard/* - ext_data/pari/simon/* - ext_data/magma/* - ext_data/magma/latex/* - ext_data/magma/sage/* - ext_data/valgrind/* - ext_data/threejs/* - -[options.extras_require] -R = SPKG_INSTALL_REQUIRES_rpy2 From e4157c554f90eab55304e377486119bd2ff21cd3 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Thu, 28 Dec 2023 18:25:50 -0800 Subject: [PATCH 028/140] build/bin/sage-get-system-packages (install-requires[-toml], pip): Do not require ENABLE_SYSTEM_SITE_PACKAGES=yes --- bootstrap | 4 ++-- build/bin/sage-get-system-packages | 26 ++++++++++++++++---------- 2 files changed, 18 insertions(+), 12 deletions(-) diff --git a/bootstrap b/bootstrap index b068431c14b..ce442947b77 100755 --- a/bootstrap +++ b/bootstrap @@ -108,8 +108,8 @@ EOF if test -f "$DIR/requirements.txt" -o -f "$DIR/install-requires.txt"; then # A Python package SPKG_TREE_VAR=SAGE_VENV - echo "define(>>>SPKG_INSTALL_REQUIRES_${pkgname}<<<, >>>$(echo $(ENABLE_SYSTEM_SITE_PACKAGES=yes sage-get-system-packages install-requires ${pkgname}))<<<)dnl" >> m4/sage_spkg_versions.m4 - echo "define(>>>SPKG_INSTALL_REQUIRES_${pkgname}<<<, >>>$(echo $(ENABLE_SYSTEM_SITE_PACKAGES=yes sage-get-system-packages install-requires-toml ${pkgname}))<<<)dnl" >> m4/sage_spkg_versions_toml.m4 + echo "define(>>>SPKG_INSTALL_REQUIRES_${pkgname}<<<, >>>$(echo $(sage-get-system-packages install-requires ${pkgname}))<<<)dnl" >> m4/sage_spkg_versions.m4 + echo "define(>>>SPKG_INSTALL_REQUIRES_${pkgname}<<<, >>>$(echo $(sage-get-system-packages install-requires-toml ${pkgname}))<<<)dnl" >> m4/sage_spkg_versions_toml.m4 fi fi spkg_finalizes="$spkg_finalizes diff --git a/build/bin/sage-get-system-packages b/build/bin/sage-get-system-packages index 1b8aae79c16..a65acc1ef06 100755 --- a/build/bin/sage-get-system-packages +++ b/build/bin/sage-get-system-packages @@ -47,16 +47,22 @@ case "$SYSTEM" in esac for PKG_BASE in $SPKGS; do - # Skip this package if it uses the SAGE_PYTHON_PACKAGE_CHECK - # macro and if --enable-system-site-packages was NOT passed - # to ./configure (or if ./configure has not yet been run). - SPKG_CONFIGURE="${SAGE_ROOT}/build/pkgs/${PKG_BASE}/spkg-configure.m4" - if [ -z "${ENABLE_SYSTEM_SITE_PACKAGES}" ]; then - if grep -q SAGE_PYTHON_PACKAGE_CHECK "${SPKG_CONFIGURE}" 2>/dev/null; - then - continue; - fi - fi + case "$SYSTEM:$ENABLE_SYSTEM_SITE_PACKAGES" in + install-requires*|pip*) + ;; + *:) + # Skip this package if it uses the SAGE_PYTHON_PACKAGE_CHECK + # macro and if --enable-system-site-packages was NOT passed + # to ./configure (or if ./configure has not yet been run). + SPKG_CONFIGURE="${SAGE_ROOT}/build/pkgs/${PKG_BASE}/spkg-configure.m4" + if grep -q SAGE_PYTHON_PACKAGE_CHECK "${SPKG_CONFIGURE}" 2>/dev/null; + then + continue + fi + ;; + *) + ;; + esac for NAME in $SYSTEM_PACKAGES_FILE_NAMES; do SYSTEM_PACKAGES_FILE="$SAGE_ROOT"/build/pkgs/$PKG_BASE/$NAME From 95cb0b59d67ca02e48fc8cdf9f108ae6a3363b2c Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Sat, 30 Dec 2023 16:12:10 -0800 Subject: [PATCH 029/140] build/bin/sage-get-system-packages: Add/update comments --- build/bin/sage-get-system-packages | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/build/bin/sage-get-system-packages b/build/bin/sage-get-system-packages index a65acc1ef06..bac1925f291 100755 --- a/build/bin/sage-get-system-packages +++ b/build/bin/sage-get-system-packages @@ -49,11 +49,15 @@ for PKG_BASE in $SPKGS; do case "$SYSTEM:$ENABLE_SYSTEM_SITE_PACKAGES" in install-requires*|pip*) + # This is output for installation of packages into a Python environment. + # So it's OK to use any Python packages. ;; *:) - # Skip this package if it uses the SAGE_PYTHON_PACKAGE_CHECK - # macro and if --enable-system-site-packages was NOT passed - # to ./configure (or if ./configure has not yet been run). + # --enable-system-site-packages was NOT passed to configure + # (or script was run outside of the sage-build-env). + # + # Skip this package if it uses the SAGE_PYTHON_PACKAGE_CHECK macro. + # SPKG_CONFIGURE="${SAGE_ROOT}/build/pkgs/${PKG_BASE}/spkg-configure.m4" if grep -q SAGE_PYTHON_PACKAGE_CHECK "${SPKG_CONFIGURE}" 2>/dev/null; then @@ -61,6 +65,8 @@ for PKG_BASE in $SPKGS; do fi ;; *) + # --enable-system-site-packages was passed to configure. + # So any package (Python, non-Python) is fine. ;; esac From c67121bc53e5490ecc61e80824a94ecfb876fca3 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Mon, 25 Dec 2023 13:28:12 -0800 Subject: [PATCH 030/140] src/sage/misc/package_dir.py (read_distribution): Don't fail on FileNotFoundError, update doctest output --- src/sage/misc/package_dir.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sage/misc/package_dir.py b/src/sage/misc/package_dir.py index 7d0e14cf799..7f57a5fe5b3 100644 --- a/src/sage/misc/package_dir.py +++ b/src/sage/misc/package_dir.py @@ -116,7 +116,7 @@ def read_distribution(src_file): sage: read_distribution(os.path.join(SAGE_SRC, 'sage', 'graphs', 'graph_decompositions', 'tdlib.pyx')) 'sagemath-tdlib' sage: read_distribution(os.path.join(SAGE_SRC, 'sage', 'graphs', 'graph_decompositions', 'modular_decomposition.py')) - '' + 'sagemath-graphs' """ from Cython.Utils import open_source_file with open_source_file(src_file, error_handling='ignore') as fh: @@ -201,8 +201,8 @@ def update_distribution(src_file, distribution, *, verbose=False): try: with open(src_file, 'r') as f: src_lines = f.read().splitlines() - except UnicodeDecodeError: - # Silently skip binary files + except (UnicodeDecodeError, FileNotFoundError): + # Silently skip binary files, nonexisting files return any_found = False any_change = False From e1a418d4447be740f37374546a7c98993ec45bff Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Mon, 25 Dec 2023 13:34:50 -0800 Subject: [PATCH 031/140] pkgs/sagemath-standard/setup.py: Handle added distributions --- pkgs/sagemath-standard/setup.py | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/pkgs/sagemath-standard/setup.py b/pkgs/sagemath-standard/setup.py index 7f6318a0fa0..701ea966dbd 100755 --- a/pkgs/sagemath-standard/setup.py +++ b/pkgs/sagemath-standard/setup.py @@ -77,7 +77,38 @@ print("Discovering Python/Cython source code....") t = time.time() from sage.misc.package import is_package_installed_and_updated -distributions = [''] + +distributions = [ + '', + "sagemath-brial", + "sagemath-categories", + "sagemath-combinat", + "sagemath-eclib", + "sagemath-environment", + "sagemath-flint", + "sagemath-gap", + "sagemath-giac", + "sagemath-glpk", + "sagemath-graphs", + "sagemath-groups", + "sagemath-homfly", + "sagemath-lcalc", + "sagemath-libbraiding", + "sagemath-libecm", + "sagemath-linbox", + "sagemath-modules", + "sagemath-mpmath", + "sagemath-ntl", + "sagemath-objects", + "sagemath-pari", + "sagemath-plot", + "sagemath-polyhedra", + "sagemath-repl", + "sagemath-schemes", + "sagemath-singular", + "sagemath-symbolics", +] + optional_packages_with_extensions = os.environ.get('SAGE_OPTIONAL_PACKAGES_WITH_EXTENSIONS', '').split(',') distributions += ['sagemath-{}'.format(pkg) for pkg in optional_packages_with_extensions From 126a6009f4da6f0bd33cf6e1dd8b232e4bda0dc7 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Tue, 26 Dec 2023 07:29:14 -0800 Subject: [PATCH 032/140] Update output of self-referential doctests --- src/sage/doctest/forker.py | 12 ++++++------ src/sage/misc/abstract_method.py | 2 +- src/sage/misc/lazy_attribute.pyx | 2 +- src/sage/misc/sageinspect.py | 8 ++++---- src/sage_setup/find.py | 4 +++- 5 files changed, 15 insertions(+), 13 deletions(-) diff --git a/src/sage/doctest/forker.py b/src/sage/doctest/forker.py index efd28d10abe..ef16027cdc3 100644 --- a/src/sage/doctest/forker.py +++ b/src/sage/doctest/forker.py @@ -1206,7 +1206,7 @@ def _failure_header(self, test, example, message='Failed example:'): sage: ex = doctests[0].examples[0] sage: print(DTR._failure_header(doctests[0], ex)) ********************************************************************** - File ".../sage/doctest/forker.py", line 11, in sage.doctest.forker + File ".../sage/doctest/forker.py", line 12, in sage.doctest.forker Failed example: doctest_var = 42; doctest_var^2 @@ -1216,7 +1216,7 @@ def _failure_header(self, test, example, message='Failed example:'): sage: import doctest sage: print(doctest.DocTestRunner._failure_header(DTR, doctests[0], ex)) ********************************************************************** - File ".../sage/doctest/forker.py", line 11, in sage.doctest.forker + File ".../sage/doctest/forker.py", line 12, in sage.doctest.forker Failed example: doctest_var = Integer(42); doctest_var**Integer(2) @@ -1225,7 +1225,7 @@ def _failure_header(self, test, example, message='Failed example:'): sage: print(DTR._failure_header(doctests[0], ex, message='Hello there!')) ********************************************************************** - File ".../sage/doctest/forker.py", line 11, in sage.doctest.forker + File ".../sage/doctest/forker.py", line 12, in sage.doctest.forker Hello there! doctest_var = 42; doctest_var^2 @@ -1276,7 +1276,7 @@ def report_start(self, out, test, example): sage: doctests, extras = FDS.create_doctests(globals()) sage: ex = doctests[0].examples[0] sage: DTR.report_start(sys.stdout.write, doctests[0], ex) - Trying (line 11): doctest_var = 42; doctest_var^2 + Trying (line 12): doctest_var = 42; doctest_var^2 Expecting: 1764 """ @@ -1373,7 +1373,7 @@ def report_failure(self, out, test, example, got, globs): sage: DTR.no_failure_yet = True sage: DTR.report_failure(sys.stdout.write, doctests[0], ex, 'BAD ANSWER\n', {}) ********************************************************************** - File ".../sage/doctest/forker.py", line 11, in sage.doctest.forker + File ".../sage/doctest/forker.py", line 12, in sage.doctest.forker Failed example: doctest_var = 42; doctest_var^2 Expected: @@ -1506,7 +1506,7 @@ def report_overtime(self, out, test, example, got, *, check_duration=0): sage: ex.walltime = 1.23 sage: DTR.report_overtime(sys.stdout.write, doctests[0], ex, 'BAD ANSWER\n', check_duration=2.34) ********************************************************************** - File ".../sage/doctest/forker.py", line 11, in sage.doctest.forker + File ".../sage/doctest/forker.py", line 12, in sage.doctest.forker Warning, slow doctest: doctest_var = 42; doctest_var^2 Test ran for 1.23 s, check ran for 2.34 s diff --git a/src/sage/misc/abstract_method.py b/src/sage/misc/abstract_method.py index 6179c5a2b8f..ec0c720a97f 100644 --- a/src/sage/misc/abstract_method.py +++ b/src/sage/misc/abstract_method.py @@ -193,7 +193,7 @@ def _sage_src_lines_(self): sage: src[0] 'def version():\n' sage: lines - 18 + 19 """ from sage.misc.sageinspect import sage_getsourcelines return sage_getsourcelines(self._f) diff --git a/src/sage/misc/lazy_attribute.pyx b/src/sage/misc/lazy_attribute.pyx index 74c3756a004..02cd80244bc 100644 --- a/src/sage/misc/lazy_attribute.pyx +++ b/src/sage/misc/lazy_attribute.pyx @@ -87,7 +87,7 @@ cdef class _lazy_attribute(): sage: src[0] 'def banner():\n' sage: lines - 88 + 89 """ from sage.misc.sageinspect import sage_getsourcelines return sage_getsourcelines(self.f) diff --git a/src/sage/misc/sageinspect.py b/src/sage/misc/sageinspect.py index 9dd1defedea..cc8dfd24f83 100644 --- a/src/sage/misc/sageinspect.py +++ b/src/sage/misc/sageinspect.py @@ -26,7 +26,7 @@ 'Rational Numbers...' sage: sage_getsource(sage.rings.rational) - '# distutils: ...Rational Numbers...' + '# sage_setup: distribution = ...# distutils: ...Rational Numbers...' Python modules:: @@ -36,7 +36,7 @@ sage: print(sage_getdoc(sage.misc.sageinspect).lstrip()[:40]) Inspect Python, Sage, and Cython objects - sage: sage_getsource(sage.misc.sageinspect).lstrip()[5:-1] + sage: sage_getsource(sage.misc.sageinspect).lstrip()[51:-1] 'Inspect Python, Sage, and Cython objects...' Test introspection of classes defined in Python and Cython files: @@ -2346,7 +2346,7 @@ def sage_getsourcelines(obj): sage: from sage.misc.sageinspect import sage_getsourcelines sage: sage_getsourcelines(matrix)[1] # needs sage.modules - 21 + 22 sage: sage_getsourcelines(matrix)[0][0] # needs sage.modules 'def matrix(*args, **kwds):\n' @@ -2373,7 +2373,7 @@ def sage_getsourcelines(obj): sage: sage_getsourcelines(test_func) (['def base(x):\n', ... - ' return x\n'], 7) + ' return x\n'], 8) Here are some cases that were covered in :trac:`11298`; note that line numbers may easily change, and therefore we do diff --git a/src/sage_setup/find.py b/src/sage_setup/find.py index 61d91abc2eb..f43beb572f4 100644 --- a/src/sage_setup/find.py +++ b/src/sage_setup/find.py @@ -115,7 +115,9 @@ def find_python_sources(src_dir, modules=['sage'], distributions=None, Filtering by distribution (distribution package):: sage: find_python_sources(SAGE_SRC, distributions=['sagemath-tdlib']) - ([], [], []) + ([], + ['sage.all__sagemath_tdlib', ...], + []) Benchmarking:: From f3de3d74703b9c882e4ceadfa4b9fa499574e776 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Tue, 26 Dec 2023 07:33:58 -0800 Subject: [PATCH 033/140] Run 'make pypi-sdists && ./sage -fixdistributions --set all --from-egg-info' using the distributions defined in #35095 --- src/sage/algebras/affine_nil_temperley_lieb.py | 1 + src/sage/algebras/algebra.py | 1 + src/sage/algebras/all.py | 1 + src/sage/algebras/askey_wilson.py | 1 + src/sage/algebras/associated_graded.py | 1 + src/sage/algebras/catalog.py | 1 + src/sage/algebras/cellular_basis.py | 1 + src/sage/algebras/clifford_algebra.py | 1 + src/sage/algebras/clifford_algebra_element.pxd | 1 + src/sage/algebras/clifford_algebra_element.pyx | 1 + src/sage/algebras/cluster_algebra.py | 1 + src/sage/algebras/commutative_dga.py | 1 + src/sage/algebras/down_up_algebra.py | 1 + src/sage/algebras/exterior_algebra_groebner.pxd | 1 + src/sage/algebras/exterior_algebra_groebner.pyx | 1 + src/sage/algebras/finite_dimensional_algebras/all.py | 1 + .../finite_dimensional_algebras/finite_dimensional_algebra.py | 1 + .../finite_dimensional_algebra_element.pxd | 1 + .../finite_dimensional_algebra_element.pyx | 1 + .../finite_dimensional_algebra_ideal.py | 1 + .../finite_dimensional_algebra_morphism.py | 1 + src/sage/algebras/finite_gca.py | 1 + src/sage/algebras/free_algebra.py | 1 + src/sage/algebras/free_algebra_element.py | 1 + src/sage/algebras/free_algebra_quotient.py | 1 + src/sage/algebras/free_algebra_quotient_element.py | 1 + src/sage/algebras/free_zinbiel_algebra.py | 1 + src/sage/algebras/fusion_rings/all.py | 1 + src/sage/algebras/fusion_rings/f_matrix.py | 1 + src/sage/algebras/fusion_rings/fast_parallel_fmats_methods.pxd | 1 + src/sage/algebras/fusion_rings/fast_parallel_fmats_methods.pyx | 1 + .../fusion_rings/fast_parallel_fusion_ring_braid_repn.pxd | 1 + .../fusion_rings/fast_parallel_fusion_ring_braid_repn.pyx | 1 + src/sage/algebras/fusion_rings/fusion_double.py | 1 + src/sage/algebras/fusion_rings/fusion_ring.py | 1 + src/sage/algebras/fusion_rings/poly_tup_engine.pxd | 1 + src/sage/algebras/fusion_rings/poly_tup_engine.pyx | 1 + src/sage/algebras/fusion_rings/shm_managers.pxd | 1 + src/sage/algebras/fusion_rings/shm_managers.pyx | 1 + src/sage/algebras/group_algebra.py | 1 + src/sage/algebras/hall_algebra.py | 1 + src/sage/algebras/hecke_algebras/all.py | 1 + src/sage/algebras/hecke_algebras/ariki_koike_algebra.py | 1 + src/sage/algebras/hecke_algebras/cubic_hecke_algebra.py | 1 + src/sage/algebras/hecke_algebras/cubic_hecke_base_ring.py | 1 + src/sage/algebras/hecke_algebras/cubic_hecke_matrix_rep.py | 1 + src/sage/algebras/iwahori_hecke_algebra.py | 1 + src/sage/algebras/jordan_algebra.py | 1 + src/sage/algebras/letterplace/all.py | 1 + .../algebras/letterplace/free_algebra_element_letterplace.pxd | 1 + .../algebras/letterplace/free_algebra_element_letterplace.pyx | 1 + src/sage/algebras/letterplace/free_algebra_letterplace.pxd | 1 + src/sage/algebras/letterplace/free_algebra_letterplace.pyx | 1 + src/sage/algebras/letterplace/letterplace_ideal.pyx | 1 + src/sage/algebras/lie_algebras/lie_algebra_element.pxd | 1 + src/sage/algebras/lie_algebras/lie_algebra_element.pyx | 1 + .../lie_conformal_algebras/abelian_lie_conformal_algebra.py | 1 + .../lie_conformal_algebras/affine_lie_conformal_algebra.py | 1 + src/sage/algebras/lie_conformal_algebras/all.py | 1 + .../bosonic_ghosts_lie_conformal_algebra.py | 1 + src/sage/algebras/lie_conformal_algebras/examples.py | 1 + .../fermionic_ghosts_lie_conformal_algebra.py | 1 + .../lie_conformal_algebras/finitely_freely_generated_lca.py | 1 + .../free_bosons_lie_conformal_algebra.py | 1 + .../free_fermions_lie_conformal_algebra.py | 1 + .../freely_generated_lie_conformal_algebra.py | 1 + .../lie_conformal_algebras/graded_lie_conformal_algebra.py | 1 + .../algebras/lie_conformal_algebras/lie_conformal_algebra.py | 1 + .../lie_conformal_algebras/lie_conformal_algebra_element.py | 1 + .../lie_conformal_algebras/lie_conformal_algebra_with_basis.py | 1 + .../lie_conformal_algebra_with_structure_coefs.py | 1 + .../lie_conformal_algebras/n2_lie_conformal_algebra.py | 1 + .../neveu_schwarz_lie_conformal_algebra.py | 1 + .../lie_conformal_algebras/virasoro_lie_conformal_algebra.py | 1 + .../lie_conformal_algebras/weyl_lie_conformal_algebra.py | 1 + src/sage/algebras/nil_coxeter_algebra.py | 1 + src/sage/algebras/octonion_algebra.pxd | 1 + src/sage/algebras/octonion_algebra.pyx | 1 + src/sage/algebras/orlik_solomon.py | 1 + src/sage/algebras/orlik_terao.py | 1 + src/sage/algebras/q_commuting_polynomials.py | 1 + src/sage/algebras/q_system.py | 1 + src/sage/algebras/quantum_clifford.py | 1 + src/sage/algebras/quantum_groups/ace_quantum_onsager.py | 1 + src/sage/algebras/quantum_groups/all.py | 1 + src/sage/algebras/quantum_groups/fock_space.py | 1 + src/sage/algebras/quantum_groups/q_numbers.py | 1 + src/sage/algebras/quantum_groups/quantum_group_gap.py | 1 + src/sage/algebras/quantum_groups/representations.py | 1 + src/sage/algebras/quantum_matrix_coordinate_algebra.py | 1 + src/sage/algebras/quatalg/all.py | 1 + src/sage/algebras/quatalg/quaternion_algebra.py | 1 + src/sage/algebras/quatalg/quaternion_algebra_cython.pyx | 1 + src/sage/algebras/quatalg/quaternion_algebra_element.pxd | 1 + src/sage/algebras/quatalg/quaternion_algebra_element.pyx | 1 + src/sage/algebras/quaternion_algebra.py | 1 + src/sage/algebras/quaternion_algebra_element.py | 1 + src/sage/algebras/rational_cherednik_algebra.py | 1 + src/sage/algebras/schur_algebra.py | 1 + src/sage/algebras/shuffle_algebra.py | 1 + src/sage/algebras/splitting_algebra.py | 1 + src/sage/algebras/steenrod/all.py | 1 + src/sage/algebras/steenrod/steenrod_algebra.py | 1 + src/sage/algebras/steenrod/steenrod_algebra_bases.py | 1 + src/sage/algebras/steenrod/steenrod_algebra_misc.py | 1 + src/sage/algebras/steenrod/steenrod_algebra_mult.py | 1 + src/sage/algebras/tensor_algebra.py | 1 + src/sage/algebras/weyl_algebra.py | 1 + src/sage/algebras/yangian.py | 1 + src/sage/algebras/yokonuma_hecke_algebra.py | 1 + src/sage/all__sagemath_bliss.py | 1 + src/sage/all__sagemath_categories.py | 1 + src/sage/all__sagemath_coxeter3.py | 1 + src/sage/all__sagemath_environment.py | 1 + src/sage/all__sagemath_mcqd.py | 1 + src/sage/all__sagemath_meataxe.py | 1 + src/sage/all__sagemath_objects.py | 1 + src/sage/all__sagemath_repl.py | 1 + src/sage/all__sagemath_sirocco.py | 1 + src/sage/all__sagemath_tdlib.py | 1 + src/sage/arith/all.py | 1 + src/sage/arith/all__sagemath_objects.py | 1 + src/sage/arith/constants.pxd | 1 + src/sage/arith/functions.pxd | 1 + src/sage/arith/functions.pyx | 1 + src/sage/arith/long.pxd | 1 + src/sage/arith/misc.py | 1 + src/sage/arith/multi_modular.pxd | 1 + src/sage/arith/multi_modular.pyx | 1 + src/sage/arith/numerical_approx.pxd | 1 + src/sage/arith/numerical_approx.pyx | 1 + src/sage/arith/power.pxd | 1 + src/sage/arith/power.pyx | 1 + src/sage/arith/rational_reconstruction.pxd | 1 + src/sage/arith/rational_reconstruction.pyx | 1 + src/sage/arith/srange.pyx | 1 + src/sage/calculus/all.py | 1 + src/sage/calculus/calculus.py | 1 + src/sage/calculus/desolvers.py | 1 + src/sage/calculus/functional.py | 1 + src/sage/calculus/functions.py | 1 + src/sage/calculus/integration.pyx | 1 + src/sage/calculus/interpolation.pxd | 1 + src/sage/calculus/interpolation.pyx | 1 + src/sage/calculus/interpolators.pyx | 1 + src/sage/calculus/ode.pxd | 1 + src/sage/calculus/ode.pyx | 1 + src/sage/calculus/predefined.py | 1 + src/sage/calculus/riemann.pyx | 1 + src/sage/calculus/test_sympy.py | 1 + src/sage/calculus/tests.py | 1 + src/sage/calculus/transforms/all.py | 1 + src/sage/calculus/transforms/dft.py | 1 + src/sage/calculus/transforms/dwt.pxd | 1 + src/sage/calculus/transforms/dwt.pyx | 1 + src/sage/calculus/transforms/fft.pxd | 1 + src/sage/calculus/transforms/fft.pyx | 1 + src/sage/calculus/var.pyx | 1 + src/sage/calculus/wester.py | 1 + src/sage/categories/action.pxd | 1 + src/sage/categories/action.pyx | 1 + src/sage/categories/additive_groups.py | 1 + src/sage/categories/additive_magmas.py | 1 + src/sage/categories/additive_monoids.py | 1 + src/sage/categories/additive_semigroups.py | 1 + src/sage/categories/affine_weyl_groups.py | 1 + src/sage/categories/algebra_functor.py | 1 + src/sage/categories/algebra_ideals.py | 1 + src/sage/categories/algebra_modules.py | 1 + src/sage/categories/algebras.py | 1 + src/sage/categories/algebras_with_basis.py | 1 + src/sage/categories/all.py | 1 + src/sage/categories/all__sagemath_objects.py | 1 + src/sage/categories/aperiodic_semigroups.py | 1 + src/sage/categories/associative_algebras.py | 1 + src/sage/categories/basic.py | 1 + src/sage/categories/bialgebras.py | 1 + src/sage/categories/bialgebras_with_basis.py | 1 + src/sage/categories/bimodules.py | 1 + src/sage/categories/cartesian_product.py | 1 + src/sage/categories/category.py | 1 + src/sage/categories/category_cy_helper.pxd | 1 + src/sage/categories/category_cy_helper.pyx | 1 + src/sage/categories/category_singleton.pxd | 1 + src/sage/categories/category_singleton.pyx | 1 + src/sage/categories/category_types.py | 1 + src/sage/categories/category_with_axiom.py | 1 + src/sage/categories/chain_complexes.py | 1 + src/sage/categories/classical_crystals.py | 1 + src/sage/categories/coalgebras.py | 1 + src/sage/categories/coalgebras_with_basis.py | 1 + src/sage/categories/coercion_methods.pyx | 1 + src/sage/categories/commutative_additive_groups.py | 1 + src/sage/categories/commutative_additive_monoids.py | 1 + src/sage/categories/commutative_additive_semigroups.py | 1 + src/sage/categories/commutative_algebra_ideals.py | 1 + src/sage/categories/commutative_algebras.py | 1 + src/sage/categories/commutative_ring_ideals.py | 1 + src/sage/categories/commutative_rings.py | 1 + src/sage/categories/complete_discrete_valuation.py | 1 + src/sage/categories/complex_reflection_groups.py | 1 + .../complex_reflection_or_generalized_coxeter_groups.py | 1 + src/sage/categories/covariant_functorial_construction.py | 1 + src/sage/categories/coxeter_group_algebras.py | 1 + src/sage/categories/coxeter_groups.py | 1 + src/sage/categories/crystals.py | 1 + src/sage/categories/cw_complexes.py | 1 + src/sage/categories/discrete_valuation.py | 1 + src/sage/categories/distributive_magmas_and_additive_magmas.py | 1 + src/sage/categories/division_rings.py | 1 + src/sage/categories/domains.py | 1 + src/sage/categories/drinfeld_modules.py | 1 + src/sage/categories/dual.py | 1 + src/sage/categories/enumerated_sets.py | 1 + src/sage/categories/euclidean_domains.py | 1 + src/sage/categories/examples/algebras_with_basis.py | 1 + src/sage/categories/examples/all.py | 1 + src/sage/categories/examples/commutative_additive_monoids.py | 1 + .../categories/examples/commutative_additive_semigroups.py | 1 + src/sage/categories/examples/coxeter_groups.py | 1 + src/sage/categories/examples/crystals.py | 1 + src/sage/categories/examples/cw_complexes.py | 1 + src/sage/categories/examples/facade_sets.py | 1 + src/sage/categories/examples/filtered_algebras_with_basis.py | 1 + src/sage/categories/examples/filtered_modules_with_basis.py | 1 + src/sage/categories/examples/finite_coxeter_groups.py | 1 + .../examples/finite_dimensional_algebras_with_basis.py | 1 + .../examples/finite_dimensional_lie_algebras_with_basis.py | 1 + src/sage/categories/examples/finite_enumerated_sets.py | 1 + src/sage/categories/examples/finite_monoids.py | 1 + src/sage/categories/examples/finite_semigroups.py | 1 + src/sage/categories/examples/finite_weyl_groups.py | 1 + .../examples/graded_connected_hopf_algebras_with_basis.py | 1 + src/sage/categories/examples/graded_modules_with_basis.py | 1 + src/sage/categories/examples/graphs.py | 1 + src/sage/categories/examples/hopf_algebras_with_basis.py | 1 + src/sage/categories/examples/infinite_enumerated_sets.py | 1 + src/sage/categories/examples/lie_algebras.py | 1 + src/sage/categories/examples/lie_algebras_with_basis.py | 1 + src/sage/categories/examples/magmas.py | 1 + src/sage/categories/examples/manifolds.py | 1 + src/sage/categories/examples/monoids.py | 1 + src/sage/categories/examples/posets.py | 1 + src/sage/categories/examples/semigroups.py | 1 + src/sage/categories/examples/semigroups_cython.pyx | 1 + src/sage/categories/examples/sets_cat.py | 1 + src/sage/categories/examples/sets_with_grading.py | 1 + src/sage/categories/examples/with_realizations.py | 1 + src/sage/categories/facade_sets.py | 1 + src/sage/categories/fields.py | 1 + src/sage/categories/filtered_algebras.py | 1 + src/sage/categories/filtered_algebras_with_basis.py | 1 + src/sage/categories/filtered_hopf_algebras_with_basis.py | 1 + src/sage/categories/filtered_modules.py | 1 + src/sage/categories/filtered_modules_with_basis.py | 1 + src/sage/categories/finite_complex_reflection_groups.py | 1 + src/sage/categories/finite_coxeter_groups.py | 1 + src/sage/categories/finite_crystals.py | 1 + src/sage/categories/finite_dimensional_algebras_with_basis.py | 1 + .../categories/finite_dimensional_bialgebras_with_basis.py | 1 + .../categories/finite_dimensional_coalgebras_with_basis.py | 1 + .../finite_dimensional_graded_lie_algebras_with_basis.py | 1 + .../categories/finite_dimensional_hopf_algebras_with_basis.py | 1 + .../categories/finite_dimensional_lie_algebras_with_basis.py | 1 + src/sage/categories/finite_dimensional_modules_with_basis.py | 1 + .../finite_dimensional_nilpotent_lie_algebras_with_basis.py | 1 + .../finite_dimensional_semisimple_algebras_with_basis.py | 1 + src/sage/categories/finite_enumerated_sets.py | 1 + src/sage/categories/finite_fields.py | 1 + src/sage/categories/finite_groups.py | 1 + src/sage/categories/finite_lattice_posets.py | 1 + src/sage/categories/finite_monoids.py | 1 + src/sage/categories/finite_permutation_groups.py | 1 + src/sage/categories/finite_posets.py | 1 + src/sage/categories/finite_semigroups.py | 1 + src/sage/categories/finite_sets.py | 1 + src/sage/categories/finite_weyl_groups.py | 1 + .../categories/finitely_generated_lambda_bracket_algebras.py | 1 + .../categories/finitely_generated_lie_conformal_algebras.py | 1 + src/sage/categories/finitely_generated_magmas.py | 1 + src/sage/categories/finitely_generated_semigroups.py | 1 + src/sage/categories/function_fields.py | 1 + src/sage/categories/functor.pxd | 1 + src/sage/categories/functor.pyx | 1 + src/sage/categories/g_sets.py | 1 + src/sage/categories/gcd_domains.py | 1 + src/sage/categories/generalized_coxeter_groups.py | 1 + src/sage/categories/graded_algebras.py | 1 + src/sage/categories/graded_algebras_with_basis.py | 1 + src/sage/categories/graded_bialgebras.py | 1 + src/sage/categories/graded_bialgebras_with_basis.py | 1 + src/sage/categories/graded_coalgebras.py | 1 + src/sage/categories/graded_coalgebras_with_basis.py | 1 + src/sage/categories/graded_hopf_algebras.py | 1 + src/sage/categories/graded_hopf_algebras_with_basis.py | 1 + src/sage/categories/graded_lie_algebras.py | 1 + src/sage/categories/graded_lie_algebras_with_basis.py | 1 + src/sage/categories/graded_lie_conformal_algebras.py | 1 + src/sage/categories/graded_modules.py | 1 + src/sage/categories/graded_modules_with_basis.py | 1 + src/sage/categories/graphs.py | 1 + src/sage/categories/group_algebras.py | 1 + src/sage/categories/groupoid.py | 1 + src/sage/categories/groups.py | 1 + src/sage/categories/h_trivial_semigroups.py | 1 + src/sage/categories/hecke_modules.py | 1 + src/sage/categories/highest_weight_crystals.py | 1 + src/sage/categories/homset.py | 1 + src/sage/categories/homsets.py | 1 + src/sage/categories/hopf_algebras.py | 1 + src/sage/categories/hopf_algebras_with_basis.py | 1 + src/sage/categories/infinite_enumerated_sets.py | 1 + src/sage/categories/integral_domains.py | 1 + src/sage/categories/isomorphic_objects.py | 1 + src/sage/categories/j_trivial_semigroups.py | 1 + src/sage/categories/kac_moody_algebras.py | 1 + src/sage/categories/l_trivial_semigroups.py | 1 + src/sage/categories/lambda_bracket_algebras.py | 1 + src/sage/categories/lambda_bracket_algebras_with_basis.py | 1 + src/sage/categories/lattice_posets.py | 1 + src/sage/categories/left_modules.py | 1 + src/sage/categories/lie_algebras.py | 1 + src/sage/categories/lie_algebras_with_basis.py | 1 + src/sage/categories/lie_conformal_algebras.py | 1 + src/sage/categories/lie_conformal_algebras_with_basis.py | 1 + src/sage/categories/lie_groups.py | 1 + src/sage/categories/loop_crystals.py | 1 + src/sage/categories/magmas.py | 1 + src/sage/categories/magmas_and_additive_magmas.py | 1 + src/sage/categories/magmatic_algebras.py | 1 + src/sage/categories/manifolds.py | 1 + src/sage/categories/map.pxd | 1 + src/sage/categories/map.pyx | 1 + src/sage/categories/matrix_algebras.py | 1 + src/sage/categories/metric_spaces.py | 1 + src/sage/categories/modular_abelian_varieties.py | 1 + src/sage/categories/modules.py | 1 + src/sage/categories/modules_with_basis.py | 1 + src/sage/categories/monoid_algebras.py | 1 + src/sage/categories/monoids.py | 1 + src/sage/categories/morphism.pxd | 1 + src/sage/categories/morphism.pyx | 1 + src/sage/categories/number_fields.py | 1 + src/sage/categories/objects.py | 1 + src/sage/categories/partially_ordered_monoids.py | 1 + src/sage/categories/permutation_groups.py | 1 + src/sage/categories/pointed_sets.py | 1 + src/sage/categories/polyhedra.py | 1 + src/sage/categories/poor_man_map.py | 1 + src/sage/categories/posets.py | 1 + src/sage/categories/primer.py | 1 + src/sage/categories/principal_ideal_domains.py | 1 + src/sage/categories/pushout.py | 1 + src/sage/categories/quantum_group_representations.py | 1 + src/sage/categories/quotient_fields.py | 1 + src/sage/categories/quotients.py | 1 + src/sage/categories/r_trivial_semigroups.py | 1 + src/sage/categories/realizations.py | 1 + src/sage/categories/regular_crystals.py | 1 + src/sage/categories/regular_supercrystals.py | 1 + src/sage/categories/right_modules.py | 1 + src/sage/categories/ring_ideals.py | 1 + src/sage/categories/rings.py | 1 + src/sage/categories/rngs.py | 1 + src/sage/categories/schemes.py | 1 + src/sage/categories/semigroups.py | 1 + src/sage/categories/semirings.py | 1 + src/sage/categories/semisimple_algebras.py | 1 + src/sage/categories/sets_cat.py | 1 + src/sage/categories/sets_with_grading.py | 1 + src/sage/categories/sets_with_partial_maps.py | 1 + src/sage/categories/shephard_groups.py | 1 + src/sage/categories/signed_tensor.py | 1 + src/sage/categories/simplicial_complexes.py | 1 + src/sage/categories/simplicial_sets.py | 1 + src/sage/categories/subobjects.py | 1 + src/sage/categories/subquotients.py | 1 + src/sage/categories/super_algebras.py | 1 + src/sage/categories/super_algebras_with_basis.py | 1 + src/sage/categories/super_hopf_algebras_with_basis.py | 1 + src/sage/categories/super_lie_conformal_algebras.py | 1 + src/sage/categories/super_modules.py | 1 + src/sage/categories/super_modules_with_basis.py | 1 + src/sage/categories/supercommutative_algebras.py | 1 + src/sage/categories/supercrystals.py | 1 + src/sage/categories/tensor.py | 1 + src/sage/categories/topological_spaces.py | 1 + src/sage/categories/triangular_kac_moody_algebras.py | 1 + src/sage/categories/tutorial.py | 1 + src/sage/categories/unique_factorization_domains.py | 1 + src/sage/categories/unital_algebras.py | 1 + src/sage/categories/vector_bundles.py | 1 + src/sage/categories/vector_spaces.py | 1 + src/sage/categories/weyl_groups.py | 1 + src/sage/categories/with_realizations.py | 1 + src/sage/coding/abstract_code.py | 1 + src/sage/coding/ag_code.py | 1 + src/sage/coding/ag_code_decoders.pyx | 1 + src/sage/coding/all.py | 1 + src/sage/coding/bch_code.py | 1 + src/sage/coding/binary_code.pxd | 1 + src/sage/coding/binary_code.pyx | 1 + src/sage/coding/bounds_catalog.py | 1 + src/sage/coding/channel.py | 1 + src/sage/coding/channels_catalog.py | 1 + src/sage/coding/code_bounds.py | 1 + src/sage/coding/code_constructions.py | 1 + src/sage/coding/codecan/all.py | 1 + src/sage/coding/codecan/autgroup_can_label.pyx | 1 + src/sage/coding/codecan/codecan.pxd | 1 + src/sage/coding/codecan/codecan.pyx | 1 + src/sage/coding/codes_catalog.py | 1 + src/sage/coding/cyclic_code.py | 1 + src/sage/coding/databases.py | 1 + src/sage/coding/decoder.py | 1 + src/sage/coding/decoders_catalog.py | 1 + src/sage/coding/delsarte_bounds.py | 1 + src/sage/coding/encoder.py | 1 + src/sage/coding/encoders_catalog.py | 1 + src/sage/coding/extended_code.py | 1 + src/sage/coding/gabidulin_code.py | 1 + src/sage/coding/golay_code.py | 1 + src/sage/coding/goppa_code.py | 1 + src/sage/coding/grs_code.py | 1 + src/sage/coding/guava.py | 1 + src/sage/coding/guruswami_sudan/all.py | 1 + src/sage/coding/guruswami_sudan/gs_decoder.py | 1 + src/sage/coding/guruswami_sudan/interpolation.py | 1 + src/sage/coding/guruswami_sudan/utils.py | 1 + src/sage/coding/hamming_code.py | 1 + src/sage/coding/information_set_decoder.py | 1 + src/sage/coding/kasami_codes.pyx | 1 + src/sage/coding/linear_code.py | 1 + src/sage/coding/linear_code_no_metric.py | 1 + src/sage/coding/linear_rank_metric.py | 1 + src/sage/coding/parity_check_code.py | 1 + src/sage/coding/punctured_code.py | 1 + src/sage/coding/reed_muller_code.py | 1 + src/sage/coding/self_dual_codes.py | 1 + src/sage/coding/source_coding/all.py | 1 + src/sage/coding/source_coding/huffman.py | 1 + src/sage/coding/subfield_subcode.py | 1 + src/sage/coding/two_weight_db.py | 1 + src/sage/combinat/abstract_tree.py | 1 + src/sage/combinat/affine_permutation.py | 1 + src/sage/combinat/algebraic_combinatorics.py | 1 + src/sage/combinat/all.py | 1 + src/sage/combinat/alternating_sign_matrix.py | 1 + src/sage/combinat/backtrack.py | 1 + src/sage/combinat/baxter_permutations.py | 1 + src/sage/combinat/bijectionist.py | 1 + src/sage/combinat/binary_recurrence_sequences.py | 1 + src/sage/combinat/binary_tree.py | 1 + src/sage/combinat/blob_algebra.py | 1 + src/sage/combinat/cartesian_product.py | 1 + src/sage/combinat/catalog_partitions.py | 1 + src/sage/combinat/chas/all.py | 1 + src/sage/combinat/chas/fsym.py | 1 + src/sage/combinat/chas/wqsym.py | 1 + src/sage/combinat/cluster_algebra_quiver/all.py | 1 + src/sage/combinat/cluster_algebra_quiver/cluster_seed.py | 1 + src/sage/combinat/cluster_algebra_quiver/interact.py | 1 + src/sage/combinat/cluster_algebra_quiver/mutation_class.py | 1 + src/sage/combinat/cluster_algebra_quiver/mutation_type.py | 1 + src/sage/combinat/cluster_algebra_quiver/quiver.py | 1 + .../combinat/cluster_algebra_quiver/quiver_mutation_type.py | 1 + src/sage/combinat/cluster_complex.py | 1 + src/sage/combinat/colored_permutations.py | 1 + src/sage/combinat/combinat.py | 1 + src/sage/combinat/combinat_cython.pxd | 1 + src/sage/combinat/combinat_cython.pyx | 1 + src/sage/combinat/combination.py | 1 + src/sage/combinat/combinatorial_map.py | 1 + src/sage/combinat/composition.py | 1 + src/sage/combinat/composition_signed.py | 1 + src/sage/combinat/composition_tableau.py | 1 + src/sage/combinat/constellation.py | 1 + src/sage/combinat/core.py | 1 + src/sage/combinat/counting.py | 1 + src/sage/combinat/crystals/affine.py | 1 + src/sage/combinat/crystals/affine_factorization.py | 1 + src/sage/combinat/crystals/affinization.py | 1 + src/sage/combinat/crystals/alcove_path.py | 1 + src/sage/combinat/crystals/all.py | 1 + src/sage/combinat/crystals/bkk_crystals.py | 1 + src/sage/combinat/crystals/catalog.py | 1 + src/sage/combinat/crystals/catalog_elementary_crystals.py | 1 + src/sage/combinat/crystals/catalog_infinity_crystals.py | 1 + src/sage/combinat/crystals/catalog_kirillov_reshetikhin.py | 1 + src/sage/combinat/crystals/crystals.py | 1 + src/sage/combinat/crystals/direct_sum.py | 1 + src/sage/combinat/crystals/elementary_crystals.py | 1 + src/sage/combinat/crystals/fast_crystals.py | 1 + .../combinat/crystals/fully_commutative_stable_grothendieck.py | 1 + src/sage/combinat/crystals/generalized_young_walls.py | 1 + src/sage/combinat/crystals/highest_weight_crystals.py | 1 + src/sage/combinat/crystals/induced_structure.py | 1 + src/sage/combinat/crystals/infinity_crystals.py | 1 + src/sage/combinat/crystals/kac_modules.py | 1 + src/sage/combinat/crystals/kirillov_reshetikhin.py | 1 + src/sage/combinat/crystals/kyoto_path_model.py | 1 + src/sage/combinat/crystals/letters.pxd | 1 + src/sage/combinat/crystals/letters.pyx | 1 + src/sage/combinat/crystals/littelmann_path.py | 1 + src/sage/combinat/crystals/monomial_crystals.py | 1 + src/sage/combinat/crystals/multisegments.py | 1 + src/sage/combinat/crystals/mv_polytopes.py | 1 + src/sage/combinat/crystals/pbw_crystal.py | 1 + src/sage/combinat/crystals/pbw_datum.pxd | 1 + src/sage/combinat/crystals/pbw_datum.pyx | 1 + src/sage/combinat/crystals/polyhedral_realization.py | 1 + src/sage/combinat/crystals/spins.pxd | 1 + src/sage/combinat/crystals/spins.pyx | 1 + src/sage/combinat/crystals/star_crystal.py | 1 + src/sage/combinat/crystals/subcrystal.py | 1 + src/sage/combinat/crystals/tensor_product.py | 1 + src/sage/combinat/crystals/tensor_product_element.pxd | 1 + src/sage/combinat/crystals/tensor_product_element.pyx | 1 + src/sage/combinat/crystals/virtual_crystal.py | 1 + src/sage/combinat/cyclic_sieving_phenomenon.py | 1 + src/sage/combinat/debruijn_sequence.pyx | 1 + src/sage/combinat/decorated_permutation.py | 1 + src/sage/combinat/degree_sequences.pyx | 1 + src/sage/combinat/derangements.py | 1 + src/sage/combinat/descent_algebra.py | 1 + src/sage/combinat/designs/all.py | 1 + src/sage/combinat/designs/bibd.py | 1 + src/sage/combinat/designs/block_design.py | 1 + src/sage/combinat/designs/covering_array.py | 1 + src/sage/combinat/designs/covering_design.py | 1 + src/sage/combinat/designs/database.py | 1 + src/sage/combinat/designs/design_catalog.py | 1 + src/sage/combinat/designs/designs_pyx.pxd | 1 + src/sage/combinat/designs/designs_pyx.pyx | 1 + src/sage/combinat/designs/difference_family.py | 1 + src/sage/combinat/designs/difference_matrices.py | 1 + src/sage/combinat/designs/evenly_distributed_sets.pyx | 1 + src/sage/combinat/designs/ext_rep.py | 1 + src/sage/combinat/designs/gen_quadrangles_with_spread.pyx | 1 + src/sage/combinat/designs/group_divisible_designs.py | 1 + src/sage/combinat/designs/incidence_structures.py | 1 + src/sage/combinat/designs/latin_squares.py | 1 + src/sage/combinat/designs/orthogonal_arrays.py | 1 + src/sage/combinat/designs/orthogonal_arrays_build_recursive.py | 1 + src/sage/combinat/designs/orthogonal_arrays_find_recursive.pyx | 1 + src/sage/combinat/designs/resolvable_bibd.py | 1 + src/sage/combinat/designs/steiner_quadruple_systems.py | 1 + src/sage/combinat/designs/subhypergraph_search.pyx | 1 + src/sage/combinat/designs/twographs.py | 1 + src/sage/combinat/diagram.py | 1 + src/sage/combinat/diagram_algebras.py | 1 + src/sage/combinat/dlx.py | 1 + src/sage/combinat/dyck_word.py | 1 + src/sage/combinat/e_one_star.py | 1 + src/sage/combinat/enumerated_sets.py | 1 + src/sage/combinat/enumeration_mod_permgroup.pxd | 1 + src/sage/combinat/enumeration_mod_permgroup.pyx | 1 + src/sage/combinat/expnums.pyx | 1 + src/sage/combinat/family.py | 1 + src/sage/combinat/fast_vector_partitions.pyx | 1 + src/sage/combinat/finite_state_machine.py | 1 + src/sage/combinat/finite_state_machine_generators.py | 1 + src/sage/combinat/fqsym.py | 1 + src/sage/combinat/free_dendriform_algebra.py | 1 + src/sage/combinat/free_module.py | 1 + src/sage/combinat/free_prelie_algebra.py | 1 + src/sage/combinat/fully_commutative_elements.py | 1 + src/sage/combinat/fully_packed_loop.py | 1 + src/sage/combinat/gelfand_tsetlin_patterns.py | 1 + src/sage/combinat/graph_path.py | 1 + src/sage/combinat/gray_codes.py | 1 + src/sage/combinat/grossman_larson_algebras.py | 1 + src/sage/combinat/growth.py | 1 + src/sage/combinat/hall_polynomial.py | 1 + src/sage/combinat/hillman_grassl.py | 1 + src/sage/combinat/integer_lists/__init__.py | 1 + src/sage/combinat/integer_lists/base.pxd | 1 + src/sage/combinat/integer_lists/base.pyx | 1 + src/sage/combinat/integer_lists/invlex.pxd | 1 + src/sage/combinat/integer_lists/invlex.pyx | 1 + src/sage/combinat/integer_lists/lists.py | 1 + src/sage/combinat/integer_lists/nn.py | 1 + src/sage/combinat/integer_matrices.py | 1 + src/sage/combinat/integer_vector.py | 1 + src/sage/combinat/integer_vector_weighted.py | 1 + src/sage/combinat/integer_vectors_mod_permgroup.py | 1 + src/sage/combinat/interval_posets.py | 1 + src/sage/combinat/k_tableau.py | 1 + src/sage/combinat/kazhdan_lusztig.py | 1 + src/sage/combinat/key_polynomial.py | 1 + src/sage/combinat/knutson_tao_puzzles.py | 1 + src/sage/combinat/lr_tableau.py | 1 + src/sage/combinat/matrices/all.py | 1 + src/sage/combinat/matrices/dancing_links.pyx | 1 + src/sage/combinat/matrices/dlxcpp.py | 1 + src/sage/combinat/matrices/hadamard_matrix.py | 1 + src/sage/combinat/matrices/latin.py | 1 + src/sage/combinat/misc.py | 1 + src/sage/combinat/multiset_partition_into_sets_ordered.py | 1 + src/sage/combinat/ncsf_qsym/all.py | 1 + src/sage/combinat/ncsf_qsym/combinatorics.py | 1 + src/sage/combinat/ncsf_qsym/generic_basis_code.py | 1 + src/sage/combinat/ncsf_qsym/ncsf.py | 1 + src/sage/combinat/ncsf_qsym/qsym.py | 1 + src/sage/combinat/ncsf_qsym/tutorial.py | 1 + src/sage/combinat/ncsym/all.py | 1 + src/sage/combinat/ncsym/bases.py | 1 + src/sage/combinat/ncsym/dual.py | 1 + src/sage/combinat/ncsym/ncsym.py | 1 + src/sage/combinat/necklace.py | 1 + src/sage/combinat/non_decreasing_parking_function.py | 1 + src/sage/combinat/nu_dyck_word.py | 1 + src/sage/combinat/nu_tamari_lattice.py | 1 + src/sage/combinat/ordered_tree.py | 1 + src/sage/combinat/output.py | 1 + src/sage/combinat/parallelogram_polyomino.py | 1 + src/sage/combinat/parking_functions.py | 1 + src/sage/combinat/partition.py | 1 + src/sage/combinat/partition_algebra.py | 1 + src/sage/combinat/partition_kleshchev.py | 1 + src/sage/combinat/partition_shifting_algebras.py | 1 + src/sage/combinat/partition_tuple.py | 1 + src/sage/combinat/partitions.pyx | 1 + src/sage/combinat/path_tableaux/all.py | 1 + src/sage/combinat/path_tableaux/catalog.py | 1 + src/sage/combinat/path_tableaux/dyck_path.py | 1 + src/sage/combinat/path_tableaux/frieze.py | 1 + src/sage/combinat/path_tableaux/path_tableau.py | 1 + src/sage/combinat/path_tableaux/semistandard.py | 1 + src/sage/combinat/perfect_matching.py | 1 + src/sage/combinat/permutation.py | 1 + src/sage/combinat/permutation_cython.pxd | 1 + src/sage/combinat/permutation_cython.pyx | 1 + src/sage/combinat/plane_partition.py | 1 + src/sage/combinat/posets/all.py | 1 + src/sage/combinat/posets/cartesian_product.py | 1 + src/sage/combinat/posets/d_complete.py | 1 + src/sage/combinat/posets/elements.py | 1 + src/sage/combinat/posets/forest.py | 1 + src/sage/combinat/posets/hasse_cython.pyx | 1 + src/sage/combinat/posets/hasse_cython_flint.pyx | 1 + src/sage/combinat/posets/hasse_diagram.py | 1 + src/sage/combinat/posets/incidence_algebras.py | 1 + src/sage/combinat/posets/lattices.py | 1 + src/sage/combinat/posets/linear_extension_iterator.pyx | 1 + src/sage/combinat/posets/linear_extensions.py | 1 + src/sage/combinat/posets/mobile.py | 1 + src/sage/combinat/posets/moebius_algebra.py | 1 + src/sage/combinat/posets/poset_examples.py | 1 + src/sage/combinat/posets/posets.py | 1 + src/sage/combinat/q_analogues.py | 1 + src/sage/combinat/q_bernoulli.pyx | 1 + src/sage/combinat/quickref.py | 1 + src/sage/combinat/ranker.py | 1 + src/sage/combinat/recognizable_series.py | 1 + src/sage/combinat/regular_sequence.py | 1 + src/sage/combinat/restricted_growth.py | 1 + src/sage/combinat/ribbon.py | 1 + src/sage/combinat/ribbon_shaped_tableau.py | 1 + src/sage/combinat/ribbon_tableau.py | 1 + src/sage/combinat/rigged_configurations/all.py | 1 + src/sage/combinat/rigged_configurations/bij_abstract_class.py | 1 + src/sage/combinat/rigged_configurations/bij_infinity.py | 1 + src/sage/combinat/rigged_configurations/bij_type_A.py | 1 + src/sage/combinat/rigged_configurations/bij_type_A2_dual.py | 1 + src/sage/combinat/rigged_configurations/bij_type_A2_even.py | 1 + src/sage/combinat/rigged_configurations/bij_type_A2_odd.py | 1 + src/sage/combinat/rigged_configurations/bij_type_B.py | 1 + src/sage/combinat/rigged_configurations/bij_type_C.py | 1 + src/sage/combinat/rigged_configurations/bij_type_D.py | 1 + src/sage/combinat/rigged_configurations/bij_type_D_tri.py | 1 + src/sage/combinat/rigged_configurations/bij_type_D_twisted.py | 1 + src/sage/combinat/rigged_configurations/bij_type_E67.py | 1 + src/sage/combinat/rigged_configurations/bijection.py | 1 + src/sage/combinat/rigged_configurations/kleber_tree.py | 1 + src/sage/combinat/rigged_configurations/kr_tableaux.py | 1 + src/sage/combinat/rigged_configurations/rc_crystal.py | 1 + src/sage/combinat/rigged_configurations/rc_infinity.py | 1 + .../rigged_configurations/rigged_configuration_element.py | 1 + .../combinat/rigged_configurations/rigged_configurations.py | 1 + src/sage/combinat/rigged_configurations/rigged_partition.pxd | 1 + src/sage/combinat/rigged_configurations/rigged_partition.pyx | 1 + .../rigged_configurations/tensor_product_kr_tableaux.py | 1 + .../tensor_product_kr_tableaux_element.py | 1 + src/sage/combinat/root_system/all.py | 1 + src/sage/combinat/root_system/ambient_space.py | 1 + src/sage/combinat/root_system/associahedron.py | 1 + src/sage/combinat/root_system/braid_move_calculator.py | 1 + src/sage/combinat/root_system/braid_orbit.pyx | 1 + src/sage/combinat/root_system/branching_rules.py | 1 + src/sage/combinat/root_system/cartan_matrix.py | 1 + src/sage/combinat/root_system/cartan_type.py | 1 + src/sage/combinat/root_system/coxeter_group.py | 1 + src/sage/combinat/root_system/coxeter_matrix.py | 1 + src/sage/combinat/root_system/coxeter_type.py | 1 + src/sage/combinat/root_system/dynkin_diagram.py | 1 + src/sage/combinat/root_system/extended_affine_weyl_group.py | 1 + src/sage/combinat/root_system/fundamental_group.py | 1 + src/sage/combinat/root_system/hecke_algebra_representation.py | 1 + src/sage/combinat/root_system/integrable_representations.py | 1 + .../root_system/non_symmetric_macdonald_polynomials.py | 1 + src/sage/combinat/root_system/pieri_factors.py | 1 + src/sage/combinat/root_system/plot.py | 1 + src/sage/combinat/root_system/reflection_group_c.pyx | 1 + src/sage/combinat/root_system/reflection_group_complex.py | 1 + src/sage/combinat/root_system/reflection_group_element.pxd | 1 + src/sage/combinat/root_system/reflection_group_element.pyx | 1 + src/sage/combinat/root_system/reflection_group_real.py | 1 + .../combinat/root_system/root_lattice_realization_algebras.py | 1 + src/sage/combinat/root_system/root_lattice_realizations.py | 1 + src/sage/combinat/root_system/root_space.py | 1 + src/sage/combinat/root_system/root_system.py | 1 + src/sage/combinat/root_system/type_A.py | 1 + src/sage/combinat/root_system/type_A_affine.py | 1 + src/sage/combinat/root_system/type_A_infinity.py | 1 + src/sage/combinat/root_system/type_B.py | 1 + src/sage/combinat/root_system/type_BC_affine.py | 1 + src/sage/combinat/root_system/type_B_affine.py | 1 + src/sage/combinat/root_system/type_C.py | 1 + src/sage/combinat/root_system/type_C_affine.py | 1 + src/sage/combinat/root_system/type_D.py | 1 + src/sage/combinat/root_system/type_D_affine.py | 1 + src/sage/combinat/root_system/type_E.py | 1 + src/sage/combinat/root_system/type_E_affine.py | 1 + src/sage/combinat/root_system/type_F.py | 1 + src/sage/combinat/root_system/type_F_affine.py | 1 + src/sage/combinat/root_system/type_G.py | 1 + src/sage/combinat/root_system/type_G_affine.py | 1 + src/sage/combinat/root_system/type_H.py | 1 + src/sage/combinat/root_system/type_I.py | 1 + src/sage/combinat/root_system/type_Q.py | 1 + src/sage/combinat/root_system/type_affine.py | 1 + src/sage/combinat/root_system/type_dual.py | 1 + src/sage/combinat/root_system/type_folded.py | 1 + src/sage/combinat/root_system/type_marked.py | 1 + src/sage/combinat/root_system/type_reducible.py | 1 + src/sage/combinat/root_system/type_relabel.py | 1 + src/sage/combinat/root_system/type_super_A.py | 1 + src/sage/combinat/root_system/weight_lattice_realizations.py | 1 + src/sage/combinat/root_system/weight_space.py | 1 + src/sage/combinat/root_system/weyl_characters.py | 1 + src/sage/combinat/root_system/weyl_group.py | 1 + src/sage/combinat/rooted_tree.py | 1 + src/sage/combinat/rsk.py | 1 + src/sage/combinat/schubert_polynomial.py | 1 + src/sage/combinat/set_partition.py | 1 + src/sage/combinat/set_partition_iterator.pyx | 1 + src/sage/combinat/set_partition_ordered.py | 1 + src/sage/combinat/sf/all.py | 1 + src/sage/combinat/sf/character.py | 1 + src/sage/combinat/sf/classical.py | 1 + src/sage/combinat/sf/dual.py | 1 + src/sage/combinat/sf/elementary.py | 1 + src/sage/combinat/sf/hall_littlewood.py | 1 + src/sage/combinat/sf/hecke.py | 1 + src/sage/combinat/sf/homogeneous.py | 1 + src/sage/combinat/sf/jack.py | 1 + src/sage/combinat/sf/k_dual.py | 1 + src/sage/combinat/sf/kfpoly.py | 1 + src/sage/combinat/sf/llt.py | 1 + src/sage/combinat/sf/macdonald.py | 1 + src/sage/combinat/sf/monomial.py | 1 + src/sage/combinat/sf/multiplicative.py | 1 + src/sage/combinat/sf/new_kschur.py | 1 + src/sage/combinat/sf/ns_macdonald.py | 1 + src/sage/combinat/sf/orthogonal.py | 1 + src/sage/combinat/sf/orthotriang.py | 1 + src/sage/combinat/sf/powersum.py | 1 + src/sage/combinat/sf/schur.py | 1 + src/sage/combinat/sf/sf.py | 1 + src/sage/combinat/sf/sfa.py | 1 + src/sage/combinat/sf/symplectic.py | 1 + src/sage/combinat/sf/witt.py | 1 + src/sage/combinat/shard_order.py | 1 + src/sage/combinat/shifted_primed_tableau.py | 1 + src/sage/combinat/shuffle.py | 1 + src/sage/combinat/sidon_sets.py | 1 + src/sage/combinat/similarity_class_type.py | 1 + src/sage/combinat/sine_gordon.py | 1 + src/sage/combinat/six_vertex_model.py | 1 + src/sage/combinat/skew_partition.py | 1 + src/sage/combinat/skew_tableau.py | 1 + src/sage/combinat/sloane_functions.py | 1 + src/sage/combinat/specht_module.py | 1 + src/sage/combinat/species/all.py | 1 + src/sage/combinat/species/characteristic_species.py | 1 + src/sage/combinat/species/composition_species.py | 1 + src/sage/combinat/species/cycle_species.py | 1 + src/sage/combinat/species/empty_species.py | 1 + src/sage/combinat/species/functorial_composition_species.py | 1 + src/sage/combinat/species/generating_series.py | 1 + src/sage/combinat/species/library.py | 1 + src/sage/combinat/species/linear_order_species.py | 1 + src/sage/combinat/species/misc.py | 1 + src/sage/combinat/species/partition_species.py | 1 + src/sage/combinat/species/permutation_species.py | 1 + src/sage/combinat/species/product_species.py | 1 + src/sage/combinat/species/recursive_species.py | 1 + src/sage/combinat/species/set_species.py | 1 + src/sage/combinat/species/species.py | 1 + src/sage/combinat/species/structure.py | 1 + src/sage/combinat/species/subset_species.py | 1 + src/sage/combinat/species/sum_species.py | 1 + src/sage/combinat/subset.py | 1 + src/sage/combinat/subsets_hereditary.py | 1 + src/sage/combinat/subsets_pairwise.py | 1 + src/sage/combinat/subword.py | 1 + src/sage/combinat/subword_complex.py | 1 + src/sage/combinat/subword_complex_c.pyx | 1 + src/sage/combinat/super_tableau.py | 1 + src/sage/combinat/superpartition.py | 1 + src/sage/combinat/symmetric_group_algebra.py | 1 + src/sage/combinat/symmetric_group_representations.py | 1 + src/sage/combinat/t_sequences.py | 1 + src/sage/combinat/tableau.py | 1 + src/sage/combinat/tableau_residues.py | 1 + src/sage/combinat/tableau_tuple.py | 1 + src/sage/combinat/tamari_lattices.py | 1 + src/sage/combinat/tiling.py | 1 + src/sage/combinat/tools.py | 1 + src/sage/combinat/triangles_FHM.py | 1 + src/sage/combinat/tuple.py | 1 + src/sage/combinat/tutorial.py | 1 + src/sage/combinat/vector_partition.py | 1 + src/sage/combinat/words/abstract_word.py | 1 + src/sage/combinat/words/all.py | 1 + src/sage/combinat/words/alphabet.py | 1 + src/sage/combinat/words/finite_word.py | 1 + src/sage/combinat/words/infinite_word.py | 1 + src/sage/combinat/words/lyndon_word.py | 1 + src/sage/combinat/words/morphic.py | 1 + src/sage/combinat/words/morphism.py | 1 + src/sage/combinat/words/paths.py | 1 + src/sage/combinat/words/shuffle_product.py | 1 + src/sage/combinat/words/suffix_trees.py | 1 + src/sage/combinat/words/word.py | 1 + src/sage/combinat/words/word_char.pyx | 1 + src/sage/combinat/words/word_datatypes.pxd | 1 + src/sage/combinat/words/word_datatypes.pyx | 1 + src/sage/combinat/words/word_generators.py | 1 + src/sage/combinat/words/word_infinite_datatypes.py | 1 + src/sage/combinat/words/word_options.py | 1 + src/sage/combinat/words/words.py | 1 + src/sage/combinat/yang_baxter_graph.py | 1 + src/sage/cpython/__init__.py | 1 + src/sage/cpython/_py2_random.py | 1 + src/sage/cpython/all.py | 1 + src/sage/cpython/atexit.pyx | 1 + src/sage/cpython/builtin_types.pyx | 1 + src/sage/cpython/cython_metaclass.pxd | 1 + src/sage/cpython/cython_metaclass.pyx | 1 + src/sage/cpython/debug.pyx | 1 + src/sage/cpython/dict_del_by_value.pxd | 1 + src/sage/cpython/dict_del_by_value.pyx | 1 + src/sage/cpython/getattr.pxd | 1 + src/sage/cpython/getattr.pyx | 1 + src/sage/cpython/pycore_long.pxd | 1 + src/sage/cpython/python_debug.pxd | 1 + src/sage/cpython/string.pxd | 1 + src/sage/cpython/string.pyx | 1 + src/sage/cpython/type.pxd | 1 + src/sage/cpython/type.pyx | 1 + src/sage/cpython/wrapperdescr.pxd | 1 + src/sage/cpython/wrapperdescr.pyx | 1 + src/sage/crypto/__init__.py | 1 + src/sage/crypto/all.py | 1 + src/sage/crypto/block_cipher/all.py | 1 + src/sage/crypto/block_cipher/des.py | 1 + src/sage/crypto/block_cipher/miniaes.py | 1 + src/sage/crypto/block_cipher/present.py | 1 + src/sage/crypto/block_cipher/sdes.py | 1 + src/sage/crypto/boolean_function.pxd | 1 + src/sage/crypto/boolean_function.pyx | 1 + src/sage/crypto/cipher.py | 1 + src/sage/crypto/classical.py | 1 + src/sage/crypto/classical_cipher.py | 1 + src/sage/crypto/cryptosystem.py | 1 + src/sage/crypto/lattice.py | 1 + src/sage/crypto/lfsr.py | 1 + src/sage/crypto/lwe.py | 1 + src/sage/crypto/mq/__init__.py | 1 + src/sage/crypto/mq/mpolynomialsystemgenerator.py | 1 + src/sage/crypto/mq/rijndael_gf.py | 1 + src/sage/crypto/mq/sbox.py | 1 + src/sage/crypto/mq/sr.py | 1 + src/sage/crypto/public_key/all.py | 1 + src/sage/crypto/public_key/blum_goldwasser.py | 1 + src/sage/crypto/sbox.pyx | 1 + src/sage/crypto/sboxes.py | 1 + src/sage/crypto/stream.py | 1 + src/sage/crypto/stream_cipher.py | 1 + src/sage/crypto/util.py | 1 + src/sage/data_structures/all.py | 1 + src/sage/data_structures/binary_matrix.pxd | 1 + src/sage/data_structures/binary_search.pxd | 3 ++- src/sage/data_structures/binary_search.pyx | 1 + src/sage/data_structures/bitset.pxd | 1 + src/sage/data_structures/bitset.pyx | 1 + src/sage/data_structures/bitset_base.pxd | 1 + src/sage/data_structures/bitset_base.pyx | 1 + src/sage/data_structures/blas_dict.pxd | 1 + src/sage/data_structures/blas_dict.pyx | 1 + src/sage/data_structures/bounded_integer_sequences.pxd | 1 + src/sage/data_structures/bounded_integer_sequences.pyx | 1 + src/sage/data_structures/list_of_pairs.pxd | 1 + src/sage/data_structures/list_of_pairs.pyx | 1 + src/sage/data_structures/mutable_poset.py | 1 + src/sage/data_structures/sparse_bitset.pxd | 1 + src/sage/data_structures/stream.py | 1 + src/sage/databases/knotinfo_db.py | 1 + src/sage/doctest/__init__.py | 1 + src/sage/doctest/all.py | 1 + src/sage/doctest/control.py | 1 + src/sage/doctest/external.py | 1 + src/sage/doctest/fixtures.py | 1 + src/sage/doctest/forker.py | 1 + src/sage/doctest/parsing.py | 1 + src/sage/doctest/reporting.py | 1 + src/sage/doctest/sources.py | 1 + src/sage/doctest/test.py | 1 + src/sage/doctest/util.py | 1 + src/sage/dynamics/arithmetic_dynamics/affine_ds.py | 1 + src/sage/dynamics/arithmetic_dynamics/all.py | 1 + src/sage/dynamics/arithmetic_dynamics/berkovich_ds.py | 1 + src/sage/dynamics/arithmetic_dynamics/dynamical_semigroup.py | 1 + .../dynamics/arithmetic_dynamics/endPN_automorphism_group.py | 1 + src/sage/dynamics/arithmetic_dynamics/endPN_minimal_model.py | 1 + src/sage/dynamics/arithmetic_dynamics/generic_ds.py | 1 + src/sage/dynamics/arithmetic_dynamics/product_projective_ds.py | 1 + src/sage/dynamics/arithmetic_dynamics/projective_ds.py | 1 + src/sage/dynamics/arithmetic_dynamics/projective_ds_helper.pyx | 1 + src/sage/dynamics/arithmetic_dynamics/wehlerK3.py | 1 + src/sage/dynamics/complex_dynamics/all.py | 1 + src/sage/dynamics/complex_dynamics/mandel_julia.py | 1 + src/sage/dynamics/complex_dynamics/mandel_julia_helper.pyx | 1 + src/sage/env.py | 1 + src/sage/ext/all__sagemath_objects.py | 1 + src/sage/ext/cplusplus.pxd | 1 + src/sage/ext/fast_callable.pxd | 1 + src/sage/ext/fast_callable.pyx | 1 + src/sage/ext/fast_eval.pxd | 1 + src/sage/ext/fast_eval.pyx | 1 + src/sage/ext/memory.pyx | 1 + src/sage/ext/mod_int.pxd | 1 + src/sage/ext/stdsage.pxd | 1 + src/sage/features/__init__.py | 1 + src/sage/features/all.py | 1 + src/sage/features/bliss.py | 1 + src/sage/features/cddlib.py | 1 + src/sage/features/csdp.py | 1 + src/sage/features/cython.py | 1 + src/sage/features/databases.py | 1 + src/sage/features/dvipng.py | 1 + src/sage/features/ffmpeg.py | 1 + src/sage/features/four_ti_2.py | 1 + src/sage/features/fricas.py | 1 + src/sage/features/gap.py | 1 + src/sage/features/gfan.py | 1 + src/sage/features/graph_generators.py | 1 + src/sage/features/graphviz.py | 1 + src/sage/features/igraph.py | 1 + src/sage/features/imagemagick.py | 1 + src/sage/features/interfaces.py | 1 + src/sage/features/internet.py | 1 + src/sage/features/join_feature.py | 1 + src/sage/features/kenzo.py | 1 + src/sage/features/latex.py | 1 + src/sage/features/latte.py | 1 + src/sage/features/lrs.py | 1 + src/sage/features/mcqd.py | 1 + src/sage/features/meataxe.py | 1 + src/sage/features/mip_backends.py | 1 + src/sage/features/msolve.py | 1 + src/sage/features/nauty.py | 1 + src/sage/features/normaliz.py | 1 + src/sage/features/palp.py | 1 + src/sage/features/pandoc.py | 1 + src/sage/features/pdf2svg.py | 1 + src/sage/features/phitigra.py | 1 + src/sage/features/pkg_systems.py | 1 + src/sage/features/polymake.py | 1 + src/sage/features/poppler.py | 1 + src/sage/features/rubiks.py | 1 + src/sage/features/sagemath.py | 1 + src/sage/features/singular.py | 1 + src/sage/features/sphinx.py | 1 + src/sage/features/standard.py | 1 + src/sage/features/symengine_py.py | 1 + src/sage/features/tdlib.py | 1 + src/sage/functions/airy.py | 1 + src/sage/functions/all.py | 1 + src/sage/functions/bessel.py | 1 + src/sage/functions/error.py | 1 + src/sage/functions/exp_integral.py | 1 + src/sage/functions/gamma.py | 1 + src/sage/functions/generalized.py | 1 + src/sage/functions/hyperbolic.py | 1 + src/sage/functions/hypergeometric.py | 1 + src/sage/functions/jacobi.py | 1 + src/sage/functions/log.py | 1 + src/sage/functions/min_max.py | 1 + src/sage/functions/orthogonal_polys.py | 1 + src/sage/functions/other.py | 1 + src/sage/functions/piecewise.py | 1 + src/sage/functions/prime_pi.pyx | 1 + src/sage/functions/special.py | 1 + src/sage/functions/spike_function.py | 1 + src/sage/functions/transcendental.py | 1 + src/sage/functions/trig.py | 1 + src/sage/functions/wigner.py | 1 + src/sage/game_theory/all.py | 1 + src/sage/game_theory/catalog.py | 1 + src/sage/game_theory/catalog_normal_form_games.py | 1 + src/sage/game_theory/cooperative_game.py | 1 + src/sage/game_theory/gambit_docs.py | 1 + src/sage/game_theory/matching_game.py | 1 + src/sage/game_theory/normal_form_game.py | 1 + src/sage/game_theory/parser.py | 1 + src/sage/games/all.py | 1 + src/sage/games/hexad.py | 1 + src/sage/games/quantumino.py | 1 + src/sage/games/sudoku.py | 1 + src/sage/games/sudoku_backtrack.pyx | 1 + src/sage/geometry/abc.pyx | 1 + src/sage/geometry/cone.py | 1 + src/sage/geometry/cone_catalog.py | 1 + src/sage/geometry/convex_set.py | 1 + src/sage/geometry/fan.py | 1 + src/sage/geometry/fan_isomorphism.py | 1 + src/sage/geometry/fan_morphism.py | 1 + src/sage/geometry/hasse_diagram.py | 1 + src/sage/geometry/hyperbolic_space/all.py | 1 + src/sage/geometry/hyperbolic_space/hyperbolic_coercion.py | 1 + src/sage/geometry/hyperbolic_space/hyperbolic_constants.py | 1 + src/sage/geometry/hyperbolic_space/hyperbolic_geodesic.py | 1 + src/sage/geometry/hyperbolic_space/hyperbolic_interface.py | 1 + src/sage/geometry/hyperbolic_space/hyperbolic_isometry.py | 1 + src/sage/geometry/hyperbolic_space/hyperbolic_model.py | 1 + src/sage/geometry/hyperbolic_space/hyperbolic_point.py | 1 + src/sage/geometry/hyperplane_arrangement/affine_subspace.py | 1 + src/sage/geometry/hyperplane_arrangement/all.py | 1 + src/sage/geometry/hyperplane_arrangement/arrangement.py | 1 + src/sage/geometry/hyperplane_arrangement/check_freeness.py | 1 + src/sage/geometry/hyperplane_arrangement/hyperplane.py | 1 + src/sage/geometry/hyperplane_arrangement/library.py | 1 + src/sage/geometry/hyperplane_arrangement/plot.py | 1 + src/sage/geometry/integral_points.pxi | 1 + src/sage/geometry/integral_points.py | 1 + src/sage/geometry/integral_points_generic_dense.pyx | 1 + src/sage/geometry/integral_points_integer_dense.pyx | 1 + src/sage/geometry/lattice_polytope.py | 1 + src/sage/geometry/linear_expression.py | 1 + src/sage/geometry/newton_polygon.py | 1 + src/sage/geometry/palp_normal_form.pyx | 1 + src/sage/geometry/point_collection.pyx | 1 + src/sage/geometry/polyhedral_complex.py | 1 + src/sage/geometry/polyhedron/all.py | 1 + src/sage/geometry/polyhedron/backend_cdd.py | 1 + src/sage/geometry/polyhedron/backend_cdd_rdf.py | 1 + src/sage/geometry/polyhedron/backend_field.py | 1 + src/sage/geometry/polyhedron/backend_normaliz.py | 1 + src/sage/geometry/polyhedron/backend_number_field.py | 1 + src/sage/geometry/polyhedron/backend_polymake.py | 1 + src/sage/geometry/polyhedron/backend_ppl.py | 1 + src/sage/geometry/polyhedron/base.py | 1 + src/sage/geometry/polyhedron/base0.py | 1 + src/sage/geometry/polyhedron/base1.py | 1 + src/sage/geometry/polyhedron/base2.py | 1 + src/sage/geometry/polyhedron/base3.py | 1 + src/sage/geometry/polyhedron/base4.py | 1 + src/sage/geometry/polyhedron/base5.py | 1 + src/sage/geometry/polyhedron/base6.py | 1 + src/sage/geometry/polyhedron/base7.py | 1 + src/sage/geometry/polyhedron/base_QQ.py | 1 + src/sage/geometry/polyhedron/base_RDF.py | 1 + src/sage/geometry/polyhedron/base_ZZ.py | 1 + src/sage/geometry/polyhedron/base_mutable.py | 1 + src/sage/geometry/polyhedron/base_number_field.py | 1 + src/sage/geometry/polyhedron/cdd_file_format.py | 1 + src/sage/geometry/polyhedron/combinatorial_polyhedron/all.py | 1 + src/sage/geometry/polyhedron/combinatorial_polyhedron/base.pxd | 1 + src/sage/geometry/polyhedron/combinatorial_polyhedron/base.pyx | 1 + .../polyhedron/combinatorial_polyhedron/combinatorial_face.pxd | 1 + .../polyhedron/combinatorial_polyhedron/combinatorial_face.pyx | 1 + .../polyhedron/combinatorial_polyhedron/conversions.pxd | 1 + .../polyhedron/combinatorial_polyhedron/conversions.pyx | 1 + .../combinatorial_polyhedron/face_data_structure.pxd | 1 + .../polyhedron/combinatorial_polyhedron/face_iterator.pxd | 1 + .../polyhedron/combinatorial_polyhedron/face_iterator.pyx | 1 + .../combinatorial_polyhedron/face_list_data_structure.pxd | 1 + .../combinatorial_polyhedron/face_list_data_structure.pyx | 1 + .../polyhedron/combinatorial_polyhedron/list_of_faces.pxd | 1 + .../polyhedron/combinatorial_polyhedron/list_of_faces.pyx | 1 + .../combinatorial_polyhedron/polyhedron_face_lattice.pxd | 1 + .../combinatorial_polyhedron/polyhedron_face_lattice.pyx | 1 + src/sage/geometry/polyhedron/constructor.py | 1 + src/sage/geometry/polyhedron/double_description.py | 1 + .../geometry/polyhedron/double_description_inhomogeneous.py | 1 + src/sage/geometry/polyhedron/face.py | 1 + src/sage/geometry/polyhedron/generating_function.py | 1 + .../geometry/polyhedron/lattice_euclidean_group_element.py | 1 + src/sage/geometry/polyhedron/library.py | 1 + src/sage/geometry/polyhedron/misc.py | 1 + src/sage/geometry/polyhedron/modules/all.py | 1 + .../geometry/polyhedron/modules/formal_polyhedra_module.py | 1 + src/sage/geometry/polyhedron/palp_database.py | 1 + src/sage/geometry/polyhedron/parent.py | 1 + src/sage/geometry/polyhedron/plot.py | 1 + src/sage/geometry/polyhedron/ppl_lattice_polygon.py | 1 + src/sage/geometry/polyhedron/ppl_lattice_polytope.py | 1 + src/sage/geometry/polyhedron/representation.py | 1 + src/sage/geometry/pseudolines.py | 1 + src/sage/geometry/relative_interior.py | 1 + src/sage/geometry/ribbon_graph.py | 1 + src/sage/geometry/riemannian_manifolds/all.py | 1 + .../geometry/riemannian_manifolds/parametrized_surface3d.py | 1 + src/sage/geometry/riemannian_manifolds/surface3d_generators.py | 1 + src/sage/geometry/toric_lattice.py | 1 + src/sage/geometry/toric_lattice_element.pyx | 1 + src/sage/geometry/toric_plotter.py | 1 + src/sage/geometry/triangulation/all.py | 1 + src/sage/geometry/triangulation/base.pyx | 1 + src/sage/geometry/triangulation/data.pxd | 1 + src/sage/geometry/triangulation/element.py | 1 + src/sage/geometry/triangulation/functions.pxd | 1 + src/sage/geometry/triangulation/point_configuration.py | 1 + src/sage/geometry/triangulation/triangulations.pxd | 1 + src/sage/geometry/voronoi_diagram.py | 1 + src/sage/graphs/all.py | 1 + src/sage/graphs/all__sagemath_bliss.py | 1 + src/sage/graphs/all__sagemath_mcqd.py | 1 + src/sage/graphs/all__sagemath_tdlib.py | 1 + src/sage/graphs/asteroidal_triples.pyx | 1 + src/sage/graphs/base/all.py | 1 + src/sage/graphs/base/boost_graph.pxd | 1 + src/sage/graphs/base/boost_graph.pyx | 1 + src/sage/graphs/base/c_graph.pxd | 1 + src/sage/graphs/base/c_graph.pyx | 1 + src/sage/graphs/base/dense_graph.pxd | 1 + src/sage/graphs/base/dense_graph.pyx | 1 + src/sage/graphs/base/graph_backends.pxd | 1 + src/sage/graphs/base/graph_backends.pyx | 1 + src/sage/graphs/base/overview.py | 1 + src/sage/graphs/base/sparse_graph.pxd | 1 + src/sage/graphs/base/sparse_graph.pyx | 1 + src/sage/graphs/base/static_dense_graph.pxd | 1 + src/sage/graphs/base/static_dense_graph.pyx | 1 + src/sage/graphs/base/static_sparse_backend.pxd | 1 + src/sage/graphs/base/static_sparse_backend.pyx | 1 + src/sage/graphs/base/static_sparse_graph.pxd | 1 + src/sage/graphs/base/static_sparse_graph.pyx | 1 + src/sage/graphs/bipartite_graph.py | 1 + src/sage/graphs/centrality.pyx | 1 + src/sage/graphs/chrompoly.pyx | 1 + src/sage/graphs/cliquer.pxd | 1 + src/sage/graphs/cliquer.pyx | 1 + src/sage/graphs/comparability.pyx | 1 + src/sage/graphs/connectivity.pxd | 1 + src/sage/graphs/connectivity.pyx | 1 + src/sage/graphs/convexity_properties.pxd | 1 + src/sage/graphs/convexity_properties.pyx | 1 + src/sage/graphs/digraph.py | 1 + src/sage/graphs/digraph_generators.py | 1 + src/sage/graphs/distances_all_pairs.pxd | 1 + src/sage/graphs/distances_all_pairs.pyx | 1 + src/sage/graphs/domination.py | 1 + src/sage/graphs/dot2tex_utils.py | 1 + src/sage/graphs/edge_connectivity.pyx | 1 + src/sage/graphs/generators/all.py | 1 + src/sage/graphs/generators/basic.py | 1 + src/sage/graphs/generators/chessboard.py | 1 + src/sage/graphs/generators/classical_geometries.py | 1 + src/sage/graphs/generators/degree_sequence.py | 1 + src/sage/graphs/generators/distance_regular.pyx | 1 + src/sage/graphs/generators/families.py | 1 + src/sage/graphs/generators/intersection.py | 1 + src/sage/graphs/generators/platonic_solids.py | 1 + src/sage/graphs/generators/random.py | 1 + src/sage/graphs/generators/smallgraphs.py | 1 + src/sage/graphs/generators/world_map.py | 1 + src/sage/graphs/generic_graph.py | 1 + src/sage/graphs/generic_graph_pyx.pxd | 1 + src/sage/graphs/generic_graph_pyx.pyx | 1 + src/sage/graphs/genus.pyx | 1 + src/sage/graphs/graph.py | 1 + src/sage/graphs/graph_coloring.pyx | 1 + src/sage/graphs/graph_database.py | 1 + src/sage/graphs/graph_decompositions/all.py | 1 + src/sage/graphs/graph_decompositions/all__sagemath_tdlib.py | 1 + src/sage/graphs/graph_decompositions/bandwidth.pyx | 1 + src/sage/graphs/graph_decompositions/clique_separators.pyx | 1 + src/sage/graphs/graph_decompositions/cutwidth.pyx | 1 + src/sage/graphs/graph_decompositions/fast_digraph.pxd | 1 + src/sage/graphs/graph_decompositions/fast_digraph.pyx | 1 + src/sage/graphs/graph_decompositions/graph_products.pyx | 1 + src/sage/graphs/graph_decompositions/modular_decomposition.py | 1 + src/sage/graphs/graph_decompositions/rankwidth.pxd | 1 + src/sage/graphs/graph_decompositions/rankwidth.pyx | 1 + src/sage/graphs/graph_decompositions/tree_decomposition.pxd | 1 + src/sage/graphs/graph_decompositions/tree_decomposition.pyx | 1 + src/sage/graphs/graph_decompositions/vertex_separation.pxd | 1 + src/sage/graphs/graph_decompositions/vertex_separation.pyx | 1 + src/sage/graphs/graph_editor.py | 1 + src/sage/graphs/graph_generators.py | 1 + src/sage/graphs/graph_generators_pyx.pyx | 1 + src/sage/graphs/graph_input.py | 1 + src/sage/graphs/graph_latex.py | 1 + src/sage/graphs/graph_list.py | 1 + src/sage/graphs/graph_plot.py | 1 + src/sage/graphs/graph_plot_js.py | 1 + src/sage/graphs/hyperbolicity.pyx | 1 + src/sage/graphs/hypergraph_generators.py | 1 + src/sage/graphs/independent_sets.pxd | 1 + src/sage/graphs/independent_sets.pyx | 1 + src/sage/graphs/isgci.py | 1 + src/sage/graphs/isoperimetric_inequalities.pyx | 1 + src/sage/graphs/line_graph.pyx | 1 + src/sage/graphs/lovasz_theta.py | 1 + src/sage/graphs/matchpoly.pyx | 1 + src/sage/graphs/orientations.py | 1 + src/sage/graphs/partial_cube.py | 1 + src/sage/graphs/path_enumeration.pyx | 1 + src/sage/graphs/planarity.pyx | 1 + src/sage/graphs/pq_trees.py | 1 + src/sage/graphs/print_graphs.py | 1 + src/sage/graphs/schnyder.py | 1 + src/sage/graphs/spanning_tree.pyx | 1 + src/sage/graphs/strongly_regular_db.pyx | 1 + src/sage/graphs/traversals.pxd | 1 + src/sage/graphs/traversals.pyx | 1 + src/sage/graphs/trees.pxd | 1 + src/sage/graphs/trees.pyx | 1 + src/sage/graphs/tutte_polynomial.py | 1 + src/sage/graphs/views.pyx | 1 + src/sage/graphs/weakly_chordal.pyx | 1 + src/sage/groups/abelian_gps/abelian_aut.py | 1 + src/sage/groups/abelian_gps/abelian_group.py | 1 + src/sage/groups/abelian_gps/abelian_group_element.py | 1 + src/sage/groups/abelian_gps/abelian_group_gap.py | 1 + src/sage/groups/abelian_gps/abelian_group_morphism.py | 1 + src/sage/groups/abelian_gps/all.py | 1 + src/sage/groups/abelian_gps/dual_abelian_group.py | 1 + src/sage/groups/abelian_gps/dual_abelian_group_element.py | 1 + src/sage/groups/abelian_gps/element_base.py | 1 + src/sage/groups/abelian_gps/values.py | 1 + src/sage/groups/additive_abelian/additive_abelian_group.py | 1 + src/sage/groups/additive_abelian/additive_abelian_wrapper.py | 1 + src/sage/groups/additive_abelian/all.py | 1 + src/sage/groups/additive_abelian/qmodnz.py | 1 + src/sage/groups/additive_abelian/qmodnz_element.py | 1 + src/sage/groups/affine_gps/affine_group.py | 1 + src/sage/groups/affine_gps/all.py | 1 + src/sage/groups/affine_gps/catalog.py | 1 + src/sage/groups/affine_gps/euclidean_group.py | 1 + src/sage/groups/affine_gps/group_element.py | 1 + src/sage/groups/all.py | 1 + src/sage/groups/artin.py | 1 + src/sage/groups/braid.py | 1 + src/sage/groups/cactus_group.py | 1 + src/sage/groups/class_function.py | 1 + src/sage/groups/conjugacy_classes.py | 1 + src/sage/groups/cubic_braid.py | 1 + src/sage/groups/finitely_presented.py | 1 + src/sage/groups/finitely_presented_catalog.py | 1 + src/sage/groups/finitely_presented_named.py | 1 + src/sage/groups/fqf_orthogonal.py | 1 + src/sage/groups/free_group.py | 1 + src/sage/groups/galois_group.py | 1 + src/sage/groups/galois_group_perm.py | 1 + src/sage/groups/generic.py | 1 + src/sage/groups/group.pxd | 1 + src/sage/groups/group.pyx | 1 + src/sage/groups/group_exp.py | 1 + src/sage/groups/group_semidirect_product.py | 1 + src/sage/groups/groups_catalog.py | 1 + src/sage/groups/indexed_free_group.py | 1 + src/sage/groups/kernel_subgroup.py | 1 + src/sage/groups/libgap_group.py | 1 + src/sage/groups/libgap_mixin.py | 1 + src/sage/groups/libgap_morphism.py | 1 + src/sage/groups/libgap_wrapper.pxd | 1 + src/sage/groups/libgap_wrapper.pyx | 1 + src/sage/groups/lie_gps/all.py | 1 + src/sage/groups/lie_gps/catalog.py | 1 + src/sage/groups/lie_gps/nilpotent_lie_group.py | 1 + src/sage/groups/matrix_gps/all.py | 1 + src/sage/groups/matrix_gps/binary_dihedral.py | 1 + src/sage/groups/matrix_gps/catalog.py | 1 + src/sage/groups/matrix_gps/coxeter_group.py | 1 + src/sage/groups/matrix_gps/finitely_generated.py | 1 + src/sage/groups/matrix_gps/finitely_generated_gap.py | 1 + src/sage/groups/matrix_gps/group_element.pxd | 1 + src/sage/groups/matrix_gps/group_element.pyx | 1 + src/sage/groups/matrix_gps/group_element_gap.pxd | 1 + src/sage/groups/matrix_gps/group_element_gap.pyx | 1 + src/sage/groups/matrix_gps/heisenberg.py | 1 + src/sage/groups/matrix_gps/isometries.py | 1 + src/sage/groups/matrix_gps/linear.py | 1 + src/sage/groups/matrix_gps/linear_gap.py | 1 + src/sage/groups/matrix_gps/matrix_group.py | 1 + src/sage/groups/matrix_gps/matrix_group_gap.py | 1 + src/sage/groups/matrix_gps/named_group.py | 1 + src/sage/groups/matrix_gps/named_group_gap.py | 1 + src/sage/groups/matrix_gps/orthogonal.py | 1 + src/sage/groups/matrix_gps/orthogonal_gap.py | 1 + src/sage/groups/matrix_gps/symplectic.py | 1 + src/sage/groups/matrix_gps/symplectic_gap.py | 1 + src/sage/groups/matrix_gps/unitary.py | 1 + src/sage/groups/matrix_gps/unitary_gap.py | 1 + src/sage/groups/misc_gps/all.py | 1 + src/sage/groups/misc_gps/argument_groups.py | 1 + src/sage/groups/misc_gps/imaginary_groups.py | 1 + src/sage/groups/misc_gps/misc_groups.py | 1 + src/sage/groups/misc_gps/misc_groups_catalog.py | 1 + src/sage/groups/old.pxd | 1 + src/sage/groups/old.pyx | 1 + src/sage/groups/pari_group.py | 1 + src/sage/groups/perm_gps/all.py | 1 + src/sage/groups/perm_gps/constructor.py | 1 + src/sage/groups/perm_gps/cubegroup.py | 1 + src/sage/groups/perm_gps/partn_ref/all.py | 1 + .../perm_gps/partn_ref/automorphism_group_canonical_label.pxd | 1 + .../perm_gps/partn_ref/automorphism_group_canonical_label.pyx | 1 + src/sage/groups/perm_gps/partn_ref/canonical_augmentation.pxd | 1 + src/sage/groups/perm_gps/partn_ref/canonical_augmentation.pyx | 1 + src/sage/groups/perm_gps/partn_ref/data_structures.pxd | 1 + src/sage/groups/perm_gps/partn_ref/data_structures.pyx | 1 + src/sage/groups/perm_gps/partn_ref/double_coset.pxd | 1 + src/sage/groups/perm_gps/partn_ref/double_coset.pyx | 1 + src/sage/groups/perm_gps/partn_ref/refinement_binary.pxd | 1 + src/sage/groups/perm_gps/partn_ref/refinement_binary.pyx | 1 + src/sage/groups/perm_gps/partn_ref/refinement_graphs.pxd | 1 + src/sage/groups/perm_gps/partn_ref/refinement_graphs.pyx | 1 + src/sage/groups/perm_gps/partn_ref/refinement_lists.pxd | 1 + src/sage/groups/perm_gps/partn_ref/refinement_lists.pyx | 1 + src/sage/groups/perm_gps/partn_ref/refinement_matrices.pxd | 1 + src/sage/groups/perm_gps/partn_ref/refinement_matrices.pyx | 1 + src/sage/groups/perm_gps/partn_ref/refinement_python.pxd | 1 + src/sage/groups/perm_gps/partn_ref/refinement_python.pyx | 1 + src/sage/groups/perm_gps/partn_ref/refinement_sets.pxd | 1 + src/sage/groups/perm_gps/partn_ref/refinement_sets.pyx | 1 + src/sage/groups/perm_gps/partn_ref2/all.py | 1 + src/sage/groups/perm_gps/partn_ref2/refinement_generic.pxd | 1 + src/sage/groups/perm_gps/partn_ref2/refinement_generic.pyx | 1 + src/sage/groups/perm_gps/permgroup.py | 1 + src/sage/groups/perm_gps/permgroup_element.pxd | 1 + src/sage/groups/perm_gps/permgroup_element.pyx | 1 + src/sage/groups/perm_gps/permgroup_morphism.py | 1 + src/sage/groups/perm_gps/permgroup_named.py | 1 + src/sage/groups/perm_gps/permutation_groups_catalog.py | 1 + src/sage/groups/perm_gps/symgp_conjugacy_class.py | 1 + src/sage/groups/raag.py | 1 + src/sage/groups/semimonomial_transformations/all.py | 1 + .../semimonomial_transformation.pxd | 1 + .../semimonomial_transformation.pyx | 1 + .../semimonomial_transformation_group.py | 1 + src/sage/homology/algebraic_topological_model.py | 1 + src/sage/homology/all.py | 1 + src/sage/homology/chain_complex.py | 1 + src/sage/homology/chain_complex_homspace.py | 1 + src/sage/homology/chain_complex_morphism.py | 1 + src/sage/homology/chain_homotopy.py | 1 + src/sage/homology/chains.py | 1 + src/sage/homology/free_resolution.py | 1 + src/sage/homology/graded_resolution.py | 1 + src/sage/homology/hochschild_complex.py | 1 + src/sage/homology/homology_group.py | 1 + src/sage/homology/homology_morphism.py | 1 + src/sage/homology/homology_vector_space_with_basis.py | 1 + src/sage/homology/koszul_complex.py | 1 + src/sage/homology/matrix_utils.py | 1 + src/sage/interfaces/abc.py | 1 + src/sage/interfaces/all.py | 1 + src/sage/interfaces/all__sagemath_polyhedra.py | 1 + src/sage/interfaces/cleaner.py | 1 + src/sage/interfaces/ecm.py | 1 + src/sage/interfaces/expect.py | 1 + src/sage/interfaces/four_ti_2.py | 1 + src/sage/interfaces/fricas.py | 1 + src/sage/interfaces/gap.py | 1 + src/sage/interfaces/gap3.py | 1 + src/sage/interfaces/gap_workspace.py | 1 + src/sage/interfaces/giac.py | 1 + src/sage/interfaces/gnuplot.py | 1 + src/sage/interfaces/gp.py | 1 + src/sage/interfaces/interface.py | 1 + src/sage/interfaces/jmoldata.py | 1 + src/sage/interfaces/latte.py | 1 + src/sage/interfaces/magma.py | 1 + src/sage/interfaces/magma_free.py | 1 + src/sage/interfaces/maple.py | 1 + src/sage/interfaces/mathematica.py | 1 + src/sage/interfaces/mathics.py | 1 + src/sage/interfaces/maxima.py | 1 + src/sage/interfaces/maxima_abstract.py | 1 + src/sage/interfaces/maxima_lib.py | 1 + src/sage/interfaces/povray.py | 1 + src/sage/interfaces/process.pxd | 1 + src/sage/interfaces/process.pyx | 1 + src/sage/interfaces/qepcad.py | 1 + src/sage/interfaces/quit.py | 1 + src/sage/interfaces/sage0.py | 1 + src/sage/interfaces/sagespawn.pyx | 1 + src/sage/interfaces/sympy.py | 1 + src/sage/interfaces/sympy_wrapper.py | 1 + src/sage/interfaces/tab_completion.py | 1 + src/sage/interfaces/tachyon.py | 1 + src/sage/interfaces/tides.py | 1 + src/sage/knots/all.py | 1 + src/sage/knots/gauss_code.py | 1 + src/sage/knots/knot.py | 1 + src/sage/knots/knot_table.py | 1 + src/sage/knots/knotinfo.py | 1 + src/sage/knots/link.py | 1 + src/sage/lfunctions/lcalc.py | 1 + src/sage/libs/all__sagemath_coxeter3.py | 1 + src/sage/libs/all__sagemath_meataxe.py | 1 + src/sage/libs/all__sagemath_objects.py | 1 + src/sage/libs/all__sagemath_sirocco.py | 1 + src/sage/libs/arb/__init__.py | 1 + src/sage/libs/arb/acb.pxd | 1 + src/sage/libs/arb/acb_calc.pxd | 1 + src/sage/libs/arb/acb_elliptic.pxd | 1 + src/sage/libs/arb/acb_hypgeom.pxd | 1 + src/sage/libs/arb/acb_mat.pxd | 1 + src/sage/libs/arb/acb_modular.pxd | 1 + src/sage/libs/arb/acb_poly.pxd | 1 + src/sage/libs/arb/arb.pxd | 1 + src/sage/libs/arb/arb_fmpz_poly.pxd | 1 + src/sage/libs/arb/arb_hypgeom.pxd | 1 + src/sage/libs/arb/arb_version.pyx | 1 + src/sage/libs/arb/arf.pxd | 1 + src/sage/libs/arb/arith.pyx | 1 + src/sage/libs/arb/bernoulli.pxd | 1 + src/sage/libs/arb/mag.pxd | 1 + src/sage/libs/arb/types.pxd | 1 + src/sage/libs/braiding.pyx | 1 + src/sage/libs/ecl.pxd | 1 + src/sage/libs/ecl.pyx | 1 + src/sage/libs/eclib/__init__.pxd | 1 + src/sage/libs/eclib/__init__.py | 1 + src/sage/libs/eclib/all.py | 1 + src/sage/libs/eclib/constructor.py | 1 + src/sage/libs/eclib/homspace.pxd | 1 + src/sage/libs/eclib/homspace.pyx | 1 + src/sage/libs/eclib/interface.py | 1 + src/sage/libs/eclib/mat.pxd | 1 + src/sage/libs/eclib/mat.pyx | 1 + src/sage/libs/eclib/mwrank.pyx | 1 + src/sage/libs/eclib/newforms.pxd | 1 + src/sage/libs/eclib/newforms.pyx | 1 + src/sage/libs/flint/__init__.py | 1 + src/sage/libs/flint/arith.pxd | 1 + src/sage/libs/flint/arith.pyx | 1 + src/sage/libs/flint/flint.pxd | 1 + src/sage/libs/flint/flint.pyx | 1 + src/sage/libs/flint/fmpq.pxd | 1 + src/sage/libs/flint/fmpq_mat.pxd | 1 + src/sage/libs/flint/fmpq_poly.pxd | 1 + src/sage/libs/flint/fmpq_poly.pyx | 1 + src/sage/libs/flint/fmpz.pxd | 1 + src/sage/libs/flint/fmpz_factor.pxd | 1 + src/sage/libs/flint/fmpz_factor.pyx | 1 + src/sage/libs/flint/fmpz_mat.pxd | 1 + src/sage/libs/flint/fmpz_mod.pxd | 1 + src/sage/libs/flint/fmpz_mod_poly.pxd | 1 + src/sage/libs/flint/fmpz_poly.pxd | 1 + src/sage/libs/flint/fmpz_poly.pyx | 1 + src/sage/libs/flint/fmpz_poly_mat.pxd | 1 + src/sage/libs/flint/fmpz_poly_q.pxd | 1 + src/sage/libs/flint/fmpz_vec.pxd | 1 + src/sage/libs/flint/fq.pxd | 1 + src/sage/libs/flint/fq_nmod.pxd | 1 + src/sage/libs/flint/nmod_poly.pxd | 1 + src/sage/libs/flint/nmod_poly_linkage.pxi | 1 + src/sage/libs/flint/nmod_vec.pxd | 1 + src/sage/libs/flint/ntl_interface.pxd | 1 + src/sage/libs/flint/padic.pxd | 1 + src/sage/libs/flint/padic_poly.pxd | 1 + src/sage/libs/flint/qadic.pxd | 1 + src/sage/libs/flint/qsieve.pxd | 1 + src/sage/libs/flint/qsieve.pyx | 1 + src/sage/libs/flint/thread_pool.pxd | 1 + src/sage/libs/flint/types.pxd | 1 + src/sage/libs/flint/ulong_extras.pxd | 1 + src/sage/libs/flint/ulong_extras.pyx | 1 + src/sage/libs/gap/all.py | 1 + src/sage/libs/gap/all_documented_functions.py | 1 + src/sage/libs/gap/assigned_names.py | 1 + src/sage/libs/gap/context_managers.py | 1 + src/sage/libs/gap/element.pxd | 1 + src/sage/libs/gap/element.pyx | 1 + src/sage/libs/gap/gap_functions.py | 1 + src/sage/libs/gap/gap_globals.py | 1 + src/sage/libs/gap/gap_includes.pxd | 1 + src/sage/libs/gap/libgap.pyx | 1 + src/sage/libs/gap/operations.py | 1 + src/sage/libs/gap/saved_workspace.py | 1 + src/sage/libs/gap/test.py | 1 + src/sage/libs/gap/test_long.py | 1 + src/sage/libs/gap/util.pxd | 1 + src/sage/libs/gap/util.pyx | 1 + src/sage/libs/giac/__init__.py | 1 + src/sage/libs/giac/auto-methods.pxi | 1 + src/sage/libs/giac/giac.pxd | 1 + src/sage/libs/giac/giac.pyx | 1 + src/sage/libs/giac/keywords.pxi | 1 + src/sage/libs/glpk/__init__.py | 1 + src/sage/libs/glpk/constants.pxd | 1 + src/sage/libs/glpk/env.pxd | 1 + src/sage/libs/glpk/error.pyx | 1 + src/sage/libs/glpk/graph.pxd | 1 + src/sage/libs/glpk/lp.pxd | 1 + src/sage/libs/glpk/types.pxd | 1 + src/sage/libs/gmp/__init__.py | 1 + src/sage/libs/gmp/all.pxd | 1 + src/sage/libs/gmp/binop.pxd | 1 + src/sage/libs/gmp/misc.pxd | 1 + src/sage/libs/gmp/mpf.pxd | 1 + src/sage/libs/gmp/mpn.pxd | 1 + src/sage/libs/gmp/mpq.pxd | 1 + src/sage/libs/gmp/mpz.pxd | 1 + src/sage/libs/gmp/pylong.pxd | 1 + src/sage/libs/gmp/pylong.pyx | 1 + src/sage/libs/gmp/random.pxd | 1 + src/sage/libs/gmp/randomize.pxd | 1 + src/sage/libs/gmp/types.pxd | 1 + src/sage/libs/gmpxx.pxd | 1 + src/sage/libs/gsl/__init__.py | 1 + src/sage/libs/gsl/airy.pxd | 1 + src/sage/libs/gsl/all.pxd | 1 + src/sage/libs/gsl/array.pxd | 1 + src/sage/libs/gsl/array.pyx | 1 + src/sage/libs/gsl/bessel.pxd | 1 + src/sage/libs/gsl/blas.pxd | 1 + src/sage/libs/gsl/blas_types.pxd | 1 + src/sage/libs/gsl/block.pxd | 1 + src/sage/libs/gsl/chebyshev.pxd | 1 + src/sage/libs/gsl/clausen.pxd | 1 + src/sage/libs/gsl/combination.pxd | 1 + src/sage/libs/gsl/complex.pxd | 1 + src/sage/libs/gsl/coulomb.pxd | 1 + src/sage/libs/gsl/coupling.pxd | 1 + src/sage/libs/gsl/dawson.pxd | 1 + src/sage/libs/gsl/debye.pxd | 1 + src/sage/libs/gsl/dilog.pxd | 1 + src/sage/libs/gsl/eigen.pxd | 1 + src/sage/libs/gsl/elementary.pxd | 1 + src/sage/libs/gsl/ellint.pxd | 1 + src/sage/libs/gsl/elljac.pxd | 1 + src/sage/libs/gsl/erf.pxd | 1 + src/sage/libs/gsl/errno.pxd | 1 + src/sage/libs/gsl/exp.pxd | 1 + src/sage/libs/gsl/expint.pxd | 1 + src/sage/libs/gsl/fermi_dirac.pxd | 1 + src/sage/libs/gsl/fft.pxd | 1 + src/sage/libs/gsl/fit.pxd | 1 + src/sage/libs/gsl/gamma.pxd | 1 + src/sage/libs/gsl/gegenbauer.pxd | 1 + src/sage/libs/gsl/histogram.pxd | 1 + src/sage/libs/gsl/hyperg.pxd | 1 + src/sage/libs/gsl/integration.pxd | 1 + src/sage/libs/gsl/interp.pxd | 1 + src/sage/libs/gsl/laguerre.pxd | 1 + src/sage/libs/gsl/lambert.pxd | 1 + src/sage/libs/gsl/legendre.pxd | 1 + src/sage/libs/gsl/linalg.pxd | 1 + src/sage/libs/gsl/log.pxd | 1 + src/sage/libs/gsl/math.pxd | 1 + src/sage/libs/gsl/matrix.pxd | 1 + src/sage/libs/gsl/matrix_complex.pxd | 1 + src/sage/libs/gsl/min.pxd | 1 + src/sage/libs/gsl/monte.pxd | 1 + src/sage/libs/gsl/ntuple.pxd | 1 + src/sage/libs/gsl/odeiv.pxd | 1 + src/sage/libs/gsl/permutation.pxd | 1 + src/sage/libs/gsl/poly.pxd | 1 + src/sage/libs/gsl/pow_int.pxd | 1 + src/sage/libs/gsl/psi.pxd | 1 + src/sage/libs/gsl/qrng.pxd | 1 + src/sage/libs/gsl/random.pxd | 1 + src/sage/libs/gsl/rng.pxd | 1 + src/sage/libs/gsl/roots.pxd | 1 + src/sage/libs/gsl/sort.pxd | 1 + src/sage/libs/gsl/statistics.pxd | 1 + src/sage/libs/gsl/sum.pxd | 1 + src/sage/libs/gsl/synchrotron.pxd | 1 + src/sage/libs/gsl/transport.pxd | 1 + src/sage/libs/gsl/trig.pxd | 1 + src/sage/libs/gsl/types.pxd | 1 + src/sage/libs/gsl/vector.pxd | 1 + src/sage/libs/gsl/vector_complex.pxd | 1 + src/sage/libs/gsl/wavelet.pxd | 1 + src/sage/libs/gsl/zeta.pxd | 1 + src/sage/libs/homfly.pyx | 1 + src/sage/libs/iml.pxd | 3 ++- src/sage/libs/lcalc/__init__.py | 1 + src/sage/libs/lcalc/lcalc_Lfunction.pxd | 1 + src/sage/libs/lcalc/lcalc_Lfunction.pyx | 1 + src/sage/libs/libecm.pyx | 1 + src/sage/libs/linbox/__init__.py | 1 + src/sage/libs/linbox/conversion.pxd | 1 + src/sage/libs/linbox/fflas.pxd | 1 + src/sage/libs/linbox/givaro.pxd | 1 + src/sage/libs/linbox/linbox.pxd | 1 + src/sage/libs/linbox/linbox_flint_interface.pxd | 1 + src/sage/libs/linbox/linbox_flint_interface.pyx | 1 + src/sage/libs/linkages/__init__.py | 1 + src/sage/libs/linkages/padics/API.pxi | 1 + src/sage/libs/linkages/padics/Polynomial_ram.pxi | 1 + src/sage/libs/linkages/padics/Polynomial_shared.pxi | 1 + src/sage/libs/linkages/padics/__init__.py | 1 + src/sage/libs/linkages/padics/fmpz_poly_unram.pxi | 1 + src/sage/libs/linkages/padics/mpz.pxi | 1 + src/sage/libs/linkages/padics/relaxed/API.pxi | 1 + src/sage/libs/linkages/padics/relaxed/__init__.py | 1 + src/sage/libs/linkages/padics/relaxed/flint.pxi | 1 + src/sage/libs/linkages/padics/unram_shared.pxi | 1 + src/sage/libs/lrcalc/__init__.py | 1 + src/sage/libs/lrcalc/lrcalc.py | 1 + src/sage/libs/m4ri.pxd | 1 + src/sage/libs/m4rie.pxd | 1 + src/sage/libs/mpc/__init__.pxd | 1 + src/sage/libs/mpc/types.pxd | 1 + src/sage/libs/mpfi/__init__.pxd | 1 + src/sage/libs/mpfi/types.pxd | 1 + src/sage/libs/mpfr/__init__.pxd | 1 + src/sage/libs/mpfr/types.pxd | 1 + src/sage/libs/mpmath/all.py | 1 + src/sage/libs/mpmath/ext_impl.pxd | 1 + src/sage/libs/mpmath/ext_impl.pyx | 1 + src/sage/libs/mpmath/ext_libmp.pyx | 1 + src/sage/libs/mpmath/ext_main.pxd | 1 + src/sage/libs/mpmath/ext_main.pyx | 1 + src/sage/libs/mpmath/utils.pyx | 1 + src/sage/libs/ntl/GF2.pxd | 1 + src/sage/libs/ntl/GF2E.pxd | 1 + src/sage/libs/ntl/GF2EX.pxd | 1 + src/sage/libs/ntl/GF2X.pxd | 1 + src/sage/libs/ntl/ZZ.pxd | 1 + src/sage/libs/ntl/ZZX.pxd | 1 + src/sage/libs/ntl/ZZ_p.pxd | 1 + src/sage/libs/ntl/ZZ_pE.pxd | 1 + src/sage/libs/ntl/ZZ_pEX.pxd | 1 + src/sage/libs/ntl/ZZ_pX.pxd | 1 + src/sage/libs/ntl/__init__.py | 1 + src/sage/libs/ntl/all.py | 1 + src/sage/libs/ntl/conversion.pxd | 1 + src/sage/libs/ntl/convert.pxd | 1 + src/sage/libs/ntl/convert.pyx | 1 + src/sage/libs/ntl/decl.pxi | 1 + src/sage/libs/ntl/error.pyx | 1 + src/sage/libs/ntl/lzz_p.pxd | 1 + src/sage/libs/ntl/lzz_pX.pxd | 1 + src/sage/libs/ntl/mat_GF2.pxd | 1 + src/sage/libs/ntl/mat_GF2E.pxd | 1 + src/sage/libs/ntl/mat_ZZ.pxd | 1 + src/sage/libs/ntl/misc.pxi | 1 + src/sage/libs/ntl/ntl_GF2.pxd | 1 + src/sage/libs/ntl/ntl_GF2.pyx | 1 + src/sage/libs/ntl/ntl_GF2E.pxd | 1 + src/sage/libs/ntl/ntl_GF2E.pyx | 1 + src/sage/libs/ntl/ntl_GF2EContext.pxd | 1 + src/sage/libs/ntl/ntl_GF2EContext.pyx | 1 + src/sage/libs/ntl/ntl_GF2EX.pxd | 1 + src/sage/libs/ntl/ntl_GF2EX.pyx | 1 + src/sage/libs/ntl/ntl_GF2X.pxd | 1 + src/sage/libs/ntl/ntl_GF2X.pyx | 1 + src/sage/libs/ntl/ntl_GF2X_linkage.pxi | 1 + src/sage/libs/ntl/ntl_ZZ.pxd | 1 + src/sage/libs/ntl/ntl_ZZ.pyx | 1 + src/sage/libs/ntl/ntl_ZZX.pxd | 1 + src/sage/libs/ntl/ntl_ZZX.pyx | 1 + src/sage/libs/ntl/ntl_ZZ_p.pxd | 1 + src/sage/libs/ntl/ntl_ZZ_p.pyx | 1 + src/sage/libs/ntl/ntl_ZZ_pContext.pxd | 1 + src/sage/libs/ntl/ntl_ZZ_pContext.pyx | 1 + src/sage/libs/ntl/ntl_ZZ_pE.pxd | 1 + src/sage/libs/ntl/ntl_ZZ_pE.pyx | 1 + src/sage/libs/ntl/ntl_ZZ_pEContext.pxd | 1 + src/sage/libs/ntl/ntl_ZZ_pEContext.pyx | 1 + src/sage/libs/ntl/ntl_ZZ_pEX.pxd | 1 + src/sage/libs/ntl/ntl_ZZ_pEX.pyx | 1 + src/sage/libs/ntl/ntl_ZZ_pEX_linkage.pxi | 1 + src/sage/libs/ntl/ntl_ZZ_pX.pxd | 1 + src/sage/libs/ntl/ntl_ZZ_pX.pyx | 1 + src/sage/libs/ntl/ntl_lzz_p.pxd | 1 + src/sage/libs/ntl/ntl_lzz_p.pyx | 1 + src/sage/libs/ntl/ntl_lzz_pContext.pxd | 1 + src/sage/libs/ntl/ntl_lzz_pContext.pyx | 1 + src/sage/libs/ntl/ntl_lzz_pX.pxd | 1 + src/sage/libs/ntl/ntl_lzz_pX.pyx | 1 + src/sage/libs/ntl/ntl_mat_GF2.pxd | 1 + src/sage/libs/ntl/ntl_mat_GF2.pyx | 1 + src/sage/libs/ntl/ntl_mat_GF2E.pxd | 1 + src/sage/libs/ntl/ntl_mat_GF2E.pyx | 1 + src/sage/libs/ntl/ntl_mat_ZZ.pxd | 1 + src/sage/libs/ntl/ntl_mat_ZZ.pyx | 1 + src/sage/libs/ntl/ntl_tools.pxd | 1 + src/sage/libs/ntl/types.pxd | 1 + src/sage/libs/ntl/vec_GF2.pxd | 1 + src/sage/libs/ntl/vec_GF2E.pxd | 1 + src/sage/libs/pari/__init__.py | 1 + src/sage/libs/pari/all.py | 1 + src/sage/libs/pari/convert_flint.pxd | 1 + src/sage/libs/pari/convert_flint.pyx | 1 + src/sage/libs/pari/convert_gmp.pxd | 1 + src/sage/libs/pari/convert_gmp.pyx | 1 + src/sage/libs/pari/convert_sage.pxd | 1 + src/sage/libs/pari/convert_sage.pyx | 1 + src/sage/libs/pari/convert_sage_complex_double.pxd | 1 + src/sage/libs/pari/convert_sage_complex_double.pyx | 1 + src/sage/libs/pari/convert_sage_matrix.pyx | 1 + src/sage/libs/pari/convert_sage_real_double.pxd | 1 + src/sage/libs/pari/convert_sage_real_double.pyx | 1 + src/sage/libs/pari/convert_sage_real_mpfr.pxd | 1 + src/sage/libs/pari/convert_sage_real_mpfr.pyx | 1 + src/sage/libs/pari/misc.pxd | 1 + src/sage/libs/pari/misc.pyx | 1 + src/sage/libs/pari/tests.py | 1 + src/sage/libs/polybori/__init__.pxd | 1 + src/sage/libs/polybori/decl.pxd | 1 + src/sage/libs/pynac/__init__.py | 1 + src/sage/libs/pynac/pynac.py | 1 + src/sage/libs/singular/__init__.py | 1 + src/sage/libs/singular/decl.pxd | 1 + src/sage/libs/singular/function.pxd | 1 + src/sage/libs/singular/function.pyx | 1 + src/sage/libs/singular/function_factory.py | 1 + src/sage/libs/singular/groebner_strategy.pxd | 1 + src/sage/libs/singular/groebner_strategy.pyx | 1 + src/sage/libs/singular/option.pyx | 1 + src/sage/libs/singular/polynomial.pxd | 1 + src/sage/libs/singular/polynomial.pyx | 1 + src/sage/libs/singular/ring.pxd | 1 + src/sage/libs/singular/ring.pyx | 1 + src/sage/libs/singular/singular.pxd | 1 + src/sage/libs/singular/singular.pyx | 1 + src/sage/libs/singular/standard_options.py | 1 + src/sage/libs/symmetrica/__init__.py | 1 + src/sage/libs/symmetrica/all.py | 1 + src/sage/libs/symmetrica/kostka.pxi | 1 + src/sage/libs/symmetrica/part.pxi | 1 + src/sage/libs/symmetrica/plet.pxi | 1 + src/sage/libs/symmetrica/sab.pxi | 1 + src/sage/libs/symmetrica/sb.pxi | 1 + src/sage/libs/symmetrica/sc.pxi | 1 + src/sage/libs/symmetrica/schur.pxi | 1 + src/sage/libs/symmetrica/symmetrica.pxi | 1 + src/sage/libs/symmetrica/symmetrica.pyx | 1 + src/sage/manifolds/all.py | 1 + src/sage/manifolds/calculus_method.py | 1 + src/sage/manifolds/catalog.py | 1 + src/sage/manifolds/chart.py | 1 + src/sage/manifolds/chart_func.py | 1 + src/sage/manifolds/continuous_map.py | 1 + src/sage/manifolds/continuous_map_image.py | 1 + src/sage/manifolds/differentiable/affine_connection.py | 1 + src/sage/manifolds/differentiable/all.py | 1 + src/sage/manifolds/differentiable/automorphismfield.py | 1 + src/sage/manifolds/differentiable/automorphismfield_group.py | 1 + src/sage/manifolds/differentiable/bundle_connection.py | 1 + .../differentiable/characteristic_cohomology_class.py | 1 + src/sage/manifolds/differentiable/chart.py | 1 + src/sage/manifolds/differentiable/curve.py | 1 + src/sage/manifolds/differentiable/de_rham_cohomology.py | 1 + src/sage/manifolds/differentiable/degenerate.py | 1 + src/sage/manifolds/differentiable/degenerate_submanifold.py | 1 + src/sage/manifolds/differentiable/diff_form.py | 1 + src/sage/manifolds/differentiable/diff_form_module.py | 1 + src/sage/manifolds/differentiable/diff_map.py | 1 + .../manifolds/differentiable/differentiable_submanifold.py | 1 + src/sage/manifolds/differentiable/examples/all.py | 1 + src/sage/manifolds/differentiable/examples/euclidean.py | 1 + src/sage/manifolds/differentiable/examples/real_line.py | 1 + src/sage/manifolds/differentiable/examples/sphere.py | 1 + src/sage/manifolds/differentiable/examples/symplectic_space.py | 1 + .../manifolds/differentiable/examples/symplectic_space_test.py | 1 + src/sage/manifolds/differentiable/integrated_curve.py | 1 + src/sage/manifolds/differentiable/levi_civita_connection.py | 1 + src/sage/manifolds/differentiable/manifold.py | 1 + src/sage/manifolds/differentiable/manifold_homset.py | 1 + src/sage/manifolds/differentiable/metric.py | 1 + src/sage/manifolds/differentiable/mixed_form.py | 1 + src/sage/manifolds/differentiable/mixed_form_algebra.py | 1 + src/sage/manifolds/differentiable/multivector_module.py | 1 + src/sage/manifolds/differentiable/multivectorfield.py | 1 + src/sage/manifolds/differentiable/poisson_tensor.py | 1 + src/sage/manifolds/differentiable/pseudo_riemannian.py | 1 + .../manifolds/differentiable/pseudo_riemannian_submanifold.py | 1 + src/sage/manifolds/differentiable/scalarfield.py | 1 + src/sage/manifolds/differentiable/scalarfield_algebra.py | 1 + src/sage/manifolds/differentiable/symplectic_form.py | 1 + src/sage/manifolds/differentiable/symplectic_form_test.py | 1 + src/sage/manifolds/differentiable/tangent_space.py | 1 + src/sage/manifolds/differentiable/tangent_vector.py | 1 + src/sage/manifolds/differentiable/tensorfield.py | 1 + src/sage/manifolds/differentiable/tensorfield_module.py | 1 + src/sage/manifolds/differentiable/tensorfield_paral.py | 1 + src/sage/manifolds/differentiable/tensorfield_paral_test.py | 1 + src/sage/manifolds/differentiable/vector_bundle.py | 1 + src/sage/manifolds/differentiable/vectorfield.py | 1 + src/sage/manifolds/differentiable/vectorfield_module.py | 1 + src/sage/manifolds/differentiable/vectorframe.py | 1 + src/sage/manifolds/family.py | 1 + src/sage/manifolds/local_frame.py | 1 + src/sage/manifolds/manifold.py | 1 + src/sage/manifolds/manifold_homset.py | 1 + src/sage/manifolds/operators.py | 1 + src/sage/manifolds/point.py | 1 + src/sage/manifolds/scalarfield.py | 1 + src/sage/manifolds/scalarfield_algebra.py | 1 + src/sage/manifolds/section.py | 1 + src/sage/manifolds/section_module.py | 1 + src/sage/manifolds/structure.py | 1 + src/sage/manifolds/subset.py | 1 + src/sage/manifolds/subsets/all.py | 1 + src/sage/manifolds/subsets/closure.py | 1 + src/sage/manifolds/subsets/pullback.py | 1 + src/sage/manifolds/topological_submanifold.py | 1 + src/sage/manifolds/trivialization.py | 1 + src/sage/manifolds/utilities.py | 1 + src/sage/manifolds/vector_bundle.py | 1 + src/sage/manifolds/vector_bundle_fiber.py | 1 + src/sage/manifolds/vector_bundle_fiber_element.py | 1 + src/sage/matrix/action.pxd | 1 + src/sage/matrix/action.pyx | 1 + src/sage/matrix/all.py | 1 + src/sage/matrix/all__sagemath_meataxe.py | 1 + src/sage/matrix/args.pxd | 1 + src/sage/matrix/args.pyx | 1 + src/sage/matrix/benchmark.py | 1 + src/sage/matrix/berlekamp_massey.py | 1 + src/sage/matrix/change_ring.pyx | 1 + src/sage/matrix/compute_J_ideal.py | 1 + src/sage/matrix/constructor.pyx | 1 + src/sage/matrix/docs.py | 1 + src/sage/matrix/echelon_matrix.pyx | 1 + src/sage/matrix/matrix.pxd | 1 + src/sage/matrix/matrix0.pxd | 1 + src/sage/matrix/matrix0.pyx | 1 + src/sage/matrix/matrix1.pxd | 1 + src/sage/matrix/matrix1.pyx | 1 + src/sage/matrix/matrix2.pxd | 1 + src/sage/matrix/matrix2.pyx | 1 + src/sage/matrix/matrix_cdv.pxd | 1 + src/sage/matrix/matrix_cdv.pyx | 1 + src/sage/matrix/matrix_complex_ball_dense.pxd | 1 + src/sage/matrix/matrix_complex_ball_dense.pyx | 1 + src/sage/matrix/matrix_complex_double_dense.pxd | 1 + src/sage/matrix/matrix_complex_double_dense.pyx | 1 + src/sage/matrix/matrix_cyclo_dense.pxd | 1 + src/sage/matrix/matrix_cyclo_dense.pyx | 1 + src/sage/matrix/matrix_dense.pxd | 1 + src/sage/matrix/matrix_dense.pyx | 1 + src/sage/matrix/matrix_domain_dense.pxd | 1 + src/sage/matrix/matrix_domain_sparse.pxd | 1 + src/sage/matrix/matrix_double_dense.pxd | 1 + src/sage/matrix/matrix_double_dense.pyx | 1 + src/sage/matrix/matrix_double_sparse.pxd | 1 + src/sage/matrix/matrix_double_sparse.pyx | 1 + src/sage/matrix/matrix_gap.pxd | 1 + src/sage/matrix/matrix_gap.pyx | 1 + src/sage/matrix/matrix_generic_dense.pxd | 1 + src/sage/matrix/matrix_generic_dense.pyx | 1 + src/sage/matrix/matrix_generic_sparse.pxd | 1 + src/sage/matrix/matrix_generic_sparse.pyx | 1 + src/sage/matrix/matrix_gf2e_dense.pxd | 1 + src/sage/matrix/matrix_gf2e_dense.pyx | 1 + src/sage/matrix/matrix_integer_dense.pxd | 1 + src/sage/matrix/matrix_integer_dense.pyx | 1 + src/sage/matrix/matrix_integer_dense_hnf.py | 1 + src/sage/matrix/matrix_integer_dense_saturation.py | 1 + src/sage/matrix/matrix_integer_sparse.pxd | 1 + src/sage/matrix/matrix_integer_sparse.pyx | 1 + src/sage/matrix/matrix_laurent_mpolynomial_dense.pxd | 1 + src/sage/matrix/matrix_laurent_mpolynomial_dense.pyx | 1 + src/sage/matrix/matrix_misc.py | 1 + src/sage/matrix/matrix_mod2_dense.pxd | 1 + src/sage/matrix/matrix_mod2_dense.pyx | 1 + src/sage/matrix/matrix_modn_dense_double.pxd | 1 + src/sage/matrix/matrix_modn_dense_double.pyx | 1 + src/sage/matrix/matrix_modn_dense_float.pxd | 1 + src/sage/matrix/matrix_modn_dense_float.pyx | 1 + src/sage/matrix/matrix_modn_dense_template.pxi | 1 + src/sage/matrix/matrix_modn_dense_template_header.pxi | 1 + src/sage/matrix/matrix_modn_sparse.pxd | 1 + src/sage/matrix/matrix_modn_sparse.pyx | 1 + src/sage/matrix/matrix_mpolynomial_dense.pxd | 1 + src/sage/matrix/matrix_mpolynomial_dense.pyx | 1 + src/sage/matrix/matrix_numpy_dense.pxd | 1 + src/sage/matrix/matrix_numpy_dense.pyx | 1 + src/sage/matrix/matrix_numpy_integer_dense.pxd | 1 + src/sage/matrix/matrix_numpy_integer_dense.pyx | 1 + src/sage/matrix/matrix_polynomial_dense.pxd | 1 + src/sage/matrix/matrix_polynomial_dense.pyx | 1 + src/sage/matrix/matrix_rational_dense.pxd | 1 + src/sage/matrix/matrix_rational_dense.pyx | 1 + src/sage/matrix/matrix_rational_sparse.pxd | 1 + src/sage/matrix/matrix_rational_sparse.pyx | 1 + src/sage/matrix/matrix_real_double_dense.pxd | 1 + src/sage/matrix/matrix_real_double_dense.pyx | 1 + src/sage/matrix/matrix_space.py | 1 + src/sage/matrix/matrix_sparse.pxd | 1 + src/sage/matrix/matrix_sparse.pyx | 1 + src/sage/matrix/matrix_symbolic_dense.pxd | 1 + src/sage/matrix/matrix_symbolic_dense.pyx | 1 + src/sage/matrix/matrix_symbolic_sparse.pxd | 1 + src/sage/matrix/matrix_symbolic_sparse.pyx | 1 + src/sage/matrix/matrix_window.pxd | 1 + src/sage/matrix/matrix_window.pyx | 1 + src/sage/matrix/misc.pyx | 1 + src/sage/matrix/misc_flint.pyx | 1 + src/sage/matrix/misc_mpfr.pyx | 1 + src/sage/matrix/operation_table.py | 1 + src/sage/matrix/special.py | 1 + src/sage/matrix/strassen.pyx | 1 + src/sage/matrix/symplectic_basis.py | 1 + src/sage/matrix/template.pxd | 1 + src/sage/matrix/tests.py | 1 + src/sage/matroids/advanced.py | 1 + src/sage/matroids/all.py | 1 + src/sage/matroids/basis_exchange_matroid.pxd | 1 + src/sage/matroids/basis_exchange_matroid.pyx | 1 + src/sage/matroids/basis_matroid.pxd | 1 + src/sage/matroids/basis_matroid.pyx | 1 + src/sage/matroids/catalog.py | 1 + src/sage/matroids/circuit_closures_matroid.pxd | 1 + src/sage/matroids/circuit_closures_matroid.pyx | 1 + src/sage/matroids/constructor.py | 1 + src/sage/matroids/dual_matroid.py | 1 + src/sage/matroids/extension.pxd | 1 + src/sage/matroids/extension.pyx | 1 + src/sage/matroids/graphic_matroid.py | 1 + src/sage/matroids/lean_matrix.pxd | 1 + src/sage/matroids/lean_matrix.pyx | 1 + src/sage/matroids/linear_matroid.pxd | 1 + src/sage/matroids/linear_matroid.pyx | 1 + src/sage/matroids/matroid.pxd | 1 + src/sage/matroids/matroid.pyx | 1 + src/sage/matroids/matroids_catalog.py | 1 + src/sage/matroids/matroids_plot_helpers.py | 1 + src/sage/matroids/minor_matroid.py | 1 + src/sage/matroids/named_matroids.py | 1 + src/sage/matroids/rank_matroid.py | 1 + src/sage/matroids/set_system.pxd | 1 + src/sage/matroids/set_system.pyx | 1 + src/sage/matroids/union_matroid.pxd | 1 + src/sage/matroids/union_matroid.pyx | 1 + src/sage/matroids/unpickling.pyx | 1 + src/sage/matroids/utilities.py | 1 + src/sage/misc/abstract_method.py | 1 + src/sage/misc/all__sagemath_environment.py | 1 + src/sage/misc/all__sagemath_objects.py | 1 + src/sage/misc/all__sagemath_repl.py | 1 + src/sage/misc/allocator.pxd | 1 + src/sage/misc/allocator.pyx | 1 + src/sage/misc/banner.py | 1 + src/sage/misc/binary_tree.pxd | 1 + src/sage/misc/binary_tree.pyx | 1 + src/sage/misc/bindable_class.py | 1 + src/sage/misc/c3.pyx | 1 + src/sage/misc/c3_controlled.pxd | 1 + src/sage/misc/c3_controlled.pyx | 1 + src/sage/misc/cachefunc.pxd | 1 + src/sage/misc/cachefunc.pyx | 1 + src/sage/misc/call.py | 1 + src/sage/misc/callable_dict.pyx | 1 + src/sage/misc/classcall_metaclass.pxd | 1 + src/sage/misc/classcall_metaclass.pyx | 1 + src/sage/misc/compat.py | 1 + src/sage/misc/constant_function.pyx | 1 + src/sage/misc/converting_dict.py | 1 + src/sage/misc/cython.py | 1 + src/sage/misc/decorators.py | 1 + src/sage/misc/defaults.py | 1 + src/sage/misc/derivative.pyx | 1 + src/sage/misc/dev_tools.py | 1 + src/sage/misc/edit_module.py | 1 + src/sage/misc/element_with_label.py | 1 + src/sage/misc/explain_pickle.py | 1 + src/sage/misc/fast_methods.pxd | 1 + src/sage/misc/fast_methods.pyx | 1 + src/sage/misc/flatten.py | 1 + src/sage/misc/fpickle.pyx | 1 + src/sage/misc/func_persist.py | 1 + src/sage/misc/function_mangling.pxd | 1 + src/sage/misc/function_mangling.pyx | 1 + src/sage/misc/functional.py | 1 + src/sage/misc/html.py | 1 + src/sage/misc/inherit_comparison.pxd | 1 + src/sage/misc/inherit_comparison.pyx | 1 + src/sage/misc/inline_fortran.py | 1 + src/sage/misc/instancedoc.pyx | 1 + src/sage/misc/latex.py | 1 + src/sage/misc/latex_macros.py | 1 + src/sage/misc/latex_standalone.py | 1 + src/sage/misc/lazy_attribute.pyx | 1 + src/sage/misc/lazy_format.py | 1 + src/sage/misc/lazy_import.pyx | 1 + src/sage/misc/lazy_import_cache.py | 1 + src/sage/misc/lazy_list.pxd | 1 + src/sage/misc/lazy_list.pyx | 1 + src/sage/misc/lazy_string.pxd | 1 + src/sage/misc/lazy_string.pyx | 1 + src/sage/misc/map_threaded.py | 1 + src/sage/misc/mathml.py | 1 + src/sage/misc/method_decorator.py | 1 + src/sage/misc/misc.py | 1 + src/sage/misc/misc_c.pxd | 1 + src/sage/misc/misc_c.pyx | 1 + src/sage/misc/mrange.py | 1 + src/sage/misc/multireplace.py | 1 + src/sage/misc/namespace_package.py | 1 + src/sage/misc/nested_class.pxd | 1 + src/sage/misc/nested_class.pyx | 1 + src/sage/misc/object_multiplexer.py | 1 + src/sage/misc/package.py | 1 + src/sage/misc/pager.py | 1 + src/sage/misc/parser.pyx | 1 + src/sage/misc/persist.pyx | 1 + src/sage/misc/pickle_old.pyx | 1 + src/sage/misc/prandom.py | 1 + src/sage/misc/profiler.py | 1 + src/sage/misc/proof.py | 1 + src/sage/misc/random_testing.py | 1 + src/sage/misc/randstate.pxd | 1 + src/sage/misc/randstate.pyx | 1 + src/sage/misc/replace_dot_all.py | 1 + src/sage/misc/repr.py | 1 + src/sage/misc/reset.pyx | 1 + src/sage/misc/rest_index_of_methods.py | 1 + src/sage/misc/sage_eval.py | 1 + src/sage/misc/sage_input.py | 1 + src/sage/misc/sage_ostools.pyx | 1 + src/sage/misc/sage_timeit.py | 1 + src/sage/misc/sage_timeit_class.pyx | 1 + src/sage/misc/sage_unittest.py | 1 + src/sage/misc/sagedoc.py | 1 + src/sage/misc/sagedoc_conf.py | 1 + src/sage/misc/sageinspect.py | 2 +- src/sage/misc/search.pxd | 3 ++- src/sage/misc/search.pyx | 1 + src/sage/misc/session.pyx | 1 + src/sage/misc/sphinxify.py | 1 + src/sage/misc/stopgap.pyx | 1 + src/sage/misc/superseded.py | 1 + src/sage/misc/table.py | 1 + src/sage/misc/temporary_file.py | 1 + src/sage/misc/test_class_pickling.py | 1 + src/sage/misc/test_nested_class.py | 1 + src/sage/misc/timing.py | 1 + src/sage/misc/trace.py | 1 + src/sage/misc/unknown.py | 1 + src/sage/misc/verbose.py | 1 + src/sage/misc/viewer.py | 1 + src/sage/misc/weak_dict.pxd | 1 + src/sage/misc/weak_dict.pyx | 1 + src/sage/modular/abvar/abvar.py | 1 + src/sage/modular/abvar/abvar_ambient_jacobian.py | 1 + src/sage/modular/abvar/abvar_newform.py | 1 + src/sage/modular/abvar/all.py | 1 + src/sage/modular/abvar/constructor.py | 1 + src/sage/modular/abvar/cuspidal_subgroup.py | 1 + src/sage/modular/abvar/finite_subgroup.py | 1 + src/sage/modular/abvar/homology.py | 1 + src/sage/modular/abvar/homspace.py | 1 + src/sage/modular/abvar/lseries.py | 1 + src/sage/modular/abvar/morphism.py | 1 + src/sage/modular/abvar/torsion_point.py | 1 + src/sage/modular/abvar/torsion_subgroup.py | 1 + src/sage/modular/all.py | 1 + src/sage/modular/arithgroup/all.py | 1 + src/sage/modular/arithgroup/arithgroup_element.pyx | 1 + src/sage/modular/arithgroup/arithgroup_generic.py | 1 + src/sage/modular/arithgroup/arithgroup_perm.py | 1 + src/sage/modular/arithgroup/congroup.pyx | 1 + src/sage/modular/arithgroup/congroup_gamma.py | 1 + src/sage/modular/arithgroup/congroup_gamma0.py | 1 + src/sage/modular/arithgroup/congroup_gamma1.py | 1 + src/sage/modular/arithgroup/congroup_gammaH.py | 1 + src/sage/modular/arithgroup/congroup_generic.py | 1 + src/sage/modular/arithgroup/congroup_sl2z.py | 1 + src/sage/modular/arithgroup/farey_symbol.pyx | 1 + src/sage/modular/arithgroup/tests.py | 1 + src/sage/modular/btquotients/all.py | 1 + src/sage/modular/btquotients/btquotient.py | 1 + src/sage/modular/btquotients/pautomorphicform.py | 1 + src/sage/modular/buzzard.py | 1 + src/sage/modular/congroup.py | 1 + src/sage/modular/congroup_element.py | 1 + src/sage/modular/cusps.py | 1 + src/sage/modular/cusps_nf.py | 1 + src/sage/modular/dims.py | 1 + src/sage/modular/dirichlet.py | 1 + src/sage/modular/etaproducts.py | 1 + src/sage/modular/hecke/algebra.py | 1 + src/sage/modular/hecke/all.py | 1 + src/sage/modular/hecke/ambient_module.py | 1 + src/sage/modular/hecke/degenmap.py | 1 + src/sage/modular/hecke/element.py | 1 + src/sage/modular/hecke/hecke_operator.py | 1 + src/sage/modular/hecke/homspace.py | 1 + src/sage/modular/hecke/module.py | 1 + src/sage/modular/hecke/morphism.py | 1 + src/sage/modular/hecke/submodule.py | 1 + src/sage/modular/hypergeometric_misc.pxd | 1 + src/sage/modular/hypergeometric_misc.pyx | 1 + src/sage/modular/hypergeometric_motive.py | 1 + src/sage/modular/local_comp/all.py | 1 + src/sage/modular/local_comp/liftings.py | 1 + src/sage/modular/local_comp/local_comp.py | 1 + src/sage/modular/local_comp/smoothchar.py | 1 + src/sage/modular/local_comp/type_space.py | 1 + src/sage/modular/modform/all.py | 1 + src/sage/modular/modform/ambient.py | 1 + src/sage/modular/modform/ambient_R.py | 1 + src/sage/modular/modform/ambient_eps.py | 1 + src/sage/modular/modform/ambient_g0.py | 1 + src/sage/modular/modform/ambient_g1.py | 1 + src/sage/modular/modform/constructor.py | 1 + src/sage/modular/modform/cuspidal_submodule.py | 1 + src/sage/modular/modform/defaults.py | 1 + src/sage/modular/modform/eis_series.py | 1 + src/sage/modular/modform/eisenstein_submodule.py | 1 + src/sage/modular/modform/element.py | 1 + src/sage/modular/modform/find_generators.py | 1 + src/sage/modular/modform/half_integral.py | 1 + src/sage/modular/modform/hecke_operator_on_qexp.py | 1 + src/sage/modular/modform/j_invariant.py | 1 + src/sage/modular/modform/l_series_gross_zagier.py | 1 + src/sage/modular/modform/l_series_gross_zagier_coeffs.pyx | 1 + src/sage/modular/modform/notes.py | 1 + src/sage/modular/modform/numerical.py | 1 + src/sage/modular/modform/periods.py | 1 + src/sage/modular/modform/ring.py | 1 + src/sage/modular/modform/space.py | 1 + src/sage/modular/modform/submodule.py | 1 + src/sage/modular/modform/tests.py | 1 + src/sage/modular/modform/theta.py | 1 + src/sage/modular/modform/vm_basis.py | 1 + src/sage/modular/modform/weight1.py | 1 + src/sage/modular/modform_hecketriangle/abstract_ring.py | 1 + src/sage/modular/modform_hecketriangle/abstract_space.py | 1 + src/sage/modular/modform_hecketriangle/all.py | 1 + src/sage/modular/modform_hecketriangle/analytic_type.py | 1 + src/sage/modular/modform_hecketriangle/constructor.py | 1 + src/sage/modular/modform_hecketriangle/element.py | 1 + src/sage/modular/modform_hecketriangle/functors.py | 1 + src/sage/modular/modform_hecketriangle/graded_ring.py | 1 + src/sage/modular/modform_hecketriangle/graded_ring_element.py | 1 + .../modform_hecketriangle/hecke_triangle_group_element.py | 1 + .../modular/modform_hecketriangle/hecke_triangle_groups.py | 1 + src/sage/modular/modform_hecketriangle/readme.py | 1 + src/sage/modular/modform_hecketriangle/series_constructor.py | 1 + src/sage/modular/modform_hecketriangle/space.py | 1 + src/sage/modular/modform_hecketriangle/subspace.py | 1 + src/sage/modular/modsym/all.py | 1 + src/sage/modular/modsym/ambient.py | 1 + src/sage/modular/modsym/boundary.py | 1 + src/sage/modular/modsym/element.py | 1 + src/sage/modular/modsym/g1list.py | 1 + src/sage/modular/modsym/ghlist.py | 1 + src/sage/modular/modsym/hecke_operator.py | 1 + src/sage/modular/modsym/manin_symbol.pxd | 1 + src/sage/modular/modsym/manin_symbol.pyx | 1 + src/sage/modular/modsym/manin_symbol_list.py | 1 + src/sage/modular/modsym/modsym.py | 1 + src/sage/modular/modsym/modular_symbols.py | 1 + src/sage/modular/modsym/p1list.pxd | 1 + src/sage/modular/modsym/p1list.pyx | 1 + src/sage/modular/modsym/p1list_nf.py | 1 + src/sage/modular/modsym/relation_matrix.py | 1 + src/sage/modular/modsym/relation_matrix_pyx.pyx | 1 + src/sage/modular/modsym/space.py | 1 + src/sage/modular/modsym/subspace.py | 1 + src/sage/modular/modsym/tests.py | 1 + src/sage/modular/multiple_zeta.py | 1 + src/sage/modular/multiple_zeta_F_algebra.py | 1 + src/sage/modular/overconvergent/all.py | 1 + src/sage/modular/overconvergent/genus0.py | 1 + src/sage/modular/overconvergent/hecke_series.py | 1 + src/sage/modular/overconvergent/weightspace.py | 1 + src/sage/modular/pollack_stevens/all.py | 1 + src/sage/modular/pollack_stevens/distributions.py | 1 + src/sage/modular/pollack_stevens/fund_domain.py | 1 + src/sage/modular/pollack_stevens/manin_map.py | 1 + src/sage/modular/pollack_stevens/modsym.py | 1 + src/sage/modular/pollack_stevens/padic_lseries.py | 1 + src/sage/modular/pollack_stevens/sigma0.py | 1 + src/sage/modular/pollack_stevens/space.py | 1 + src/sage/modular/quasimodform/all.py | 1 + src/sage/modular/quasimodform/element.py | 1 + src/sage/modular/quasimodform/ring.py | 1 + src/sage/modular/quatalg/all.py | 1 + src/sage/modular/quatalg/brandt.py | 1 + src/sage/modular/ssmod/all.py | 1 + src/sage/modular/ssmod/ssmod.py | 1 + src/sage/modules/all.py | 1 + src/sage/modules/complex_double_vector.py | 1 + src/sage/modules/diamond_cutting.py | 1 + src/sage/modules/fg_pid/all.py | 1 + src/sage/modules/fg_pid/fgp_element.py | 1 + src/sage/modules/fg_pid/fgp_module.py | 1 + src/sage/modules/fg_pid/fgp_morphism.py | 1 + src/sage/modules/filtered_vector_space.py | 1 + src/sage/modules/finite_submodule_iter.pxd | 1 + src/sage/modules/finite_submodule_iter.pyx | 1 + src/sage/modules/free_module.py | 1 + src/sage/modules/free_module_element.pxd | 1 + src/sage/modules/free_module_element.pyx | 1 + src/sage/modules/free_module_homspace.py | 1 + src/sage/modules/free_module_integer.py | 1 + src/sage/modules/free_module_morphism.py | 1 + src/sage/modules/free_quadratic_module.py | 1 + src/sage/modules/free_quadratic_module_integer_symmetric.py | 1 + src/sage/modules/matrix_morphism.py | 1 + src/sage/modules/misc.py | 1 + src/sage/modules/module.pxd | 1 + src/sage/modules/module.pyx | 1 + src/sage/modules/module_functors.py | 1 + src/sage/modules/multi_filtered_vector_space.py | 1 + src/sage/modules/quotient_module.py | 1 + src/sage/modules/real_double_vector.py | 1 + src/sage/modules/submodule.py | 1 + src/sage/modules/tensor_operations.py | 1 + src/sage/modules/torsion_quadratic_module.py | 1 + src/sage/modules/tutorial_free_modules.py | 1 + src/sage/modules/vector_callable_symbolic_dense.py | 1 + src/sage/modules/vector_complex_double_dense.pxd | 1 + src/sage/modules/vector_complex_double_dense.pyx | 1 + src/sage/modules/vector_double_dense.pxd | 1 + src/sage/modules/vector_double_dense.pyx | 1 + src/sage/modules/vector_integer_dense.pxd | 1 + src/sage/modules/vector_integer_dense.pyx | 1 + src/sage/modules/vector_integer_sparse.pxd | 1 + src/sage/modules/vector_integer_sparse.pyx | 1 + src/sage/modules/vector_mod2_dense.pxd | 1 + src/sage/modules/vector_mod2_dense.pyx | 1 + src/sage/modules/vector_modn_dense.pxd | 1 + src/sage/modules/vector_modn_dense.pyx | 1 + src/sage/modules/vector_modn_sparse.pxd | 1 + src/sage/modules/vector_modn_sparse.pyx | 1 + src/sage/modules/vector_numpy_dense.pxd | 1 + src/sage/modules/vector_numpy_dense.pyx | 1 + src/sage/modules/vector_numpy_integer_dense.pxd | 1 + src/sage/modules/vector_numpy_integer_dense.pyx | 1 + src/sage/modules/vector_rational_dense.pxd | 1 + src/sage/modules/vector_rational_dense.pyx | 1 + src/sage/modules/vector_rational_sparse.pxd | 1 + src/sage/modules/vector_rational_sparse.pyx | 1 + src/sage/modules/vector_real_double_dense.pxd | 1 + src/sage/modules/vector_real_double_dense.pyx | 1 + src/sage/modules/vector_space_homspace.py | 1 + src/sage/modules/vector_space_morphism.py | 1 + src/sage/modules/vector_symbolic_dense.py | 1 + src/sage/modules/vector_symbolic_sparse.py | 1 + src/sage/modules/with_basis/all.py | 1 + src/sage/modules/with_basis/cell_module.py | 1 + src/sage/modules/with_basis/indexed_element.pxd | 1 + src/sage/modules/with_basis/indexed_element.pyx | 1 + src/sage/modules/with_basis/invariant.py | 1 + src/sage/modules/with_basis/morphism.py | 1 + src/sage/modules/with_basis/representation.py | 1 + src/sage/modules/with_basis/subquotient.py | 1 + src/sage/monoids/all.py | 1 + src/sage/monoids/automatic_semigroup.py | 1 + src/sage/monoids/free_abelian_monoid.py | 1 + src/sage/monoids/free_abelian_monoid_element.pxd | 1 + src/sage/monoids/free_abelian_monoid_element.pyx | 1 + src/sage/monoids/free_monoid.py | 1 + src/sage/monoids/free_monoid_element.py | 1 + src/sage/monoids/hecke_monoid.py | 1 + src/sage/monoids/indexed_free_monoid.py | 1 + src/sage/monoids/monoid.py | 1 + src/sage/monoids/string_monoid.py | 1 + src/sage/monoids/string_monoid_element.py | 1 + src/sage/monoids/string_ops.py | 1 + src/sage/monoids/trace_monoid.py | 1 + src/sage/numerical/all.py | 1 + src/sage/numerical/all__sagemath_polyhedra.py | 1 + src/sage/numerical/backends/all.py | 1 + src/sage/numerical/backends/all__sagemath_polyhedra.py | 1 + src/sage/numerical/backends/cvxopt_backend.pyx | 1 + src/sage/numerical/backends/cvxopt_backend_test.py | 1 + src/sage/numerical/backends/cvxopt_sdp_backend.pyx | 1 + src/sage/numerical/backends/cvxpy_backend.pxd | 1 + src/sage/numerical/backends/cvxpy_backend.pyx | 1 + src/sage/numerical/backends/cvxpy_backend_test.py | 1 + src/sage/numerical/backends/generic_backend.pxd | 1 + src/sage/numerical/backends/generic_backend.pyx | 1 + src/sage/numerical/backends/generic_backend_test.py | 1 + src/sage/numerical/backends/generic_sdp_backend.pxd | 1 + src/sage/numerical/backends/generic_sdp_backend.pyx | 1 + src/sage/numerical/backends/glpk_backend.pxd | 1 + src/sage/numerical/backends/glpk_backend.pyx | 1 + src/sage/numerical/backends/glpk_exact_backend.pxd | 1 + src/sage/numerical/backends/glpk_exact_backend.pyx | 1 + src/sage/numerical/backends/glpk_graph_backend.pxd | 1 + src/sage/numerical/backends/glpk_graph_backend.pyx | 1 + src/sage/numerical/backends/interactivelp_backend.pxd | 1 + src/sage/numerical/backends/interactivelp_backend.pyx | 1 + src/sage/numerical/backends/interactivelp_backend_test.py | 1 + src/sage/numerical/backends/logging_backend.py | 1 + src/sage/numerical/backends/matrix_sdp_backend.pxd | 1 + src/sage/numerical/backends/matrix_sdp_backend.pyx | 1 + src/sage/numerical/backends/ppl_backend.pyx | 1 + src/sage/numerical/backends/ppl_backend_test.py | 1 + src/sage/numerical/backends/scip_backend.pxd | 1 + src/sage/numerical/backends/scip_backend.pyx | 1 + src/sage/numerical/backends/scip_backend_test.py | 1 + src/sage/numerical/gauss_legendre.pyx | 1 + src/sage/numerical/interactive_simplex_method.py | 1 + src/sage/numerical/knapsack.py | 1 + src/sage/numerical/linear_functions.pxd | 1 + src/sage/numerical/linear_functions.pyx | 1 + src/sage/numerical/linear_tensor.py | 1 + src/sage/numerical/linear_tensor_constraints.py | 1 + src/sage/numerical/linear_tensor_element.pxd | 1 + src/sage/numerical/linear_tensor_element.pyx | 1 + src/sage/numerical/mip.pxd | 1 + src/sage/numerical/mip.pyx | 1 + src/sage/numerical/optimize.py | 1 + src/sage/numerical/sdp.pxd | 1 + src/sage/numerical/sdp.pyx | 1 + src/sage/parallel/all.py | 1 + src/sage/parallel/decorate.py | 1 + src/sage/parallel/map_reduce.py | 1 + src/sage/parallel/multiprocessing_sage.py | 1 + src/sage/parallel/ncpus.py | 1 + src/sage/parallel/parallelism.py | 1 + src/sage/parallel/reference.py | 1 + src/sage/parallel/use_fork.py | 1 + src/sage/plot/all.py | 1 + src/sage/plot/animate.py | 1 + src/sage/plot/arc.py | 1 + src/sage/plot/arrow.py | 1 + src/sage/plot/bar_chart.py | 1 + src/sage/plot/bezier_path.py | 1 + src/sage/plot/circle.py | 1 + src/sage/plot/colors.py | 1 + src/sage/plot/complex_plot.pyx | 1 + src/sage/plot/contour_plot.py | 1 + src/sage/plot/density_plot.py | 1 + src/sage/plot/disk.py | 1 + src/sage/plot/ellipse.py | 1 + src/sage/plot/graphics.py | 1 + src/sage/plot/histogram.py | 1 + src/sage/plot/hyperbolic_arc.py | 1 + src/sage/plot/hyperbolic_polygon.py | 1 + src/sage/plot/hyperbolic_regular_polygon.py | 1 + src/sage/plot/line.py | 1 + src/sage/plot/matrix_plot.py | 1 + src/sage/plot/misc.py | 1 + src/sage/plot/multigraphics.py | 1 + src/sage/plot/plot.py | 1 + src/sage/plot/plot3d/all.py | 1 + src/sage/plot/plot3d/base.pxd | 1 + src/sage/plot/plot3d/base.pyx | 1 + src/sage/plot/plot3d/implicit_plot3d.py | 1 + src/sage/plot/plot3d/implicit_surface.pyx | 1 + src/sage/plot/plot3d/index_face_set.pxd | 1 + src/sage/plot/plot3d/index_face_set.pyx | 1 + src/sage/plot/plot3d/introduction.py | 1 + src/sage/plot/plot3d/list_plot3d.py | 1 + src/sage/plot/plot3d/parametric_plot3d.py | 1 + src/sage/plot/plot3d/parametric_surface.pxd | 1 + src/sage/plot/plot3d/parametric_surface.pyx | 1 + src/sage/plot/plot3d/platonic.py | 1 + src/sage/plot/plot3d/plot3d.py | 1 + src/sage/plot/plot3d/plot_field3d.py | 1 + src/sage/plot/plot3d/point_c.pxi | 1 + src/sage/plot/plot3d/revolution_plot3d.py | 1 + src/sage/plot/plot3d/shapes.pxd | 1 + src/sage/plot/plot3d/shapes.pyx | 1 + src/sage/plot/plot3d/shapes2.py | 1 + src/sage/plot/plot3d/tachyon.py | 1 + src/sage/plot/plot3d/texture.py | 1 + src/sage/plot/plot3d/transform.pxd | 1 + src/sage/plot/plot3d/transform.pyx | 1 + src/sage/plot/plot3d/tri_plot.py | 1 + src/sage/plot/plot_field.py | 1 + src/sage/plot/point.py | 1 + src/sage/plot/polygon.py | 1 + src/sage/plot/primitive.py | 1 + src/sage/plot/scatter_plot.py | 1 + src/sage/plot/step.py | 1 + src/sage/plot/streamline_plot.py | 1 + src/sage/plot/text.py | 1 + src/sage/probability/all.py | 1 + src/sage/probability/probability_distribution.pyx | 1 + src/sage/probability/random_variable.py | 1 + src/sage/quadratic_forms/all.py | 1 + src/sage/quadratic_forms/binary_qf.py | 1 + src/sage/quadratic_forms/bqf_class_group.py | 1 + src/sage/quadratic_forms/constructions.py | 1 + src/sage/quadratic_forms/count_local_2.pyx | 1 + src/sage/quadratic_forms/extras.py | 1 + src/sage/quadratic_forms/genera/all.py | 1 + src/sage/quadratic_forms/genera/genus.py | 1 + src/sage/quadratic_forms/genera/normal_form.py | 1 + src/sage/quadratic_forms/genera/spinor_genus.py | 1 + src/sage/quadratic_forms/qfsolve.py | 1 + src/sage/quadratic_forms/quadratic_form.py | 1 + src/sage/quadratic_forms/quadratic_form__automorphisms.py | 1 + src/sage/quadratic_forms/quadratic_form__count_local_2.py | 1 + .../quadratic_forms/quadratic_form__equivalence_testing.py | 1 + src/sage/quadratic_forms/quadratic_form__evaluate.pyx | 1 + src/sage/quadratic_forms/quadratic_form__genus.py | 1 + .../quadratic_form__local_density_congruence.py | 1 + .../quadratic_form__local_density_interfaces.py | 1 + .../quadratic_forms/quadratic_form__local_field_invariants.py | 1 + src/sage/quadratic_forms/quadratic_form__local_normal_form.py | 1 + .../quadratic_form__local_representation_conditions.py | 1 + src/sage/quadratic_forms/quadratic_form__mass.py | 1 + .../quadratic_form__mass__Conway_Sloane_masses.py | 1 + .../quadratic_forms/quadratic_form__mass__Siegel_densities.py | 1 + src/sage/quadratic_forms/quadratic_form__neighbors.py | 1 + src/sage/quadratic_forms/quadratic_form__reduction_theory.py | 1 + src/sage/quadratic_forms/quadratic_form__siegel_product.py | 1 + .../quadratic_forms/quadratic_form__split_local_covering.py | 1 + src/sage/quadratic_forms/quadratic_form__ternary_Tornaria.py | 1 + src/sage/quadratic_forms/quadratic_form__theta.py | 1 + .../quadratic_forms/quadratic_form__variable_substitutions.py | 1 + src/sage/quadratic_forms/random_quadraticform.py | 1 + src/sage/quadratic_forms/special_values.py | 1 + src/sage/quadratic_forms/ternary.pyx | 1 + src/sage/quadratic_forms/ternary_qf.py | 1 + src/sage/quivers/algebra.py | 1 + src/sage/quivers/algebra_elements.pxd | 1 + src/sage/quivers/algebra_elements.pxi | 1 + src/sage/quivers/algebra_elements.pyx | 1 + src/sage/quivers/all.py | 1 + src/sage/quivers/homspace.py | 1 + src/sage/quivers/morphism.py | 1 + src/sage/quivers/path_semigroup.py | 1 + src/sage/quivers/paths.pxd | 1 + src/sage/quivers/paths.pyx | 1 + src/sage/quivers/representation.py | 1 + src/sage/repl/__init__.py | 1 + src/sage/repl/all.py | 1 + src/sage/repl/attach.py | 1 + src/sage/repl/configuration.py | 1 + src/sage/repl/display/__init__.py | 1 + src/sage/repl/display/fancy_repr.py | 1 + src/sage/repl/display/formatter.py | 1 + src/sage/repl/display/jsmol_iframe.py | 1 + src/sage/repl/display/pretty_print.py | 1 + src/sage/repl/display/util.py | 1 + src/sage/repl/image.py | 1 + src/sage/repl/inputhook.py | 1 + src/sage/repl/interface_magic.py | 1 + src/sage/repl/interpreter.py | 1 + src/sage/repl/ipython_extension.py | 1 + src/sage/repl/ipython_kernel/__init__.py | 1 + src/sage/repl/ipython_kernel/__main__.py | 1 + src/sage/repl/ipython_kernel/all_jupyter.py | 1 + src/sage/repl/ipython_kernel/install.py | 1 + src/sage/repl/ipython_kernel/interact.py | 1 + src/sage/repl/ipython_kernel/kernel.py | 1 + src/sage/repl/ipython_kernel/widgets.py | 1 + src/sage/repl/ipython_kernel/widgets_sagenb.py | 1 + src/sage/repl/ipython_tests.py | 1 + src/sage/repl/load.py | 1 + src/sage/repl/preparse.py | 1 + src/sage/repl/prompts.py | 1 + src/sage/repl/rich_output/__init__.py | 1 + src/sage/repl/rich_output/backend_base.py | 1 + src/sage/repl/rich_output/backend_doctest.py | 1 + src/sage/repl/rich_output/backend_emacs.py | 1 + src/sage/repl/rich_output/backend_ipython.py | 1 + src/sage/repl/rich_output/buffer.py | 1 + src/sage/repl/rich_output/display_manager.py | 1 + src/sage/repl/rich_output/output_basic.py | 1 + src/sage/repl/rich_output/output_browser.py | 1 + src/sage/repl/rich_output/output_catalog.py | 1 + src/sage/repl/rich_output/output_graphics.py | 1 + src/sage/repl/rich_output/output_graphics3d.py | 1 + src/sage/repl/rich_output/output_video.py | 1 + src/sage/repl/rich_output/preferences.py | 1 + src/sage/repl/rich_output/pretty_print.py | 1 + src/sage/repl/rich_output/test_backend.py | 1 + src/sage/repl/user_globals.py | 1 + src/sage/rings/abc.pxd | 1 + src/sage/rings/abc.pyx | 1 + src/sage/rings/algebraic_closure_finite_field.py | 1 + src/sage/rings/all__sagemath_categories.py | 1 + src/sage/rings/all__sagemath_objects.py | 1 + src/sage/rings/bernmm.pyx | 1 + src/sage/rings/bernoulli_mod_p.pyx | 1 + src/sage/rings/big_oh.py | 1 + src/sage/rings/cc.py | 1 + src/sage/rings/cif.py | 1 + src/sage/rings/complex_arb.pxd | 1 + src/sage/rings/complex_arb.pyx | 1 + src/sage/rings/complex_conversion.pxd | 1 + src/sage/rings/complex_conversion.pyx | 1 + src/sage/rings/complex_double.pxd | 1 + src/sage/rings/complex_double.pyx | 1 + src/sage/rings/complex_interval.pxd | 1 + src/sage/rings/complex_interval.pyx | 1 + src/sage/rings/complex_interval_field.py | 1 + src/sage/rings/complex_mpc.pxd | 1 + src/sage/rings/complex_mpc.pyx | 1 + src/sage/rings/complex_mpfr.pxd | 1 + src/sage/rings/complex_mpfr.pyx | 1 + src/sage/rings/continued_fraction.py | 1 + src/sage/rings/continued_fraction_gosper.py | 1 + src/sage/rings/convert/all.py | 1 + src/sage/rings/convert/mpfi.pxd | 1 + src/sage/rings/convert/mpfi.pyx | 1 + src/sage/rings/derivation.py | 1 + src/sage/rings/factorint.pyx | 1 + src/sage/rings/factorint_flint.pyx | 1 + src/sage/rings/factorint_pari.pyx | 1 + src/sage/rings/fast_arith.pxd | 1 + src/sage/rings/fast_arith.pyx | 1 + src/sage/rings/finite_rings/conway_polynomials.py | 1 + src/sage/rings/finite_rings/element_base.pxd | 1 + src/sage/rings/finite_rings/element_base.pyx | 1 + src/sage/rings/finite_rings/element_givaro.pxd | 1 + src/sage/rings/finite_rings/element_givaro.pyx | 1 + src/sage/rings/finite_rings/element_ntl_gf2e.pxd | 1 + src/sage/rings/finite_rings/element_ntl_gf2e.pyx | 1 + src/sage/rings/finite_rings/element_pari_ffelt.pxd | 1 + src/sage/rings/finite_rings/element_pari_ffelt.pyx | 1 + src/sage/rings/finite_rings/finite_field_base.pxd | 1 + src/sage/rings/finite_rings/finite_field_base.pyx | 1 + src/sage/rings/finite_rings/finite_field_constructor.py | 1 + src/sage/rings/finite_rings/finite_field_givaro.py | 1 + src/sage/rings/finite_rings/finite_field_ntl_gf2e.py | 1 + src/sage/rings/finite_rings/finite_field_pari_ffelt.py | 1 + src/sage/rings/finite_rings/finite_field_prime_modn.py | 1 + src/sage/rings/finite_rings/galois_group.py | 1 + src/sage/rings/finite_rings/hom_finite_field.pxd | 1 + src/sage/rings/finite_rings/hom_finite_field.pyx | 1 + src/sage/rings/finite_rings/hom_finite_field_givaro.pxd | 1 + src/sage/rings/finite_rings/hom_finite_field_givaro.pyx | 1 + src/sage/rings/finite_rings/hom_prime_finite_field.pxd | 1 + src/sage/rings/finite_rings/hom_prime_finite_field.pyx | 1 + src/sage/rings/finite_rings/homset.py | 1 + src/sage/rings/finite_rings/integer_mod.pxd | 1 + src/sage/rings/finite_rings/integer_mod.pyx | 1 + src/sage/rings/finite_rings/integer_mod_ring.py | 1 + src/sage/rings/finite_rings/maps_finite_field.py | 1 + src/sage/rings/finite_rings/residue_field.pxd | 1 + src/sage/rings/finite_rings/residue_field.pyx | 1 + src/sage/rings/finite_rings/residue_field_givaro.pyx | 1 + src/sage/rings/finite_rings/residue_field_ntl_gf2e.pyx | 1 + src/sage/rings/finite_rings/residue_field_pari_ffelt.pyx | 1 + src/sage/rings/finite_rings/stdint.pxd | 1 + src/sage/rings/fraction_field.py | 1 + src/sage/rings/fraction_field_FpT.pxd | 1 + src/sage/rings/fraction_field_FpT.pyx | 1 + src/sage/rings/fraction_field_element.pyx | 1 + src/sage/rings/function_field/all.py | 1 + src/sage/rings/function_field/constructor.py | 1 + src/sage/rings/function_field/derivations.py | 1 + src/sage/rings/function_field/derivations_polymod.py | 1 + src/sage/rings/function_field/derivations_rational.py | 1 + src/sage/rings/function_field/differential.py | 1 + src/sage/rings/function_field/divisor.py | 1 + src/sage/rings/function_field/element.pxd | 1 + src/sage/rings/function_field/element.pyx | 1 + src/sage/rings/function_field/element_polymod.pyx | 1 + src/sage/rings/function_field/element_rational.pyx | 1 + src/sage/rings/function_field/extensions.py | 1 + src/sage/rings/function_field/function_field.py | 1 + src/sage/rings/function_field/function_field_polymod.py | 1 + src/sage/rings/function_field/function_field_rational.py | 1 + src/sage/rings/function_field/hermite_form_polynomial.pyx | 1 + src/sage/rings/function_field/ideal.py | 1 + src/sage/rings/function_field/ideal_polymod.py | 1 + src/sage/rings/function_field/ideal_rational.py | 1 + src/sage/rings/function_field/maps.py | 1 + src/sage/rings/function_field/order.py | 1 + src/sage/rings/function_field/order_basis.py | 1 + src/sage/rings/function_field/order_polymod.py | 1 + src/sage/rings/function_field/order_rational.py | 1 + src/sage/rings/function_field/place.py | 1 + src/sage/rings/function_field/place_polymod.py | 1 + src/sage/rings/function_field/place_rational.py | 1 + src/sage/rings/function_field/valuation.py | 1 + src/sage/rings/generic.py | 1 + src/sage/rings/homset.py | 1 + src/sage/rings/ideal.py | 1 + src/sage/rings/ideal_monoid.py | 1 + src/sage/rings/imaginary_unit.py | 1 + src/sage/rings/infinity.py | 1 + src/sage/rings/integer.pxd | 1 + src/sage/rings/integer.pyx | 1 + src/sage/rings/integer_fake.pxd | 1 + src/sage/rings/integer_ring.pxd | 1 + src/sage/rings/integer_ring.pyx | 1 + src/sage/rings/invariants/all.py | 1 + src/sage/rings/invariants/invariant_theory.py | 1 + src/sage/rings/invariants/reconstruction.py | 1 + src/sage/rings/laurent_series_ring.py | 1 + src/sage/rings/laurent_series_ring_element.pxd | 1 + src/sage/rings/laurent_series_ring_element.pyx | 1 + src/sage/rings/lazy_series.py | 1 + src/sage/rings/lazy_series_ring.py | 1 + src/sage/rings/localization.py | 1 + src/sage/rings/monomials.py | 1 + src/sage/rings/morphism.pxd | 1 + src/sage/rings/morphism.pyx | 1 + src/sage/rings/multi_power_series_ring.py | 1 + src/sage/rings/multi_power_series_ring_element.py | 1 + src/sage/rings/noncommutative_ideals.pyx | 1 + src/sage/rings/number_field/S_unit_solver.py | 1 + src/sage/rings/number_field/all.py | 1 + src/sage/rings/number_field/bdd_height.py | 1 + src/sage/rings/number_field/class_group.py | 1 + src/sage/rings/number_field/galois_group.py | 1 + src/sage/rings/number_field/homset.py | 1 + src/sage/rings/number_field/maps.py | 1 + src/sage/rings/number_field/morphism.py | 1 + src/sage/rings/number_field/number_field.py | 1 + src/sage/rings/number_field/number_field_base.pxd | 1 + src/sage/rings/number_field/number_field_base.pyx | 1 + src/sage/rings/number_field/number_field_element.pxd | 1 + src/sage/rings/number_field/number_field_element.pyx | 1 + src/sage/rings/number_field/number_field_element_base.pxd | 1 + src/sage/rings/number_field/number_field_element_base.pyx | 1 + src/sage/rings/number_field/number_field_element_quadratic.pxd | 1 + src/sage/rings/number_field/number_field_element_quadratic.pyx | 1 + src/sage/rings/number_field/number_field_ideal.py | 1 + src/sage/rings/number_field/number_field_ideal_rel.py | 1 + src/sage/rings/number_field/number_field_morphisms.pyx | 1 + src/sage/rings/number_field/number_field_rel.py | 1 + src/sage/rings/number_field/order.py | 1 + src/sage/rings/number_field/selmer_group.py | 1 + src/sage/rings/number_field/small_primes_of_degree_one.py | 1 + src/sage/rings/number_field/splitting_field.py | 1 + src/sage/rings/number_field/structure.py | 1 + src/sage/rings/number_field/totallyreal.pyx | 1 + src/sage/rings/number_field/totallyreal_data.pxd | 1 + src/sage/rings/number_field/totallyreal_data.pyx | 1 + src/sage/rings/number_field/totallyreal_phc.py | 1 + src/sage/rings/number_field/totallyreal_rel.py | 1 + src/sage/rings/number_field/unit_group.py | 1 + src/sage/rings/padics/CA_template.pxi | 1 + src/sage/rings/padics/CA_template_header.pxi | 1 + src/sage/rings/padics/CR_template.pxi | 1 + src/sage/rings/padics/CR_template_header.pxi | 1 + src/sage/rings/padics/FM_template.pxi | 1 + src/sage/rings/padics/FM_template_header.pxi | 1 + src/sage/rings/padics/FP_template.pxi | 1 + src/sage/rings/padics/FP_template_header.pxi | 1 + src/sage/rings/padics/all.py | 1 + src/sage/rings/padics/common_conversion.pxd | 1 + src/sage/rings/padics/common_conversion.pyx | 1 + src/sage/rings/padics/eisenstein_extension_generic.py | 1 + src/sage/rings/padics/factory.py | 1 + src/sage/rings/padics/generic_nodes.py | 1 + src/sage/rings/padics/lattice_precision.py | 1 + src/sage/rings/padics/local_generic.py | 1 + src/sage/rings/padics/local_generic_element.pxd | 1 + src/sage/rings/padics/local_generic_element.pyx | 1 + src/sage/rings/padics/misc.py | 1 + src/sage/rings/padics/morphism.pxd | 1 + src/sage/rings/padics/morphism.pyx | 1 + src/sage/rings/padics/padic_ZZ_pX_CA_element.pxd | 1 + src/sage/rings/padics/padic_ZZ_pX_CA_element.pyx | 1 + src/sage/rings/padics/padic_ZZ_pX_CR_element.pxd | 1 + src/sage/rings/padics/padic_ZZ_pX_CR_element.pyx | 1 + src/sage/rings/padics/padic_ZZ_pX_FM_element.pxd | 1 + src/sage/rings/padics/padic_ZZ_pX_FM_element.pyx | 1 + src/sage/rings/padics/padic_ZZ_pX_element.pxd | 1 + src/sage/rings/padics/padic_ZZ_pX_element.pyx | 1 + src/sage/rings/padics/padic_base_generic.py | 1 + src/sage/rings/padics/padic_base_leaves.py | 1 + src/sage/rings/padics/padic_capped_absolute_element.pxd | 1 + src/sage/rings/padics/padic_capped_absolute_element.pyx | 1 + src/sage/rings/padics/padic_capped_relative_element.pxd | 1 + src/sage/rings/padics/padic_capped_relative_element.pyx | 1 + src/sage/rings/padics/padic_ext_element.pxd | 1 + src/sage/rings/padics/padic_ext_element.pyx | 1 + src/sage/rings/padics/padic_extension_generic.py | 1 + src/sage/rings/padics/padic_extension_leaves.py | 1 + src/sage/rings/padics/padic_fixed_mod_element.pxd | 1 + src/sage/rings/padics/padic_fixed_mod_element.pyx | 1 + src/sage/rings/padics/padic_floating_point_element.pxd | 1 + src/sage/rings/padics/padic_floating_point_element.pyx | 1 + src/sage/rings/padics/padic_generic.py | 1 + src/sage/rings/padics/padic_generic_element.pxd | 1 + src/sage/rings/padics/padic_generic_element.pyx | 1 + src/sage/rings/padics/padic_lattice_element.py | 1 + src/sage/rings/padics/padic_printing.pxd | 1 + src/sage/rings/padics/padic_printing.pyx | 1 + src/sage/rings/padics/padic_relaxed_element.pxd | 1 + src/sage/rings/padics/padic_relaxed_element.pyx | 1 + src/sage/rings/padics/padic_relaxed_errors.pxd | 1 + src/sage/rings/padics/padic_relaxed_errors.pyx | 1 + src/sage/rings/padics/padic_template_element.pxi | 1 + src/sage/rings/padics/padic_template_element_header.pxi | 1 + src/sage/rings/padics/padic_valuation.py | 1 + src/sage/rings/padics/pow_computer.pxd | 1 + src/sage/rings/padics/pow_computer.pyx | 1 + src/sage/rings/padics/pow_computer_ext.pxd | 1 + src/sage/rings/padics/pow_computer_ext.pyx | 1 + src/sage/rings/padics/pow_computer_flint.pxd | 1 + src/sage/rings/padics/pow_computer_flint.pyx | 1 + src/sage/rings/padics/pow_computer_relative.pxd | 1 + src/sage/rings/padics/pow_computer_relative.pyx | 1 + src/sage/rings/padics/precision_error.py | 1 + src/sage/rings/padics/qadic_flint_CA.pxd | 1 + src/sage/rings/padics/qadic_flint_CA.pyx | 1 + src/sage/rings/padics/qadic_flint_CR.pxd | 1 + src/sage/rings/padics/qadic_flint_CR.pyx | 1 + src/sage/rings/padics/qadic_flint_FM.pxd | 1 + src/sage/rings/padics/qadic_flint_FM.pyx | 1 + src/sage/rings/padics/qadic_flint_FP.pxd | 1 + src/sage/rings/padics/qadic_flint_FP.pyx | 1 + src/sage/rings/padics/relative_extension_leaves.py | 1 + src/sage/rings/padics/relative_ramified_CA.pxd | 1 + src/sage/rings/padics/relative_ramified_CA.pyx | 1 + src/sage/rings/padics/relative_ramified_CR.pxd | 1 + src/sage/rings/padics/relative_ramified_CR.pyx | 1 + src/sage/rings/padics/relative_ramified_FM.pxd | 1 + src/sage/rings/padics/relative_ramified_FM.pyx | 1 + src/sage/rings/padics/relative_ramified_FP.pxd | 1 + src/sage/rings/padics/relative_ramified_FP.pyx | 1 + src/sage/rings/padics/relaxed_template.pxi | 1 + src/sage/rings/padics/relaxed_template_header.pxi | 1 + src/sage/rings/padics/tests.py | 1 + src/sage/rings/padics/tutorial.py | 1 + src/sage/rings/padics/unramified_extension_generic.py | 1 + src/sage/rings/pari_ring.py | 1 + src/sage/rings/polynomial/commutative_polynomial.pxd | 1 + src/sage/rings/polynomial/commutative_polynomial.pyx | 1 + src/sage/rings/polynomial/complex_roots.py | 1 + src/sage/rings/polynomial/cyclotomic.pyx | 1 + src/sage/rings/polynomial/evaluation_flint.pxd | 1 + src/sage/rings/polynomial/evaluation_flint.pyx | 1 + src/sage/rings/polynomial/evaluation_ntl.pxd | 1 + src/sage/rings/polynomial/evaluation_ntl.pyx | 1 + src/sage/rings/polynomial/flatten.py | 1 + src/sage/rings/polynomial/hilbert.pyx | 1 + src/sage/rings/polynomial/ideal.py | 1 + src/sage/rings/polynomial/infinite_polynomial_element.py | 1 + src/sage/rings/polynomial/infinite_polynomial_ring.py | 1 + src/sage/rings/polynomial/laurent_polynomial.pxd | 1 + src/sage/rings/polynomial/laurent_polynomial.pyx | 1 + src/sage/rings/polynomial/laurent_polynomial_ideal.py | 1 + src/sage/rings/polynomial/laurent_polynomial_mpair.pxd | 1 + src/sage/rings/polynomial/laurent_polynomial_mpair.pyx | 1 + src/sage/rings/polynomial/laurent_polynomial_ring.py | 1 + src/sage/rings/polynomial/laurent_polynomial_ring_base.py | 1 + src/sage/rings/polynomial/multi_polynomial.pxd | 1 + src/sage/rings/polynomial/multi_polynomial.pyx | 1 + src/sage/rings/polynomial/multi_polynomial_element.py | 1 + src/sage/rings/polynomial/multi_polynomial_ideal.py | 1 + .../rings/polynomial/multi_polynomial_ideal_libsingular.pxd | 1 + .../rings/polynomial/multi_polynomial_ideal_libsingular.pyx | 1 + src/sage/rings/polynomial/multi_polynomial_libsingular.pxd | 1 + src/sage/rings/polynomial/multi_polynomial_libsingular.pyx | 1 + src/sage/rings/polynomial/multi_polynomial_ring.py | 1 + src/sage/rings/polynomial/multi_polynomial_ring_base.pxd | 1 + src/sage/rings/polynomial/multi_polynomial_ring_base.pyx | 1 + src/sage/rings/polynomial/multi_polynomial_sequence.py | 1 + src/sage/rings/polynomial/ore_function_element.py | 1 + src/sage/rings/polynomial/ore_function_field.py | 1 + src/sage/rings/polynomial/ore_polynomial_element.pxd | 1 + src/sage/rings/polynomial/ore_polynomial_element.pyx | 1 + src/sage/rings/polynomial/ore_polynomial_ring.py | 1 + src/sage/rings/polynomial/padics/all.py | 1 + src/sage/rings/polynomial/padics/polynomial_padic.py | 1 + .../padics/polynomial_padic_capped_relative_dense.py | 1 + src/sage/rings/polynomial/padics/polynomial_padic_flat.py | 1 + src/sage/rings/polynomial/pbori/PyPolyBoRi.py | 1 + src/sage/rings/polynomial/pbori/__init__.py | 1 + src/sage/rings/polynomial/pbori/blocks.py | 1 + src/sage/rings/polynomial/pbori/cnf.py | 1 + src/sage/rings/polynomial/pbori/easy_polynomials.py | 1 + src/sage/rings/polynomial/pbori/fglm.py | 1 + src/sage/rings/polynomial/pbori/frontend.py | 1 + src/sage/rings/polynomial/pbori/gbcore.py | 1 + src/sage/rings/polynomial/pbori/gbrefs.py | 1 + src/sage/rings/polynomial/pbori/heuristics.py | 1 + src/sage/rings/polynomial/pbori/interpolate.py | 1 + src/sage/rings/polynomial/pbori/interred.py | 1 + src/sage/rings/polynomial/pbori/ll.py | 1 + src/sage/rings/polynomial/pbori/nf.py | 1 + src/sage/rings/polynomial/pbori/parallel.py | 1 + src/sage/rings/polynomial/pbori/pbori.pxd | 1 + src/sage/rings/polynomial/pbori/pbori.pyx | 1 + src/sage/rings/polynomial/pbori/randompoly.py | 1 + src/sage/rings/polynomial/pbori/rank.py | 1 + src/sage/rings/polynomial/pbori/specialsets.py | 1 + src/sage/rings/polynomial/pbori/statistics.py | 1 + src/sage/rings/polynomial/plural.pxd | 1 + src/sage/rings/polynomial/plural.pyx | 1 + src/sage/rings/polynomial/polydict.pxd | 1 + src/sage/rings/polynomial/polydict.pyx | 1 + src/sage/rings/polynomial/polynomial_compiled.pxd | 1 + src/sage/rings/polynomial/polynomial_compiled.pyx | 1 + src/sage/rings/polynomial/polynomial_complex_arb.pxd | 1 + src/sage/rings/polynomial/polynomial_complex_arb.pyx | 1 + src/sage/rings/polynomial/polynomial_element.pxd | 1 + src/sage/rings/polynomial/polynomial_element.pyx | 1 + src/sage/rings/polynomial/polynomial_element_generic.py | 1 + src/sage/rings/polynomial/polynomial_fateman.py | 1 + src/sage/rings/polynomial/polynomial_gf2x.pxd | 1 + src/sage/rings/polynomial/polynomial_gf2x.pyx | 1 + src/sage/rings/polynomial/polynomial_integer_dense_flint.pxd | 1 + src/sage/rings/polynomial/polynomial_integer_dense_flint.pyx | 1 + src/sage/rings/polynomial/polynomial_integer_dense_ntl.pxd | 1 + src/sage/rings/polynomial/polynomial_integer_dense_ntl.pyx | 1 + src/sage/rings/polynomial/polynomial_modn_dense_ntl.pxd | 1 + src/sage/rings/polynomial/polynomial_modn_dense_ntl.pyx | 1 + src/sage/rings/polynomial/polynomial_number_field.pyx | 1 + src/sage/rings/polynomial/polynomial_quotient_ring.py | 1 + src/sage/rings/polynomial/polynomial_quotient_ring_element.py | 1 + src/sage/rings/polynomial/polynomial_rational_flint.pxd | 1 + src/sage/rings/polynomial/polynomial_rational_flint.pyx | 1 + src/sage/rings/polynomial/polynomial_real_mpfr_dense.pyx | 1 + src/sage/rings/polynomial/polynomial_ring.py | 1 + src/sage/rings/polynomial/polynomial_ring_constructor.py | 1 + src/sage/rings/polynomial/polynomial_ring_homomorphism.pxd | 1 + src/sage/rings/polynomial/polynomial_ring_homomorphism.pyx | 1 + src/sage/rings/polynomial/polynomial_singular_interface.py | 1 + src/sage/rings/polynomial/polynomial_template.pxi | 1 + src/sage/rings/polynomial/polynomial_template_header.pxi | 1 + src/sage/rings/polynomial/polynomial_zmod_flint.pxd | 1 + src/sage/rings/polynomial/polynomial_zmod_flint.pyx | 1 + src/sage/rings/polynomial/polynomial_zz_pex.pxd | 1 + src/sage/rings/polynomial/polynomial_zz_pex.pyx | 1 + src/sage/rings/polynomial/real_roots.pxd | 1 + src/sage/rings/polynomial/real_roots.pyx | 1 + src/sage/rings/polynomial/refine_root.pyx | 1 + src/sage/rings/polynomial/skew_polynomial_element.pxd | 1 + src/sage/rings/polynomial/skew_polynomial_element.pyx | 1 + src/sage/rings/polynomial/skew_polynomial_finite_field.pxd | 1 + src/sage/rings/polynomial/skew_polynomial_finite_field.pyx | 1 + src/sage/rings/polynomial/skew_polynomial_finite_order.pxd | 1 + src/sage/rings/polynomial/skew_polynomial_finite_order.pyx | 1 + src/sage/rings/polynomial/skew_polynomial_ring.py | 1 + src/sage/rings/polynomial/symmetric_ideal.py | 1 + src/sage/rings/polynomial/symmetric_reduction.pxd | 1 + src/sage/rings/polynomial/symmetric_reduction.pyx | 1 + src/sage/rings/polynomial/term_order.py | 1 + src/sage/rings/polynomial/toy_buchberger.py | 1 + src/sage/rings/polynomial/toy_d_basis.py | 1 + src/sage/rings/polynomial/toy_variety.py | 1 + src/sage/rings/polynomial/weil/all.py | 1 + src/sage/rings/polynomial/weil/weil_polynomials.pyx | 1 + src/sage/rings/power_series_mpoly.pxd | 1 + src/sage/rings/power_series_mpoly.pyx | 1 + src/sage/rings/power_series_pari.pxd | 1 + src/sage/rings/power_series_pari.pyx | 1 + src/sage/rings/power_series_poly.pxd | 1 + src/sage/rings/power_series_poly.pyx | 1 + src/sage/rings/power_series_ring.py | 1 + src/sage/rings/power_series_ring_element.pxd | 1 + src/sage/rings/power_series_ring_element.pyx | 1 + src/sage/rings/puiseux_series_ring.py | 1 + src/sage/rings/puiseux_series_ring_element.pxd | 1 + src/sage/rings/puiseux_series_ring_element.pyx | 1 + src/sage/rings/qqbar.py | 1 + src/sage/rings/qqbar_decorators.py | 1 + src/sage/rings/quotient_ring.py | 1 + src/sage/rings/quotient_ring_element.py | 1 + src/sage/rings/rational.pxd | 1 + src/sage/rings/rational.pyx | 1 + src/sage/rings/rational_field.py | 1 + src/sage/rings/real_arb.pxd | 1 + src/sage/rings/real_arb.pyx | 1 + src/sage/rings/real_double.pxd | 1 + src/sage/rings/real_double.pyx | 1 + src/sage/rings/real_double_element_gsl.pxd | 1 + src/sage/rings/real_double_element_gsl.pyx | 1 + src/sage/rings/real_field.py | 1 + src/sage/rings/real_interval_absolute.pyx | 1 + src/sage/rings/real_lazy.pxd | 1 + src/sage/rings/real_lazy.pyx | 1 + src/sage/rings/real_mpfi.pxd | 1 + src/sage/rings/real_mpfi.pyx | 1 + src/sage/rings/real_mpfr.pxd | 1 + src/sage/rings/real_mpfr.pyx | 1 + src/sage/rings/ring.pxd | 1 + src/sage/rings/ring.pyx | 1 + src/sage/rings/ring_extension.pxd | 1 + src/sage/rings/ring_extension.pyx | 1 + src/sage/rings/ring_extension_conversion.pxd | 1 + src/sage/rings/ring_extension_conversion.pyx | 1 + src/sage/rings/ring_extension_element.pxd | 1 + src/sage/rings/ring_extension_element.pyx | 1 + src/sage/rings/ring_extension_homset.py | 1 + src/sage/rings/ring_extension_morphism.pxd | 1 + src/sage/rings/ring_extension_morphism.pyx | 1 + src/sage/rings/semirings/all.py | 1 + src/sage/rings/semirings/non_negative_integer_semiring.py | 1 + src/sage/rings/semirings/tropical_semiring.pyx | 1 + src/sage/rings/sum_of_squares.pxd | 1 + src/sage/rings/sum_of_squares.pyx | 1 + src/sage/rings/tate_algebra.py | 1 + src/sage/rings/tate_algebra_element.pxd | 1 + src/sage/rings/tate_algebra_element.pyx | 1 + src/sage/rings/tate_algebra_ideal.pxd | 1 + src/sage/rings/tate_algebra_ideal.pyx | 1 + src/sage/rings/tests.py | 1 + src/sage/rings/universal_cyclotomic_field.py | 1 + src/sage/rings/valuation/all.py | 1 + src/sage/rings/valuation/augmented_valuation.py | 1 + src/sage/rings/valuation/developing_valuation.py | 1 + src/sage/rings/valuation/gauss_valuation.py | 1 + src/sage/rings/valuation/inductive_valuation.py | 1 + src/sage/rings/valuation/limit_valuation.py | 1 + src/sage/rings/valuation/mapped_valuation.py | 1 + src/sage/rings/valuation/scaled_valuation.py | 1 + src/sage/rings/valuation/trivial_valuation.py | 1 + src/sage/rings/valuation/valuation.py | 1 + src/sage/rings/valuation/valuation_space.py | 1 + src/sage/rings/valuation/valuations_catalog.py | 1 + src/sage/rings/valuation/value_group.py | 1 + src/sage/sandpiles/all.py | 1 + src/sage/sandpiles/examples.py | 1 + src/sage/sandpiles/sandpile.py | 1 + src/sage/sat/all.py | 1 + src/sage/sat/boolean_polynomials.py | 1 + src/sage/sat/converters/__init__.py | 1 + src/sage/sat/converters/anf2cnf.py | 1 + src/sage/sat/converters/polybori.py | 1 + src/sage/sat/solvers/__init__.py | 1 + src/sage/sat/solvers/cryptominisat.py | 1 + src/sage/sat/solvers/dimacs.py | 1 + src/sage/sat/solvers/picosat.py | 1 + src/sage/sat/solvers/sat_lp.py | 1 + src/sage/sat/solvers/satsolver.pxd | 1 + src/sage/sat/solvers/satsolver.pyx | 1 + src/sage/schemes/affine/affine_homset.py | 1 + src/sage/schemes/affine/affine_morphism.py | 1 + src/sage/schemes/affine/affine_point.py | 1 + src/sage/schemes/affine/affine_rational_point.py | 1 + src/sage/schemes/affine/affine_space.py | 1 + src/sage/schemes/affine/affine_subscheme.py | 1 + src/sage/schemes/affine/all.py | 1 + src/sage/schemes/all.py | 1 + src/sage/schemes/berkovich/all.py | 1 + src/sage/schemes/berkovich/berkovich_cp_element.py | 1 + src/sage/schemes/berkovich/berkovich_space.py | 1 + src/sage/schemes/curves/affine_curve.py | 1 + src/sage/schemes/curves/all.py | 1 + src/sage/schemes/curves/closed_point.py | 1 + src/sage/schemes/curves/constructor.py | 1 + src/sage/schemes/curves/curve.py | 1 + src/sage/schemes/curves/point.py | 1 + src/sage/schemes/curves/projective_curve.py | 1 + src/sage/schemes/curves/zariski_vankampen.py | 1 + src/sage/schemes/cyclic_covers/all.py | 1 + src/sage/schemes/cyclic_covers/charpoly_frobenius.py | 1 + src/sage/schemes/cyclic_covers/constructor.py | 1 + src/sage/schemes/cyclic_covers/cycliccover_finite_field.py | 1 + src/sage/schemes/cyclic_covers/cycliccover_generic.py | 1 + src/sage/schemes/elliptic_curves/BSD.py | 1 + src/sage/schemes/elliptic_curves/Qcurves.py | 1 + src/sage/schemes/elliptic_curves/all.py | 1 + src/sage/schemes/elliptic_curves/cardinality.py | 1 + src/sage/schemes/elliptic_curves/cm.py | 1 + src/sage/schemes/elliptic_curves/constructor.py | 1 + src/sage/schemes/elliptic_curves/ec_database.py | 1 + src/sage/schemes/elliptic_curves/ell_curve_isogeny.py | 1 + src/sage/schemes/elliptic_curves/ell_egros.py | 1 + src/sage/schemes/elliptic_curves/ell_field.py | 1 + src/sage/schemes/elliptic_curves/ell_finite_field.py | 1 + src/sage/schemes/elliptic_curves/ell_generic.py | 1 + src/sage/schemes/elliptic_curves/ell_local_data.py | 1 + src/sage/schemes/elliptic_curves/ell_modular_symbols.py | 1 + src/sage/schemes/elliptic_curves/ell_number_field.py | 1 + src/sage/schemes/elliptic_curves/ell_padic_field.py | 1 + src/sage/schemes/elliptic_curves/ell_point.py | 1 + src/sage/schemes/elliptic_curves/ell_rational_field.py | 1 + src/sage/schemes/elliptic_curves/ell_tate_curve.py | 1 + src/sage/schemes/elliptic_curves/ell_torsion.py | 1 + src/sage/schemes/elliptic_curves/ell_wp.py | 1 + src/sage/schemes/elliptic_curves/formal_group.py | 1 + src/sage/schemes/elliptic_curves/gal_reps.py | 1 + src/sage/schemes/elliptic_curves/gal_reps_number_field.py | 1 + src/sage/schemes/elliptic_curves/gp_simon.py | 1 + src/sage/schemes/elliptic_curves/heegner.py | 1 + src/sage/schemes/elliptic_curves/height.py | 1 + src/sage/schemes/elliptic_curves/hom.py | 1 + src/sage/schemes/elliptic_curves/hom_composite.py | 1 + src/sage/schemes/elliptic_curves/hom_frobenius.py | 1 + src/sage/schemes/elliptic_curves/hom_scalar.py | 1 + src/sage/schemes/elliptic_curves/hom_sum.py | 1 + src/sage/schemes/elliptic_curves/hom_velusqrt.py | 1 + src/sage/schemes/elliptic_curves/isogeny_class.py | 1 + src/sage/schemes/elliptic_curves/isogeny_small_degree.py | 1 + src/sage/schemes/elliptic_curves/jacobian.py | 1 + src/sage/schemes/elliptic_curves/kodaira_symbol.py | 1 + src/sage/schemes/elliptic_curves/kraus.py | 1 + src/sage/schemes/elliptic_curves/lseries_ell.py | 1 + src/sage/schemes/elliptic_curves/mod5family.py | 1 + src/sage/schemes/elliptic_curves/mod_poly.py | 1 + src/sage/schemes/elliptic_curves/mod_sym_num.pyx | 1 + src/sage/schemes/elliptic_curves/modular_parametrization.py | 1 + src/sage/schemes/elliptic_curves/padic_lseries.py | 1 + src/sage/schemes/elliptic_curves/padics.py | 1 + src/sage/schemes/elliptic_curves/period_lattice.py | 1 + src/sage/schemes/elliptic_curves/period_lattice_region.pyx | 1 + src/sage/schemes/elliptic_curves/saturation.py | 1 + src/sage/schemes/elliptic_curves/sha_tate.py | 1 + src/sage/schemes/elliptic_curves/weierstrass_morphism.py | 1 + src/sage/schemes/elliptic_curves/weierstrass_transform.py | 1 + src/sage/schemes/generic/algebraic_scheme.py | 1 + src/sage/schemes/generic/all.py | 1 + src/sage/schemes/generic/ambient_space.py | 1 + src/sage/schemes/generic/divisor.py | 1 + src/sage/schemes/generic/divisor_group.py | 1 + src/sage/schemes/generic/glue.py | 1 + src/sage/schemes/generic/homset.py | 1 + src/sage/schemes/generic/hypersurface.py | 1 + src/sage/schemes/generic/morphism.py | 1 + src/sage/schemes/generic/point.py | 1 + src/sage/schemes/generic/scheme.py | 1 + src/sage/schemes/generic/spec.py | 1 + src/sage/schemes/hyperelliptic_curves/all.py | 1 + src/sage/schemes/hyperelliptic_curves/constructor.py | 1 + src/sage/schemes/hyperelliptic_curves/hypellfrob.pyx | 1 + .../schemes/hyperelliptic_curves/hyperelliptic_finite_field.py | 1 + src/sage/schemes/hyperelliptic_curves/hyperelliptic_g2.py | 1 + src/sage/schemes/hyperelliptic_curves/hyperelliptic_generic.py | 1 + .../schemes/hyperelliptic_curves/hyperelliptic_padic_field.py | 1 + .../hyperelliptic_curves/hyperelliptic_rational_field.py | 1 + src/sage/schemes/hyperelliptic_curves/invariants.py | 1 + .../hyperelliptic_curves/jacobian_endomorphism_utils.py | 1 + src/sage/schemes/hyperelliptic_curves/jacobian_g2.py | 1 + src/sage/schemes/hyperelliptic_curves/jacobian_generic.py | 1 + src/sage/schemes/hyperelliptic_curves/jacobian_homset.py | 1 + src/sage/schemes/hyperelliptic_curves/jacobian_morphism.py | 1 + src/sage/schemes/hyperelliptic_curves/kummer_surface.py | 1 + src/sage/schemes/hyperelliptic_curves/mestre.py | 1 + src/sage/schemes/hyperelliptic_curves/monsky_washnitzer.py | 1 + src/sage/schemes/jacobians/abstract_jacobian.py | 1 + src/sage/schemes/jacobians/all.py | 1 + src/sage/schemes/overview.py | 1 + src/sage/schemes/plane_conics/all.py | 1 + src/sage/schemes/plane_conics/con_field.py | 1 + src/sage/schemes/plane_conics/con_finite_field.py | 1 + src/sage/schemes/plane_conics/con_number_field.py | 1 + src/sage/schemes/plane_conics/con_rational_field.py | 1 + src/sage/schemes/plane_conics/con_rational_function_field.py | 1 + src/sage/schemes/plane_conics/constructor.py | 1 + src/sage/schemes/plane_quartics/all.py | 1 + src/sage/schemes/plane_quartics/quartic_constructor.py | 1 + src/sage/schemes/plane_quartics/quartic_generic.py | 1 + src/sage/schemes/product_projective/all.py | 1 + src/sage/schemes/product_projective/homset.py | 1 + src/sage/schemes/product_projective/morphism.py | 1 + src/sage/schemes/product_projective/point.py | 1 + src/sage/schemes/product_projective/rational_point.py | 1 + src/sage/schemes/product_projective/space.py | 1 + src/sage/schemes/product_projective/subscheme.py | 1 + src/sage/schemes/projective/all.py | 1 + src/sage/schemes/projective/proj_bdd_height.py | 1 + src/sage/schemes/projective/projective_homset.py | 1 + src/sage/schemes/projective/projective_morphism.py | 1 + src/sage/schemes/projective/projective_point.py | 1 + src/sage/schemes/projective/projective_rational_point.py | 1 + src/sage/schemes/projective/projective_space.py | 1 + src/sage/schemes/projective/projective_subscheme.py | 1 + src/sage/schemes/riemann_surfaces/all.py | 1 + src/sage/schemes/riemann_surfaces/riemann_surface.py | 1 + src/sage/schemes/toric/all.py | 1 + src/sage/schemes/toric/chow_group.py | 1 + src/sage/schemes/toric/divisor.py | 1 + src/sage/schemes/toric/divisor_class.pyx | 1 + src/sage/schemes/toric/fano_variety.py | 1 + src/sage/schemes/toric/homset.py | 1 + src/sage/schemes/toric/ideal.py | 1 + src/sage/schemes/toric/library.py | 1 + src/sage/schemes/toric/morphism.py | 1 + src/sage/schemes/toric/points.py | 1 + src/sage/schemes/toric/sheaf/all.py | 1 + src/sage/schemes/toric/sheaf/constructor.py | 1 + src/sage/schemes/toric/sheaf/klyachko.py | 1 + src/sage/schemes/toric/toric_subscheme.py | 1 + src/sage/schemes/toric/variety.py | 1 + src/sage/schemes/toric/weierstrass.py | 1 + src/sage/schemes/toric/weierstrass_covering.py | 1 + src/sage/schemes/toric/weierstrass_higher.py | 1 + src/sage/sets/all.py | 1 + src/sage/sets/all__sagemath_objects.py | 1 + src/sage/sets/cartesian_product.py | 1 + src/sage/sets/condition_set.py | 1 + src/sage/sets/disjoint_set.pxd | 1 + src/sage/sets/disjoint_set.pyx | 1 + src/sage/sets/disjoint_union_enumerated_sets.py | 1 + src/sage/sets/family.pxd | 1 + src/sage/sets/family.pyx | 1 + src/sage/sets/finite_enumerated_set.py | 1 + src/sage/sets/finite_set_map_cy.pxd | 1 + src/sage/sets/finite_set_map_cy.pyx | 1 + src/sage/sets/finite_set_maps.py | 1 + src/sage/sets/image_set.py | 1 + src/sage/sets/integer_range.py | 1 + src/sage/sets/non_negative_integers.py | 1 + src/sage/sets/positive_integers.py | 1 + src/sage/sets/primes.py | 1 + src/sage/sets/pythonclass.pxd | 1 + src/sage/sets/pythonclass.pyx | 1 + src/sage/sets/real_set.py | 1 + src/sage/sets/recursively_enumerated_set.pxd | 1 + src/sage/sets/recursively_enumerated_set.pyx | 1 + src/sage/sets/set.py | 1 + src/sage/sets/set_from_iterator.py | 1 + src/sage/sets/totally_ordered_finite_set.py | 1 + src/sage/stats/all.py | 1 + src/sage/stats/basic_stats.py | 1 + src/sage/stats/distributions/all.py | 1 + src/sage/stats/distributions/dgs.pxd | 1 + src/sage/stats/distributions/discrete_gaussian_integer.pxd | 1 + src/sage/stats/distributions/discrete_gaussian_integer.pyx | 1 + src/sage/stats/distributions/discrete_gaussian_lattice.py | 1 + src/sage/stats/distributions/discrete_gaussian_polynomial.py | 1 + src/sage/stats/hmm/all.py | 1 + src/sage/stats/hmm/chmm.pyx | 1 + src/sage/stats/hmm/distributions.pxd | 1 + src/sage/stats/hmm/distributions.pyx | 1 + src/sage/stats/hmm/hmm.pxd | 1 + src/sage/stats/hmm/hmm.pyx | 1 + src/sage/stats/hmm/util.pxd | 1 + src/sage/stats/hmm/util.pyx | 1 + src/sage/stats/intlist.pxd | 1 + src/sage/stats/intlist.pyx | 1 + src/sage/stats/r.py | 1 + src/sage/stats/time_series.pxd | 1 + src/sage/stats/time_series.pyx | 1 + src/sage/structure/__init__.py | 1 + src/sage/structure/all.py | 1 + src/sage/structure/category_object.pxd | 1 + src/sage/structure/category_object.pyx | 1 + src/sage/structure/coerce.pxd | 1 + src/sage/structure/coerce.pyx | 1 + src/sage/structure/coerce_actions.pxd | 1 + src/sage/structure/coerce_actions.pyx | 1 + src/sage/structure/coerce_dict.pxd | 1 + src/sage/structure/coerce_dict.pyx | 1 + src/sage/structure/coerce_exceptions.py | 1 + src/sage/structure/coerce_maps.pxd | 1 + src/sage/structure/coerce_maps.pyx | 1 + src/sage/structure/debug_options.pxd | 1 + src/sage/structure/debug_options.pyx | 1 + src/sage/structure/dynamic_class.py | 1 + src/sage/structure/element.pxd | 1 + src/sage/structure/element.pyx | 1 + src/sage/structure/element_wrapper.pxd | 1 + src/sage/structure/element_wrapper.pyx | 1 + src/sage/structure/factorization.py | 1 + src/sage/structure/factorization_integer.py | 1 + src/sage/structure/factory.pyx | 1 + src/sage/structure/formal_sum.py | 1 + src/sage/structure/gens_py.py | 1 + src/sage/structure/global_options.py | 1 + src/sage/structure/indexed_generators.py | 1 + src/sage/structure/list_clone.pxd | 1 + src/sage/structure/list_clone.pyx | 1 + src/sage/structure/list_clone_demo.pyx | 1 + src/sage/structure/list_clone_timings.py | 1 + src/sage/structure/list_clone_timings_cy.pyx | 1 + src/sage/structure/mutability.pxd | 3 ++- src/sage/structure/mutability.pyx | 1 + src/sage/structure/nonexact.py | 1 + src/sage/structure/parent.pxd | 1 + src/sage/structure/parent.pyx | 1 + src/sage/structure/parent_base.pxd | 1 + src/sage/structure/parent_base.pyx | 1 + src/sage/structure/parent_gens.pxd | 1 + src/sage/structure/parent_gens.pyx | 1 + src/sage/structure/parent_old.pxd | 1 + src/sage/structure/parent_old.pyx | 1 + src/sage/structure/proof/__init__.py | 1 + src/sage/structure/proof/all.py | 1 + src/sage/structure/proof/proof.py | 1 + src/sage/structure/richcmp.pxd | 1 + src/sage/structure/richcmp.pyx | 1 + src/sage/structure/sage_object.pxd | 1 + src/sage/structure/sage_object.pyx | 1 + src/sage/structure/sage_object_test.py | 1 + src/sage/structure/sequence.py | 1 + src/sage/structure/set_factories.py | 1 + src/sage/structure/set_factories_example.py | 1 + src/sage/structure/support_view.py | 1 + src/sage/structure/test_factory.py | 1 + src/sage/structure/unique_representation.py | 1 + src/sage/symbolic/all.py | 1 + src/sage/symbolic/assumptions.py | 1 + src/sage/symbolic/benchmark.py | 1 + src/sage/symbolic/callable.py | 1 + src/sage/symbolic/comparison_impl.pxi | 1 + src/sage/symbolic/complexity_measures.py | 1 + src/sage/symbolic/constants.py | 1 + src/sage/symbolic/constants_c_impl.pxi | 1 + src/sage/symbolic/expression.pxd | 1 + src/sage/symbolic/expression.pyx | 1 + src/sage/symbolic/expression_conversion_algebraic.py | 1 + src/sage/symbolic/expression_conversion_sympy.py | 1 + src/sage/symbolic/expression_conversions.py | 1 + src/sage/symbolic/function.pxd | 1 + src/sage/symbolic/function.pyx | 1 + src/sage/symbolic/function_factory.py | 1 + src/sage/symbolic/getitem_impl.pxi | 1 + src/sage/symbolic/integration/all.py | 1 + src/sage/symbolic/integration/external.py | 1 + src/sage/symbolic/integration/integral.py | 1 + src/sage/symbolic/maxima_wrapper.py | 1 + src/sage/symbolic/operators.py | 1 + src/sage/symbolic/pynac.pxi | 1 + src/sage/symbolic/pynac_constant_impl.pxi | 1 + src/sage/symbolic/pynac_function_impl.pxi | 1 + src/sage/symbolic/pynac_impl.pxi | 1 + src/sage/symbolic/random_tests.py | 1 + src/sage/symbolic/relation.py | 1 + src/sage/symbolic/ring.pxd | 1 + src/sage/symbolic/ring.pyx | 1 + src/sage/symbolic/series_impl.pxi | 1 + src/sage/symbolic/subring.py | 1 + src/sage/symbolic/substitution_map_impl.pxi | 1 + src/sage/symbolic/symbols.py | 1 + src/sage/symbolic/symengine.py | 1 + src/sage/symbolic/tests.py | 1 + src/sage/symbolic/units.py | 1 + src/sage/tensor/all.py | 1 + src/sage/tensor/modules/all.py | 1 + src/sage/tensor/modules/alternating_contr_tensor.py | 1 + src/sage/tensor/modules/comp.py | 1 + src/sage/tensor/modules/ext_pow_free_module.py | 1 + src/sage/tensor/modules/finite_rank_free_module.py | 1 + src/sage/tensor/modules/format_utilities.py | 1 + src/sage/tensor/modules/free_module_alt_form.py | 1 + src/sage/tensor/modules/free_module_automorphism.py | 1 + src/sage/tensor/modules/free_module_basis.py | 1 + src/sage/tensor/modules/free_module_element.py | 1 + src/sage/tensor/modules/free_module_homset.py | 1 + src/sage/tensor/modules/free_module_linear_group.py | 1 + src/sage/tensor/modules/free_module_morphism.py | 1 + src/sage/tensor/modules/free_module_tensor.py | 1 + src/sage/tensor/modules/reflexive_module.py | 1 + src/sage/tensor/modules/tensor_free_module.py | 1 + src/sage/tensor/modules/tensor_free_submodule.py | 1 + src/sage/tensor/modules/tensor_free_submodule_basis.py | 1 + src/sage/tensor/modules/tensor_with_indices.py | 1 + src/sage/tests/__init__.py | 1 + src/sage/tests/all.py | 1 + src/sage/tests/article_heuberger_krenn_kropf_fsm-in-sage.py | 1 + src/sage/tests/arxiv_0812_2725.py | 1 + src/sage/tests/benchmark.py | 1 + src/sage/tests/book_schilling_zabrocki_kschur_primer.py | 1 + src/sage/tests/book_stein_ent.py | 1 + .../books/computational-mathematics-with-sagemath/__init__.py | 1 + .../calculus_doctest.py | 1 + .../combinat_doctest.py | 1 + .../domaines_doctest.py | 1 + .../computational-mathematics-with-sagemath/float_doctest.py | 1 + .../graphique_doctest.py | 1 + .../graphtheory_doctest.py | 1 + .../integration_doctest.py | 1 + .../computational-mathematics-with-sagemath/linalg_doctest.py | 1 + .../linsolve_doctest.py | 1 + .../computational-mathematics-with-sagemath/lp_doctest.py | 1 + .../computational-mathematics-with-sagemath/mpoly_doctest.py | 1 + .../nonlinear_doctest.py | 1 + .../numbertheory_doctest.py | 1 + .../polynomes_doctest.py | 1 + .../premierspas_doctest.py | 1 + .../programmation_doctest.py | 1 + .../recequadiff_doctest.py | 1 + .../computational-mathematics-with-sagemath/sol/__init__.py | 1 + .../sol/calculus_doctest.py | 1 + .../sol/combinat_doctest.py | 1 + .../sol/domaines_doctest.py | 1 + .../sol/float_doctest.py | 1 + .../sol/graphique_doctest.py | 1 + .../sol/graphtheory_doctest.py | 1 + .../sol/integration_doctest.py | 1 + .../sol/linalg_doctest.py | 1 + .../sol/linsolve_doctest.py | 1 + .../computational-mathematics-with-sagemath/sol/lp_doctest.py | 1 + .../sol/mpoly_doctest.py | 1 + .../sol/nonlinear_doctest.py | 1 + .../sol/numbertheory_doctest.py | 1 + .../sol/polynomes_doctest.py | 1 + .../sol/recequadiff_doctest.py | 1 + src/sage/tests/books/judson-abstract-algebra/__init__.py | 1 + .../books/judson-abstract-algebra/actions-sage-exercises.py | 1 + src/sage/tests/books/judson-abstract-algebra/actions-sage.py | 1 + src/sage/tests/books/judson-abstract-algebra/algcodes-sage.py | 1 + src/sage/tests/books/judson-abstract-algebra/boolean-sage.py | 1 + .../books/judson-abstract-algebra/cosets-sage-exercises.py | 1 + src/sage/tests/books/judson-abstract-algebra/cosets-sage.py | 1 + src/sage/tests/books/judson-abstract-algebra/crypt-sage.py | 1 + src/sage/tests/books/judson-abstract-algebra/cyclic-sage.py | 1 + src/sage/tests/books/judson-abstract-algebra/domains-sage.py | 1 + src/sage/tests/books/judson-abstract-algebra/fields-sage.py | 1 + src/sage/tests/books/judson-abstract-algebra/finite-sage.py | 1 + src/sage/tests/books/judson-abstract-algebra/galois-sage.py | 1 + src/sage/tests/books/judson-abstract-algebra/groups-sage.py | 1 + .../books/judson-abstract-algebra/homomorph-sage-exercises.py | 1 + src/sage/tests/books/judson-abstract-algebra/homomorph-sage.py | 1 + src/sage/tests/books/judson-abstract-algebra/integers-sage.py | 1 + src/sage/tests/books/judson-abstract-algebra/isomorph-sage.py | 1 + src/sage/tests/books/judson-abstract-algebra/normal-sage.py | 1 + src/sage/tests/books/judson-abstract-algebra/permute-sage.py | 1 + src/sage/tests/books/judson-abstract-algebra/poly-sage.py | 1 + src/sage/tests/books/judson-abstract-algebra/rings-sage.py | 1 + src/sage/tests/books/judson-abstract-algebra/sets-sage.py | 1 + src/sage/tests/books/judson-abstract-algebra/struct-sage.py | 1 + src/sage/tests/books/judson-abstract-algebra/sylow-sage.py | 1 + .../tests/books/judson-abstract-algebra/vect-sage-exercises.py | 1 + src/sage/tests/books/judson-abstract-algebra/vect-sage.py | 1 + src/sage/tests/cmdline.py | 1 + src/sage/tests/combinatorial_hopf_algebras.py | 1 + src/sage/tests/cython.pyx | 1 + src/sage/tests/finite_poset.py | 1 + src/sage/tests/functools_partial_src.py | 1 + src/sage/tests/gap_packages.py | 1 + src/sage/tests/gosper-sum.py | 1 + src/sage/tests/lazy_imports.py | 1 + src/sage/tests/memcheck/__init__.py | 1 + src/sage/tests/memcheck/run_tests.py | 1 + src/sage/tests/memcheck/run_tests_in_valgrind.py | 1 + src/sage/tests/memcheck/symbolic_expression.py | 1 + src/sage/tests/memcheck/verify_no_leak.py | 1 + src/sage/tests/modular_group_cohomology.py | 1 + src/sage/tests/numpy.py | 1 + src/sage/tests/parigp.py | 1 + src/sage/tests/startup.py | 1 + src/sage/tests/stl_vector.pyx | 1 + src/sage/tests/symbolic-series.py | 1 + src/sage/tests/sympy.py | 1 + src/sage/tests/test_deprecation.py | 1 + src/sage/topology/all.py | 1 + src/sage/topology/cell_complex.py | 1 + src/sage/topology/cubical_complex.py | 1 + src/sage/topology/delta_complex.py | 1 + src/sage/topology/filtered_simplicial_complex.py | 1 + src/sage/topology/moment_angle_complex.py | 1 + src/sage/topology/simplicial_complex.py | 1 + src/sage/topology/simplicial_complex_catalog.py | 1 + src/sage/topology/simplicial_complex_examples.py | 1 + src/sage/topology/simplicial_complex_homset.py | 1 + src/sage/topology/simplicial_complex_morphism.py | 1 + src/sage/topology/simplicial_set.py | 1 + src/sage/topology/simplicial_set_catalog.py | 1 + src/sage/topology/simplicial_set_constructions.py | 1 + src/sage/topology/simplicial_set_examples.py | 1 + src/sage/topology/simplicial_set_morphism.py | 1 + src/sage/typeset/all.py | 1 + src/sage/typeset/ascii_art.py | 1 + src/sage/typeset/character_art.py | 1 + src/sage/typeset/character_art_factory.py | 1 + src/sage/typeset/symbols.py | 1 + src/sage/typeset/unicode_art.py | 1 + src/sage/typeset/unicode_characters.py | 1 + src/sage/version.py | 1 + 3357 files changed, 3361 insertions(+), 5 deletions(-) diff --git a/src/sage/algebras/affine_nil_temperley_lieb.py b/src/sage/algebras/affine_nil_temperley_lieb.py index 1fa213bd4bc..43d59547fee 100644 --- a/src/sage/algebras/affine_nil_temperley_lieb.py +++ b/src/sage/algebras/affine_nil_temperley_lieb.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules """ Affine nilTemperley Lieb Algebra of type A diff --git a/src/sage/algebras/algebra.py b/src/sage/algebras/algebra.py index e69ea7da530..3423c8b2f6e 100644 --- a/src/sage/algebras/algebra.py +++ b/src/sage/algebras/algebra.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.combinat sage.modules """ Abstract base class for algebras diff --git a/src/sage/algebras/all.py b/src/sage/algebras/all.py index 14be60e8f56..8648db7913d 100644 --- a/src/sage/algebras/all.py +++ b/src/sage/algebras/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat """ Algebras """ diff --git a/src/sage/algebras/askey_wilson.py b/src/sage/algebras/askey_wilson.py index 4943c73b36d..1624ecdd8e2 100644 --- a/src/sage/algebras/askey_wilson.py +++ b/src/sage/algebras/askey_wilson.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules """ Askey-Wilson Algebras diff --git a/src/sage/algebras/associated_graded.py b/src/sage/algebras/associated_graded.py index 5dd01321114..1831e6fcf52 100644 --- a/src/sage/algebras/associated_graded.py +++ b/src/sage/algebras/associated_graded.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.modules r""" Associated Graded Algebras To Filtered Algebras diff --git a/src/sage/algebras/catalog.py b/src/sage/algebras/catalog.py index ec48a6debed..1013441e722 100644 --- a/src/sage/algebras/catalog.py +++ b/src/sage/algebras/catalog.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Catalog of Algebras diff --git a/src/sage/algebras/cellular_basis.py b/src/sage/algebras/cellular_basis.py index 8c474420378..5d82b9e280d 100644 --- a/src/sage/algebras/cellular_basis.py +++ b/src/sage/algebras/cellular_basis.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Cellular Basis diff --git a/src/sage/algebras/clifford_algebra.py b/src/sage/algebras/clifford_algebra.py index 3b9b8ec9db6..cf9ba58df1f 100644 --- a/src/sage/algebras/clifford_algebra.py +++ b/src/sage/algebras/clifford_algebra.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.modules r""" Clifford Algebras diff --git a/src/sage/algebras/clifford_algebra_element.pxd b/src/sage/algebras/clifford_algebra_element.pxd index be08e06f922..e032de7347c 100644 --- a/src/sage/algebras/clifford_algebra_element.pxd +++ b/src/sage/algebras/clifford_algebra_element.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Clifford algebra elements """ diff --git a/src/sage/algebras/clifford_algebra_element.pyx b/src/sage/algebras/clifford_algebra_element.pyx index 2e6ad0a8547..591ace1f449 100644 --- a/src/sage/algebras/clifford_algebra_element.pyx +++ b/src/sage/algebras/clifford_algebra_element.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.modules """ Clifford algebra elements diff --git a/src/sage/algebras/cluster_algebra.py b/src/sage/algebras/cluster_algebra.py index 28c229edc09..a1a6249f2f0 100644 --- a/src/sage/algebras/cluster_algebra.py +++ b/src/sage/algebras/cluster_algebra.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.graphs sage.modules r""" Cluster algebras diff --git a/src/sage/algebras/commutative_dga.py b/src/sage/algebras/commutative_dga.py index a65581f8db1..01397231ada 100644 --- a/src/sage/algebras/commutative_dga.py +++ b/src/sage/algebras/commutative_dga.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Commutative Differential Graded Algebras diff --git a/src/sage/algebras/down_up_algebra.py b/src/sage/algebras/down_up_algebra.py index 088e7ac30ad..a40ac03ab06 100644 --- a/src/sage/algebras/down_up_algebra.py +++ b/src/sage/algebras/down_up_algebra.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.modules r""" Down-Up Algebras diff --git a/src/sage/algebras/exterior_algebra_groebner.pxd b/src/sage/algebras/exterior_algebra_groebner.pxd index bf5ee24ea22..8077de05f8f 100644 --- a/src/sage/algebras/exterior_algebra_groebner.pxd +++ b/src/sage/algebras/exterior_algebra_groebner.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Exterior algebras Gröbner bases """ diff --git a/src/sage/algebras/exterior_algebra_groebner.pyx b/src/sage/algebras/exterior_algebra_groebner.pyx index 265e9323536..cc5e60e748c 100644 --- a/src/sage/algebras/exterior_algebra_groebner.pyx +++ b/src/sage/algebras/exterior_algebra_groebner.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.modules r""" Exterior algebras Gröbner bases diff --git a/src/sage/algebras/finite_dimensional_algebras/all.py b/src/sage/algebras/finite_dimensional_algebras/all.py index add5ff8ecd6..c3c5a1e5ccb 100644 --- a/src/sage/algebras/finite_dimensional_algebras/all.py +++ b/src/sage/algebras/finite_dimensional_algebras/all.py @@ -1 +1,2 @@ +# sage_setup: distribution = sagemath-modules from .finite_dimensional_algebra import FiniteDimensionalAlgebra diff --git a/src/sage/algebras/finite_dimensional_algebras/finite_dimensional_algebra.py b/src/sage/algebras/finite_dimensional_algebras/finite_dimensional_algebra.py index a3b8742b4e0..fb513c7a371 100644 --- a/src/sage/algebras/finite_dimensional_algebras/finite_dimensional_algebra.py +++ b/src/sage/algebras/finite_dimensional_algebras/finite_dimensional_algebra.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Finite-Dimensional Algebras """ diff --git a/src/sage/algebras/finite_dimensional_algebras/finite_dimensional_algebra_element.pxd b/src/sage/algebras/finite_dimensional_algebras/finite_dimensional_algebra_element.pxd index dd5f85be9fb..a30944d4454 100644 --- a/src/sage/algebras/finite_dimensional_algebras/finite_dimensional_algebra_element.pxd +++ b/src/sage/algebras/finite_dimensional_algebras/finite_dimensional_algebra_element.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.structure.element cimport AlgebraElement, Element, Vector from sage.matrix.matrix cimport Matrix diff --git a/src/sage/algebras/finite_dimensional_algebras/finite_dimensional_algebra_element.pyx b/src/sage/algebras/finite_dimensional_algebras/finite_dimensional_algebra_element.pyx index d58e1ac8647..d1e2db79eec 100644 --- a/src/sage/algebras/finite_dimensional_algebras/finite_dimensional_algebra_element.pyx +++ b/src/sage/algebras/finite_dimensional_algebras/finite_dimensional_algebra_element.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Elements of Finite Algebras """ diff --git a/src/sage/algebras/finite_dimensional_algebras/finite_dimensional_algebra_ideal.py b/src/sage/algebras/finite_dimensional_algebras/finite_dimensional_algebra_ideal.py index 15f0881bb8b..46b9141cd0b 100644 --- a/src/sage/algebras/finite_dimensional_algebras/finite_dimensional_algebra_ideal.py +++ b/src/sage/algebras/finite_dimensional_algebras/finite_dimensional_algebra_ideal.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.rings.finite_rings (because all doctests use GF) """ Ideals of Finite Algebras diff --git a/src/sage/algebras/finite_dimensional_algebras/finite_dimensional_algebra_morphism.py b/src/sage/algebras/finite_dimensional_algebras/finite_dimensional_algebra_morphism.py index d2114511ae6..3dff53425c6 100644 --- a/src/sage/algebras/finite_dimensional_algebras/finite_dimensional_algebra_morphism.py +++ b/src/sage/algebras/finite_dimensional_algebras/finite_dimensional_algebra_morphism.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Morphisms Between Finite Algebras """ diff --git a/src/sage/algebras/finite_gca.py b/src/sage/algebras/finite_gca.py index cb6c29e358d..e27a61d618d 100644 --- a/src/sage/algebras/finite_gca.py +++ b/src/sage/algebras/finite_gca.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.modules r""" Finite dimensional graded commutative algebras diff --git a/src/sage/algebras/free_algebra.py b/src/sage/algebras/free_algebra.py index 6935bf67b23..cfe13f9fffe 100644 --- a/src/sage/algebras/free_algebra.py +++ b/src/sage/algebras/free_algebra.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules """ Free algebras diff --git a/src/sage/algebras/free_algebra_element.py b/src/sage/algebras/free_algebra_element.py index 1854414e2d0..729929e5c1b 100644 --- a/src/sage/algebras/free_algebra_element.py +++ b/src/sage/algebras/free_algebra_element.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules """ Free algebra elements diff --git a/src/sage/algebras/free_algebra_quotient.py b/src/sage/algebras/free_algebra_quotient.py index e41e9c877c5..81fb1775fb2 100644 --- a/src/sage/algebras/free_algebra_quotient.py +++ b/src/sage/algebras/free_algebra_quotient.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules """ Finite dimensional free algebra quotients diff --git a/src/sage/algebras/free_algebra_quotient_element.py b/src/sage/algebras/free_algebra_quotient_element.py index 559d4246ac0..4e78802996e 100644 --- a/src/sage/algebras/free_algebra_quotient_element.py +++ b/src/sage/algebras/free_algebra_quotient_element.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules """ Free algebra quotient elements diff --git a/src/sage/algebras/free_zinbiel_algebra.py b/src/sage/algebras/free_zinbiel_algebra.py index d421b2d7aee..476ce600ca3 100644 --- a/src/sage/algebras/free_zinbiel_algebra.py +++ b/src/sage/algebras/free_zinbiel_algebra.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules """ Free Zinbiel Algebras diff --git a/src/sage/algebras/fusion_rings/all.py b/src/sage/algebras/fusion_rings/all.py index bf9c016510f..c638c1e6bcc 100644 --- a/src/sage/algebras/fusion_rings/all.py +++ b/src/sage/algebras/fusion_rings/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-singular """ Fusion Rings """ diff --git a/src/sage/algebras/fusion_rings/f_matrix.py b/src/sage/algebras/fusion_rings/f_matrix.py index 47f5976cf03..950eb94f121 100644 --- a/src/sage/algebras/fusion_rings/f_matrix.py +++ b/src/sage/algebras/fusion_rings/f_matrix.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-singular r""" The F-Matrix of a Fusion Ring """ diff --git a/src/sage/algebras/fusion_rings/fast_parallel_fmats_methods.pxd b/src/sage/algebras/fusion_rings/fast_parallel_fmats_methods.pxd index 19e98aa137d..c9c4f8bcac6 100644 --- a/src/sage/algebras/fusion_rings/fast_parallel_fmats_methods.pxd +++ b/src/sage/algebras/fusion_rings/fast_parallel_fmats_methods.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-singular cdef _fmat(fvars, Nk_ij, one, a, b, c, d, x, y) noexcept cpdef _backward_subs(factory, bint flatten=*) noexcept cpdef executor(tuple params) noexcept diff --git a/src/sage/algebras/fusion_rings/fast_parallel_fmats_methods.pyx b/src/sage/algebras/fusion_rings/fast_parallel_fmats_methods.pyx index b79370c7f2c..3490334922a 100644 --- a/src/sage/algebras/fusion_rings/fast_parallel_fmats_methods.pyx +++ b/src/sage/algebras/fusion_rings/fast_parallel_fmats_methods.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-singular """ Fast F-Matrix Methods """ diff --git a/src/sage/algebras/fusion_rings/fast_parallel_fusion_ring_braid_repn.pxd b/src/sage/algebras/fusion_rings/fast_parallel_fusion_ring_braid_repn.pxd index 9fde1f0c5e8..970ef8c8c84 100644 --- a/src/sage/algebras/fusion_rings/fast_parallel_fusion_ring_braid_repn.pxd +++ b/src/sage/algebras/fusion_rings/fast_parallel_fusion_ring_braid_repn.pxd @@ -1,2 +1,3 @@ +# sage_setup: distribution = sagemath-singular cpdef _unflatten_entries(factory, list entries) noexcept cpdef executor(tuple params) noexcept diff --git a/src/sage/algebras/fusion_rings/fast_parallel_fusion_ring_braid_repn.pyx b/src/sage/algebras/fusion_rings/fast_parallel_fusion_ring_braid_repn.pyx index 9ba832c5124..4731b54af9c 100644 --- a/src/sage/algebras/fusion_rings/fast_parallel_fusion_ring_braid_repn.pyx +++ b/src/sage/algebras/fusion_rings/fast_parallel_fusion_ring_braid_repn.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-singular """ Fast Fusion Ring Methods for Computing Braid Group Representations """ diff --git a/src/sage/algebras/fusion_rings/fusion_double.py b/src/sage/algebras/fusion_rings/fusion_double.py index 339e4a4e199..78ef8ae734e 100644 --- a/src/sage/algebras/fusion_rings/fusion_double.py +++ b/src/sage/algebras/fusion_rings/fusion_double.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-singular """ The Fusion Ring of the Drinfeld Double of a Finite Group """ diff --git a/src/sage/algebras/fusion_rings/fusion_ring.py b/src/sage/algebras/fusion_rings/fusion_ring.py index 72bc0f8600c..31bba004e55 100644 --- a/src/sage/algebras/fusion_rings/fusion_ring.py +++ b/src/sage/algebras/fusion_rings/fusion_ring.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-singular """ Fusion Rings """ diff --git a/src/sage/algebras/fusion_rings/poly_tup_engine.pxd b/src/sage/algebras/fusion_rings/poly_tup_engine.pxd index ac2c5041de9..8a0c53c527b 100644 --- a/src/sage/algebras/fusion_rings/poly_tup_engine.pxd +++ b/src/sage/algebras/fusion_rings/poly_tup_engine.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-singular from sage.algebras.fusion_rings.shm_managers cimport KSHandler from sage.rings.number_field.number_field_element cimport NumberFieldElement_absolute from sage.rings.polynomial.multi_polynomial_libsingular cimport MPolynomial_libsingular, MPolynomialRing_libsingular diff --git a/src/sage/algebras/fusion_rings/poly_tup_engine.pyx b/src/sage/algebras/fusion_rings/poly_tup_engine.pyx index 5c3f54df9a6..35c8bf70089 100644 --- a/src/sage/algebras/fusion_rings/poly_tup_engine.pyx +++ b/src/sage/algebras/fusion_rings/poly_tup_engine.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-singular """ Arithmetic Engine for Polynomials as Tuples """ diff --git a/src/sage/algebras/fusion_rings/shm_managers.pxd b/src/sage/algebras/fusion_rings/shm_managers.pxd index f1e2ed74714..265487247e0 100644 --- a/src/sage/algebras/fusion_rings/shm_managers.pxd +++ b/src/sage/algebras/fusion_rings/shm_managers.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-singular cimport numpy as np from sage.rings.number_field.number_field_base cimport NumberField from sage.rings.number_field.number_field_element cimport NumberFieldElement_absolute diff --git a/src/sage/algebras/fusion_rings/shm_managers.pyx b/src/sage/algebras/fusion_rings/shm_managers.pyx index dcfa274b5ea..a02f48f654b 100644 --- a/src/sage/algebras/fusion_rings/shm_managers.pyx +++ b/src/sage/algebras/fusion_rings/shm_managers.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-singular r""" Shared Memory Managers for F-Symbol Attributes diff --git a/src/sage/algebras/group_algebra.py b/src/sage/algebras/group_algebra.py index eaffe7538b7..0bbdba1c7de 100644 --- a/src/sage/algebras/group_algebra.py +++ b/src/sage/algebras/group_algebra.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.groups sage.modules r""" Group algebras diff --git a/src/sage/algebras/hall_algebra.py b/src/sage/algebras/hall_algebra.py index 83442eabc94..7fe3e42e46f 100644 --- a/src/sage/algebras/hall_algebra.py +++ b/src/sage/algebras/hall_algebra.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Hall Algebras diff --git a/src/sage/algebras/hecke_algebras/all.py b/src/sage/algebras/hecke_algebras/all.py index 20f53ea58fe..1d80e85d8c0 100644 --- a/src/sage/algebras/hecke_algebras/all.py +++ b/src/sage/algebras/hecke_algebras/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat """ Hecke Algebras """ diff --git a/src/sage/algebras/hecke_algebras/ariki_koike_algebra.py b/src/sage/algebras/hecke_algebras/ariki_koike_algebra.py index f34beb5a1f8..de54fe413d8 100644 --- a/src/sage/algebras/hecke_algebras/ariki_koike_algebra.py +++ b/src/sage/algebras/hecke_algebras/ariki_koike_algebra.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Ariki-Koike Algebras diff --git a/src/sage/algebras/hecke_algebras/cubic_hecke_algebra.py b/src/sage/algebras/hecke_algebras/cubic_hecke_algebra.py index 4f2a604aa8b..1d4dbf530fe 100644 --- a/src/sage/algebras/hecke_algebras/cubic_hecke_algebra.py +++ b/src/sage/algebras/hecke_algebras/cubic_hecke_algebra.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.groups sage.modules r""" Cubic Hecke Algebras diff --git a/src/sage/algebras/hecke_algebras/cubic_hecke_base_ring.py b/src/sage/algebras/hecke_algebras/cubic_hecke_base_ring.py index 90d6657d309..5cc0920512b 100644 --- a/src/sage/algebras/hecke_algebras/cubic_hecke_base_ring.py +++ b/src/sage/algebras/hecke_algebras/cubic_hecke_base_ring.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.libs.pari (for factorization) r""" Cubic Hecke Base Rings diff --git a/src/sage/algebras/hecke_algebras/cubic_hecke_matrix_rep.py b/src/sage/algebras/hecke_algebras/cubic_hecke_matrix_rep.py index c0587117753..d232c974a95 100644 --- a/src/sage/algebras/hecke_algebras/cubic_hecke_matrix_rep.py +++ b/src/sage/algebras/hecke_algebras/cubic_hecke_matrix_rep.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.modules r""" Cubic Hecke matrix representations diff --git a/src/sage/algebras/iwahori_hecke_algebra.py b/src/sage/algebras/iwahori_hecke_algebra.py index 31f15e50c1a..aff140d2a6d 100644 --- a/src/sage/algebras/iwahori_hecke_algebra.py +++ b/src/sage/algebras/iwahori_hecke_algebra.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.graphs sage.modules r""" Iwahori-Hecke Algebras diff --git a/src/sage/algebras/jordan_algebra.py b/src/sage/algebras/jordan_algebra.py index f783dc890c8..986f892093a 100644 --- a/src/sage/algebras/jordan_algebra.py +++ b/src/sage/algebras/jordan_algebra.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Jordan Algebras diff --git a/src/sage/algebras/letterplace/all.py b/src/sage/algebras/letterplace/all.py index e69de29bb2d..84ec2b51067 100644 --- a/src/sage/algebras/letterplace/all.py +++ b/src/sage/algebras/letterplace/all.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-singular diff --git a/src/sage/algebras/letterplace/free_algebra_element_letterplace.pxd b/src/sage/algebras/letterplace/free_algebra_element_letterplace.pxd index ddd77e94be7..f5ad3261a7a 100644 --- a/src/sage/algebras/letterplace/free_algebra_element_letterplace.pxd +++ b/src/sage/algebras/letterplace/free_algebra_element_letterplace.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-singular ############################################################################### # # Copyright (C) 2011 Simon King diff --git a/src/sage/algebras/letterplace/free_algebra_element_letterplace.pyx b/src/sage/algebras/letterplace/free_algebra_element_letterplace.pyx index 8e48f0530d9..7dc432c12a0 100644 --- a/src/sage/algebras/letterplace/free_algebra_element_letterplace.pyx +++ b/src/sage/algebras/letterplace/free_algebra_element_letterplace.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-singular """ Weighted homogeneous elements of free algebras, in letterplace implementation diff --git a/src/sage/algebras/letterplace/free_algebra_letterplace.pxd b/src/sage/algebras/letterplace/free_algebra_letterplace.pxd index a726262546b..c4ca3f4be2c 100644 --- a/src/sage/algebras/letterplace/free_algebra_letterplace.pxd +++ b/src/sage/algebras/letterplace/free_algebra_letterplace.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-singular ############################################################################### # # Copyright (C) 2011 Simon King diff --git a/src/sage/algebras/letterplace/free_algebra_letterplace.pyx b/src/sage/algebras/letterplace/free_algebra_letterplace.pyx index ddf3e5c2f09..be8b8893e99 100644 --- a/src/sage/algebras/letterplace/free_algebra_letterplace.pyx +++ b/src/sage/algebras/letterplace/free_algebra_letterplace.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-singular ############################################################################### # # Copyright (C) 2011 Simon King diff --git a/src/sage/algebras/letterplace/letterplace_ideal.pyx b/src/sage/algebras/letterplace/letterplace_ideal.pyx index 747ba2ca6e0..aa7461ac9fc 100644 --- a/src/sage/algebras/letterplace/letterplace_ideal.pyx +++ b/src/sage/algebras/letterplace/letterplace_ideal.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-singular """ Homogeneous ideals of free algebras diff --git a/src/sage/algebras/lie_algebras/lie_algebra_element.pxd b/src/sage/algebras/lie_algebras/lie_algebra_element.pxd index 227ce2559f9..8aa4f77d905 100644 --- a/src/sage/algebras/lie_algebras/lie_algebra_element.pxd +++ b/src/sage/algebras/lie_algebras/lie_algebra_element.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.structure.element cimport Element from sage.structure.element_wrapper cimport ElementWrapper from sage.structure.sage_object cimport SageObject diff --git a/src/sage/algebras/lie_algebras/lie_algebra_element.pyx b/src/sage/algebras/lie_algebras/lie_algebra_element.pyx index ca53753153b..2dfac2c2813 100644 --- a/src/sage/algebras/lie_algebras/lie_algebra_element.pyx +++ b/src/sage/algebras/lie_algebras/lie_algebra_element.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.combinat """ Lie Algebra Elements diff --git a/src/sage/algebras/lie_conformal_algebras/abelian_lie_conformal_algebra.py b/src/sage/algebras/lie_conformal_algebras/abelian_lie_conformal_algebra.py index 80df46c57d3..e6ce883a81c 100644 --- a/src/sage/algebras/lie_conformal_algebras/abelian_lie_conformal_algebra.py +++ b/src/sage/algebras/lie_conformal_algebras/abelian_lie_conformal_algebra.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Abelian Lie Conformal Algebra diff --git a/src/sage/algebras/lie_conformal_algebras/affine_lie_conformal_algebra.py b/src/sage/algebras/lie_conformal_algebras/affine_lie_conformal_algebra.py index f5d39cacbf2..fe68daf6072 100644 --- a/src/sage/algebras/lie_conformal_algebras/affine_lie_conformal_algebra.py +++ b/src/sage/algebras/lie_conformal_algebras/affine_lie_conformal_algebra.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Affine Lie Conformal Algebra diff --git a/src/sage/algebras/lie_conformal_algebras/all.py b/src/sage/algebras/lie_conformal_algebras/all.py index 7d78e0a260c..56204952fbf 100644 --- a/src/sage/algebras/lie_conformal_algebras/all.py +++ b/src/sage/algebras/lie_conformal_algebras/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat #****************************************************************************** # Copyright (C) 2020 Reimundo Heluani # diff --git a/src/sage/algebras/lie_conformal_algebras/bosonic_ghosts_lie_conformal_algebra.py b/src/sage/algebras/lie_conformal_algebras/bosonic_ghosts_lie_conformal_algebra.py index 0b0b61b4e25..f320fc173a7 100644 --- a/src/sage/algebras/lie_conformal_algebras/bosonic_ghosts_lie_conformal_algebra.py +++ b/src/sage/algebras/lie_conformal_algebras/bosonic_ghosts_lie_conformal_algebra.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Bosonic Ghosts Lie Conformal Algebra diff --git a/src/sage/algebras/lie_conformal_algebras/examples.py b/src/sage/algebras/lie_conformal_algebras/examples.py index 3d520e449db..317f349006c 100644 --- a/src/sage/algebras/lie_conformal_algebras/examples.py +++ b/src/sage/algebras/lie_conformal_algebras/examples.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Examples of Lie Conformal Algebras diff --git a/src/sage/algebras/lie_conformal_algebras/fermionic_ghosts_lie_conformal_algebra.py b/src/sage/algebras/lie_conformal_algebras/fermionic_ghosts_lie_conformal_algebra.py index 098644908e6..bab3c118065 100644 --- a/src/sage/algebras/lie_conformal_algebras/fermionic_ghosts_lie_conformal_algebra.py +++ b/src/sage/algebras/lie_conformal_algebras/fermionic_ghosts_lie_conformal_algebra.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Fermionic Ghosts Super Lie Conformal Algebra diff --git a/src/sage/algebras/lie_conformal_algebras/finitely_freely_generated_lca.py b/src/sage/algebras/lie_conformal_algebras/finitely_freely_generated_lca.py index 8aefdd9d3a6..62e4805ad92 100644 --- a/src/sage/algebras/lie_conformal_algebras/finitely_freely_generated_lca.py +++ b/src/sage/algebras/lie_conformal_algebras/finitely_freely_generated_lca.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules """ Finitely and Freely Generated Lie Conformal Algebras. diff --git a/src/sage/algebras/lie_conformal_algebras/free_bosons_lie_conformal_algebra.py b/src/sage/algebras/lie_conformal_algebras/free_bosons_lie_conformal_algebra.py index 0787226252d..23c6f67e015 100644 --- a/src/sage/algebras/lie_conformal_algebras/free_bosons_lie_conformal_algebra.py +++ b/src/sage/algebras/lie_conformal_algebras/free_bosons_lie_conformal_algebra.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Free Bosons Lie Conformal Algebra diff --git a/src/sage/algebras/lie_conformal_algebras/free_fermions_lie_conformal_algebra.py b/src/sage/algebras/lie_conformal_algebras/free_fermions_lie_conformal_algebra.py index 1e7525ae1d3..ae1da4cdb00 100644 --- a/src/sage/algebras/lie_conformal_algebras/free_fermions_lie_conformal_algebra.py +++ b/src/sage/algebras/lie_conformal_algebras/free_fermions_lie_conformal_algebra.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Free Fermions Super Lie Conformal Algebra. diff --git a/src/sage/algebras/lie_conformal_algebras/freely_generated_lie_conformal_algebra.py b/src/sage/algebras/lie_conformal_algebras/freely_generated_lie_conformal_algebra.py index 9a6a74a62bb..2eea86a4a14 100644 --- a/src/sage/algebras/lie_conformal_algebras/freely_generated_lie_conformal_algebra.py +++ b/src/sage/algebras/lie_conformal_algebras/freely_generated_lie_conformal_algebra.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules """ Freely Generated Lie Conformal Algebras diff --git a/src/sage/algebras/lie_conformal_algebras/graded_lie_conformal_algebra.py b/src/sage/algebras/lie_conformal_algebras/graded_lie_conformal_algebra.py index c335daf98f7..dbf3536a5f1 100644 --- a/src/sage/algebras/lie_conformal_algebras/graded_lie_conformal_algebra.py +++ b/src/sage/algebras/lie_conformal_algebras/graded_lie_conformal_algebra.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Graded Lie Conformal Algebras diff --git a/src/sage/algebras/lie_conformal_algebras/lie_conformal_algebra.py b/src/sage/algebras/lie_conformal_algebras/lie_conformal_algebra.py index 5ca0c8f6d07..34c3508d2ca 100644 --- a/src/sage/algebras/lie_conformal_algebras/lie_conformal_algebra.py +++ b/src/sage/algebras/lie_conformal_algebras/lie_conformal_algebra.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Lie Conformal Algebra diff --git a/src/sage/algebras/lie_conformal_algebras/lie_conformal_algebra_element.py b/src/sage/algebras/lie_conformal_algebras/lie_conformal_algebra_element.py index 09fb63a0a4c..82f70ff4819 100644 --- a/src/sage/algebras/lie_conformal_algebras/lie_conformal_algebra_element.py +++ b/src/sage/algebras/lie_conformal_algebras/lie_conformal_algebra_element.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules """ Lie Conformal Algebra Element diff --git a/src/sage/algebras/lie_conformal_algebras/lie_conformal_algebra_with_basis.py b/src/sage/algebras/lie_conformal_algebras/lie_conformal_algebra_with_basis.py index 4fef0fcf2e6..77fa9eec482 100644 --- a/src/sage/algebras/lie_conformal_algebras/lie_conformal_algebra_with_basis.py +++ b/src/sage/algebras/lie_conformal_algebras/lie_conformal_algebra_with_basis.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules """ Lie Conformal Algebras With Basis diff --git a/src/sage/algebras/lie_conformal_algebras/lie_conformal_algebra_with_structure_coefs.py b/src/sage/algebras/lie_conformal_algebras/lie_conformal_algebra_with_structure_coefs.py index 9f4d129ba36..4b7f2291e5d 100644 --- a/src/sage/algebras/lie_conformal_algebras/lie_conformal_algebra_with_structure_coefs.py +++ b/src/sage/algebras/lie_conformal_algebras/lie_conformal_algebra_with_structure_coefs.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules """ Lie Conformal Algebras With Structure Coefficients diff --git a/src/sage/algebras/lie_conformal_algebras/n2_lie_conformal_algebra.py b/src/sage/algebras/lie_conformal_algebras/n2_lie_conformal_algebra.py index baf7a896144..6b9139e5f7c 100644 --- a/src/sage/algebras/lie_conformal_algebras/n2_lie_conformal_algebra.py +++ b/src/sage/algebras/lie_conformal_algebras/n2_lie_conformal_algebra.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules sage.rings.number_field r""" N=2 Super Lie Conformal Algebra diff --git a/src/sage/algebras/lie_conformal_algebras/neveu_schwarz_lie_conformal_algebra.py b/src/sage/algebras/lie_conformal_algebras/neveu_schwarz_lie_conformal_algebra.py index 5542b9fc097..3a531d47a28 100644 --- a/src/sage/algebras/lie_conformal_algebras/neveu_schwarz_lie_conformal_algebra.py +++ b/src/sage/algebras/lie_conformal_algebras/neveu_schwarz_lie_conformal_algebra.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Neveu-Schwarz Super Lie Conformal Algebra diff --git a/src/sage/algebras/lie_conformal_algebras/virasoro_lie_conformal_algebra.py b/src/sage/algebras/lie_conformal_algebras/virasoro_lie_conformal_algebra.py index 0db2d545290..3f92b8691a0 100644 --- a/src/sage/algebras/lie_conformal_algebras/virasoro_lie_conformal_algebra.py +++ b/src/sage/algebras/lie_conformal_algebras/virasoro_lie_conformal_algebra.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Virasoro Lie Conformal Algebra diff --git a/src/sage/algebras/lie_conformal_algebras/weyl_lie_conformal_algebra.py b/src/sage/algebras/lie_conformal_algebras/weyl_lie_conformal_algebra.py index 3c319db7ca3..bf71e8364e9 100644 --- a/src/sage/algebras/lie_conformal_algebras/weyl_lie_conformal_algebra.py +++ b/src/sage/algebras/lie_conformal_algebras/weyl_lie_conformal_algebra.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Weyl Lie Conformal Algebra diff --git a/src/sage/algebras/nil_coxeter_algebra.py b/src/sage/algebras/nil_coxeter_algebra.py index b5dbd2d62c8..ee30bf6272a 100644 --- a/src/sage/algebras/nil_coxeter_algebra.py +++ b/src/sage/algebras/nil_coxeter_algebra.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules """ Nil-Coxeter Algebra diff --git a/src/sage/algebras/octonion_algebra.pxd b/src/sage/algebras/octonion_algebra.pxd index 459e8ea3070..04dbe1e621c 100644 --- a/src/sage/algebras/octonion_algebra.pxd +++ b/src/sage/algebras/octonion_algebra.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Octonions """ diff --git a/src/sage/algebras/octonion_algebra.pyx b/src/sage/algebras/octonion_algebra.pyx index ee69aca6a7e..c8d7c2cddd5 100644 --- a/src/sage/algebras/octonion_algebra.pyx +++ b/src/sage/algebras/octonion_algebra.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.modules """ Octonion Algebras diff --git a/src/sage/algebras/orlik_solomon.py b/src/sage/algebras/orlik_solomon.py index a6f8c3c7fe8..788ce9544e8 100644 --- a/src/sage/algebras/orlik_solomon.py +++ b/src/sage/algebras/orlik_solomon.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.modules r""" Orlik-Solomon Algebras diff --git a/src/sage/algebras/orlik_terao.py b/src/sage/algebras/orlik_terao.py index deb3caed04f..7bdf571b0af 100644 --- a/src/sage/algebras/orlik_terao.py +++ b/src/sage/algebras/orlik_terao.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.modules r""" Orlik-Terao Algebras diff --git a/src/sage/algebras/q_commuting_polynomials.py b/src/sage/algebras/q_commuting_polynomials.py index 10f5f55a987..c00cb1de9df 100644 --- a/src/sage/algebras/q_commuting_polynomials.py +++ b/src/sage/algebras/q_commuting_polynomials.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.groups sage.modules r""" `q`-Commuting Polynomials diff --git a/src/sage/algebras/q_system.py b/src/sage/algebras/q_system.py index 8099f98aa8c..9b20b2df965 100644 --- a/src/sage/algebras/q_system.py +++ b/src/sage/algebras/q_system.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.graphs sage.modules r""" Q-Systems diff --git a/src/sage/algebras/quantum_clifford.py b/src/sage/algebras/quantum_clifford.py index dc61084f2f8..c8e76f68cc7 100644 --- a/src/sage/algebras/quantum_clifford.py +++ b/src/sage/algebras/quantum_clifford.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.modules r""" Quantum Clifford Algebras diff --git a/src/sage/algebras/quantum_groups/ace_quantum_onsager.py b/src/sage/algebras/quantum_groups/ace_quantum_onsager.py index 9d983529c73..3eae5a80ce3 100644 --- a/src/sage/algebras/quantum_groups/ace_quantum_onsager.py +++ b/src/sage/algebras/quantum_groups/ace_quantum_onsager.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules """ Alternating Central Extension Quantum Onsager Algebra diff --git a/src/sage/algebras/quantum_groups/all.py b/src/sage/algebras/quantum_groups/all.py index 9d249f02100..35d81fad2d4 100644 --- a/src/sage/algebras/quantum_groups/all.py +++ b/src/sage/algebras/quantum_groups/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat """ Quantum Groups """ diff --git a/src/sage/algebras/quantum_groups/fock_space.py b/src/sage/algebras/quantum_groups/fock_space.py index eb60fd89788..d05ec4287f0 100644 --- a/src/sage/algebras/quantum_groups/fock_space.py +++ b/src/sage/algebras/quantum_groups/fock_space.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Fock Space diff --git a/src/sage/algebras/quantum_groups/q_numbers.py b/src/sage/algebras/quantum_groups/q_numbers.py index f564b96b293..48a2f871e3a 100644 --- a/src/sage/algebras/quantum_groups/q_numbers.py +++ b/src/sage/algebras/quantum_groups/q_numbers.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" `q`-Numbers diff --git a/src/sage/algebras/quantum_groups/quantum_group_gap.py b/src/sage/algebras/quantum_groups/quantum_group_gap.py index 0c92355503c..834b00a9b08 100644 --- a/src/sage/algebras/quantum_groups/quantum_group_gap.py +++ b/src/sage/algebras/quantum_groups/quantum_group_gap.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: optional - gap_package_quagroup sage.combinat sage.libs.gap sage.modules """ Quantum Groups Using GAP's QuaGroup Package diff --git a/src/sage/algebras/quantum_groups/representations.py b/src/sage/algebras/quantum_groups/representations.py index cea110137db..754f339ffdf 100644 --- a/src/sage/algebras/quantum_groups/representations.py +++ b/src/sage/algebras/quantum_groups/representations.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.graphs sage.modules r""" Quantum Group Representations diff --git a/src/sage/algebras/quantum_matrix_coordinate_algebra.py b/src/sage/algebras/quantum_matrix_coordinate_algebra.py index c9f7e312788..ec79a2d731c 100644 --- a/src/sage/algebras/quantum_matrix_coordinate_algebra.py +++ b/src/sage/algebras/quantum_matrix_coordinate_algebra.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Quantum Matrix Coordinate Algebras diff --git a/src/sage/algebras/quatalg/all.py b/src/sage/algebras/quatalg/all.py index 0f0d45c0217..55a8642c81b 100644 --- a/src/sage/algebras/quatalg/all.py +++ b/src/sage/algebras/quatalg/all.py @@ -1 +1,2 @@ +# sage_setup: distribution = sagemath-singular from .quaternion_algebra import QuaternionAlgebra diff --git a/src/sage/algebras/quatalg/quaternion_algebra.py b/src/sage/algebras/quatalg/quaternion_algebra.py index 9c1562041e4..fcd433b4e3e 100644 --- a/src/sage/algebras/quatalg/quaternion_algebra.py +++ b/src/sage/algebras/quatalg/quaternion_algebra.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-singular """ Quaternion Algebras diff --git a/src/sage/algebras/quatalg/quaternion_algebra_cython.pyx b/src/sage/algebras/quatalg/quaternion_algebra_cython.pyx index 130c9f5d43a..c757d6ada7f 100644 --- a/src/sage/algebras/quatalg/quaternion_algebra_cython.pyx +++ b/src/sage/algebras/quatalg/quaternion_algebra_cython.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-singular # distutils: language = c++ # distutils: libraries = gmp m NTL_LIBRARIES # distutils: extra_compile_args = NTL_CFLAGS diff --git a/src/sage/algebras/quatalg/quaternion_algebra_element.pxd b/src/sage/algebras/quatalg/quaternion_algebra_element.pxd index 5a4f811443a..98eda7ec108 100644 --- a/src/sage/algebras/quatalg/quaternion_algebra_element.pxd +++ b/src/sage/algebras/quatalg/quaternion_algebra_element.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-singular from sage.libs.gmp.types cimport mpz_t from sage.libs.flint.types cimport fmpz_poly_t diff --git a/src/sage/algebras/quatalg/quaternion_algebra_element.pyx b/src/sage/algebras/quatalg/quaternion_algebra_element.pyx index b4c5eed5b49..c1d0a44628b 100644 --- a/src/sage/algebras/quatalg/quaternion_algebra_element.pyx +++ b/src/sage/algebras/quatalg/quaternion_algebra_element.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-singular # distutils: language = c++ # distutils: libraries = gmp m NTL_LIBRARIES # distutils: extra_compile_args = NTL_CFLAGS diff --git a/src/sage/algebras/quaternion_algebra.py b/src/sage/algebras/quaternion_algebra.py index 4e92b73de69..0694175bf13 100644 --- a/src/sage/algebras/quaternion_algebra.py +++ b/src/sage/algebras/quaternion_algebra.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.modules ############################################################ diff --git a/src/sage/algebras/quaternion_algebra_element.py b/src/sage/algebras/quaternion_algebra_element.py index ed0baaf0152..809f551d2a2 100644 --- a/src/sage/algebras/quaternion_algebra_element.py +++ b/src/sage/algebras/quaternion_algebra_element.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.modules ####################################################################### diff --git a/src/sage/algebras/rational_cherednik_algebra.py b/src/sage/algebras/rational_cherednik_algebra.py index 58b3ce5441d..0333e4b55df 100644 --- a/src/sage/algebras/rational_cherednik_algebra.py +++ b/src/sage/algebras/rational_cherednik_algebra.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules """ Rational Cherednik Algebras diff --git a/src/sage/algebras/schur_algebra.py b/src/sage/algebras/schur_algebra.py index fc4d787a266..e482f79b282 100644 --- a/src/sage/algebras/schur_algebra.py +++ b/src/sage/algebras/schur_algebra.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.groups sage.modules r""" Schur algebras for `GL_n` diff --git a/src/sage/algebras/shuffle_algebra.py b/src/sage/algebras/shuffle_algebra.py index 2db55513d66..0926f180ade 100644 --- a/src/sage/algebras/shuffle_algebra.py +++ b/src/sage/algebras/shuffle_algebra.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Shuffle algebras diff --git a/src/sage/algebras/splitting_algebra.py b/src/sage/algebras/splitting_algebra.py index 04237c09b77..ef9c59f8311 100644 --- a/src/sage/algebras/splitting_algebra.py +++ b/src/sage/algebras/splitting_algebra.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.libs.pari sage.modules r""" Splitting Algebras diff --git a/src/sage/algebras/steenrod/all.py b/src/sage/algebras/steenrod/all.py index 134b2b032cf..572a7c55c42 100644 --- a/src/sage/algebras/steenrod/all.py +++ b/src/sage/algebras/steenrod/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat """ The Steenrod algebra """ diff --git a/src/sage/algebras/steenrod/steenrod_algebra.py b/src/sage/algebras/steenrod/steenrod_algebra.py index efe22f7b551..eef19d53259 100644 --- a/src/sage/algebras/steenrod/steenrod_algebra.py +++ b/src/sage/algebras/steenrod/steenrod_algebra.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" The Steenrod algebra diff --git a/src/sage/algebras/steenrod/steenrod_algebra_bases.py b/src/sage/algebras/steenrod/steenrod_algebra_bases.py index 9c8cc0935c8..1da7e0ff216 100644 --- a/src/sage/algebras/steenrod/steenrod_algebra_bases.py +++ b/src/sage/algebras/steenrod/steenrod_algebra_bases.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat """ Steenrod algebra bases diff --git a/src/sage/algebras/steenrod/steenrod_algebra_misc.py b/src/sage/algebras/steenrod/steenrod_algebra_misc.py index c2cb488ab4a..5984f6b9e84 100644 --- a/src/sage/algebras/steenrod/steenrod_algebra_misc.py +++ b/src/sage/algebras/steenrod/steenrod_algebra_misc.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat """ Miscellaneous functions for the Steenrod algebra and its elements diff --git a/src/sage/algebras/steenrod/steenrod_algebra_mult.py b/src/sage/algebras/steenrod/steenrod_algebra_mult.py index e2d48f616b7..35ca3d232de 100644 --- a/src/sage/algebras/steenrod/steenrod_algebra_mult.py +++ b/src/sage/algebras/steenrod/steenrod_algebra_mult.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.rings.finite_rings r""" Multiplication for elements of the Steenrod algebra diff --git a/src/sage/algebras/tensor_algebra.py b/src/sage/algebras/tensor_algebra.py index a14ab916336..ceeba471da2 100644 --- a/src/sage/algebras/tensor_algebra.py +++ b/src/sage/algebras/tensor_algebra.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Tensor Algebras diff --git a/src/sage/algebras/weyl_algebra.py b/src/sage/algebras/weyl_algebra.py index 28fb2d5d512..ebbf85e793a 100644 --- a/src/sage/algebras/weyl_algebra.py +++ b/src/sage/algebras/weyl_algebra.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.combinat sage.modules r""" Weyl Algebras diff --git a/src/sage/algebras/yangian.py b/src/sage/algebras/yangian.py index 8e19b92ba07..62ac37bbeef 100644 --- a/src/sage/algebras/yangian.py +++ b/src/sage/algebras/yangian.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Yangians diff --git a/src/sage/algebras/yokonuma_hecke_algebra.py b/src/sage/algebras/yokonuma_hecke_algebra.py index 779beb95ffe..7751645b1be 100644 --- a/src/sage/algebras/yokonuma_hecke_algebra.py +++ b/src/sage/algebras/yokonuma_hecke_algebra.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.modules """ Yokonuma-Hecke Algebras diff --git a/src/sage/all__sagemath_bliss.py b/src/sage/all__sagemath_bliss.py index e69de29bb2d..00e01e7dfe7 100644 --- a/src/sage/all__sagemath_bliss.py +++ b/src/sage/all__sagemath_bliss.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-bliss diff --git a/src/sage/all__sagemath_categories.py b/src/sage/all__sagemath_categories.py index 4f438a77cbe..00121b2f114 100644 --- a/src/sage/all__sagemath_categories.py +++ b/src/sage/all__sagemath_categories.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories from .all__sagemath_objects import * from sage.categories.all import * diff --git a/src/sage/all__sagemath_coxeter3.py b/src/sage/all__sagemath_coxeter3.py index e69de29bb2d..61138b7bc1a 100644 --- a/src/sage/all__sagemath_coxeter3.py +++ b/src/sage/all__sagemath_coxeter3.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-coxeter3 diff --git a/src/sage/all__sagemath_environment.py b/src/sage/all__sagemath_environment.py index f68c74ab115..4baf97bae83 100644 --- a/src/sage/all__sagemath_environment.py +++ b/src/sage/all__sagemath_environment.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-environment from sage.env import SAGE_ROOT, SAGE_SRC, SAGE_DOC_SRC, SAGE_LOCAL, DOT_SAGE, SAGE_ENV from sage.misc.all__sagemath_environment import * diff --git a/src/sage/all__sagemath_mcqd.py b/src/sage/all__sagemath_mcqd.py index e69de29bb2d..9d46f0ff6ba 100644 --- a/src/sage/all__sagemath_mcqd.py +++ b/src/sage/all__sagemath_mcqd.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-mcqd diff --git a/src/sage/all__sagemath_meataxe.py b/src/sage/all__sagemath_meataxe.py index e69de29bb2d..fd1e327ee2f 100644 --- a/src/sage/all__sagemath_meataxe.py +++ b/src/sage/all__sagemath_meataxe.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-meataxe diff --git a/src/sage/all__sagemath_objects.py b/src/sage/all__sagemath_objects.py index 7780f245aae..72785a396e0 100644 --- a/src/sage/all__sagemath_objects.py +++ b/src/sage/all__sagemath_objects.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects import os import sys import operator diff --git a/src/sage/all__sagemath_repl.py b/src/sage/all__sagemath_repl.py index c31b206bcb8..ca204bb05b1 100644 --- a/src/sage/all__sagemath_repl.py +++ b/src/sage/all__sagemath_repl.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl ############ setup warning filters before importing Sage stuff #### import sys import warnings diff --git a/src/sage/all__sagemath_sirocco.py b/src/sage/all__sagemath_sirocco.py index e69de29bb2d..44db2511e89 100644 --- a/src/sage/all__sagemath_sirocco.py +++ b/src/sage/all__sagemath_sirocco.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-sirocco diff --git a/src/sage/all__sagemath_tdlib.py b/src/sage/all__sagemath_tdlib.py index e69de29bb2d..e26612c8409 100644 --- a/src/sage/all__sagemath_tdlib.py +++ b/src/sage/all__sagemath_tdlib.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-tdlib diff --git a/src/sage/arith/all.py b/src/sage/arith/all.py index 3446336de68..2e0b5877960 100644 --- a/src/sage/arith/all.py +++ b/src/sage/arith/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories from sage.misc.lazy_import import lazy_import from sage.arith.misc import ( diff --git a/src/sage/arith/all__sagemath_objects.py b/src/sage/arith/all__sagemath_objects.py index 38e44245ad3..40da49fdd73 100644 --- a/src/sage/arith/all__sagemath_objects.py +++ b/src/sage/arith/all__sagemath_objects.py @@ -1,2 +1,3 @@ +# sage_setup: distribution = sagemath-objects # The presence of this file ensures that sage_setup for sagemath-objects # considers this directory as a namespace package diff --git a/src/sage/arith/constants.pxd b/src/sage/arith/constants.pxd index 371960ec3bc..b588791fd66 100644 --- a/src/sage/arith/constants.pxd +++ b/src/sage/arith/constants.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # # Various mathematical constants, represented as double precision hex # float. We use these instead of decimal constants like 3.1415... diff --git a/src/sage/arith/functions.pxd b/src/sage/arith/functions.pxd index 58ad13a30b7..bbc3f0363cd 100644 --- a/src/sage/arith/functions.pxd +++ b/src/sage/arith/functions.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories cpdef LCM_list(v) noexcept cdef LCM_generic(itr, ret) noexcept diff --git a/src/sage/arith/functions.pyx b/src/sage/arith/functions.pyx index 040a11ff0d6..c189278ced7 100644 --- a/src/sage/arith/functions.pyx +++ b/src/sage/arith/functions.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Fast Arithmetic Functions """ diff --git a/src/sage/arith/long.pxd b/src/sage/arith/long.pxd index ce6a70bc215..a49ac0fe7d1 100644 --- a/src/sage/arith/long.pxd +++ b/src/sage/arith/long.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects # sage.doctest: needs sage.misc.cython r""" Fast conversion of Python objects to C long diff --git a/src/sage/arith/misc.py b/src/sage/arith/misc.py index 22fa53b5a29..44bee5b7534 100644 --- a/src/sage/arith/misc.py +++ b/src/sage/arith/misc.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # -*- coding: utf-8 -*- r""" Miscellaneous arithmetic functions diff --git a/src/sage/arith/multi_modular.pxd b/src/sage/arith/multi_modular.pxd index 62534fce43c..0209e7eba80 100644 --- a/src/sage/arith/multi_modular.pxd +++ b/src/sage/arith/multi_modular.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories from sage.ext.mod_int cimport * from sage.libs.gmp.types cimport mpz_t diff --git a/src/sage/arith/multi_modular.pyx b/src/sage/arith/multi_modular.pyx index 44a6059c6f1..bd2b3b79e4e 100644 --- a/src/sage/arith/multi_modular.pyx +++ b/src/sage/arith/multi_modular.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: optional - primecountpy """ Utility classes for multi-modular algorithms diff --git a/src/sage/arith/numerical_approx.pxd b/src/sage/arith/numerical_approx.pxd index 85f92eca336..794e443e449 100644 --- a/src/sage/arith/numerical_approx.pxd +++ b/src/sage/arith/numerical_approx.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects # sage.doctest: needs sage.rings.real_mpfr cpdef inline long digits_to_bits(d) except -1: diff --git a/src/sage/arith/numerical_approx.pyx b/src/sage/arith/numerical_approx.pyx index 6698a0ec317..642b9418646 100644 --- a/src/sage/arith/numerical_approx.pyx +++ b/src/sage/arith/numerical_approx.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects # sage.doctest: needs sage.rings.real_mpfr r""" Generic numerical approximation function diff --git a/src/sage/arith/power.pxd b/src/sage/arith/power.pxd index 33f043e9551..0854b066968 100644 --- a/src/sage/arith/power.pxd +++ b/src/sage/arith/power.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects from cpython.number cimport PyNumber_TrueDivide from sage.structure.element cimport Element diff --git a/src/sage/arith/power.pyx b/src/sage/arith/power.pyx index 2b4cbd099d1..8a0535df8e1 100644 --- a/src/sage/arith/power.pyx +++ b/src/sage/arith/power.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects """ Generic implementation of powering diff --git a/src/sage/arith/rational_reconstruction.pxd b/src/sage/arith/rational_reconstruction.pxd index 6bbd246c2df..cf1182c58a2 100644 --- a/src/sage/arith/rational_reconstruction.pxd +++ b/src/sage/arith/rational_reconstruction.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories from sage.libs.gmp.types cimport mpz_t, mpq_t cdef int mpq_rational_reconstruction(mpq_t answer, mpz_t a, mpz_t m) except -1 diff --git a/src/sage/arith/rational_reconstruction.pyx b/src/sage/arith/rational_reconstruction.pyx index 4a669f977cb..73e1006801c 100644 --- a/src/sage/arith/rational_reconstruction.pyx +++ b/src/sage/arith/rational_reconstruction.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Rational reconstruction diff --git a/src/sage/arith/srange.pyx b/src/sage/arith/srange.pyx index 132cf93d085..c939e71ce94 100644 --- a/src/sage/arith/srange.pyx +++ b/src/sage/arith/srange.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Ranges and the ``[1,2,..,n]`` notation diff --git a/src/sage/calculus/all.py b/src/sage/calculus/all.py index c83a97f6eb4..6a273e060ff 100644 --- a/src/sage/calculus/all.py +++ b/src/sage/calculus/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics from .calculus import maxima as maxima_calculus from .calculus import (laplace, inverse_laplace, diff --git a/src/sage/calculus/calculus.py b/src/sage/calculus/calculus.py index 8d62ade24c8..cfa69b459f6 100644 --- a/src/sage/calculus/calculus.py +++ b/src/sage/calculus/calculus.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Symbolic Computation diff --git a/src/sage/calculus/desolvers.py b/src/sage/calculus/desolvers.py index afe63ccb954..8436ee90fb6 100644 --- a/src/sage/calculus/desolvers.py +++ b/src/sage/calculus/desolvers.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Solving ordinary differential equations diff --git a/src/sage/calculus/functional.py b/src/sage/calculus/functional.py index 03ea8bbd294..59d322171c2 100644 --- a/src/sage/calculus/functional.py +++ b/src/sage/calculus/functional.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.symbolic """ Functional notation support for common calculus methods diff --git a/src/sage/calculus/functions.py b/src/sage/calculus/functions.py index 11a23aac323..77eaba98343 100644 --- a/src/sage/calculus/functions.py +++ b/src/sage/calculus/functions.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.symbolic r""" Calculus functions diff --git a/src/sage/calculus/integration.pyx b/src/sage/calculus/integration.pyx index 621241436ae..45fa3d43f7d 100644 --- a/src/sage/calculus/integration.pyx +++ b/src/sage/calculus/integration.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.symbolic """ Numerical Integration diff --git a/src/sage/calculus/interpolation.pxd b/src/sage/calculus/interpolation.pxd index 2d729228149..8f6538af1b0 100644 --- a/src/sage/calculus/interpolation.pxd +++ b/src/sage/calculus/interpolation.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.libs.gsl.interp cimport * cdef class Spline: diff --git a/src/sage/calculus/interpolation.pyx b/src/sage/calculus/interpolation.pyx index 59f9fcc8e7a..cd1d23dbd4f 100644 --- a/src/sage/calculus/interpolation.pyx +++ b/src/sage/calculus/interpolation.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Real Interpolation using GSL """ diff --git a/src/sage/calculus/interpolators.pyx b/src/sage/calculus/interpolators.pyx index 0e1f5fc7209..bf2b1b759da 100644 --- a/src/sage/calculus/interpolators.pyx +++ b/src/sage/calculus/interpolators.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs numpy """ Complex Interpolation diff --git a/src/sage/calculus/ode.pxd b/src/sage/calculus/ode.pxd index 2de37b91764..6be7660f5f7 100644 --- a/src/sage/calculus/ode.pxd +++ b/src/sage/calculus/ode.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules cdef class ode_system: cdef int c_j(self,double , double *, double *,double *) noexcept diff --git a/src/sage/calculus/ode.pyx b/src/sage/calculus/ode.pyx index d7d0fc133f8..9487d7b0d87 100644 --- a/src/sage/calculus/ode.pyx +++ b/src/sage/calculus/ode.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Solving ODE numerically by GSL diff --git a/src/sage/calculus/predefined.py b/src/sage/calculus/predefined.py index 8e7f499b1ae..fcfb0b17208 100644 --- a/src/sage/calculus/predefined.py +++ b/src/sage/calculus/predefined.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics from sage.symbolic.ring import var as _var a = _var('a') diff --git a/src/sage/calculus/riemann.pyx b/src/sage/calculus/riemann.pyx index 0b80a29da70..6dd06a9cf6b 100644 --- a/src/sage/calculus/riemann.pyx +++ b/src/sage/calculus/riemann.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs numpy sage.symbolic """ Riemann Mapping diff --git a/src/sage/calculus/test_sympy.py b/src/sage/calculus/test_sympy.py index 0c360f8acab..04d9d134e9c 100644 --- a/src/sage/calculus/test_sympy.py +++ b/src/sage/calculus/test_sympy.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.symbolic r""" A Sample Session using SymPy diff --git a/src/sage/calculus/tests.py b/src/sage/calculus/tests.py index 904ee7d17cf..b1df286caab 100644 --- a/src/sage/calculus/tests.py +++ b/src/sage/calculus/tests.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Calculus Tests and Examples diff --git a/src/sage/calculus/transforms/all.py b/src/sage/calculus/transforms/all.py index 379b3b69c37..539f12e6aa1 100644 --- a/src/sage/calculus/transforms/all.py +++ b/src/sage/calculus/transforms/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.misc.lazy_import import lazy_import lazy_import("sage.calculus.transforms.fft", ["FastFourierTransform", "FFT"]) diff --git a/src/sage/calculus/transforms/dft.py b/src/sage/calculus/transforms/dft.py index 1b165fa6503..3a6d6f18db0 100644 --- a/src/sage/calculus/transforms/dft.py +++ b/src/sage/calculus/transforms/dft.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Discrete Fourier Transforms diff --git a/src/sage/calculus/transforms/dwt.pxd b/src/sage/calculus/transforms/dwt.pxd index c4087a7f7e0..eaa49e2d9d5 100644 --- a/src/sage/calculus/transforms/dwt.pxd +++ b/src/sage/calculus/transforms/dwt.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.libs.gsl.wavelet cimport * from sage.libs.gsl.array cimport GSLDoubleArray diff --git a/src/sage/calculus/transforms/dwt.pyx b/src/sage/calculus/transforms/dwt.pyx index 1330f6ac063..15cd94445b1 100644 --- a/src/sage/calculus/transforms/dwt.pyx +++ b/src/sage/calculus/transforms/dwt.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Discrete Wavelet Transform diff --git a/src/sage/calculus/transforms/fft.pxd b/src/sage/calculus/transforms/fft.pxd index 780483318f1..67d416159dd 100644 --- a/src/sage/calculus/transforms/fft.pxd +++ b/src/sage/calculus/transforms/fft.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.libs.gsl.fft cimport * cdef class FastFourierTransform_base: diff --git a/src/sage/calculus/transforms/fft.pyx b/src/sage/calculus/transforms/fft.pyx index 363fa65a836..0afa7432442 100644 --- a/src/sage/calculus/transforms/fft.pyx +++ b/src/sage/calculus/transforms/fft.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Fast Fourier Transforms Using GSL diff --git a/src/sage/calculus/var.pyx b/src/sage/calculus/var.pyx index 84f7a16a91f..e0537c0dc06 100644 --- a/src/sage/calculus/var.pyx +++ b/src/sage/calculus/var.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics # cython: old_style_globals=True """ Symbolic variables diff --git a/src/sage/calculus/wester.py b/src/sage/calculus/wester.py index e33409a49ac..95b35e0bb0b 100644 --- a/src/sage/calculus/wester.py +++ b/src/sage/calculus/wester.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.symbolic r""" Further examples from Wester's paper diff --git a/src/sage/categories/action.pxd b/src/sage/categories/action.pxd index a22a37cc22a..2942d6d3e89 100644 --- a/src/sage/categories/action.pxd +++ b/src/sage/categories/action.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects from sage.structure.element cimport Element from sage.categories.morphism cimport Morphism from sage.categories.map cimport Map diff --git a/src/sage/categories/action.pyx b/src/sage/categories/action.pyx index 0e54ceffa27..2c6a5dd2e66 100644 --- a/src/sage/categories/action.pyx +++ b/src/sage/categories/action.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects r""" Group, ring, etc. actions on objects diff --git a/src/sage/categories/additive_groups.py b/src/sage/categories/additive_groups.py index 25623d0eeb3..cf079c79406 100644 --- a/src/sage/categories/additive_groups.py +++ b/src/sage/categories/additive_groups.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Additive groups """ diff --git a/src/sage/categories/additive_magmas.py b/src/sage/categories/additive_magmas.py index b39441fe84d..a9bfc75e10e 100644 --- a/src/sage/categories/additive_magmas.py +++ b/src/sage/categories/additive_magmas.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Additive magmas """ diff --git a/src/sage/categories/additive_monoids.py b/src/sage/categories/additive_monoids.py index c0576cd8616..3d76c87113b 100644 --- a/src/sage/categories/additive_monoids.py +++ b/src/sage/categories/additive_monoids.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Additive monoids """ diff --git a/src/sage/categories/additive_semigroups.py b/src/sage/categories/additive_semigroups.py index 038221fe5be..2df1cb6e997 100644 --- a/src/sage/categories/additive_semigroups.py +++ b/src/sage/categories/additive_semigroups.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Additive semigroups """ diff --git a/src/sage/categories/affine_weyl_groups.py b/src/sage/categories/affine_weyl_groups.py index 7ae931201a9..9a26f8c5590 100644 --- a/src/sage/categories/affine_weyl_groups.py +++ b/src/sage/categories/affine_weyl_groups.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Affine Weyl groups """ diff --git a/src/sage/categories/algebra_functor.py b/src/sage/categories/algebra_functor.py index dd56f26895f..93812ba8c7a 100644 --- a/src/sage/categories/algebra_functor.py +++ b/src/sage/categories/algebra_functor.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects # sage.doctest: needs sage.groups r""" Group algebras and beyond: the Algebra functorial construction diff --git a/src/sage/categories/algebra_ideals.py b/src/sage/categories/algebra_ideals.py index c33fa0ef7b0..c973743adc1 100644 --- a/src/sage/categories/algebra_ideals.py +++ b/src/sage/categories/algebra_ideals.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Algebra ideals """ diff --git a/src/sage/categories/algebra_modules.py b/src/sage/categories/algebra_modules.py index e827cc7130d..8a84fa109d7 100644 --- a/src/sage/categories/algebra_modules.py +++ b/src/sage/categories/algebra_modules.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Algebra modules """ diff --git a/src/sage/categories/algebras.py b/src/sage/categories/algebras.py index d93a51d28bd..9a95183814d 100644 --- a/src/sage/categories/algebras.py +++ b/src/sage/categories/algebras.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Algebras diff --git a/src/sage/categories/algebras_with_basis.py b/src/sage/categories/algebras_with_basis.py index 0d1f72eb17c..ac7bc6f8040 100644 --- a/src/sage/categories/algebras_with_basis.py +++ b/src/sage/categories/algebras_with_basis.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Algebras With Basis """ diff --git a/src/sage/categories/all.py b/src/sage/categories/all.py index 9c2b8bd6518..3df008a9536 100644 --- a/src/sage/categories/all.py +++ b/src/sage/categories/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Sage categories quickref diff --git a/src/sage/categories/all__sagemath_objects.py b/src/sage/categories/all__sagemath_objects.py index d87b4a1d20e..1fc85ecd105 100644 --- a/src/sage/categories/all__sagemath_objects.py +++ b/src/sage/categories/all__sagemath_objects.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects # Subset of sage.categories.all that is made available by the sage-objects distribution from sage.misc.lazy_import import lazy_import diff --git a/src/sage/categories/aperiodic_semigroups.py b/src/sage/categories/aperiodic_semigroups.py index 474930f2525..b7ecff10622 100644 --- a/src/sage/categories/aperiodic_semigroups.py +++ b/src/sage/categories/aperiodic_semigroups.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Aperiodic semigroups """ diff --git a/src/sage/categories/associative_algebras.py b/src/sage/categories/associative_algebras.py index c54da6eb27b..888ee18d429 100644 --- a/src/sage/categories/associative_algebras.py +++ b/src/sage/categories/associative_algebras.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Associative algebras """ diff --git a/src/sage/categories/basic.py b/src/sage/categories/basic.py index f3574db469d..725377ab64a 100644 --- a/src/sage/categories/basic.py +++ b/src/sage/categories/basic.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects r""" A subset of sage.categories.all with just the basic categories needed for sage startup (i.e. to define ZZ, QQ, ...). diff --git a/src/sage/categories/bialgebras.py b/src/sage/categories/bialgebras.py index b927766568b..92df3723ad1 100644 --- a/src/sage/categories/bialgebras.py +++ b/src/sage/categories/bialgebras.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.combinat r""" Bialgebras diff --git a/src/sage/categories/bialgebras_with_basis.py b/src/sage/categories/bialgebras_with_basis.py index 36dd5fccf2a..fc00d886ece 100644 --- a/src/sage/categories/bialgebras_with_basis.py +++ b/src/sage/categories/bialgebras_with_basis.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Bialgebras with basis """ diff --git a/src/sage/categories/bimodules.py b/src/sage/categories/bimodules.py index eec2f674aa7..aabd7b22c1d 100644 --- a/src/sage/categories/bimodules.py +++ b/src/sage/categories/bimodules.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Bimodules """ diff --git a/src/sage/categories/cartesian_product.py b/src/sage/categories/cartesian_product.py index bfedd135b2e..f4d5f0a630f 100644 --- a/src/sage/categories/cartesian_product.py +++ b/src/sage/categories/cartesian_product.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects """ Cartesian Product Functorial Construction diff --git a/src/sage/categories/category.py b/src/sage/categories/category.py index 87b66a6615f..02aaa595846 100644 --- a/src/sage/categories/category.py +++ b/src/sage/categories/category.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects r""" Categories diff --git a/src/sage/categories/category_cy_helper.pxd b/src/sage/categories/category_cy_helper.pxd index c7bf3759712..636c099a478 100644 --- a/src/sage/categories/category_cy_helper.pxd +++ b/src/sage/categories/category_cy_helper.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects cpdef tuple _sort_uniq(categories) noexcept cdef class AxiomContainer(dict): pass diff --git a/src/sage/categories/category_cy_helper.pyx b/src/sage/categories/category_cy_helper.pyx index 6ed38f4d00e..34c36a59dab 100644 --- a/src/sage/categories/category_cy_helper.pyx +++ b/src/sage/categories/category_cy_helper.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects """ Fast functions for the category framework diff --git a/src/sage/categories/category_singleton.pxd b/src/sage/categories/category_singleton.pxd index b9b4a703b8d..b001228a042 100644 --- a/src/sage/categories/category_singleton.pxd +++ b/src/sage/categories/category_singleton.pxd @@ -1,2 +1,3 @@ +# sage_setup: distribution = sagemath-objects cdef class Category_contains_method_by_parent_class: cdef type _parent_class_of_category diff --git a/src/sage/categories/category_singleton.pyx b/src/sage/categories/category_singleton.pyx index 543ce0375f7..446c3f5ee33 100644 --- a/src/sage/categories/category_singleton.pyx +++ b/src/sage/categories/category_singleton.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects r""" Singleton categories """ diff --git a/src/sage/categories/category_types.py b/src/sage/categories/category_types.py index 4ead4f23530..02d1c549986 100644 --- a/src/sage/categories/category_types.py +++ b/src/sage/categories/category_types.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects """ Specific category classes diff --git a/src/sage/categories/category_with_axiom.py b/src/sage/categories/category_with_axiom.py index 20668629649..9d4015e13d8 100644 --- a/src/sage/categories/category_with_axiom.py +++ b/src/sage/categories/category_with_axiom.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects r""" Axioms diff --git a/src/sage/categories/chain_complexes.py b/src/sage/categories/chain_complexes.py index 9616aa608c4..c2cd0e92c38 100644 --- a/src/sage/categories/chain_complexes.py +++ b/src/sage/categories/chain_complexes.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Category of chain complexes """ diff --git a/src/sage/categories/classical_crystals.py b/src/sage/categories/classical_crystals.py index fb5d2c7cde8..777eb16dddc 100644 --- a/src/sage/categories/classical_crystals.py +++ b/src/sage/categories/classical_crystals.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.graphs sage.combinat r""" Classical Crystals diff --git a/src/sage/categories/coalgebras.py b/src/sage/categories/coalgebras.py index b69fdf29784..afe76d092a2 100644 --- a/src/sage/categories/coalgebras.py +++ b/src/sage/categories/coalgebras.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.combinat r""" Coalgebras diff --git a/src/sage/categories/coalgebras_with_basis.py b/src/sage/categories/coalgebras_with_basis.py index 1a3ecfe8302..03e6fd2a5cd 100644 --- a/src/sage/categories/coalgebras_with_basis.py +++ b/src/sage/categories/coalgebras_with_basis.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Coalgebras with basis """ diff --git a/src/sage/categories/coercion_methods.pyx b/src/sage/categories/coercion_methods.pyx index 830bd238c66..0084b39d5eb 100644 --- a/src/sage/categories/coercion_methods.pyx +++ b/src/sage/categories/coercion_methods.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Coercion methods for categories diff --git a/src/sage/categories/commutative_additive_groups.py b/src/sage/categories/commutative_additive_groups.py index ce1dfc5186a..b4ef4794212 100644 --- a/src/sage/categories/commutative_additive_groups.py +++ b/src/sage/categories/commutative_additive_groups.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Commutative additive groups """ diff --git a/src/sage/categories/commutative_additive_monoids.py b/src/sage/categories/commutative_additive_monoids.py index ac0bceaf43b..1b38ab845a2 100644 --- a/src/sage/categories/commutative_additive_monoids.py +++ b/src/sage/categories/commutative_additive_monoids.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Commutative additive monoids """ diff --git a/src/sage/categories/commutative_additive_semigroups.py b/src/sage/categories/commutative_additive_semigroups.py index 93c0f2eab5c..db28e51221b 100644 --- a/src/sage/categories/commutative_additive_semigroups.py +++ b/src/sage/categories/commutative_additive_semigroups.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Commutative additive semigroups """ diff --git a/src/sage/categories/commutative_algebra_ideals.py b/src/sage/categories/commutative_algebra_ideals.py index e47e1c4f87e..3df812635e8 100644 --- a/src/sage/categories/commutative_algebra_ideals.py +++ b/src/sage/categories/commutative_algebra_ideals.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Commutative algebra ideals """ diff --git a/src/sage/categories/commutative_algebras.py b/src/sage/categories/commutative_algebras.py index 986a45db3e3..f7dded587dc 100644 --- a/src/sage/categories/commutative_algebras.py +++ b/src/sage/categories/commutative_algebras.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Commutative algebras """ diff --git a/src/sage/categories/commutative_ring_ideals.py b/src/sage/categories/commutative_ring_ideals.py index 8659b0c793b..630070dd526 100644 --- a/src/sage/categories/commutative_ring_ideals.py +++ b/src/sage/categories/commutative_ring_ideals.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Commutative ring ideals """ diff --git a/src/sage/categories/commutative_rings.py b/src/sage/categories/commutative_rings.py index 1601ca3d3e3..80c5d74d50d 100644 --- a/src/sage/categories/commutative_rings.py +++ b/src/sage/categories/commutative_rings.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Commutative rings """ diff --git a/src/sage/categories/complete_discrete_valuation.py b/src/sage/categories/complete_discrete_valuation.py index 7376d947530..ac3fddcf460 100644 --- a/src/sage/categories/complete_discrete_valuation.py +++ b/src/sage/categories/complete_discrete_valuation.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Complete Discrete Valuation Rings (CDVR) and Fields (CDVF) """ diff --git a/src/sage/categories/complex_reflection_groups.py b/src/sage/categories/complex_reflection_groups.py index d9d30d41e40..d94d928216d 100644 --- a/src/sage/categories/complex_reflection_groups.py +++ b/src/sage/categories/complex_reflection_groups.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Complex reflection groups """ diff --git a/src/sage/categories/complex_reflection_or_generalized_coxeter_groups.py b/src/sage/categories/complex_reflection_or_generalized_coxeter_groups.py index ca2f1e09235..b3ccdbc7195 100644 --- a/src/sage/categories/complex_reflection_or_generalized_coxeter_groups.py +++ b/src/sage/categories/complex_reflection_or_generalized_coxeter_groups.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.groups r""" Common category for Generalized Coxeter Groups or Complex Reflection Groups diff --git a/src/sage/categories/covariant_functorial_construction.py b/src/sage/categories/covariant_functorial_construction.py index ce4909a7b63..c041695ba03 100644 --- a/src/sage/categories/covariant_functorial_construction.py +++ b/src/sage/categories/covariant_functorial_construction.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects r""" Covariant Functorial Constructions diff --git a/src/sage/categories/coxeter_group_algebras.py b/src/sage/categories/coxeter_group_algebras.py index 5cececc3fef..97ae4942578 100644 --- a/src/sage/categories/coxeter_group_algebras.py +++ b/src/sage/categories/coxeter_group_algebras.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.combinat sage.groups r""" Coxeter Group Algebras diff --git a/src/sage/categories/coxeter_groups.py b/src/sage/categories/coxeter_groups.py index f3ef677638d..c5c7d397df5 100644 --- a/src/sage/categories/coxeter_groups.py +++ b/src/sage/categories/coxeter_groups.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Coxeter Groups """ diff --git a/src/sage/categories/crystals.py b/src/sage/categories/crystals.py index c2a9b8de655..27e567788a3 100644 --- a/src/sage/categories/crystals.py +++ b/src/sage/categories/crystals.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.graphs sage.combinat r""" Crystals diff --git a/src/sage/categories/cw_complexes.py b/src/sage/categories/cw_complexes.py index 69faafeeb83..c0c4e178da9 100644 --- a/src/sage/categories/cw_complexes.py +++ b/src/sage/categories/cw_complexes.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" CW Complexes """ diff --git a/src/sage/categories/discrete_valuation.py b/src/sage/categories/discrete_valuation.py index 24b15bca488..830c148c95b 100644 --- a/src/sage/categories/discrete_valuation.py +++ b/src/sage/categories/discrete_valuation.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Discrete Valuation Rings (DVR) and Fields (DVF) """ diff --git a/src/sage/categories/distributive_magmas_and_additive_magmas.py b/src/sage/categories/distributive_magmas_and_additive_magmas.py index 6d1c7511c11..830c6c77c8c 100644 --- a/src/sage/categories/distributive_magmas_and_additive_magmas.py +++ b/src/sage/categories/distributive_magmas_and_additive_magmas.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Distributive Magmas and Additive Magmas """ diff --git a/src/sage/categories/division_rings.py b/src/sage/categories/division_rings.py index cd26f46acae..ff6cee76ed6 100644 --- a/src/sage/categories/division_rings.py +++ b/src/sage/categories/division_rings.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Division rings """ diff --git a/src/sage/categories/domains.py b/src/sage/categories/domains.py index 18e2907b8ef..4902bb89897 100644 --- a/src/sage/categories/domains.py +++ b/src/sage/categories/domains.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Domains """ diff --git a/src/sage/categories/drinfeld_modules.py b/src/sage/categories/drinfeld_modules.py index 380318c37ff..56264109214 100644 --- a/src/sage/categories/drinfeld_modules.py +++ b/src/sage/categories/drinfeld_modules.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.rings.finite_rings r""" Drinfeld modules over a base diff --git a/src/sage/categories/dual.py b/src/sage/categories/dual.py index 2b21f81cbda..60503a8e83a 100644 --- a/src/sage/categories/dual.py +++ b/src/sage/categories/dual.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Dual functorial construction diff --git a/src/sage/categories/enumerated_sets.py b/src/sage/categories/enumerated_sets.py index a5e0bbcefaf..a7a870dfa09 100644 --- a/src/sage/categories/enumerated_sets.py +++ b/src/sage/categories/enumerated_sets.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Enumerated sets """ diff --git a/src/sage/categories/euclidean_domains.py b/src/sage/categories/euclidean_domains.py index eb02736f6e1..8ba23dcb876 100644 --- a/src/sage/categories/euclidean_domains.py +++ b/src/sage/categories/euclidean_domains.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Euclidean domains diff --git a/src/sage/categories/examples/algebras_with_basis.py b/src/sage/categories/examples/algebras_with_basis.py index e19d74ff3c9..1540bb50c6d 100644 --- a/src/sage/categories/examples/algebras_with_basis.py +++ b/src/sage/categories/examples/algebras_with_basis.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.combinat r""" Examples of algebras with basis diff --git a/src/sage/categories/examples/all.py b/src/sage/categories/examples/all.py index e69de29bb2d..b230a6a2ad9 100644 --- a/src/sage/categories/examples/all.py +++ b/src/sage/categories/examples/all.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-categories diff --git a/src/sage/categories/examples/commutative_additive_monoids.py b/src/sage/categories/examples/commutative_additive_monoids.py index 20728722d9f..c805471fa52 100644 --- a/src/sage/categories/examples/commutative_additive_monoids.py +++ b/src/sage/categories/examples/commutative_additive_monoids.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Examples of commutative additive monoids """ diff --git a/src/sage/categories/examples/commutative_additive_semigroups.py b/src/sage/categories/examples/commutative_additive_semigroups.py index 0b3cb314e74..f30288675fe 100644 --- a/src/sage/categories/examples/commutative_additive_semigroups.py +++ b/src/sage/categories/examples/commutative_additive_semigroups.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Examples of commutative additive semigroups """ diff --git a/src/sage/categories/examples/coxeter_groups.py b/src/sage/categories/examples/coxeter_groups.py index ac76a708bec..f2791ac09ca 100644 --- a/src/sage/categories/examples/coxeter_groups.py +++ b/src/sage/categories/examples/coxeter_groups.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Examples of Coxeter groups """ diff --git a/src/sage/categories/examples/crystals.py b/src/sage/categories/examples/crystals.py index 520b97c34d5..4786a4ed6fd 100644 --- a/src/sage/categories/examples/crystals.py +++ b/src/sage/categories/examples/crystals.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.combinat sage.graphs r""" Example of a crystal diff --git a/src/sage/categories/examples/cw_complexes.py b/src/sage/categories/examples/cw_complexes.py index 0fefb254c20..89262cd6b43 100644 --- a/src/sage/categories/examples/cw_complexes.py +++ b/src/sage/categories/examples/cw_complexes.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Examples of CW complexes """ diff --git a/src/sage/categories/examples/facade_sets.py b/src/sage/categories/examples/facade_sets.py index bff442e2c5c..f088ca106c6 100644 --- a/src/sage/categories/examples/facade_sets.py +++ b/src/sage/categories/examples/facade_sets.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Example of facade set """ diff --git a/src/sage/categories/examples/filtered_algebras_with_basis.py b/src/sage/categories/examples/filtered_algebras_with_basis.py index 57d106e4555..fd3e6b67968 100644 --- a/src/sage/categories/examples/filtered_algebras_with_basis.py +++ b/src/sage/categories/examples/filtered_algebras_with_basis.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Examples of filtered algebra with basis """ diff --git a/src/sage/categories/examples/filtered_modules_with_basis.py b/src/sage/categories/examples/filtered_modules_with_basis.py index a76726099bc..d62c3d906ff 100644 --- a/src/sage/categories/examples/filtered_modules_with_basis.py +++ b/src/sage/categories/examples/filtered_modules_with_basis.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.combinat r""" Examples of filtered modules with basis diff --git a/src/sage/categories/examples/finite_coxeter_groups.py b/src/sage/categories/examples/finite_coxeter_groups.py index 84e4c1f95b4..9abf9304929 100644 --- a/src/sage/categories/examples/finite_coxeter_groups.py +++ b/src/sage/categories/examples/finite_coxeter_groups.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.combinat sage.groups r""" Examples of finite Coxeter groups diff --git a/src/sage/categories/examples/finite_dimensional_algebras_with_basis.py b/src/sage/categories/examples/finite_dimensional_algebras_with_basis.py index df8957dbaf7..9fb25719a25 100644 --- a/src/sage/categories/examples/finite_dimensional_algebras_with_basis.py +++ b/src/sage/categories/examples/finite_dimensional_algebras_with_basis.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.modules r""" Example of a finite dimensional algebra with basis diff --git a/src/sage/categories/examples/finite_dimensional_lie_algebras_with_basis.py b/src/sage/categories/examples/finite_dimensional_lie_algebras_with_basis.py index 9f221f1432e..4590fb7f10b 100644 --- a/src/sage/categories/examples/finite_dimensional_lie_algebras_with_basis.py +++ b/src/sage/categories/examples/finite_dimensional_lie_algebras_with_basis.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.modules r""" Examples of a finite dimensional Lie algebra with basis diff --git a/src/sage/categories/examples/finite_enumerated_sets.py b/src/sage/categories/examples/finite_enumerated_sets.py index 6a606f7b9e3..264b9bc13ba 100644 --- a/src/sage/categories/examples/finite_enumerated_sets.py +++ b/src/sage/categories/examples/finite_enumerated_sets.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Examples of finite enumerated sets """ diff --git a/src/sage/categories/examples/finite_monoids.py b/src/sage/categories/examples/finite_monoids.py index 0a4c1374893..20119abac66 100644 --- a/src/sage/categories/examples/finite_monoids.py +++ b/src/sage/categories/examples/finite_monoids.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Examples of finite monoids """ diff --git a/src/sage/categories/examples/finite_semigroups.py b/src/sage/categories/examples/finite_semigroups.py index 13712de76fe..d019e6895e4 100644 --- a/src/sage/categories/examples/finite_semigroups.py +++ b/src/sage/categories/examples/finite_semigroups.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Examples of finite semigroups """ diff --git a/src/sage/categories/examples/finite_weyl_groups.py b/src/sage/categories/examples/finite_weyl_groups.py index 5c87f26c3e3..a3674abdb9f 100644 --- a/src/sage/categories/examples/finite_weyl_groups.py +++ b/src/sage/categories/examples/finite_weyl_groups.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Examples of finite Weyl groups """ diff --git a/src/sage/categories/examples/graded_connected_hopf_algebras_with_basis.py b/src/sage/categories/examples/graded_connected_hopf_algebras_with_basis.py index 2290419adb3..28699e17256 100644 --- a/src/sage/categories/examples/graded_connected_hopf_algebras_with_basis.py +++ b/src/sage/categories/examples/graded_connected_hopf_algebras_with_basis.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.modules r""" Examples of graded connected Hopf algebras with basis diff --git a/src/sage/categories/examples/graded_modules_with_basis.py b/src/sage/categories/examples/graded_modules_with_basis.py index 8ddfb7eed04..348bc5b9568 100644 --- a/src/sage/categories/examples/graded_modules_with_basis.py +++ b/src/sage/categories/examples/graded_modules_with_basis.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.combinat r""" Examples of graded modules with basis diff --git a/src/sage/categories/examples/graphs.py b/src/sage/categories/examples/graphs.py index 063eeff1427..f67427d311b 100644 --- a/src/sage/categories/examples/graphs.py +++ b/src/sage/categories/examples/graphs.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Examples of graphs """ diff --git a/src/sage/categories/examples/hopf_algebras_with_basis.py b/src/sage/categories/examples/hopf_algebras_with_basis.py index 7f05827c28a..ea876abcbcf 100644 --- a/src/sage/categories/examples/hopf_algebras_with_basis.py +++ b/src/sage/categories/examples/hopf_algebras_with_basis.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.groups sage.modules r""" Examples of Hopf algebras with basis diff --git a/src/sage/categories/examples/infinite_enumerated_sets.py b/src/sage/categories/examples/infinite_enumerated_sets.py index df4151f21c2..8f23d276988 100644 --- a/src/sage/categories/examples/infinite_enumerated_sets.py +++ b/src/sage/categories/examples/infinite_enumerated_sets.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Examples of infinite enumerated sets """ diff --git a/src/sage/categories/examples/lie_algebras.py b/src/sage/categories/examples/lie_algebras.py index 135c122efa2..23deb1c7a7c 100644 --- a/src/sage/categories/examples/lie_algebras.py +++ b/src/sage/categories/examples/lie_algebras.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.modules r""" Examples of a Lie algebra diff --git a/src/sage/categories/examples/lie_algebras_with_basis.py b/src/sage/categories/examples/lie_algebras_with_basis.py index ca711e1cdb4..8366503691a 100644 --- a/src/sage/categories/examples/lie_algebras_with_basis.py +++ b/src/sage/categories/examples/lie_algebras_with_basis.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.combinat sage.modules r""" Examples of a Lie algebra with basis diff --git a/src/sage/categories/examples/magmas.py b/src/sage/categories/examples/magmas.py index a4858bc2606..538929c70a0 100644 --- a/src/sage/categories/examples/magmas.py +++ b/src/sage/categories/examples/magmas.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Examples of magmas """ diff --git a/src/sage/categories/examples/manifolds.py b/src/sage/categories/examples/manifolds.py index 6a748884eec..ce433618dc2 100644 --- a/src/sage/categories/examples/manifolds.py +++ b/src/sage/categories/examples/manifolds.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Examples of manifolds """ diff --git a/src/sage/categories/examples/monoids.py b/src/sage/categories/examples/monoids.py index 1d2b87279d2..fe0646eab6c 100644 --- a/src/sage/categories/examples/monoids.py +++ b/src/sage/categories/examples/monoids.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Examples of monoids """ diff --git a/src/sage/categories/examples/posets.py b/src/sage/categories/examples/posets.py index 20f461860c9..6cd523ceb96 100644 --- a/src/sage/categories/examples/posets.py +++ b/src/sage/categories/examples/posets.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Examples of posets """ diff --git a/src/sage/categories/examples/semigroups.py b/src/sage/categories/examples/semigroups.py index 797fd1b4b03..7e45dd8434e 100644 --- a/src/sage/categories/examples/semigroups.py +++ b/src/sage/categories/examples/semigroups.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Examples of semigroups """ diff --git a/src/sage/categories/examples/semigroups_cython.pyx b/src/sage/categories/examples/semigroups_cython.pyx index 2b7b76c00e3..b078b497fb8 100644 --- a/src/sage/categories/examples/semigroups_cython.pyx +++ b/src/sage/categories/examples/semigroups_cython.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Examples of semigroups in cython """ diff --git a/src/sage/categories/examples/sets_cat.py b/src/sage/categories/examples/sets_cat.py index fbadb9ca405..2c91d652726 100644 --- a/src/sage/categories/examples/sets_cat.py +++ b/src/sage/categories/examples/sets_cat.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.libs.pari """ Examples of sets diff --git a/src/sage/categories/examples/sets_with_grading.py b/src/sage/categories/examples/sets_with_grading.py index 9968d83942b..487c5100578 100644 --- a/src/sage/categories/examples/sets_with_grading.py +++ b/src/sage/categories/examples/sets_with_grading.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Example of a set with grading """ diff --git a/src/sage/categories/examples/with_realizations.py b/src/sage/categories/examples/with_realizations.py index 85b4b86daa0..2ff92851892 100644 --- a/src/sage/categories/examples/with_realizations.py +++ b/src/sage/categories/examples/with_realizations.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.combinat sage.modules r""" Examples of parents endowed with multiple realizations diff --git a/src/sage/categories/facade_sets.py b/src/sage/categories/facade_sets.py index 7bf2ac2f067..5ef7501f537 100644 --- a/src/sage/categories/facade_sets.py +++ b/src/sage/categories/facade_sets.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects r""" Facade Sets diff --git a/src/sage/categories/fields.py b/src/sage/categories/fields.py index 4f8bb141467..e6be29e1a6a 100644 --- a/src/sage/categories/fields.py +++ b/src/sage/categories/fields.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Fields """ diff --git a/src/sage/categories/filtered_algebras.py b/src/sage/categories/filtered_algebras.py index d0db31a98eb..bb16bc0374b 100644 --- a/src/sage/categories/filtered_algebras.py +++ b/src/sage/categories/filtered_algebras.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Filtered Algebras """ diff --git a/src/sage/categories/filtered_algebras_with_basis.py b/src/sage/categories/filtered_algebras_with_basis.py index 1abddc81a18..dd8074ab474 100644 --- a/src/sage/categories/filtered_algebras_with_basis.py +++ b/src/sage/categories/filtered_algebras_with_basis.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Filtered Algebras With Basis diff --git a/src/sage/categories/filtered_hopf_algebras_with_basis.py b/src/sage/categories/filtered_hopf_algebras_with_basis.py index dadd10dd70e..5efd48c6f02 100644 --- a/src/sage/categories/filtered_hopf_algebras_with_basis.py +++ b/src/sage/categories/filtered_hopf_algebras_with_basis.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Filtered Hopf algebras with basis """ diff --git a/src/sage/categories/filtered_modules.py b/src/sage/categories/filtered_modules.py index 780ef974956..e6ad7e0d918 100644 --- a/src/sage/categories/filtered_modules.py +++ b/src/sage/categories/filtered_modules.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Filtered Modules diff --git a/src/sage/categories/filtered_modules_with_basis.py b/src/sage/categories/filtered_modules_with_basis.py index 84e38b14976..362dbd6e908 100644 --- a/src/sage/categories/filtered_modules_with_basis.py +++ b/src/sage/categories/filtered_modules_with_basis.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Filtered Modules With Basis diff --git a/src/sage/categories/finite_complex_reflection_groups.py b/src/sage/categories/finite_complex_reflection_groups.py index b1e89676728..b6d7466e978 100644 --- a/src/sage/categories/finite_complex_reflection_groups.py +++ b/src/sage/categories/finite_complex_reflection_groups.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Finite Complex Reflection Groups """ diff --git a/src/sage/categories/finite_coxeter_groups.py b/src/sage/categories/finite_coxeter_groups.py index 7c7dd59dd99..f087306f04e 100644 --- a/src/sage/categories/finite_coxeter_groups.py +++ b/src/sage/categories/finite_coxeter_groups.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.combinat sage.groups r""" Finite Coxeter Groups diff --git a/src/sage/categories/finite_crystals.py b/src/sage/categories/finite_crystals.py index 4d5fdda550d..b934c692375 100644 --- a/src/sage/categories/finite_crystals.py +++ b/src/sage/categories/finite_crystals.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.combinat sage.graphs r""" Finite Crystals diff --git a/src/sage/categories/finite_dimensional_algebras_with_basis.py b/src/sage/categories/finite_dimensional_algebras_with_basis.py index 0858078f41b..cde578ed14d 100644 --- a/src/sage/categories/finite_dimensional_algebras_with_basis.py +++ b/src/sage/categories/finite_dimensional_algebras_with_basis.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Finite dimensional algebras with basis diff --git a/src/sage/categories/finite_dimensional_bialgebras_with_basis.py b/src/sage/categories/finite_dimensional_bialgebras_with_basis.py index 02f1005e0de..54a7479fd0b 100644 --- a/src/sage/categories/finite_dimensional_bialgebras_with_basis.py +++ b/src/sage/categories/finite_dimensional_bialgebras_with_basis.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Finite dimensional bialgebras with basis """ diff --git a/src/sage/categories/finite_dimensional_coalgebras_with_basis.py b/src/sage/categories/finite_dimensional_coalgebras_with_basis.py index 60b135080da..69cede64fd1 100644 --- a/src/sage/categories/finite_dimensional_coalgebras_with_basis.py +++ b/src/sage/categories/finite_dimensional_coalgebras_with_basis.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Finite dimensional coalgebras with basis """ diff --git a/src/sage/categories/finite_dimensional_graded_lie_algebras_with_basis.py b/src/sage/categories/finite_dimensional_graded_lie_algebras_with_basis.py index 5377122d3f6..8055f39c781 100644 --- a/src/sage/categories/finite_dimensional_graded_lie_algebras_with_basis.py +++ b/src/sage/categories/finite_dimensional_graded_lie_algebras_with_basis.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Finite Dimensional Graded Lie Algebras With Basis diff --git a/src/sage/categories/finite_dimensional_hopf_algebras_with_basis.py b/src/sage/categories/finite_dimensional_hopf_algebras_with_basis.py index da3f1365584..f90e1dfd1c7 100644 --- a/src/sage/categories/finite_dimensional_hopf_algebras_with_basis.py +++ b/src/sage/categories/finite_dimensional_hopf_algebras_with_basis.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Finite dimensional Hopf algebras with basis """ diff --git a/src/sage/categories/finite_dimensional_lie_algebras_with_basis.py b/src/sage/categories/finite_dimensional_lie_algebras_with_basis.py index 013b30dc281..d3682c9f683 100644 --- a/src/sage/categories/finite_dimensional_lie_algebras_with_basis.py +++ b/src/sage/categories/finite_dimensional_lie_algebras_with_basis.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Finite Dimensional Lie Algebras With Basis diff --git a/src/sage/categories/finite_dimensional_modules_with_basis.py b/src/sage/categories/finite_dimensional_modules_with_basis.py index 1462073c5f2..9097ffe98ef 100644 --- a/src/sage/categories/finite_dimensional_modules_with_basis.py +++ b/src/sage/categories/finite_dimensional_modules_with_basis.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Finite dimensional modules with basis """ diff --git a/src/sage/categories/finite_dimensional_nilpotent_lie_algebras_with_basis.py b/src/sage/categories/finite_dimensional_nilpotent_lie_algebras_with_basis.py index 78d801a5ef4..ae3a38d9dda 100644 --- a/src/sage/categories/finite_dimensional_nilpotent_lie_algebras_with_basis.py +++ b/src/sage/categories/finite_dimensional_nilpotent_lie_algebras_with_basis.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Finite Dimensional Nilpotent Lie Algebras With Basis diff --git a/src/sage/categories/finite_dimensional_semisimple_algebras_with_basis.py b/src/sage/categories/finite_dimensional_semisimple_algebras_with_basis.py index da4b297ddde..2cbcc8aac61 100644 --- a/src/sage/categories/finite_dimensional_semisimple_algebras_with_basis.py +++ b/src/sage/categories/finite_dimensional_semisimple_algebras_with_basis.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Finite dimensional semisimple algebras with basis """ diff --git a/src/sage/categories/finite_enumerated_sets.py b/src/sage/categories/finite_enumerated_sets.py index 6c4fba4c1a6..40c594460d6 100644 --- a/src/sage/categories/finite_enumerated_sets.py +++ b/src/sage/categories/finite_enumerated_sets.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Finite Enumerated Sets """ diff --git a/src/sage/categories/finite_fields.py b/src/sage/categories/finite_fields.py index d9333c80707..6219c8dc357 100644 --- a/src/sage/categories/finite_fields.py +++ b/src/sage/categories/finite_fields.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Finite fields """ diff --git a/src/sage/categories/finite_groups.py b/src/sage/categories/finite_groups.py index c64b7fd8bf0..9650d6b81f2 100644 --- a/src/sage/categories/finite_groups.py +++ b/src/sage/categories/finite_groups.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.groups r""" Finite groups diff --git a/src/sage/categories/finite_lattice_posets.py b/src/sage/categories/finite_lattice_posets.py index 96f2385404c..773d8c4914d 100644 --- a/src/sage/categories/finite_lattice_posets.py +++ b/src/sage/categories/finite_lattice_posets.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Finite lattice posets """ diff --git a/src/sage/categories/finite_monoids.py b/src/sage/categories/finite_monoids.py index b446dc925cb..9b26acb459c 100644 --- a/src/sage/categories/finite_monoids.py +++ b/src/sage/categories/finite_monoids.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Finite monoids """ diff --git a/src/sage/categories/finite_permutation_groups.py b/src/sage/categories/finite_permutation_groups.py index f14c66a96c9..5a947d268af 100644 --- a/src/sage/categories/finite_permutation_groups.py +++ b/src/sage/categories/finite_permutation_groups.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.groups r""" Finite Permutation Groups diff --git a/src/sage/categories/finite_posets.py b/src/sage/categories/finite_posets.py index 68317bbb4c3..c1f9a4e6f76 100644 --- a/src/sage/categories/finite_posets.py +++ b/src/sage/categories/finite_posets.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.combinat sage.graphs r""" Finite posets diff --git a/src/sage/categories/finite_semigroups.py b/src/sage/categories/finite_semigroups.py index ad384fc2b79..b699e33c9ab 100644 --- a/src/sage/categories/finite_semigroups.py +++ b/src/sage/categories/finite_semigroups.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Finite semigroups """ diff --git a/src/sage/categories/finite_sets.py b/src/sage/categories/finite_sets.py index 494ec2cdc6c..0f464e2cb9c 100644 --- a/src/sage/categories/finite_sets.py +++ b/src/sage/categories/finite_sets.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Finite sets """ diff --git a/src/sage/categories/finite_weyl_groups.py b/src/sage/categories/finite_weyl_groups.py index 8e0346eb5ab..3e790d78965 100644 --- a/src/sage/categories/finite_weyl_groups.py +++ b/src/sage/categories/finite_weyl_groups.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Finite Weyl Groups """ diff --git a/src/sage/categories/finitely_generated_lambda_bracket_algebras.py b/src/sage/categories/finitely_generated_lambda_bracket_algebras.py index 5ff1634ca43..ac1e775b90a 100644 --- a/src/sage/categories/finitely_generated_lambda_bracket_algebras.py +++ b/src/sage/categories/finitely_generated_lambda_bracket_algebras.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Finitely Generated Lambda bracket Algebras diff --git a/src/sage/categories/finitely_generated_lie_conformal_algebras.py b/src/sage/categories/finitely_generated_lie_conformal_algebras.py index 90b18df668f..11066c7d160 100644 --- a/src/sage/categories/finitely_generated_lie_conformal_algebras.py +++ b/src/sage/categories/finitely_generated_lie_conformal_algebras.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Finitely Generated Lie Conformal Algebras diff --git a/src/sage/categories/finitely_generated_magmas.py b/src/sage/categories/finitely_generated_magmas.py index fe845e8b92a..d89f2477045 100644 --- a/src/sage/categories/finitely_generated_magmas.py +++ b/src/sage/categories/finitely_generated_magmas.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Finitely generated magmas """ diff --git a/src/sage/categories/finitely_generated_semigroups.py b/src/sage/categories/finitely_generated_semigroups.py index 369e6375a16..b3e2a46f3a4 100644 --- a/src/sage/categories/finitely_generated_semigroups.py +++ b/src/sage/categories/finitely_generated_semigroups.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Finitely generated semigroups """ diff --git a/src/sage/categories/function_fields.py b/src/sage/categories/function_fields.py index 6c949b6197a..02ba3021741 100644 --- a/src/sage/categories/function_fields.py +++ b/src/sage/categories/function_fields.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Function fields """ diff --git a/src/sage/categories/functor.pxd b/src/sage/categories/functor.pxd index 22eec36f7ad..76fa0fe1c6e 100644 --- a/src/sage/categories/functor.pxd +++ b/src/sage/categories/functor.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects from sage.structure.sage_object cimport SageObject cdef class Functor(SageObject): diff --git a/src/sage/categories/functor.pyx b/src/sage/categories/functor.pyx index e8cf2e5538f..3b4ae38c14c 100644 --- a/src/sage/categories/functor.pyx +++ b/src/sage/categories/functor.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects """ Functors diff --git a/src/sage/categories/g_sets.py b/src/sage/categories/g_sets.py index 5967fcf7d5f..d49f790a9e0 100644 --- a/src/sage/categories/g_sets.py +++ b/src/sage/categories/g_sets.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" G-Sets """ diff --git a/src/sage/categories/gcd_domains.py b/src/sage/categories/gcd_domains.py index e946db6fa29..6ffb6456625 100644 --- a/src/sage/categories/gcd_domains.py +++ b/src/sage/categories/gcd_domains.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Gcd domains """ diff --git a/src/sage/categories/generalized_coxeter_groups.py b/src/sage/categories/generalized_coxeter_groups.py index 844472ba6be..5e0641ed37e 100644 --- a/src/sage/categories/generalized_coxeter_groups.py +++ b/src/sage/categories/generalized_coxeter_groups.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Generalized Coxeter Groups """ diff --git a/src/sage/categories/graded_algebras.py b/src/sage/categories/graded_algebras.py index 190355b59c5..dc48ad19d54 100644 --- a/src/sage/categories/graded_algebras.py +++ b/src/sage/categories/graded_algebras.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Graded Algebras """ diff --git a/src/sage/categories/graded_algebras_with_basis.py b/src/sage/categories/graded_algebras_with_basis.py index 62d4816b208..9b44bc9567b 100644 --- a/src/sage/categories/graded_algebras_with_basis.py +++ b/src/sage/categories/graded_algebras_with_basis.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Graded algebras with basis """ diff --git a/src/sage/categories/graded_bialgebras.py b/src/sage/categories/graded_bialgebras.py index eff325b320e..ceb0c7fe26e 100644 --- a/src/sage/categories/graded_bialgebras.py +++ b/src/sage/categories/graded_bialgebras.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Graded bialgebras """ diff --git a/src/sage/categories/graded_bialgebras_with_basis.py b/src/sage/categories/graded_bialgebras_with_basis.py index d1727c0f40c..f97855196e7 100644 --- a/src/sage/categories/graded_bialgebras_with_basis.py +++ b/src/sage/categories/graded_bialgebras_with_basis.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Graded bialgebras with basis """ diff --git a/src/sage/categories/graded_coalgebras.py b/src/sage/categories/graded_coalgebras.py index 1b3a3c1d154..12d07b0f679 100644 --- a/src/sage/categories/graded_coalgebras.py +++ b/src/sage/categories/graded_coalgebras.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Graded Coalgebras """ diff --git a/src/sage/categories/graded_coalgebras_with_basis.py b/src/sage/categories/graded_coalgebras_with_basis.py index 9efb1854780..bb4a44c676b 100644 --- a/src/sage/categories/graded_coalgebras_with_basis.py +++ b/src/sage/categories/graded_coalgebras_with_basis.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Graded coalgebras with basis """ diff --git a/src/sage/categories/graded_hopf_algebras.py b/src/sage/categories/graded_hopf_algebras.py index 60d5befd6f5..97daf47ebfc 100644 --- a/src/sage/categories/graded_hopf_algebras.py +++ b/src/sage/categories/graded_hopf_algebras.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Graded Hopf algebras """ diff --git a/src/sage/categories/graded_hopf_algebras_with_basis.py b/src/sage/categories/graded_hopf_algebras_with_basis.py index 60cf4977eae..3c0458c0e03 100644 --- a/src/sage/categories/graded_hopf_algebras_with_basis.py +++ b/src/sage/categories/graded_hopf_algebras_with_basis.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Graded Hopf algebras with basis """ diff --git a/src/sage/categories/graded_lie_algebras.py b/src/sage/categories/graded_lie_algebras.py index fac1436c428..ee8ab5df338 100644 --- a/src/sage/categories/graded_lie_algebras.py +++ b/src/sage/categories/graded_lie_algebras.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Graded Lie Algebras diff --git a/src/sage/categories/graded_lie_algebras_with_basis.py b/src/sage/categories/graded_lie_algebras_with_basis.py index 8552218e074..ddf5d8616a2 100644 --- a/src/sage/categories/graded_lie_algebras_with_basis.py +++ b/src/sage/categories/graded_lie_algebras_with_basis.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Graded Lie Algebras With Basis """ diff --git a/src/sage/categories/graded_lie_conformal_algebras.py b/src/sage/categories/graded_lie_conformal_algebras.py index a17c067ae4e..75924494963 100644 --- a/src/sage/categories/graded_lie_conformal_algebras.py +++ b/src/sage/categories/graded_lie_conformal_algebras.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Graded Lie Conformal Algebras diff --git a/src/sage/categories/graded_modules.py b/src/sage/categories/graded_modules.py index ff66b885913..b24f210ad31 100644 --- a/src/sage/categories/graded_modules.py +++ b/src/sage/categories/graded_modules.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Graded modules """ diff --git a/src/sage/categories/graded_modules_with_basis.py b/src/sage/categories/graded_modules_with_basis.py index c813b05e2ec..b109e14d248 100644 --- a/src/sage/categories/graded_modules_with_basis.py +++ b/src/sage/categories/graded_modules_with_basis.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Graded modules with basis """ diff --git a/src/sage/categories/graphs.py b/src/sage/categories/graphs.py index 7142081516e..572156be286 100644 --- a/src/sage/categories/graphs.py +++ b/src/sage/categories/graphs.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Graphs """ diff --git a/src/sage/categories/group_algebras.py b/src/sage/categories/group_algebras.py index 89ad3f56d79..2f1469fb019 100644 --- a/src/sage/categories/group_algebras.py +++ b/src/sage/categories/group_algebras.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Group Algebras diff --git a/src/sage/categories/groupoid.py b/src/sage/categories/groupoid.py index 95af5df164c..0f67bd47608 100644 --- a/src/sage/categories/groupoid.py +++ b/src/sage/categories/groupoid.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.groups r""" Groupoid diff --git a/src/sage/categories/groups.py b/src/sage/categories/groups.py index 445ba111c09..a76f4884f07 100644 --- a/src/sage/categories/groups.py +++ b/src/sage/categories/groups.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Groups """ diff --git a/src/sage/categories/h_trivial_semigroups.py b/src/sage/categories/h_trivial_semigroups.py index 5630068d671..9b1f0ab57b0 100644 --- a/src/sage/categories/h_trivial_semigroups.py +++ b/src/sage/categories/h_trivial_semigroups.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" H-trivial semigroups """ diff --git a/src/sage/categories/hecke_modules.py b/src/sage/categories/hecke_modules.py index 8a8da4f64ef..06bae3f6b41 100644 --- a/src/sage/categories/hecke_modules.py +++ b/src/sage/categories/hecke_modules.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Hecke modules """ diff --git a/src/sage/categories/highest_weight_crystals.py b/src/sage/categories/highest_weight_crystals.py index baf50566cc0..6ef3b6b7e5f 100644 --- a/src/sage/categories/highest_weight_crystals.py +++ b/src/sage/categories/highest_weight_crystals.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.combinat sage.graphs r""" Highest Weight Crystals diff --git a/src/sage/categories/homset.py b/src/sage/categories/homset.py index bf4426aff87..cb06129ed91 100644 --- a/src/sage/categories/homset.py +++ b/src/sage/categories/homset.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects r""" Homsets diff --git a/src/sage/categories/homsets.py b/src/sage/categories/homsets.py index 6a24e546eb7..ad9a04f4f8a 100644 --- a/src/sage/categories/homsets.py +++ b/src/sage/categories/homsets.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects r""" Homset categories """ diff --git a/src/sage/categories/hopf_algebras.py b/src/sage/categories/hopf_algebras.py index 49091b3de60..acc85774aff 100644 --- a/src/sage/categories/hopf_algebras.py +++ b/src/sage/categories/hopf_algebras.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Hopf algebras """ diff --git a/src/sage/categories/hopf_algebras_with_basis.py b/src/sage/categories/hopf_algebras_with_basis.py index d56adc36eb1..f4bbb6af51d 100644 --- a/src/sage/categories/hopf_algebras_with_basis.py +++ b/src/sage/categories/hopf_algebras_with_basis.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Hopf algebras with basis """ diff --git a/src/sage/categories/infinite_enumerated_sets.py b/src/sage/categories/infinite_enumerated_sets.py index e65bf944b87..c5f5df3ffd9 100644 --- a/src/sage/categories/infinite_enumerated_sets.py +++ b/src/sage/categories/infinite_enumerated_sets.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Infinite Enumerated Sets diff --git a/src/sage/categories/integral_domains.py b/src/sage/categories/integral_domains.py index b6e6f59a196..ae47e5205f6 100644 --- a/src/sage/categories/integral_domains.py +++ b/src/sage/categories/integral_domains.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Integral domains """ diff --git a/src/sage/categories/isomorphic_objects.py b/src/sage/categories/isomorphic_objects.py index f1473997c14..658402aea09 100644 --- a/src/sage/categories/isomorphic_objects.py +++ b/src/sage/categories/isomorphic_objects.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects """ Isomorphic Objects Functorial Construction diff --git a/src/sage/categories/j_trivial_semigroups.py b/src/sage/categories/j_trivial_semigroups.py index 8ca78c83a1e..c09e1cea144 100644 --- a/src/sage/categories/j_trivial_semigroups.py +++ b/src/sage/categories/j_trivial_semigroups.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" J-trivial semigroups """ diff --git a/src/sage/categories/kac_moody_algebras.py b/src/sage/categories/kac_moody_algebras.py index 52f738243b8..ed2ba241bdf 100644 --- a/src/sage/categories/kac_moody_algebras.py +++ b/src/sage/categories/kac_moody_algebras.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Kac-Moody Algebras diff --git a/src/sage/categories/l_trivial_semigroups.py b/src/sage/categories/l_trivial_semigroups.py index ef4a8c41016..478003e0e48 100644 --- a/src/sage/categories/l_trivial_semigroups.py +++ b/src/sage/categories/l_trivial_semigroups.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" L-trivial semigroups """ diff --git a/src/sage/categories/lambda_bracket_algebras.py b/src/sage/categories/lambda_bracket_algebras.py index 56818bf4d04..9c93d417489 100644 --- a/src/sage/categories/lambda_bracket_algebras.py +++ b/src/sage/categories/lambda_bracket_algebras.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Lambda Bracket Algebras diff --git a/src/sage/categories/lambda_bracket_algebras_with_basis.py b/src/sage/categories/lambda_bracket_algebras_with_basis.py index 62fe41f3336..c79d1cc8c8a 100644 --- a/src/sage/categories/lambda_bracket_algebras_with_basis.py +++ b/src/sage/categories/lambda_bracket_algebras_with_basis.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Lambda Bracket Algebras With Basis diff --git a/src/sage/categories/lattice_posets.py b/src/sage/categories/lattice_posets.py index f14fa364415..29b1738c6ac 100644 --- a/src/sage/categories/lattice_posets.py +++ b/src/sage/categories/lattice_posets.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Lattice posets """ diff --git a/src/sage/categories/left_modules.py b/src/sage/categories/left_modules.py index 51de3497a53..a6394582d4d 100644 --- a/src/sage/categories/left_modules.py +++ b/src/sage/categories/left_modules.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Left modules """ diff --git a/src/sage/categories/lie_algebras.py b/src/sage/categories/lie_algebras.py index 4226c4dba61..f20ad71aa9b 100644 --- a/src/sage/categories/lie_algebras.py +++ b/src/sage/categories/lie_algebras.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Lie Algebras diff --git a/src/sage/categories/lie_algebras_with_basis.py b/src/sage/categories/lie_algebras_with_basis.py index 6eaebfde844..6e6c3e10d7a 100644 --- a/src/sage/categories/lie_algebras_with_basis.py +++ b/src/sage/categories/lie_algebras_with_basis.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Lie Algebras With Basis diff --git a/src/sage/categories/lie_conformal_algebras.py b/src/sage/categories/lie_conformal_algebras.py index d1e77c3c56b..561d9e1e693 100644 --- a/src/sage/categories/lie_conformal_algebras.py +++ b/src/sage/categories/lie_conformal_algebras.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Lie Conformal Algebras diff --git a/src/sage/categories/lie_conformal_algebras_with_basis.py b/src/sage/categories/lie_conformal_algebras_with_basis.py index bedf8934fc4..d0bac7f4087 100644 --- a/src/sage/categories/lie_conformal_algebras_with_basis.py +++ b/src/sage/categories/lie_conformal_algebras_with_basis.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Lie Conformal Algebras With Basis diff --git a/src/sage/categories/lie_groups.py b/src/sage/categories/lie_groups.py index 2d32a158fa3..fe64f6f1a97 100644 --- a/src/sage/categories/lie_groups.py +++ b/src/sage/categories/lie_groups.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Lie Groups """ diff --git a/src/sage/categories/loop_crystals.py b/src/sage/categories/loop_crystals.py index ad49bd42892..3826dbf4a2a 100644 --- a/src/sage/categories/loop_crystals.py +++ b/src/sage/categories/loop_crystals.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.graphs sage.combinat r""" Loop Crystals diff --git a/src/sage/categories/magmas.py b/src/sage/categories/magmas.py index 72b037c30b0..99ece9f8359 100644 --- a/src/sage/categories/magmas.py +++ b/src/sage/categories/magmas.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Magmas """ diff --git a/src/sage/categories/magmas_and_additive_magmas.py b/src/sage/categories/magmas_and_additive_magmas.py index 784cf625ec6..5b7796ecbfa 100644 --- a/src/sage/categories/magmas_and_additive_magmas.py +++ b/src/sage/categories/magmas_and_additive_magmas.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Magmas and Additive Magmas """ diff --git a/src/sage/categories/magmatic_algebras.py b/src/sage/categories/magmatic_algebras.py index 9d37608569d..7f9641ea437 100644 --- a/src/sage/categories/magmatic_algebras.py +++ b/src/sage/categories/magmatic_algebras.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Non-unital non-associative algebras """ diff --git a/src/sage/categories/manifolds.py b/src/sage/categories/manifolds.py index f8dc1da4de0..554e7053f8c 100644 --- a/src/sage/categories/manifolds.py +++ b/src/sage/categories/manifolds.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Manifolds """ diff --git a/src/sage/categories/map.pxd b/src/sage/categories/map.pxd index 98c74d862e4..ec4281f77c1 100644 --- a/src/sage/categories/map.pxd +++ b/src/sage/categories/map.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects from sage.structure.parent cimport Parent from sage.structure.element cimport Element diff --git a/src/sage/categories/map.pyx b/src/sage/categories/map.pyx index a931ceaa6cb..83dfad8d0bb 100644 --- a/src/sage/categories/map.pyx +++ b/src/sage/categories/map.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects r""" Base class for maps diff --git a/src/sage/categories/matrix_algebras.py b/src/sage/categories/matrix_algebras.py index 08b102d7451..57953f5af2e 100644 --- a/src/sage/categories/matrix_algebras.py +++ b/src/sage/categories/matrix_algebras.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Matrix algebras """ diff --git a/src/sage/categories/metric_spaces.py b/src/sage/categories/metric_spaces.py index 205e8746363..ecf43e9c361 100644 --- a/src/sage/categories/metric_spaces.py +++ b/src/sage/categories/metric_spaces.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Metric Spaces """ diff --git a/src/sage/categories/modular_abelian_varieties.py b/src/sage/categories/modular_abelian_varieties.py index 804361a7f99..4fd64663291 100644 --- a/src/sage/categories/modular_abelian_varieties.py +++ b/src/sage/categories/modular_abelian_varieties.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Modular abelian varieties """ diff --git a/src/sage/categories/modules.py b/src/sage/categories/modules.py index c4f5127306f..fb54655c4b1 100644 --- a/src/sage/categories/modules.py +++ b/src/sage/categories/modules.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Modules """ diff --git a/src/sage/categories/modules_with_basis.py b/src/sage/categories/modules_with_basis.py index aad3469e072..6d35496a6ca 100644 --- a/src/sage/categories/modules_with_basis.py +++ b/src/sage/categories/modules_with_basis.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Modules With Basis diff --git a/src/sage/categories/monoid_algebras.py b/src/sage/categories/monoid_algebras.py index a387d7f74f4..70bf7b9f881 100644 --- a/src/sage/categories/monoid_algebras.py +++ b/src/sage/categories/monoid_algebras.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Monoid algebras """ diff --git a/src/sage/categories/monoids.py b/src/sage/categories/monoids.py index 28474bd17b6..14d38c21a63 100644 --- a/src/sage/categories/monoids.py +++ b/src/sage/categories/monoids.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Monoids """ diff --git a/src/sage/categories/morphism.pxd b/src/sage/categories/morphism.pxd index e5befc8207e..88cda6baf93 100644 --- a/src/sage/categories/morphism.pxd +++ b/src/sage/categories/morphism.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects from sage.structure.element cimport Element from sage.categories.map cimport Map diff --git a/src/sage/categories/morphism.pyx b/src/sage/categories/morphism.pyx index a30cf52e5c9..9679b387050 100644 --- a/src/sage/categories/morphism.pyx +++ b/src/sage/categories/morphism.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects """ Morphisms diff --git a/src/sage/categories/number_fields.py b/src/sage/categories/number_fields.py index 6f9829cd499..8c6ed11d4c3 100644 --- a/src/sage/categories/number_fields.py +++ b/src/sage/categories/number_fields.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Number fields """ diff --git a/src/sage/categories/objects.py b/src/sage/categories/objects.py index 0b72e0f5d6f..742be48099f 100644 --- a/src/sage/categories/objects.py +++ b/src/sage/categories/objects.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects r""" Objects """ diff --git a/src/sage/categories/partially_ordered_monoids.py b/src/sage/categories/partially_ordered_monoids.py index 0f41b6c330f..81c9b58734b 100644 --- a/src/sage/categories/partially_ordered_monoids.py +++ b/src/sage/categories/partially_ordered_monoids.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Partially ordered monoids """ diff --git a/src/sage/categories/permutation_groups.py b/src/sage/categories/permutation_groups.py index 7e71ad4d857..59dfaaeaaf8 100644 --- a/src/sage/categories/permutation_groups.py +++ b/src/sage/categories/permutation_groups.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Permutation groups """ diff --git a/src/sage/categories/pointed_sets.py b/src/sage/categories/pointed_sets.py index 27376140dbe..3a16a61988d 100644 --- a/src/sage/categories/pointed_sets.py +++ b/src/sage/categories/pointed_sets.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Pointed sets """ diff --git a/src/sage/categories/polyhedra.py b/src/sage/categories/polyhedra.py index 256eb99498d..9b65b40bcd9 100644 --- a/src/sage/categories/polyhedra.py +++ b/src/sage/categories/polyhedra.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Polyhedral subsets of free ZZ, QQ or RR-modules. """ diff --git a/src/sage/categories/poor_man_map.py b/src/sage/categories/poor_man_map.py index 6fc55a02104..b20aa7977c5 100644 --- a/src/sage/categories/poor_man_map.py +++ b/src/sage/categories/poor_man_map.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Poor Man's map """ diff --git a/src/sage/categories/posets.py b/src/sage/categories/posets.py index 98d1be6049d..b1d40923918 100644 --- a/src/sage/categories/posets.py +++ b/src/sage/categories/posets.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.graphs, sage.combinat r""" Posets diff --git a/src/sage/categories/primer.py b/src/sage/categories/primer.py index 0aff713bd94..7e8cb483400 100644 --- a/src/sage/categories/primer.py +++ b/src/sage/categories/primer.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects r""" Elements, parents, and categories in Sage: a primer diff --git a/src/sage/categories/principal_ideal_domains.py b/src/sage/categories/principal_ideal_domains.py index 7d9ee8c1e32..e3391a18764 100644 --- a/src/sage/categories/principal_ideal_domains.py +++ b/src/sage/categories/principal_ideal_domains.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Principal ideal domains """ diff --git a/src/sage/categories/pushout.py b/src/sage/categories/pushout.py index 7cecf57e551..6af02513f0e 100644 --- a/src/sage/categories/pushout.py +++ b/src/sage/categories/pushout.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects """ Coercion via construction functors """ diff --git a/src/sage/categories/quantum_group_representations.py b/src/sage/categories/quantum_group_representations.py index fc8a4697941..6b79ca4ea08 100644 --- a/src/sage/categories/quantum_group_representations.py +++ b/src/sage/categories/quantum_group_representations.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Quantum Group Representations diff --git a/src/sage/categories/quotient_fields.py b/src/sage/categories/quotient_fields.py index fe1b66a0fb4..a1f3b14bd90 100644 --- a/src/sage/categories/quotient_fields.py +++ b/src/sage/categories/quotient_fields.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Quotient fields """ diff --git a/src/sage/categories/quotients.py b/src/sage/categories/quotients.py index bda06208d80..97b6243d7b1 100644 --- a/src/sage/categories/quotients.py +++ b/src/sage/categories/quotients.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects """ Quotients Functorial Construction diff --git a/src/sage/categories/r_trivial_semigroups.py b/src/sage/categories/r_trivial_semigroups.py index a73f28931eb..840970e97c8 100644 --- a/src/sage/categories/r_trivial_semigroups.py +++ b/src/sage/categories/r_trivial_semigroups.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" R-trivial semigroups """ diff --git a/src/sage/categories/realizations.py b/src/sage/categories/realizations.py index d22b6f6a80a..f73652b8357 100644 --- a/src/sage/categories/realizations.py +++ b/src/sage/categories/realizations.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects """ Realizations Covariant Functorial Construction diff --git a/src/sage/categories/regular_crystals.py b/src/sage/categories/regular_crystals.py index 5a0ac6291b5..3af41941d42 100644 --- a/src/sage/categories/regular_crystals.py +++ b/src/sage/categories/regular_crystals.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.combinat sage.graphs r""" Regular Crystals diff --git a/src/sage/categories/regular_supercrystals.py b/src/sage/categories/regular_supercrystals.py index 044f556a1f7..f7f6f3fa80e 100644 --- a/src/sage/categories/regular_supercrystals.py +++ b/src/sage/categories/regular_supercrystals.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.combinat sage.graphs r""" Regular Supercrystals diff --git a/src/sage/categories/right_modules.py b/src/sage/categories/right_modules.py index 47a8081d2a9..aa6582f2400 100644 --- a/src/sage/categories/right_modules.py +++ b/src/sage/categories/right_modules.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Right modules """ diff --git a/src/sage/categories/ring_ideals.py b/src/sage/categories/ring_ideals.py index fd634f1caef..2b28d4c0e2f 100644 --- a/src/sage/categories/ring_ideals.py +++ b/src/sage/categories/ring_ideals.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Ring ideals """ diff --git a/src/sage/categories/rings.py b/src/sage/categories/rings.py index 24a858f3525..8fcbee3135a 100644 --- a/src/sage/categories/rings.py +++ b/src/sage/categories/rings.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Rings """ diff --git a/src/sage/categories/rngs.py b/src/sage/categories/rngs.py index 1841b45d1d5..e1a04c939c8 100644 --- a/src/sage/categories/rngs.py +++ b/src/sage/categories/rngs.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Rngs """ diff --git a/src/sage/categories/schemes.py b/src/sage/categories/schemes.py index d27ac1fafd7..b0c690c7ce2 100644 --- a/src/sage/categories/schemes.py +++ b/src/sage/categories/schemes.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Schemes """ diff --git a/src/sage/categories/semigroups.py b/src/sage/categories/semigroups.py index 8f2c57feeb9..e5e91436cad 100644 --- a/src/sage/categories/semigroups.py +++ b/src/sage/categories/semigroups.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Semigroups """ diff --git a/src/sage/categories/semirings.py b/src/sage/categories/semirings.py index 62e6f7d918f..624a867608a 100644 --- a/src/sage/categories/semirings.py +++ b/src/sage/categories/semirings.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Semirngs """ diff --git a/src/sage/categories/semisimple_algebras.py b/src/sage/categories/semisimple_algebras.py index 453b854b7e7..7837a140608 100644 --- a/src/sage/categories/semisimple_algebras.py +++ b/src/sage/categories/semisimple_algebras.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Semisimple Algebras """ diff --git a/src/sage/categories/sets_cat.py b/src/sage/categories/sets_cat.py index df0e3abee86..9c57168574d 100644 --- a/src/sage/categories/sets_cat.py +++ b/src/sage/categories/sets_cat.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects r""" Sets """ diff --git a/src/sage/categories/sets_with_grading.py b/src/sage/categories/sets_with_grading.py index a29d8c9c59c..9f9037e94b5 100644 --- a/src/sage/categories/sets_with_grading.py +++ b/src/sage/categories/sets_with_grading.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Sets With a Grading """ diff --git a/src/sage/categories/sets_with_partial_maps.py b/src/sage/categories/sets_with_partial_maps.py index 4210548b0fd..01993c2fb82 100644 --- a/src/sage/categories/sets_with_partial_maps.py +++ b/src/sage/categories/sets_with_partial_maps.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects r""" SetsWithPartialMaps """ diff --git a/src/sage/categories/shephard_groups.py b/src/sage/categories/shephard_groups.py index 945274bcd84..2b68f4d37d8 100644 --- a/src/sage/categories/shephard_groups.py +++ b/src/sage/categories/shephard_groups.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Shephard Groups """ diff --git a/src/sage/categories/signed_tensor.py b/src/sage/categories/signed_tensor.py index c5281b7275a..f11c9a9f2bb 100644 --- a/src/sage/categories/signed_tensor.py +++ b/src/sage/categories/signed_tensor.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Signed Tensor Product Functorial Construction diff --git a/src/sage/categories/simplicial_complexes.py b/src/sage/categories/simplicial_complexes.py index 9750dcab686..6cd81a778cb 100644 --- a/src/sage/categories/simplicial_complexes.py +++ b/src/sage/categories/simplicial_complexes.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Simplicial Complexes """ diff --git a/src/sage/categories/simplicial_sets.py b/src/sage/categories/simplicial_sets.py index 7b7bbf827af..6d5ac1823a3 100644 --- a/src/sage/categories/simplicial_sets.py +++ b/src/sage/categories/simplicial_sets.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Simplicial Sets """ diff --git a/src/sage/categories/subobjects.py b/src/sage/categories/subobjects.py index 53ad660d75a..367b599d05a 100644 --- a/src/sage/categories/subobjects.py +++ b/src/sage/categories/subobjects.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects """ Subobjects Functorial Construction diff --git a/src/sage/categories/subquotients.py b/src/sage/categories/subquotients.py index ede07cadec1..d4ced65976d 100644 --- a/src/sage/categories/subquotients.py +++ b/src/sage/categories/subquotients.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects """ Subquotient Functorial Construction diff --git a/src/sage/categories/super_algebras.py b/src/sage/categories/super_algebras.py index d63b2cc6da5..caf62fc23e4 100644 --- a/src/sage/categories/super_algebras.py +++ b/src/sage/categories/super_algebras.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Super Algebras """ diff --git a/src/sage/categories/super_algebras_with_basis.py b/src/sage/categories/super_algebras_with_basis.py index 014fe6e563e..46731a1609f 100644 --- a/src/sage/categories/super_algebras_with_basis.py +++ b/src/sage/categories/super_algebras_with_basis.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Super algebras with basis """ diff --git a/src/sage/categories/super_hopf_algebras_with_basis.py b/src/sage/categories/super_hopf_algebras_with_basis.py index b3b86d0973d..f66ada295e7 100644 --- a/src/sage/categories/super_hopf_algebras_with_basis.py +++ b/src/sage/categories/super_hopf_algebras_with_basis.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Super Hopf algebras with basis """ diff --git a/src/sage/categories/super_lie_conformal_algebras.py b/src/sage/categories/super_lie_conformal_algebras.py index 9e38c4aa3e1..8e6c0865cfb 100644 --- a/src/sage/categories/super_lie_conformal_algebras.py +++ b/src/sage/categories/super_lie_conformal_algebras.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Super Lie Conformal Algebras diff --git a/src/sage/categories/super_modules.py b/src/sage/categories/super_modules.py index a6d17ea32b0..9dd6cc0675c 100644 --- a/src/sage/categories/super_modules.py +++ b/src/sage/categories/super_modules.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Super modules """ diff --git a/src/sage/categories/super_modules_with_basis.py b/src/sage/categories/super_modules_with_basis.py index ef4bbc048e8..3992deb600e 100644 --- a/src/sage/categories/super_modules_with_basis.py +++ b/src/sage/categories/super_modules_with_basis.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Super modules with basis """ diff --git a/src/sage/categories/supercommutative_algebras.py b/src/sage/categories/supercommutative_algebras.py index 1928c7057dc..2b35e4de93c 100644 --- a/src/sage/categories/supercommutative_algebras.py +++ b/src/sage/categories/supercommutative_algebras.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Supercommutative Algebras """ diff --git a/src/sage/categories/supercrystals.py b/src/sage/categories/supercrystals.py index 239aa8c0a86..0f3fc9702e4 100644 --- a/src/sage/categories/supercrystals.py +++ b/src/sage/categories/supercrystals.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.graphs sage.combinat r""" Supercrystals diff --git a/src/sage/categories/tensor.py b/src/sage/categories/tensor.py index 01208e6217e..11e470e378f 100644 --- a/src/sage/categories/tensor.py +++ b/src/sage/categories/tensor.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Tensor Product Functorial Construction diff --git a/src/sage/categories/topological_spaces.py b/src/sage/categories/topological_spaces.py index 7ab806e6a2b..5a4d0affb51 100644 --- a/src/sage/categories/topological_spaces.py +++ b/src/sage/categories/topological_spaces.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Topological Spaces """ diff --git a/src/sage/categories/triangular_kac_moody_algebras.py b/src/sage/categories/triangular_kac_moody_algebras.py index f5730707d36..0a7988282d3 100644 --- a/src/sage/categories/triangular_kac_moody_algebras.py +++ b/src/sage/categories/triangular_kac_moody_algebras.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Kac-Moody Algebras With Triangular Decomposition Basis diff --git a/src/sage/categories/tutorial.py b/src/sage/categories/tutorial.py index fc2e2abe6f9..2c4ae1b2447 100644 --- a/src/sage/categories/tutorial.py +++ b/src/sage/categories/tutorial.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Implementing a new parent: a tutorial diff --git a/src/sage/categories/unique_factorization_domains.py b/src/sage/categories/unique_factorization_domains.py index 851bfe80175..69076b55388 100644 --- a/src/sage/categories/unique_factorization_domains.py +++ b/src/sage/categories/unique_factorization_domains.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Unique factorization domains """ diff --git a/src/sage/categories/unital_algebras.py b/src/sage/categories/unital_algebras.py index 8e58f12e167..f1957e848a7 100644 --- a/src/sage/categories/unital_algebras.py +++ b/src/sage/categories/unital_algebras.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Unital algebras """ diff --git a/src/sage/categories/vector_bundles.py b/src/sage/categories/vector_bundles.py index 3f3bed1f2d0..7f190a3ed81 100644 --- a/src/sage/categories/vector_bundles.py +++ b/src/sage/categories/vector_bundles.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.symbolic r""" Vector Bundles diff --git a/src/sage/categories/vector_spaces.py b/src/sage/categories/vector_spaces.py index 9497c143862..354d0423295 100644 --- a/src/sage/categories/vector_spaces.py +++ b/src/sage/categories/vector_spaces.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Vector Spaces """ diff --git a/src/sage/categories/weyl_groups.py b/src/sage/categories/weyl_groups.py index b28cf132f19..ccca7adf515 100644 --- a/src/sage/categories/weyl_groups.py +++ b/src/sage/categories/weyl_groups.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.combinat sage.groups r""" Weyl Groups diff --git a/src/sage/categories/with_realizations.py b/src/sage/categories/with_realizations.py index eaabcdaf04a..b747bdbedeb 100644 --- a/src/sage/categories/with_realizations.py +++ b/src/sage/categories/with_realizations.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects """ With Realizations Covariant Functorial Construction diff --git a/src/sage/coding/abstract_code.py b/src/sage/coding/abstract_code.py index ed84dc12517..286f191f8b3 100644 --- a/src/sage/coding/abstract_code.py +++ b/src/sage/coding/abstract_code.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: optional - sage.modules sage.rings.finite_rings r""" Codes diff --git a/src/sage/coding/ag_code.py b/src/sage/coding/ag_code.py index 0f189bb69a0..32832f0550d 100644 --- a/src/sage/coding/ag_code.py +++ b/src/sage/coding/ag_code.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: optional - sage.rings.finite_rings sage.schemes """ AG codes diff --git a/src/sage/coding/ag_code_decoders.pyx b/src/sage/coding/ag_code_decoders.pyx index 9ce2aa2f8ce..555f42c90f1 100644 --- a/src/sage/coding/ag_code_decoders.pyx +++ b/src/sage/coding/ag_code_decoders.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: optional - sage.rings.finite_rings sage.schemes r""" Decoders for AG codes diff --git a/src/sage/coding/all.py b/src/sage/coding/all.py index e5ff88308b7..4f91905c532 100644 --- a/src/sage/coding/all.py +++ b/src/sage/coding/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.misc.lazy_import import lazy_import as _lazy_import diff --git a/src/sage/coding/bch_code.py b/src/sage/coding/bch_code.py index 40fa088354a..2532f189e92 100644 --- a/src/sage/coding/bch_code.py +++ b/src/sage/coding/bch_code.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: optional - sage.modules sage.rings.finite_rings r""" BCH code diff --git a/src/sage/coding/binary_code.pxd b/src/sage/coding/binary_code.pxd index 38be220c731..1a1f0f95220 100644 --- a/src/sage/coding/binary_code.pxd +++ b/src/sage/coding/binary_code.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules cdef int *hamming_weights() noexcept ctypedef unsigned int codeword diff --git a/src/sage/coding/binary_code.pyx b/src/sage/coding/binary_code.pyx index 81065a7dbd3..ace250d3e2c 100644 --- a/src/sage/coding/binary_code.pyx +++ b/src/sage/coding/binary_code.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: optional - sage.modules sage.rings.finite_rings r""" Optimized low-level binary code representation diff --git a/src/sage/coding/bounds_catalog.py b/src/sage/coding/bounds_catalog.py index aa4c2dd9996..ef354485820 100644 --- a/src/sage/coding/bounds_catalog.py +++ b/src/sage/coding/bounds_catalog.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Index of bounds on the parameters of codes diff --git a/src/sage/coding/channel.py b/src/sage/coding/channel.py index 160afef9bd1..0afaf4dc27a 100644 --- a/src/sage/coding/channel.py +++ b/src/sage/coding/channel.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: optional - sage.modules sage.rings.finite_rings r""" Channels diff --git a/src/sage/coding/channels_catalog.py b/src/sage/coding/channels_catalog.py index b121fe847d8..464c06c1906 100644 --- a/src/sage/coding/channels_catalog.py +++ b/src/sage/coding/channels_catalog.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Index of channels diff --git a/src/sage/coding/code_bounds.py b/src/sage/coding/code_bounds.py index b192792f11f..8e1b2d8304b 100644 --- a/src/sage/coding/code_bounds.py +++ b/src/sage/coding/code_bounds.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Bounds for parameters of codes diff --git a/src/sage/coding/code_constructions.py b/src/sage/coding/code_constructions.py index 6870c28ec87..0c1fa8eceff 100644 --- a/src/sage/coding/code_constructions.py +++ b/src/sage/coding/code_constructions.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: optional - sage.modules sage.rings.finite_rings r""" Linear code constructors that do not preserve the structural information diff --git a/src/sage/coding/codecan/all.py b/src/sage/coding/codecan/all.py index e69de29bb2d..dd59a6da735 100644 --- a/src/sage/coding/codecan/all.py +++ b/src/sage/coding/codecan/all.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-gap diff --git a/src/sage/coding/codecan/autgroup_can_label.pyx b/src/sage/coding/codecan/autgroup_can_label.pyx index f656771e179..21a6b4dfaa5 100644 --- a/src/sage/coding/codecan/autgroup_can_label.pyx +++ b/src/sage/coding/codecan/autgroup_can_label.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap # sage.doctest: needs sage.libs.pari r""" Canonical forms and automorphisms for linear codes over finite fields diff --git a/src/sage/coding/codecan/codecan.pxd b/src/sage/coding/codecan/codecan.pxd index b76608d68e3..abbee143b3f 100644 --- a/src/sage/coding/codecan/codecan.pxd +++ b/src/sage/coding/codecan/codecan.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap from sage.groups.perm_gps.permgroup_element cimport PermutationGroupElement from sage.groups.semimonomial_transformations.semimonomial_transformation cimport SemimonomialTransformation from sage.modules.free_module_element cimport FreeModuleElement diff --git a/src/sage/coding/codecan/codecan.pyx b/src/sage/coding/codecan/codecan.pyx index 4276fffda68..13d32597524 100644 --- a/src/sage/coding/codecan/codecan.pyx +++ b/src/sage/coding/codecan/codecan.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap r""" Canonical forms and automorphism group computation for linear codes over finite fields diff --git a/src/sage/coding/codes_catalog.py b/src/sage/coding/codes_catalog.py index 96021d5fdd3..b8b855ef5d6 100644 --- a/src/sage/coding/codes_catalog.py +++ b/src/sage/coding/codes_catalog.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Index of code constructions diff --git a/src/sage/coding/cyclic_code.py b/src/sage/coding/cyclic_code.py index 342b40d45c9..8d75f1edfc6 100644 --- a/src/sage/coding/cyclic_code.py +++ b/src/sage/coding/cyclic_code.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: optional - sage.modules sage.rings.finite_rings r""" Cyclic code diff --git a/src/sage/coding/databases.py b/src/sage/coding/databases.py index 989d67e89d8..3e0b19e7485 100644 --- a/src/sage/coding/databases.py +++ b/src/sage/coding/databases.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: optional - sage.modules sage.rings.finite_rings r""" Access functions to online databases for coding theory diff --git a/src/sage/coding/decoder.py b/src/sage/coding/decoder.py index 503c31a3b39..865effc82a4 100644 --- a/src/sage/coding/decoder.py +++ b/src/sage/coding/decoder.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: optional - sage.modules sage.rings.finite_rings r""" Decoders diff --git a/src/sage/coding/decoders_catalog.py b/src/sage/coding/decoders_catalog.py index a9f2417880e..0db103c8b09 100644 --- a/src/sage/coding/decoders_catalog.py +++ b/src/sage/coding/decoders_catalog.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Index of decoders diff --git a/src/sage/coding/delsarte_bounds.py b/src/sage/coding/delsarte_bounds.py index e25c0a4faf4..aab8eee62b4 100644 --- a/src/sage/coding/delsarte_bounds.py +++ b/src/sage/coding/delsarte_bounds.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Delsarte (or linear programming) bounds diff --git a/src/sage/coding/encoder.py b/src/sage/coding/encoder.py index b2245e6d653..691a09b5532 100644 --- a/src/sage/coding/encoder.py +++ b/src/sage/coding/encoder.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: optional - sage.modules sage.rings.finite_rings r""" Encoders diff --git a/src/sage/coding/encoders_catalog.py b/src/sage/coding/encoders_catalog.py index e6ac68267fd..a22a897c8da 100644 --- a/src/sage/coding/encoders_catalog.py +++ b/src/sage/coding/encoders_catalog.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Index of encoders diff --git a/src/sage/coding/extended_code.py b/src/sage/coding/extended_code.py index c27acc58066..0082156c89f 100644 --- a/src/sage/coding/extended_code.py +++ b/src/sage/coding/extended_code.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: optional - sage.modules sage.rings.finite_rings r""" Extended code diff --git a/src/sage/coding/gabidulin_code.py b/src/sage/coding/gabidulin_code.py index 0ba1d13ec41..513cad4a82a 100644 --- a/src/sage/coding/gabidulin_code.py +++ b/src/sage/coding/gabidulin_code.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: optional - sage.modules sage.rings.finite_rings r""" Gabidulin Code diff --git a/src/sage/coding/golay_code.py b/src/sage/coding/golay_code.py index e698605825e..69ef064b766 100644 --- a/src/sage/coding/golay_code.py +++ b/src/sage/coding/golay_code.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Golay code diff --git a/src/sage/coding/goppa_code.py b/src/sage/coding/goppa_code.py index a642fb86049..6de6742ad11 100644 --- a/src/sage/coding/goppa_code.py +++ b/src/sage/coding/goppa_code.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: optional - sage.modules sage.rings.finite_rings r""" Goppa code diff --git a/src/sage/coding/grs_code.py b/src/sage/coding/grs_code.py index 82a0a5cfe72..b19efd0a186 100644 --- a/src/sage/coding/grs_code.py +++ b/src/sage/coding/grs_code.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: optional - sage.modules sage.rings.finite_rings r""" Reed-Solomon codes and Generalized Reed-Solomon codes diff --git a/src/sage/coding/guava.py b/src/sage/coding/guava.py index 92e2dc80451..6916d5ae290 100644 --- a/src/sage/coding/guava.py +++ b/src/sage/coding/guava.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: optional - sage.libs.gap sage.modules sage.rings.finite_rings r""" Constructions of generator matrices using the GUAVA package for GAP diff --git a/src/sage/coding/guruswami_sudan/all.py b/src/sage/coding/guruswami_sudan/all.py index e69de29bb2d..6f6ab52d0f2 100644 --- a/src/sage/coding/guruswami_sudan/all.py +++ b/src/sage/coding/guruswami_sudan/all.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-modules diff --git a/src/sage/coding/guruswami_sudan/gs_decoder.py b/src/sage/coding/guruswami_sudan/gs_decoder.py index bf4c78d71e4..add8de5f5c9 100644 --- a/src/sage/coding/guruswami_sudan/gs_decoder.py +++ b/src/sage/coding/guruswami_sudan/gs_decoder.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.modules sage.rings.finite_rings r""" Guruswami-Sudan decoder for (Generalized) Reed-Solomon codes diff --git a/src/sage/coding/guruswami_sudan/interpolation.py b/src/sage/coding/guruswami_sudan/interpolation.py index 62ed9f3a8f1..b5723a43eeb 100644 --- a/src/sage/coding/guruswami_sudan/interpolation.py +++ b/src/sage/coding/guruswami_sudan/interpolation.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: optional - sage.modules sage.rings.finite_rings """ Interpolation algorithms for the Guruswami-Sudan decoder diff --git a/src/sage/coding/guruswami_sudan/utils.py b/src/sage/coding/guruswami_sudan/utils.py index d899bd0e12e..23b0ed0112c 100644 --- a/src/sage/coding/guruswami_sudan/utils.py +++ b/src/sage/coding/guruswami_sudan/utils.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: optional - sage.modules sage.rings.finite_rings r""" Guruswami-Sudan utility methods diff --git a/src/sage/coding/hamming_code.py b/src/sage/coding/hamming_code.py index 5209a0c3754..a15a0c1cd63 100644 --- a/src/sage/coding/hamming_code.py +++ b/src/sage/coding/hamming_code.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: optional - sage.modules sage.rings.finite_rings r""" Hamming codes diff --git a/src/sage/coding/information_set_decoder.py b/src/sage/coding/information_set_decoder.py index dad1f2b06f3..013fc579fd4 100644 --- a/src/sage/coding/information_set_decoder.py +++ b/src/sage/coding/information_set_decoder.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: optional - sage.modules sage.rings.finite_rings r""" Information-set decoding for linear codes diff --git a/src/sage/coding/kasami_codes.pyx b/src/sage/coding/kasami_codes.pyx index 4c35ed34e33..ffc137a8fb1 100644 --- a/src/sage/coding/kasami_codes.pyx +++ b/src/sage/coding/kasami_codes.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: optional - sage.modules sage.rings.finite_rings r""" Kasami code diff --git a/src/sage/coding/linear_code.py b/src/sage/coding/linear_code.py index f8f051a00d9..22381166d66 100644 --- a/src/sage/coding/linear_code.py +++ b/src/sage/coding/linear_code.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: optional - sage.modules sage.rings.finite_rings r""" Generic structures for linear codes over the Hamming metric diff --git a/src/sage/coding/linear_code_no_metric.py b/src/sage/coding/linear_code_no_metric.py index 2ae0879fa74..b4313d54c23 100644 --- a/src/sage/coding/linear_code_no_metric.py +++ b/src/sage/coding/linear_code_no_metric.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: optional - sage.modules sage.rings.finite_rings r""" Generic structures for linear codes of any metric diff --git a/src/sage/coding/linear_rank_metric.py b/src/sage/coding/linear_rank_metric.py index 6a7cd14cb62..c65d79b03e4 100644 --- a/src/sage/coding/linear_rank_metric.py +++ b/src/sage/coding/linear_rank_metric.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: optional - sage.modules sage.rings.finite_rings r""" Generic structures for linear codes over the rank metric diff --git a/src/sage/coding/parity_check_code.py b/src/sage/coding/parity_check_code.py index 0adafbbba57..6ba44d2d4a7 100644 --- a/src/sage/coding/parity_check_code.py +++ b/src/sage/coding/parity_check_code.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: optional - sage.modules sage.rings.finite_rings r""" Parity-check code diff --git a/src/sage/coding/punctured_code.py b/src/sage/coding/punctured_code.py index 7aafa4f3f27..5f1b6b72ca8 100644 --- a/src/sage/coding/punctured_code.py +++ b/src/sage/coding/punctured_code.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: optional - sage.modules sage.rings.finite_rings r""" Punctured code diff --git a/src/sage/coding/reed_muller_code.py b/src/sage/coding/reed_muller_code.py index 6ea8a904722..07200c42cd3 100644 --- a/src/sage/coding/reed_muller_code.py +++ b/src/sage/coding/reed_muller_code.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: optional - sage.modules sage.rings.finite_rings r""" Reed-Muller code diff --git a/src/sage/coding/self_dual_codes.py b/src/sage/coding/self_dual_codes.py index d60d161d28d..14f2989d9bd 100644 --- a/src/sage/coding/self_dual_codes.py +++ b/src/sage/coding/self_dual_codes.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: optional - sage.groups sage.modules r""" Enumerating binary self-dual codes diff --git a/src/sage/coding/source_coding/all.py b/src/sage/coding/source_coding/all.py index dc95b1fb9f3..21261ee6cef 100644 --- a/src/sage/coding/source_coding/all.py +++ b/src/sage/coding/source_coding/all.py @@ -1 +1,2 @@ +# sage_setup: distribution = sagemath-modules from .huffman import Huffman diff --git a/src/sage/coding/source_coding/huffman.py b/src/sage/coding/source_coding/huffman.py index 1d41f84d77f..f8f2f4367c8 100644 --- a/src/sage/coding/source_coding/huffman.py +++ b/src/sage/coding/source_coding/huffman.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Huffman encoding diff --git a/src/sage/coding/subfield_subcode.py b/src/sage/coding/subfield_subcode.py index c876ef73e63..f74356a4939 100644 --- a/src/sage/coding/subfield_subcode.py +++ b/src/sage/coding/subfield_subcode.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: optional - sage.modules sage.rings.finite_rings r""" Subfield subcode diff --git a/src/sage/coding/two_weight_db.py b/src/sage/coding/two_weight_db.py index 1ad3d584310..e42edbf39f7 100644 --- a/src/sage/coding/two_weight_db.py +++ b/src/sage/coding/two_weight_db.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: optional - sage.modules sage.rings.finite_rings r""" Database of two-weight codes diff --git a/src/sage/combinat/abstract_tree.py b/src/sage/combinat/abstract_tree.py index e25c0606769..7f5964c8bd1 100644 --- a/src/sage/combinat/abstract_tree.py +++ b/src/sage/combinat/abstract_tree.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" Abstract Recursive Trees diff --git a/src/sage/combinat/affine_permutation.py b/src/sage/combinat/affine_permutation.py index d0ce08e3e83..c9d23b70664 100644 --- a/src/sage/combinat/affine_permutation.py +++ b/src/sage/combinat/affine_permutation.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.groups r""" Affine Permutations diff --git a/src/sage/combinat/algebraic_combinatorics.py b/src/sage/combinat/algebraic_combinatorics.py index a024d2fa67d..d492231278f 100644 --- a/src/sage/combinat/algebraic_combinatorics.py +++ b/src/sage/combinat/algebraic_combinatorics.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Algebraic combinatorics diff --git a/src/sage/combinat/all.py b/src/sage/combinat/all.py index 79690ff7305..8476588d89b 100644 --- a/src/sage/combinat/all.py +++ b/src/sage/combinat/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Combinatorics diff --git a/src/sage/combinat/alternating_sign_matrix.py b/src/sage/combinat/alternating_sign_matrix.py index e4eec5eedaf..d8ba4dfba31 100644 --- a/src/sage/combinat/alternating_sign_matrix.py +++ b/src/sage/combinat/alternating_sign_matrix.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Alternating Sign Matrices diff --git a/src/sage/combinat/backtrack.py b/src/sage/combinat/backtrack.py index ab9c35bc23c..6e473a7f8fa 100644 --- a/src/sage/combinat/backtrack.py +++ b/src/sage/combinat/backtrack.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Backtracking diff --git a/src/sage/combinat/baxter_permutations.py b/src/sage/combinat/baxter_permutations.py index 648ce9c6a26..0b8bd1c3a10 100644 --- a/src/sage/combinat/baxter_permutations.py +++ b/src/sage/combinat/baxter_permutations.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat """ Baxter permutations """ diff --git a/src/sage/combinat/bijectionist.py b/src/sage/combinat/bijectionist.py index 60df5195e9e..e0dd12de066 100644 --- a/src/sage/combinat/bijectionist.py +++ b/src/sage/combinat/bijectionist.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.numerical.mip r""" A bijectionist's toolkit diff --git a/src/sage/combinat/binary_recurrence_sequences.py b/src/sage/combinat/binary_recurrence_sequences.py index 9c1b9bdf931..b993cda3b1b 100644 --- a/src/sage/combinat/binary_recurrence_sequences.py +++ b/src/sage/combinat/binary_recurrence_sequences.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules """ Binary Recurrence Sequences diff --git a/src/sage/combinat/binary_tree.py b/src/sage/combinat/binary_tree.py index d4afa9387cf..8e190238234 100644 --- a/src/sage/combinat/binary_tree.py +++ b/src/sage/combinat/binary_tree.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs """ Binary Trees diff --git a/src/sage/combinat/blob_algebra.py b/src/sage/combinat/blob_algebra.py index 595063a69fd..10a5d171569 100644 --- a/src/sage/combinat/blob_algebra.py +++ b/src/sage/combinat/blob_algebra.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Blob Algebras diff --git a/src/sage/combinat/cartesian_product.py b/src/sage/combinat/cartesian_product.py index 832c5f1075d..b7f8d5a65d7 100644 --- a/src/sage/combinat/cartesian_product.py +++ b/src/sage/combinat/cartesian_product.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Cartesian Products """ diff --git a/src/sage/combinat/catalog_partitions.py b/src/sage/combinat/catalog_partitions.py index ca143fa540c..c3ed14fd8c9 100644 --- a/src/sage/combinat/catalog_partitions.py +++ b/src/sage/combinat/catalog_partitions.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Enumerated sets of partitions, tableaux, ... diff --git a/src/sage/combinat/chas/all.py b/src/sage/combinat/chas/all.py index 5833abbe49c..1b4dc4ad43c 100644 --- a/src/sage/combinat/chas/all.py +++ b/src/sage/combinat/chas/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat """ Combinatorial Hopf algebras diff --git a/src/sage/combinat/chas/fsym.py b/src/sage/combinat/chas/fsym.py index 7f63a24c798..538f8ff22ad 100644 --- a/src/sage/combinat/chas/fsym.py +++ b/src/sage/combinat/chas/fsym.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Poirier-Reutenauer Hopf algebra of standard tableaux diff --git a/src/sage/combinat/chas/wqsym.py b/src/sage/combinat/chas/wqsym.py index 567e1f1b9f5..1e4df78da9e 100644 --- a/src/sage/combinat/chas/wqsym.py +++ b/src/sage/combinat/chas/wqsym.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Word Quasi-symmetric functions diff --git a/src/sage/combinat/cluster_algebra_quiver/all.py b/src/sage/combinat/cluster_algebra_quiver/all.py index 5b28d09d1c6..c15d0f7be29 100644 --- a/src/sage/combinat/cluster_algebra_quiver/all.py +++ b/src/sage/combinat/cluster_algebra_quiver/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" Cluster algebras and quivers diff --git a/src/sage/combinat/cluster_algebra_quiver/cluster_seed.py b/src/sage/combinat/cluster_algebra_quiver/cluster_seed.py index 58fa26437fa..eec416dc653 100644 --- a/src/sage/combinat/cluster_algebra_quiver/cluster_seed.py +++ b/src/sage/combinat/cluster_algebra_quiver/cluster_seed.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # sage.doctest: needs sage.graphs sage.modules r""" ClusterSeed diff --git a/src/sage/combinat/cluster_algebra_quiver/interact.py b/src/sage/combinat/cluster_algebra_quiver/interact.py index 695e3d1d449..c054ab64a89 100644 --- a/src/sage/combinat/cluster_algebra_quiver/interact.py +++ b/src/sage/combinat/cluster_algebra_quiver/interact.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs import ipywidgets as widgets from sage.misc.latex import latex from sage.repl.rich_output.pretty_print import pretty_print diff --git a/src/sage/combinat/cluster_algebra_quiver/mutation_class.py b/src/sage/combinat/cluster_algebra_quiver/mutation_class.py index fc6ec540395..fc2bc76c714 100644 --- a/src/sage/combinat/cluster_algebra_quiver/mutation_class.py +++ b/src/sage/combinat/cluster_algebra_quiver/mutation_class.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # sage.doctest: needs sage.graphs r""" mutation_class diff --git a/src/sage/combinat/cluster_algebra_quiver/mutation_type.py b/src/sage/combinat/cluster_algebra_quiver/mutation_type.py index 32f9ccc52d7..c3d0d701fb6 100644 --- a/src/sage/combinat/cluster_algebra_quiver/mutation_type.py +++ b/src/sage/combinat/cluster_algebra_quiver/mutation_type.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # sage.doctest: needs sage.graphs r""" Helper functions for mutation types of quivers diff --git a/src/sage/combinat/cluster_algebra_quiver/quiver.py b/src/sage/combinat/cluster_algebra_quiver/quiver.py index 3c4f1c65a87..0cc5defef71 100644 --- a/src/sage/combinat/cluster_algebra_quiver/quiver.py +++ b/src/sage/combinat/cluster_algebra_quiver/quiver.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # sage.doctest: needs sage.graphs sage.modules r""" Quiver diff --git a/src/sage/combinat/cluster_algebra_quiver/quiver_mutation_type.py b/src/sage/combinat/cluster_algebra_quiver/quiver_mutation_type.py index 2e36b619716..0d6913cb519 100644 --- a/src/sage/combinat/cluster_algebra_quiver/quiver_mutation_type.py +++ b/src/sage/combinat/cluster_algebra_quiver/quiver_mutation_type.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # sage.doctest: needs sage.graphs r""" Quiver mutation types diff --git a/src/sage/combinat/cluster_complex.py b/src/sage/combinat/cluster_complex.py index a1f7489f1ad..f63c7a6b9f3 100644 --- a/src/sage/combinat/cluster_complex.py +++ b/src/sage/combinat/cluster_complex.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.graphs r""" Cluster complex (or generalized dual associahedron) diff --git a/src/sage/combinat/colored_permutations.py b/src/sage/combinat/colored_permutations.py index 2d6a6c31aaa..2316527290e 100644 --- a/src/sage/combinat/colored_permutations.py +++ b/src/sage/combinat/colored_permutations.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Colored Permutations diff --git a/src/sage/combinat/combinat.py b/src/sage/combinat/combinat.py index 451f8093393..dc25a7b00fb 100644 --- a/src/sage/combinat/combinat.py +++ b/src/sage/combinat/combinat.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Combinatorial Functions diff --git a/src/sage/combinat/combinat_cython.pxd b/src/sage/combinat/combinat_cython.pxd index dfafe45f589..07f2e1b9c2f 100644 --- a/src/sage/combinat/combinat_cython.pxd +++ b/src/sage/combinat/combinat_cython.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories from sage.libs.gmp.all cimport mpz_t cdef mpz_stirling_s2(mpz_t s, unsigned long n, unsigned long k) noexcept diff --git a/src/sage/combinat/combinat_cython.pyx b/src/sage/combinat/combinat_cython.pyx index 3b8fb7aefa3..7506df95ef2 100644 --- a/src/sage/combinat/combinat_cython.pyx +++ b/src/sage/combinat/combinat_cython.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # cython: binding=True """ Fast computation of combinatorial functions (Cython + mpz) diff --git a/src/sage/combinat/combination.py b/src/sage/combinat/combination.py index 916ca836c6b..51407c49aac 100644 --- a/src/sage/combinat/combination.py +++ b/src/sage/combinat/combination.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Combinations diff --git a/src/sage/combinat/combinatorial_map.py b/src/sage/combinat/combinatorial_map.py index 84876e52f56..aff4782781b 100644 --- a/src/sage/combinat/combinatorial_map.py +++ b/src/sage/combinat/combinatorial_map.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Combinatorial maps diff --git a/src/sage/combinat/composition.py b/src/sage/combinat/composition.py index 8d01e9ac081..c5d12394ec9 100644 --- a/src/sage/combinat/composition.py +++ b/src/sage/combinat/composition.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Integer compositions diff --git a/src/sage/combinat/composition_signed.py b/src/sage/combinat/composition_signed.py index 03e9acfe31e..09a790bf88c 100644 --- a/src/sage/combinat/composition_signed.py +++ b/src/sage/combinat/composition_signed.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Signed Compositions """ diff --git a/src/sage/combinat/composition_tableau.py b/src/sage/combinat/composition_tableau.py index 8ee363fb275..cff29fdb772 100644 --- a/src/sage/combinat/composition_tableau.py +++ b/src/sage/combinat/composition_tableau.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Composition Tableaux diff --git a/src/sage/combinat/constellation.py b/src/sage/combinat/constellation.py index 0ad3151925e..73499121b19 100644 --- a/src/sage/combinat/constellation.py +++ b/src/sage/combinat/constellation.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.groups r""" Constellations diff --git a/src/sage/combinat/core.py b/src/sage/combinat/core.py index 41265d793db..7fbe02f7e16 100644 --- a/src/sage/combinat/core.py +++ b/src/sage/combinat/core.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat """ Cores diff --git a/src/sage/combinat/counting.py b/src/sage/combinat/counting.py index a067d781dec..a77803c1e46 100644 --- a/src/sage/combinat/counting.py +++ b/src/sage/combinat/counting.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Counting diff --git a/src/sage/combinat/crystals/affine.py b/src/sage/combinat/crystals/affine.py index 186d2ea373e..81ee3e29fd5 100644 --- a/src/sage/combinat/crystals/affine.py +++ b/src/sage/combinat/crystals/affine.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Affine Crystals diff --git a/src/sage/combinat/crystals/affine_factorization.py b/src/sage/combinat/crystals/affine_factorization.py index b1d820032af..ee8d8343799 100644 --- a/src/sage/combinat/crystals/affine_factorization.py +++ b/src/sage/combinat/crystals/affine_factorization.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Affine factorization crystal of type `A` diff --git a/src/sage/combinat/crystals/affinization.py b/src/sage/combinat/crystals/affinization.py index d849e407c3f..4b7a81c5f4b 100644 --- a/src/sage/combinat/crystals/affinization.py +++ b/src/sage/combinat/crystals/affinization.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Affinization Crystals diff --git a/src/sage/combinat/crystals/alcove_path.py b/src/sage/combinat/crystals/alcove_path.py index 2ae58703362..5cbea47d3ff 100644 --- a/src/sage/combinat/crystals/alcove_path.py +++ b/src/sage/combinat/crystals/alcove_path.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Alcove paths diff --git a/src/sage/combinat/crystals/all.py b/src/sage/combinat/crystals/all.py index 397639405c9..81fdea6cfc5 100644 --- a/src/sage/combinat/crystals/all.py +++ b/src/sage/combinat/crystals/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Crystals diff --git a/src/sage/combinat/crystals/bkk_crystals.py b/src/sage/combinat/crystals/bkk_crystals.py index b3658fd28a4..2163195aacb 100644 --- a/src/sage/combinat/crystals/bkk_crystals.py +++ b/src/sage/combinat/crystals/bkk_crystals.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules """ Benkart-Kang-Kashiwara crystals for the general-linear Lie superalgebra diff --git a/src/sage/combinat/crystals/catalog.py b/src/sage/combinat/crystals/catalog.py index 0c884314255..79744ccd7bc 100644 --- a/src/sage/combinat/crystals/catalog.py +++ b/src/sage/combinat/crystals/catalog.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Catalog Of Crystals diff --git a/src/sage/combinat/crystals/catalog_elementary_crystals.py b/src/sage/combinat/crystals/catalog_elementary_crystals.py index 51db8aa065a..02c97006d5a 100644 --- a/src/sage/combinat/crystals/catalog_elementary_crystals.py +++ b/src/sage/combinat/crystals/catalog_elementary_crystals.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat """ Catalog Of Elementary Crystals diff --git a/src/sage/combinat/crystals/catalog_infinity_crystals.py b/src/sage/combinat/crystals/catalog_infinity_crystals.py index 7f09b0f04f8..cbec9d97205 100644 --- a/src/sage/combinat/crystals/catalog_infinity_crystals.py +++ b/src/sage/combinat/crystals/catalog_infinity_crystals.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Catalog Of Crystal Models For `B(\infty)` diff --git a/src/sage/combinat/crystals/catalog_kirillov_reshetikhin.py b/src/sage/combinat/crystals/catalog_kirillov_reshetikhin.py index 62b196e4ed6..cfd82ccd9b4 100644 --- a/src/sage/combinat/crystals/catalog_kirillov_reshetikhin.py +++ b/src/sage/combinat/crystals/catalog_kirillov_reshetikhin.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat """ Catalog Of Crystal Models For Kirillov-Reshetikhin Crystals diff --git a/src/sage/combinat/crystals/crystals.py b/src/sage/combinat/crystals/crystals.py index fb8f150e479..12efae47147 100644 --- a/src/sage/combinat/crystals/crystals.py +++ b/src/sage/combinat/crystals/crystals.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" An introduction to crystals diff --git a/src/sage/combinat/crystals/direct_sum.py b/src/sage/combinat/crystals/direct_sum.py index 190a3279513..92474bfe3c1 100644 --- a/src/sage/combinat/crystals/direct_sum.py +++ b/src/sage/combinat/crystals/direct_sum.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules """ Direct Sum of Crystals diff --git a/src/sage/combinat/crystals/elementary_crystals.py b/src/sage/combinat/crystals/elementary_crystals.py index c89dd7504fd..27b18fcd2a1 100644 --- a/src/sage/combinat/crystals/elementary_crystals.py +++ b/src/sage/combinat/crystals/elementary_crystals.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Elementary Crystals diff --git a/src/sage/combinat/crystals/fast_crystals.py b/src/sage/combinat/crystals/fast_crystals.py index aebc499e9fb..d8c205bf228 100644 --- a/src/sage/combinat/crystals/fast_crystals.py +++ b/src/sage/combinat/crystals/fast_crystals.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Fast Rank Two Crystals diff --git a/src/sage/combinat/crystals/fully_commutative_stable_grothendieck.py b/src/sage/combinat/crystals/fully_commutative_stable_grothendieck.py index e63e1a4a3ce..92c19eb2c52 100644 --- a/src/sage/combinat/crystals/fully_commutative_stable_grothendieck.py +++ b/src/sage/combinat/crystals/fully_commutative_stable_grothendieck.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Fully commutative stable Grothendieck crystal diff --git a/src/sage/combinat/crystals/generalized_young_walls.py b/src/sage/combinat/crystals/generalized_young_walls.py index 2c859c4d492..25ed34c6068 100644 --- a/src/sage/combinat/crystals/generalized_young_walls.py +++ b/src/sage/combinat/crystals/generalized_young_walls.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Crystals of Generalized Young Walls diff --git a/src/sage/combinat/crystals/highest_weight_crystals.py b/src/sage/combinat/crystals/highest_weight_crystals.py index 96d7377c029..1272c24f027 100644 --- a/src/sage/combinat/crystals/highest_weight_crystals.py +++ b/src/sage/combinat/crystals/highest_weight_crystals.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Highest weight crystals diff --git a/src/sage/combinat/crystals/induced_structure.py b/src/sage/combinat/crystals/induced_structure.py index 95ed85bf5f8..1d308b0b9b2 100644 --- a/src/sage/combinat/crystals/induced_structure.py +++ b/src/sage/combinat/crystals/induced_structure.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Induced Crystals diff --git a/src/sage/combinat/crystals/infinity_crystals.py b/src/sage/combinat/crystals/infinity_crystals.py index 6219da38391..bc2d3d892ff 100644 --- a/src/sage/combinat/crystals/infinity_crystals.py +++ b/src/sage/combinat/crystals/infinity_crystals.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" `\mathcal{B}(\infty)` Crystals of Tableaux in Nonexceptional Types and `G_2` diff --git a/src/sage/combinat/crystals/kac_modules.py b/src/sage/combinat/crystals/kac_modules.py index 79d753ac9ae..8ee3a9d305d 100644 --- a/src/sage/combinat/crystals/kac_modules.py +++ b/src/sage/combinat/crystals/kac_modules.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules """ Crystals of Kac modules of the general-linear Lie superalgebra diff --git a/src/sage/combinat/crystals/kirillov_reshetikhin.py b/src/sage/combinat/crystals/kirillov_reshetikhin.py index 0856d337fb6..bb9255cae15 100644 --- a/src/sage/combinat/crystals/kirillov_reshetikhin.py +++ b/src/sage/combinat/crystals/kirillov_reshetikhin.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Kirillov-Reshetikhin Crystals diff --git a/src/sage/combinat/crystals/kyoto_path_model.py b/src/sage/combinat/crystals/kyoto_path_model.py index e7ae0b47275..06589da80f3 100644 --- a/src/sage/combinat/crystals/kyoto_path_model.py +++ b/src/sage/combinat/crystals/kyoto_path_model.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Kyoto Path Model for Affine Highest Weight Crystals diff --git a/src/sage/combinat/crystals/letters.pxd b/src/sage/combinat/crystals/letters.pxd index e473a02dc24..a9389082503 100644 --- a/src/sage/combinat/crystals/letters.pxd +++ b/src/sage/combinat/crystals/letters.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat from sage.structure.element cimport Element cdef class Letter(Element): diff --git a/src/sage/combinat/crystals/letters.pyx b/src/sage/combinat/crystals/letters.pyx index 368dce3a9fd..3540d3490b1 100644 --- a/src/sage/combinat/crystals/letters.pyx +++ b/src/sage/combinat/crystals/letters.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Crystals of letters diff --git a/src/sage/combinat/crystals/littelmann_path.py b/src/sage/combinat/crystals/littelmann_path.py index a90a61cb4c9..d7ec9e08fe3 100644 --- a/src/sage/combinat/crystals/littelmann_path.py +++ b/src/sage/combinat/crystals/littelmann_path.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Littelmann paths diff --git a/src/sage/combinat/crystals/monomial_crystals.py b/src/sage/combinat/crystals/monomial_crystals.py index 7ba4b52bb51..8ebf0124876 100644 --- a/src/sage/combinat/crystals/monomial_crystals.py +++ b/src/sage/combinat/crystals/monomial_crystals.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Crystals of Modified Nakajima Monomials diff --git a/src/sage/combinat/crystals/multisegments.py b/src/sage/combinat/crystals/multisegments.py index 6f63d4562a3..7580c105244 100644 --- a/src/sage/combinat/crystals/multisegments.py +++ b/src/sage/combinat/crystals/multisegments.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Crystal of Bernstein-Zelevinsky Multisegments diff --git a/src/sage/combinat/crystals/mv_polytopes.py b/src/sage/combinat/crystals/mv_polytopes.py index 341ad417443..6d78a4e3ce3 100644 --- a/src/sage/combinat/crystals/mv_polytopes.py +++ b/src/sage/combinat/crystals/mv_polytopes.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Crystal Of Mirković-Vilonen (MV) Polytopes diff --git a/src/sage/combinat/crystals/pbw_crystal.py b/src/sage/combinat/crystals/pbw_crystal.py index 9859438ae58..6db2bf4d99a 100644 --- a/src/sage/combinat/crystals/pbw_crystal.py +++ b/src/sage/combinat/crystals/pbw_crystal.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" `\mathcal{B}(\infty)` Crystal Of PBW Monomials diff --git a/src/sage/combinat/crystals/pbw_datum.pxd b/src/sage/combinat/crystals/pbw_datum.pxd index ecfbf60b842..6cfce4ffc53 100644 --- a/src/sage/combinat/crystals/pbw_datum.pxd +++ b/src/sage/combinat/crystals/pbw_datum.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat cpdef tuple compute_new_lusztig_datum(list enhanced_braid_chain, initial_lusztig_datum) noexcept cpdef tuple tropical_plucker_relation(tuple a, lusztig_datum) noexcept cpdef list enhance_braid_move_chain(braid_move_chain, cartan_type) noexcept diff --git a/src/sage/combinat/crystals/pbw_datum.pyx b/src/sage/combinat/crystals/pbw_datum.pyx index a81732cdc73..2d5f804f6e1 100644 --- a/src/sage/combinat/crystals/pbw_datum.pyx +++ b/src/sage/combinat/crystals/pbw_datum.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" PBW Data diff --git a/src/sage/combinat/crystals/polyhedral_realization.py b/src/sage/combinat/crystals/polyhedral_realization.py index c4193b44655..a9007307d32 100644 --- a/src/sage/combinat/crystals/polyhedral_realization.py +++ b/src/sage/combinat/crystals/polyhedral_realization.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Polyhedral Realization of `B(\infty)` diff --git a/src/sage/combinat/crystals/spins.pxd b/src/sage/combinat/crystals/spins.pxd index a98f1702508..e697ea23b3a 100644 --- a/src/sage/combinat/crystals/spins.pxd +++ b/src/sage/combinat/crystals/spins.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat from sage.structure.element cimport Element cdef class Spin(Element): diff --git a/src/sage/combinat/crystals/spins.pyx b/src/sage/combinat/crystals/spins.pyx index 97e8157afd5..b8cfbc624a7 100644 --- a/src/sage/combinat/crystals/spins.pyx +++ b/src/sage/combinat/crystals/spins.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Spin Crystals diff --git a/src/sage/combinat/crystals/star_crystal.py b/src/sage/combinat/crystals/star_crystal.py index 02427149ed4..45bffe85726 100644 --- a/src/sage/combinat/crystals/star_crystal.py +++ b/src/sage/combinat/crystals/star_crystal.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Star-Crystal Structure On `B(\infty)` diff --git a/src/sage/combinat/crystals/subcrystal.py b/src/sage/combinat/crystals/subcrystal.py index e712abd38c8..e2cb5482bab 100644 --- a/src/sage/combinat/crystals/subcrystal.py +++ b/src/sage/combinat/crystals/subcrystal.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Subcrystals diff --git a/src/sage/combinat/crystals/tensor_product.py b/src/sage/combinat/crystals/tensor_product.py index 5604a24665c..64ac9bc8c7d 100644 --- a/src/sage/combinat/crystals/tensor_product.py +++ b/src/sage/combinat/crystals/tensor_product.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules """ Tensor Products of Crystals diff --git a/src/sage/combinat/crystals/tensor_product_element.pxd b/src/sage/combinat/crystals/tensor_product_element.pxd index c1af4e1cb20..822471bbaca 100644 --- a/src/sage/combinat/crystals/tensor_product_element.pxd +++ b/src/sage/combinat/crystals/tensor_product_element.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat from sage.structure.list_clone cimport ClonableArray cdef class ImmutableListWithParent(ClonableArray): diff --git a/src/sage/combinat/crystals/tensor_product_element.pyx b/src/sage/combinat/crystals/tensor_product_element.pyx index abc5a743a4e..b4f823ed41f 100644 --- a/src/sage/combinat/crystals/tensor_product_element.pyx +++ b/src/sage/combinat/crystals/tensor_product_element.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules """ Tensor Products of Crystal Elements diff --git a/src/sage/combinat/crystals/virtual_crystal.py b/src/sage/combinat/crystals/virtual_crystal.py index a4cdc8b4ee8..747b65e0032 100644 --- a/src/sage/combinat/crystals/virtual_crystal.py +++ b/src/sage/combinat/crystals/virtual_crystal.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Virtual Crystals diff --git a/src/sage/combinat/cyclic_sieving_phenomenon.py b/src/sage/combinat/cyclic_sieving_phenomenon.py index d09168791cb..4c30662d1b5 100644 --- a/src/sage/combinat/cyclic_sieving_phenomenon.py +++ b/src/sage/combinat/cyclic_sieving_phenomenon.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Cyclic sieving phenomenon diff --git a/src/sage/combinat/debruijn_sequence.pyx b/src/sage/combinat/debruijn_sequence.pyx index 18fe9212504..80548a4f95b 100644 --- a/src/sage/combinat/debruijn_sequence.pyx +++ b/src/sage/combinat/debruijn_sequence.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # -*- coding: utf-8 -*- r""" De Bruijn sequences diff --git a/src/sage/combinat/decorated_permutation.py b/src/sage/combinat/decorated_permutation.py index f687818ef25..e427b16becc 100644 --- a/src/sage/combinat/decorated_permutation.py +++ b/src/sage/combinat/decorated_permutation.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Decorated permutations diff --git a/src/sage/combinat/degree_sequences.pyx b/src/sage/combinat/degree_sequences.pyx index fa155acdd15..7eabb7e9862 100644 --- a/src/sage/combinat/degree_sequences.pyx +++ b/src/sage/combinat/degree_sequences.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Degree sequences diff --git a/src/sage/combinat/derangements.py b/src/sage/combinat/derangements.py index d7c883c22c5..bc4ad467a8a 100644 --- a/src/sage/combinat/derangements.py +++ b/src/sage/combinat/derangements.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat """ Derangements diff --git a/src/sage/combinat/descent_algebra.py b/src/sage/combinat/descent_algebra.py index 3468d80b4b7..562ee2055ca 100644 --- a/src/sage/combinat/descent_algebra.py +++ b/src/sage/combinat/descent_algebra.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules """ Descent Algebras diff --git a/src/sage/combinat/designs/all.py b/src/sage/combinat/designs/all.py index 0948c6fa281..13c6c4ab666 100644 --- a/src/sage/combinat/designs/all.py +++ b/src/sage/combinat/designs/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" Combinatorial designs and incidence structures diff --git a/src/sage/combinat/designs/bibd.py b/src/sage/combinat/designs/bibd.py index 7363fa05f90..c073fd82750 100644 --- a/src/sage/combinat/designs/bibd.py +++ b/src/sage/combinat/designs/bibd.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" Balanced Incomplete Block Designs (BIBD) diff --git a/src/sage/combinat/designs/block_design.py b/src/sage/combinat/designs/block_design.py index 86c3b1383ee..610d9d1b8db 100644 --- a/src/sage/combinat/designs/block_design.py +++ b/src/sage/combinat/designs/block_design.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # sage.doctest: needs sage.rings.finite_rings r""" Block designs diff --git a/src/sage/combinat/designs/covering_array.py b/src/sage/combinat/designs/covering_array.py index 1596c708152..7053c66a048 100644 --- a/src/sage/combinat/designs/covering_array.py +++ b/src/sage/combinat/designs/covering_array.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" Covering Arrays (CA) diff --git a/src/sage/combinat/designs/covering_design.py b/src/sage/combinat/designs/covering_design.py index fd7172ac876..a9efc3d8b94 100644 --- a/src/sage/combinat/designs/covering_design.py +++ b/src/sage/combinat/designs/covering_design.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" Covering designs: coverings of `t`-element subsets of a `v`-set by `k`-sets diff --git a/src/sage/combinat/designs/database.py b/src/sage/combinat/designs/database.py index 5eb2b90802a..a0d9bde4920 100644 --- a/src/sage/combinat/designs/database.py +++ b/src/sage/combinat/designs/database.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" Database of small combinatorial designs diff --git a/src/sage/combinat/designs/design_catalog.py b/src/sage/combinat/designs/design_catalog.py index 8bf7f14fd0b..4f77341f9f1 100644 --- a/src/sage/combinat/designs/design_catalog.py +++ b/src/sage/combinat/designs/design_catalog.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" Catalog of designs diff --git a/src/sage/combinat/designs/designs_pyx.pxd b/src/sage/combinat/designs/designs_pyx.pxd index 8ff6bee5bd4..0363685b135 100644 --- a/src/sage/combinat/designs/designs_pyx.pxd +++ b/src/sage/combinat/designs/designs_pyx.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # Cached informations about OA(k,n) # # - max_true: max k such that OA(k,n,existence=True) previously returned True diff --git a/src/sage/combinat/designs/designs_pyx.pyx b/src/sage/combinat/designs/designs_pyx.pyx index d1800d4382e..387a00b4afa 100644 --- a/src/sage/combinat/designs/designs_pyx.pyx +++ b/src/sage/combinat/designs/designs_pyx.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" Cython functions for combinatorial designs diff --git a/src/sage/combinat/designs/difference_family.py b/src/sage/combinat/designs/difference_family.py index 393ea4b9b47..e3c60d6a2fa 100644 --- a/src/sage/combinat/designs/difference_family.py +++ b/src/sage/combinat/designs/difference_family.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" Difference families diff --git a/src/sage/combinat/designs/difference_matrices.py b/src/sage/combinat/designs/difference_matrices.py index 25986ca2c79..7e1a53f99e2 100644 --- a/src/sage/combinat/designs/difference_matrices.py +++ b/src/sage/combinat/designs/difference_matrices.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # sage.doctest: needs sage.rings.finite_rings r""" Difference Matrices diff --git a/src/sage/combinat/designs/evenly_distributed_sets.pyx b/src/sage/combinat/designs/evenly_distributed_sets.pyx index db567154ab4..d2252e95f8c 100644 --- a/src/sage/combinat/designs/evenly_distributed_sets.pyx +++ b/src/sage/combinat/designs/evenly_distributed_sets.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # sage.doctest: needs sage.rings.finite_rings r""" Evenly distributed sets in finite fields diff --git a/src/sage/combinat/designs/ext_rep.py b/src/sage/combinat/designs/ext_rep.py index 2227a1e9f63..b12fd7d9846 100644 --- a/src/sage/combinat/designs/ext_rep.py +++ b/src/sage/combinat/designs/ext_rep.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" External Representations of Block Designs diff --git a/src/sage/combinat/designs/gen_quadrangles_with_spread.pyx b/src/sage/combinat/designs/gen_quadrangles_with_spread.pyx index 72baf1a5d28..d7d0e956954 100644 --- a/src/sage/combinat/designs/gen_quadrangles_with_spread.pyx +++ b/src/sage/combinat/designs/gen_quadrangles_with_spread.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # sage.doctest: needs sage.libs.gap r""" Database of generalised quadrangles with spread diff --git a/src/sage/combinat/designs/group_divisible_designs.py b/src/sage/combinat/designs/group_divisible_designs.py index aee3bcc96cf..6342049e2e4 100644 --- a/src/sage/combinat/designs/group_divisible_designs.py +++ b/src/sage/combinat/designs/group_divisible_designs.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # sage.doctest: needs sage.rings.finite_rings r""" Group-Divisible Designs (GDD) diff --git a/src/sage/combinat/designs/incidence_structures.py b/src/sage/combinat/designs/incidence_structures.py index ad60d30a6a1..c8198342fd2 100644 --- a/src/sage/combinat/designs/incidence_structures.py +++ b/src/sage/combinat/designs/incidence_structures.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" Incidence structures (i.e. hypergraphs, i.e. set systems) diff --git a/src/sage/combinat/designs/latin_squares.py b/src/sage/combinat/designs/latin_squares.py index 69b19540c22..4d482e66057 100644 --- a/src/sage/combinat/designs/latin_squares.py +++ b/src/sage/combinat/designs/latin_squares.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # sage.doctest: needs sage.modules r""" Mutually Orthogonal Latin Squares (MOLS) diff --git a/src/sage/combinat/designs/orthogonal_arrays.py b/src/sage/combinat/designs/orthogonal_arrays.py index 312f6a4b375..01337cd8076 100644 --- a/src/sage/combinat/designs/orthogonal_arrays.py +++ b/src/sage/combinat/designs/orthogonal_arrays.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # sage.doctest: needs sage.rings.finite_rings sage.schemes r""" Orthogonal arrays (OA) diff --git a/src/sage/combinat/designs/orthogonal_arrays_build_recursive.py b/src/sage/combinat/designs/orthogonal_arrays_build_recursive.py index 56f7cbc3bac..021bab7e2c4 100644 --- a/src/sage/combinat/designs/orthogonal_arrays_build_recursive.py +++ b/src/sage/combinat/designs/orthogonal_arrays_build_recursive.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # sage.doctest: needs sage.rings.finite_rings r""" Orthogonal arrays (build recursive constructions) diff --git a/src/sage/combinat/designs/orthogonal_arrays_find_recursive.pyx b/src/sage/combinat/designs/orthogonal_arrays_find_recursive.pyx index 518c7199a77..764e202ae8e 100644 --- a/src/sage/combinat/designs/orthogonal_arrays_find_recursive.pyx +++ b/src/sage/combinat/designs/orthogonal_arrays_find_recursive.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # sage.doctest: needs sage.rings.finite_rings sage.schemes # cython: cdivision=True r""" diff --git a/src/sage/combinat/designs/resolvable_bibd.py b/src/sage/combinat/designs/resolvable_bibd.py index 347a6a4d27b..902614007bf 100644 --- a/src/sage/combinat/designs/resolvable_bibd.py +++ b/src/sage/combinat/designs/resolvable_bibd.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # sage.doctest: needs sage.rings.finite_rings r""" Resolvable Balanced Incomplete Block Design (RBIBD) diff --git a/src/sage/combinat/designs/steiner_quadruple_systems.py b/src/sage/combinat/designs/steiner_quadruple_systems.py index 8312f2f92c8..b196518c844 100644 --- a/src/sage/combinat/designs/steiner_quadruple_systems.py +++ b/src/sage/combinat/designs/steiner_quadruple_systems.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" Steiner Quadruple Systems diff --git a/src/sage/combinat/designs/subhypergraph_search.pyx b/src/sage/combinat/designs/subhypergraph_search.pyx index 267ff3b2fe0..2e4844e7aab 100644 --- a/src/sage/combinat/designs/subhypergraph_search.pyx +++ b/src/sage/combinat/designs/subhypergraph_search.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" Hypergraph isomorphic copy search diff --git a/src/sage/combinat/designs/twographs.py b/src/sage/combinat/designs/twographs.py index 8ba2bc12681..dca9ea623ff 100644 --- a/src/sage/combinat/designs/twographs.py +++ b/src/sage/combinat/designs/twographs.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" Two-graphs diff --git a/src/sage/combinat/diagram.py b/src/sage/combinat/diagram.py index 00b94920726..b8561c0f28d 100644 --- a/src/sage/combinat/diagram.py +++ b/src/sage/combinat/diagram.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Combinatorial diagrams diff --git a/src/sage/combinat/diagram_algebras.py b/src/sage/combinat/diagram_algebras.py index b09c2b40cca..51af890bc1b 100644 --- a/src/sage/combinat/diagram_algebras.py +++ b/src/sage/combinat/diagram_algebras.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Diagram and Partition Algebras diff --git a/src/sage/combinat/dlx.py b/src/sage/combinat/dlx.py index 58bb1bc624f..df63635e961 100644 --- a/src/sage/combinat/dlx.py +++ b/src/sage/combinat/dlx.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Exact Cover Problem via Dancing Links """ diff --git a/src/sage/combinat/dyck_word.py b/src/sage/combinat/dyck_word.py index 06cf887c936..2ef051e65e4 100644 --- a/src/sage/combinat/dyck_word.py +++ b/src/sage/combinat/dyck_word.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Dyck Words diff --git a/src/sage/combinat/e_one_star.py b/src/sage/combinat/e_one_star.py index a7b9c50b732..b4789c5ab18 100644 --- a/src/sage/combinat/e_one_star.py +++ b/src/sage/combinat/e_one_star.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Substitutions over unit cube faces (Rauzy fractals) diff --git a/src/sage/combinat/enumerated_sets.py b/src/sage/combinat/enumerated_sets.py index f529886da82..1554a2c5786 100644 --- a/src/sage/combinat/enumerated_sets.py +++ b/src/sage/combinat/enumerated_sets.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat """ Enumerated sets and combinatorial objects diff --git a/src/sage/combinat/enumeration_mod_permgroup.pxd b/src/sage/combinat/enumeration_mod_permgroup.pxd index 6d73f402321..e5ee8932c76 100644 --- a/src/sage/combinat/enumeration_mod_permgroup.pxd +++ b/src/sage/combinat/enumeration_mod_permgroup.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap from sage.structure.list_clone cimport ClonableIntArray cpdef list all_children(ClonableIntArray v, int max_part) noexcept diff --git a/src/sage/combinat/enumeration_mod_permgroup.pyx b/src/sage/combinat/enumeration_mod_permgroup.pyx index 742202d04ad..97be506b526 100644 --- a/src/sage/combinat/enumeration_mod_permgroup.pyx +++ b/src/sage/combinat/enumeration_mod_permgroup.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap # sage.doctest: needs sage.combinat r""" Tools for enumeration modulo the action of a permutation group diff --git a/src/sage/combinat/expnums.pyx b/src/sage/combinat/expnums.pyx index 216850b43f1..4b03dfa0957 100644 --- a/src/sage/combinat/expnums.pyx +++ b/src/sage/combinat/expnums.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Compute Bell and Uppuluri-Carpenter numbers diff --git a/src/sage/combinat/family.py b/src/sage/combinat/family.py index a7b2c592b3e..359dcc80e47 100644 --- a/src/sage/combinat/family.py +++ b/src/sage/combinat/family.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Families diff --git a/src/sage/combinat/fast_vector_partitions.pyx b/src/sage/combinat/fast_vector_partitions.pyx index 5142eb79108..42ed14c7537 100644 --- a/src/sage/combinat/fast_vector_partitions.pyx +++ b/src/sage/combinat/fast_vector_partitions.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # -*- coding: utf-8 -*- r""" Brent Yorgey's fast algorithm for integer vector (multiset) partitions. diff --git a/src/sage/combinat/finite_state_machine.py b/src/sage/combinat/finite_state_machine.py index cc4588e676e..3b86c38be3a 100644 --- a/src/sage/combinat/finite_state_machine.py +++ b/src/sage/combinat/finite_state_machine.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # sage.doctest: needs sage.graphs sage.modules r""" Finite state machines, automata, transducers diff --git a/src/sage/combinat/finite_state_machine_generators.py b/src/sage/combinat/finite_state_machine_generators.py index 94342f9b4a3..5ae3f864b3b 100644 --- a/src/sage/combinat/finite_state_machine_generators.py +++ b/src/sage/combinat/finite_state_machine_generators.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # sage.doctest: needs sage.graphs sage.modules r""" Common Automata and Transducers (Finite State Machines Generators) diff --git a/src/sage/combinat/fqsym.py b/src/sage/combinat/fqsym.py index fbfbf7b54bc..98595ccfad5 100644 --- a/src/sage/combinat/fqsym.py +++ b/src/sage/combinat/fqsym.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Free Quasi-symmetric functions diff --git a/src/sage/combinat/free_dendriform_algebra.py b/src/sage/combinat/free_dendriform_algebra.py index fb1cb498c79..b0342fda170 100644 --- a/src/sage/combinat/free_dendriform_algebra.py +++ b/src/sage/combinat/free_dendriform_algebra.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Free Dendriform Algebras diff --git a/src/sage/combinat/free_module.py b/src/sage/combinat/free_module.py index 8a97fbdc796..0a9a861e4c7 100644 --- a/src/sage/combinat/free_module.py +++ b/src/sage/combinat/free_module.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Free modules """ diff --git a/src/sage/combinat/free_prelie_algebra.py b/src/sage/combinat/free_prelie_algebra.py index cb81e811ade..2437109b758 100644 --- a/src/sage/combinat/free_prelie_algebra.py +++ b/src/sage/combinat/free_prelie_algebra.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.graphs sage.modules r""" Free Pre-Lie Algebras diff --git a/src/sage/combinat/fully_commutative_elements.py b/src/sage/combinat/fully_commutative_elements.py index c6d072eb432..9da2ee91d46 100644 --- a/src/sage/combinat/fully_commutative_elements.py +++ b/src/sage/combinat/fully_commutative_elements.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Fully commutative elements of Coxeter groups diff --git a/src/sage/combinat/fully_packed_loop.py b/src/sage/combinat/fully_packed_loop.py index 949ee9c6504..755865bc203 100644 --- a/src/sage/combinat/fully_packed_loop.py +++ b/src/sage/combinat/fully_packed_loop.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Fully packed loops diff --git a/src/sage/combinat/gelfand_tsetlin_patterns.py b/src/sage/combinat/gelfand_tsetlin_patterns.py index 676c1685484..b974848ff69 100644 --- a/src/sage/combinat/gelfand_tsetlin_patterns.py +++ b/src/sage/combinat/gelfand_tsetlin_patterns.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Gelfand-Tsetlin Patterns diff --git a/src/sage/combinat/graph_path.py b/src/sage/combinat/graph_path.py index 2fb255579dd..bf732904ab3 100644 --- a/src/sage/combinat/graph_path.py +++ b/src/sage/combinat/graph_path.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" Paths in Directed Acyclic Graphs """ diff --git a/src/sage/combinat/gray_codes.py b/src/sage/combinat/gray_codes.py index e2508e0e01c..8572fc8b183 100644 --- a/src/sage/combinat/gray_codes.py +++ b/src/sage/combinat/gray_codes.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Gray codes diff --git a/src/sage/combinat/grossman_larson_algebras.py b/src/sage/combinat/grossman_larson_algebras.py index db2f1de5eca..6520f47e2a7 100644 --- a/src/sage/combinat/grossman_larson_algebras.py +++ b/src/sage/combinat/grossman_larson_algebras.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.graphs sage.modules r""" Grossman-Larson Hopf Algebras diff --git a/src/sage/combinat/growth.py b/src/sage/combinat/growth.py index 1b711ddde5f..7832b4104e0 100644 --- a/src/sage/combinat/growth.py +++ b/src/sage/combinat/growth.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.graphs r""" Growth diagrams and dual graded graphs diff --git a/src/sage/combinat/hall_polynomial.py b/src/sage/combinat/hall_polynomial.py index 9d2326e60f8..aa52259eaf0 100644 --- a/src/sage/combinat/hall_polynomial.py +++ b/src/sage/combinat/hall_polynomial.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Hall Polynomials diff --git a/src/sage/combinat/hillman_grassl.py b/src/sage/combinat/hillman_grassl.py index 5a85d4e48d3..1eddaffd9ce 100644 --- a/src/sage/combinat/hillman_grassl.py +++ b/src/sage/combinat/hillman_grassl.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" The Hillman-Grassl correspondence diff --git a/src/sage/combinat/integer_lists/__init__.py b/src/sage/combinat/integer_lists/__init__.py index 4e0c59ff8a6..b0f381d27bf 100644 --- a/src/sage/combinat/integer_lists/__init__.py +++ b/src/sage/combinat/integer_lists/__init__.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories from .base import IntegerListsBackend, Envelope from .lists import IntegerLists from .invlex import IntegerListsLex diff --git a/src/sage/combinat/integer_lists/base.pxd b/src/sage/combinat/integer_lists/base.pxd index 3d373a64fe0..03af138ca01 100644 --- a/src/sage/combinat/integer_lists/base.pxd +++ b/src/sage/combinat/integer_lists/base.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories cdef class Envelope(): cdef readonly sign cdef f diff --git a/src/sage/combinat/integer_lists/base.pyx b/src/sage/combinat/integer_lists/base.pyx index 6da2125396e..0a463195426 100644 --- a/src/sage/combinat/integer_lists/base.pyx +++ b/src/sage/combinat/integer_lists/base.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Enumerated set of lists of integers with constraints: base classes diff --git a/src/sage/combinat/integer_lists/invlex.pxd b/src/sage/combinat/integer_lists/invlex.pxd index 143306b4448..087a4f1cc9d 100644 --- a/src/sage/combinat/integer_lists/invlex.pxd +++ b/src/sage/combinat/integer_lists/invlex.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories from sage.combinat.integer_lists.base cimport IntegerListsBackend cdef class IntegerListsBackend_invlex(IntegerListsBackend): cdef public bint check diff --git a/src/sage/combinat/integer_lists/invlex.pyx b/src/sage/combinat/integer_lists/invlex.pyx index 07036085ac0..cc1c499eb20 100644 --- a/src/sage/combinat/integer_lists/invlex.pyx +++ b/src/sage/combinat/integer_lists/invlex.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Enumerated set of lists of integers with constraints, in inverse lexicographic order diff --git a/src/sage/combinat/integer_lists/lists.py b/src/sage/combinat/integer_lists/lists.py index 9117a6076f7..37f15779650 100644 --- a/src/sage/combinat/integer_lists/lists.py +++ b/src/sage/combinat/integer_lists/lists.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Enumerated set of lists of integers with constraints: front-end diff --git a/src/sage/combinat/integer_lists/nn.py b/src/sage/combinat/integer_lists/nn.py index 4329c6164d9..8788dbc6ca8 100644 --- a/src/sage/combinat/integer_lists/nn.py +++ b/src/sage/combinat/integer_lists/nn.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories from sage.sets.family import Family from sage.combinat.integer_lists import IntegerListsLex from sage.rings.semirings.non_negative_integer_semiring import NN diff --git a/src/sage/combinat/integer_matrices.py b/src/sage/combinat/integer_matrices.py index 238d0ef4091..cefc635fbf0 100644 --- a/src/sage/combinat/integer_matrices.py +++ b/src/sage/combinat/integer_matrices.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Counting, generating, and manipulating non-negative integer matrices diff --git a/src/sage/combinat/integer_vector.py b/src/sage/combinat/integer_vector.py index 4f1176c62a8..12be6da5647 100644 --- a/src/sage/combinat/integer_vector.py +++ b/src/sage/combinat/integer_vector.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ (Non-negative) Integer vectors diff --git a/src/sage/combinat/integer_vector_weighted.py b/src/sage/combinat/integer_vector_weighted.py index c7700671c61..9ba03e5db56 100644 --- a/src/sage/combinat/integer_vector_weighted.py +++ b/src/sage/combinat/integer_vector_weighted.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat """ Weighted Integer Vectors diff --git a/src/sage/combinat/integer_vectors_mod_permgroup.py b/src/sage/combinat/integer_vectors_mod_permgroup.py index 7877fedee44..65b6def8d87 100644 --- a/src/sage/combinat/integer_vectors_mod_permgroup.py +++ b/src/sage/combinat/integer_vectors_mod_permgroup.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.groups r""" Integer vectors modulo the action of a permutation group diff --git a/src/sage/combinat/interval_posets.py b/src/sage/combinat/interval_posets.py index 260a3aa6b48..6ee5c10209d 100644 --- a/src/sage/combinat/interval_posets.py +++ b/src/sage/combinat/interval_posets.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" Tamari Interval-posets diff --git a/src/sage/combinat/k_tableau.py b/src/sage/combinat/k_tableau.py index 69feb00dd8b..81d08a395a9 100644 --- a/src/sage/combinat/k_tableau.py +++ b/src/sage/combinat/k_tableau.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Strong and weak tableaux diff --git a/src/sage/combinat/kazhdan_lusztig.py b/src/sage/combinat/kazhdan_lusztig.py index 11e50379d1d..25c5447e32a 100644 --- a/src/sage/combinat/kazhdan_lusztig.py +++ b/src/sage/combinat/kazhdan_lusztig.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Kazhdan-Lusztig Polynomials diff --git a/src/sage/combinat/key_polynomial.py b/src/sage/combinat/key_polynomial.py index 43db18cc72f..b565b471420 100644 --- a/src/sage/combinat/key_polynomial.py +++ b/src/sage/combinat/key_polynomial.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Key polynomials diff --git a/src/sage/combinat/knutson_tao_puzzles.py b/src/sage/combinat/knutson_tao_puzzles.py index 1c0215fa093..e5e76ccbb57 100644 --- a/src/sage/combinat/knutson_tao_puzzles.py +++ b/src/sage/combinat/knutson_tao_puzzles.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Knutson-Tao Puzzles diff --git a/src/sage/combinat/lr_tableau.py b/src/sage/combinat/lr_tableau.py index a94f576a134..c424dbdbb67 100644 --- a/src/sage/combinat/lr_tableau.py +++ b/src/sage/combinat/lr_tableau.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Littlewood-Richardson tableaux diff --git a/src/sage/combinat/matrices/all.py b/src/sage/combinat/matrices/all.py index 0f6adbb5355..566fba98239 100644 --- a/src/sage/combinat/matrices/all.py +++ b/src/sage/combinat/matrices/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Combinatorics on matrices diff --git a/src/sage/combinat/matrices/dancing_links.pyx b/src/sage/combinat/matrices/dancing_links.pyx index 99dc42b3477..df8fd8cb250 100644 --- a/src/sage/combinat/matrices/dancing_links.pyx +++ b/src/sage/combinat/matrices/dancing_links.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # -*- coding: utf-8 -*- # distutils: language = c++ """ diff --git a/src/sage/combinat/matrices/dlxcpp.py b/src/sage/combinat/matrices/dlxcpp.py index 3cdc3774d76..7c41db0a8f7 100644 --- a/src/sage/combinat/matrices/dlxcpp.py +++ b/src/sage/combinat/matrices/dlxcpp.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Dancing links C++ wrapper """ diff --git a/src/sage/combinat/matrices/hadamard_matrix.py b/src/sage/combinat/matrices/hadamard_matrix.py index 29276a3ddad..ca2d70870ea 100644 --- a/src/sage/combinat/matrices/hadamard_matrix.py +++ b/src/sage/combinat/matrices/hadamard_matrix.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.graphs sage.modules r""" Hadamard matrices diff --git a/src/sage/combinat/matrices/latin.py b/src/sage/combinat/matrices/latin.py index 460c44a6441..667a1d1b018 100644 --- a/src/sage/combinat/matrices/latin.py +++ b/src/sage/combinat/matrices/latin.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.groups sage.modules r""" Latin Squares diff --git a/src/sage/combinat/misc.py b/src/sage/combinat/misc.py index 2a4341e8f4c..81a3b80c9c5 100644 --- a/src/sage/combinat/misc.py +++ b/src/sage/combinat/misc.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Miscellaneous """ diff --git a/src/sage/combinat/multiset_partition_into_sets_ordered.py b/src/sage/combinat/multiset_partition_into_sets_ordered.py index 967f6ad93af..0e688693f75 100755 --- a/src/sage/combinat/multiset_partition_into_sets_ordered.py +++ b/src/sage/combinat/multiset_partition_into_sets_ordered.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Ordered Multiset Partitions into Sets and the Minimaj Crystal diff --git a/src/sage/combinat/ncsf_qsym/all.py b/src/sage/combinat/ncsf_qsym/all.py index db6cb1f065e..fda00d50941 100644 --- a/src/sage/combinat/ncsf_qsym/all.py +++ b/src/sage/combinat/ncsf_qsym/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Non-commutative symmetric functions and quasi-symmetric functions diff --git a/src/sage/combinat/ncsf_qsym/combinatorics.py b/src/sage/combinat/ncsf_qsym/combinatorics.py index cba0de3d45b..f53a782d82b 100644 --- a/src/sage/combinat/ncsf_qsym/combinatorics.py +++ b/src/sage/combinat/ncsf_qsym/combinatorics.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Common combinatorial tools diff --git a/src/sage/combinat/ncsf_qsym/generic_basis_code.py b/src/sage/combinat/ncsf_qsym/generic_basis_code.py index 4fe908d727c..a11f23cdf67 100644 --- a/src/sage/combinat/ncsf_qsym/generic_basis_code.py +++ b/src/sage/combinat/ncsf_qsym/generic_basis_code.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules """ Generic code for bases diff --git a/src/sage/combinat/ncsf_qsym/ncsf.py b/src/sage/combinat/ncsf_qsym/ncsf.py index 91284a4186f..a243752f98a 100644 --- a/src/sage/combinat/ncsf_qsym/ncsf.py +++ b/src/sage/combinat/ncsf_qsym/ncsf.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules """ Non-Commutative Symmetric Functions diff --git a/src/sage/combinat/ncsf_qsym/qsym.py b/src/sage/combinat/ncsf_qsym/qsym.py index 75b60c617a5..b0464b2507f 100644 --- a/src/sage/combinat/ncsf_qsym/qsym.py +++ b/src/sage/combinat/ncsf_qsym/qsym.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Quasisymmetric functions diff --git a/src/sage/combinat/ncsf_qsym/tutorial.py b/src/sage/combinat/ncsf_qsym/tutorial.py index 4b7f1d199ae..e4efe77d997 100644 --- a/src/sage/combinat/ncsf_qsym/tutorial.py +++ b/src/sage/combinat/ncsf_qsym/tutorial.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Introduction to Quasisymmetric Functions diff --git a/src/sage/combinat/ncsym/all.py b/src/sage/combinat/ncsym/all.py index 7a174e45ccf..e51f16320b4 100644 --- a/src/sage/combinat/ncsym/all.py +++ b/src/sage/combinat/ncsym/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Symmetric functions in non-commuting variables diff --git a/src/sage/combinat/ncsym/bases.py b/src/sage/combinat/ncsym/bases.py index 466d1ad42e5..6fe3c6635ab 100644 --- a/src/sage/combinat/ncsym/bases.py +++ b/src/sage/combinat/ncsym/bases.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Bases for `NCSym` diff --git a/src/sage/combinat/ncsym/dual.py b/src/sage/combinat/ncsym/dual.py index 38ae7135882..db2b7350cb8 100644 --- a/src/sage/combinat/ncsym/dual.py +++ b/src/sage/combinat/ncsym/dual.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules """ Dual Symmetric Functions in Non-Commuting Variables diff --git a/src/sage/combinat/ncsym/ncsym.py b/src/sage/combinat/ncsym/ncsym.py index 3f1476fb15c..394fa883bdb 100644 --- a/src/sage/combinat/ncsym/ncsym.py +++ b/src/sage/combinat/ncsym/ncsym.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules """ Symmetric Functions in Non-Commuting Variables diff --git a/src/sage/combinat/necklace.py b/src/sage/combinat/necklace.py index 0a2ad690c34..ae3daf58ae9 100644 --- a/src/sage/combinat/necklace.py +++ b/src/sage/combinat/necklace.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat """ Necklaces diff --git a/src/sage/combinat/non_decreasing_parking_function.py b/src/sage/combinat/non_decreasing_parking_function.py index 532b4bf8762..ec573aa6272 100644 --- a/src/sage/combinat/non_decreasing_parking_function.py +++ b/src/sage/combinat/non_decreasing_parking_function.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Non-Decreasing Parking Functions diff --git a/src/sage/combinat/nu_dyck_word.py b/src/sage/combinat/nu_dyck_word.py index ddc54a03612..f47fb7c63ba 100644 --- a/src/sage/combinat/nu_dyck_word.py +++ b/src/sage/combinat/nu_dyck_word.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" `\nu`-Dyck Words diff --git a/src/sage/combinat/nu_tamari_lattice.py b/src/sage/combinat/nu_tamari_lattice.py index 433b7058cf5..3e529e4ffd6 100644 --- a/src/sage/combinat/nu_tamari_lattice.py +++ b/src/sage/combinat/nu_tamari_lattice.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # sage.doctest: needs sage.combinat r""" `\nu`-Tamari lattice diff --git a/src/sage/combinat/ordered_tree.py b/src/sage/combinat/ordered_tree.py index 5041dd434a4..99cbc092347 100644 --- a/src/sage/combinat/ordered_tree.py +++ b/src/sage/combinat/ordered_tree.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs """ Ordered Rooted Trees diff --git a/src/sage/combinat/output.py b/src/sage/combinat/output.py index 7f223921d7e..9f33b726dd1 100644 --- a/src/sage/combinat/output.py +++ b/src/sage/combinat/output.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Output functions diff --git a/src/sage/combinat/parallelogram_polyomino.py b/src/sage/combinat/parallelogram_polyomino.py index 53d35bca831..d0c59f32bb1 100644 --- a/src/sage/combinat/parallelogram_polyomino.py +++ b/src/sage/combinat/parallelogram_polyomino.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Parallelogram Polyominoes diff --git a/src/sage/combinat/parking_functions.py b/src/sage/combinat/parking_functions.py index 39feb8aa80f..752ad1deb12 100644 --- a/src/sage/combinat/parking_functions.py +++ b/src/sage/combinat/parking_functions.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Parking Functions diff --git a/src/sage/combinat/partition.py b/src/sage/combinat/partition.py index ee5a9fd85db..8ba584ef9ee 100644 --- a/src/sage/combinat/partition.py +++ b/src/sage/combinat/partition.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Integer partitions diff --git a/src/sage/combinat/partition_algebra.py b/src/sage/combinat/partition_algebra.py index b5caf31d84b..84182eeba24 100644 --- a/src/sage/combinat/partition_algebra.py +++ b/src/sage/combinat/partition_algebra.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Partition/Diagram Algebras diff --git a/src/sage/combinat/partition_kleshchev.py b/src/sage/combinat/partition_kleshchev.py index df8b31b552e..dc447a12cc5 100644 --- a/src/sage/combinat/partition_kleshchev.py +++ b/src/sage/combinat/partition_kleshchev.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Kleshchev partitions diff --git a/src/sage/combinat/partition_shifting_algebras.py b/src/sage/combinat/partition_shifting_algebras.py index e8f22589eb3..64975c6173f 100644 --- a/src/sage/combinat/partition_shifting_algebras.py +++ b/src/sage/combinat/partition_shifting_algebras.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Partition Shifting Algebras diff --git a/src/sage/combinat/partition_tuple.py b/src/sage/combinat/partition_tuple.py index ac41cf4d473..b90435bcd07 100644 --- a/src/sage/combinat/partition_tuple.py +++ b/src/sage/combinat/partition_tuple.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Partition tuples diff --git a/src/sage/combinat/partitions.pyx b/src/sage/combinat/partitions.pyx index c461797067c..fe4c5c3b65d 100644 --- a/src/sage/combinat/partitions.pyx +++ b/src/sage/combinat/partitions.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat """ Iterators over the partitions of an integer diff --git a/src/sage/combinat/path_tableaux/all.py b/src/sage/combinat/path_tableaux/all.py index 42a2e8ca4a5..169285c0b6c 100644 --- a/src/sage/combinat/path_tableaux/all.py +++ b/src/sage/combinat/path_tableaux/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Path tableaux diff --git a/src/sage/combinat/path_tableaux/catalog.py b/src/sage/combinat/path_tableaux/catalog.py index 0605c6da583..77cd5a33722 100644 --- a/src/sage/combinat/path_tableaux/catalog.py +++ b/src/sage/combinat/path_tableaux/catalog.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Catalog of Path Tableaux diff --git a/src/sage/combinat/path_tableaux/dyck_path.py b/src/sage/combinat/path_tableaux/dyck_path.py index c3c24929e99..0286b65e827 100644 --- a/src/sage/combinat/path_tableaux/dyck_path.py +++ b/src/sage/combinat/path_tableaux/dyck_path.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Dyck Paths diff --git a/src/sage/combinat/path_tableaux/frieze.py b/src/sage/combinat/path_tableaux/frieze.py index 7e667743e4a..63f0131b2d7 100644 --- a/src/sage/combinat/path_tableaux/frieze.py +++ b/src/sage/combinat/path_tableaux/frieze.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Frieze Patterns diff --git a/src/sage/combinat/path_tableaux/path_tableau.py b/src/sage/combinat/path_tableaux/path_tableau.py index 66bec5fe5d2..afc2a7cfba6 100644 --- a/src/sage/combinat/path_tableaux/path_tableau.py +++ b/src/sage/combinat/path_tableaux/path_tableau.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Path Tableaux diff --git a/src/sage/combinat/path_tableaux/semistandard.py b/src/sage/combinat/path_tableaux/semistandard.py index 559571e798a..5c63be4071f 100644 --- a/src/sage/combinat/path_tableaux/semistandard.py +++ b/src/sage/combinat/path_tableaux/semistandard.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Semistandard Tableaux ===================== diff --git a/src/sage/combinat/perfect_matching.py b/src/sage/combinat/perfect_matching.py index 84e481cb621..a1004d66429 100644 --- a/src/sage/combinat/perfect_matching.py +++ b/src/sage/combinat/perfect_matching.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Perfect matchings diff --git a/src/sage/combinat/permutation.py b/src/sage/combinat/permutation.py index ba712588cf6..a4d9e54a850 100644 --- a/src/sage/combinat/permutation.py +++ b/src/sage/combinat/permutation.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Permutations diff --git a/src/sage/combinat/permutation_cython.pxd b/src/sage/combinat/permutation_cython.pxd index 9744b2f549e..8ae8bcf8a23 100644 --- a/src/sage/combinat/permutation_cython.pxd +++ b/src/sage/combinat/permutation_cython.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories from cpython.array cimport array cdef void reset_swap(int n, int *c, int *o) noexcept diff --git a/src/sage/combinat/permutation_cython.pyx b/src/sage/combinat/permutation_cython.pyx index 17010476cd9..7c23684d5ab 100644 --- a/src/sage/combinat/permutation_cython.pyx +++ b/src/sage/combinat/permutation_cython.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Permutations (Cython file) diff --git a/src/sage/combinat/plane_partition.py b/src/sage/combinat/plane_partition.py index b4f897b64f3..efeb3936371 100644 --- a/src/sage/combinat/plane_partition.py +++ b/src/sage/combinat/plane_partition.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Plane Partitions diff --git a/src/sage/combinat/posets/all.py b/src/sage/combinat/posets/all.py index f7f8bdcc7fc..952184d80d0 100644 --- a/src/sage/combinat/posets/all.py +++ b/src/sage/combinat/posets/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" Posets diff --git a/src/sage/combinat/posets/cartesian_product.py b/src/sage/combinat/posets/cartesian_product.py index abf2ec94b4d..6c301b37064 100644 --- a/src/sage/combinat/posets/cartesian_product.py +++ b/src/sage/combinat/posets/cartesian_product.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs """ Cartesian products of Posets diff --git a/src/sage/combinat/posets/d_complete.py b/src/sage/combinat/posets/d_complete.py index aa3c527ef8f..9d2a6ca2ae3 100644 --- a/src/sage/combinat/posets/d_complete.py +++ b/src/sage/combinat/posets/d_complete.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # sage.doctest: needs sage.combinat sage.modules r""" D-Complete Posets diff --git a/src/sage/combinat/posets/elements.py b/src/sage/combinat/posets/elements.py index 4cfb0b28ae0..a951983acd3 100644 --- a/src/sage/combinat/posets/elements.py +++ b/src/sage/combinat/posets/elements.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # sage.doctest: needs sage.modules r""" Elements of posets, lattices, semilattices, etc. diff --git a/src/sage/combinat/posets/forest.py b/src/sage/combinat/posets/forest.py index f730b4147de..73b97c8d1f4 100644 --- a/src/sage/combinat/posets/forest.py +++ b/src/sage/combinat/posets/forest.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" Forest Posets diff --git a/src/sage/combinat/posets/hasse_cython.pyx b/src/sage/combinat/posets/hasse_cython.pyx index 2048febd192..f53b47a878c 100644 --- a/src/sage/combinat/posets/hasse_cython.pyx +++ b/src/sage/combinat/posets/hasse_cython.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # cython: binding=True r""" Some fast computations for finite posets diff --git a/src/sage/combinat/posets/hasse_cython_flint.pyx b/src/sage/combinat/posets/hasse_cython_flint.pyx index fb01d5967f2..399ea19c88b 100644 --- a/src/sage/combinat/posets/hasse_cython_flint.pyx +++ b/src/sage/combinat/posets/hasse_cython_flint.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # cython: binding=True # sage.doctest: needs sage.libs.flint sage.graphs sage.modules r""" diff --git a/src/sage/combinat/posets/hasse_diagram.py b/src/sage/combinat/posets/hasse_diagram.py index 1c61cee4760..e7a3ca7ecfd 100644 --- a/src/sage/combinat/posets/hasse_diagram.py +++ b/src/sage/combinat/posets/hasse_diagram.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" Hasse diagrams of posets diff --git a/src/sage/combinat/posets/incidence_algebras.py b/src/sage/combinat/posets/incidence_algebras.py index 943fb69fde9..5af8ec5bdf0 100644 --- a/src/sage/combinat/posets/incidence_algebras.py +++ b/src/sage/combinat/posets/incidence_algebras.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # sage.doctest: needs sage.modules r""" Incidence Algebras diff --git a/src/sage/combinat/posets/lattices.py b/src/sage/combinat/posets/lattices.py index 6af274fd18a..b36ef733550 100644 --- a/src/sage/combinat/posets/lattices.py +++ b/src/sage/combinat/posets/lattices.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # sage.doctest: needs sage.modules r""" Finite lattices and semilattices diff --git a/src/sage/combinat/posets/linear_extension_iterator.pyx b/src/sage/combinat/posets/linear_extension_iterator.pyx index 142287d88c2..dbd927e8956 100644 --- a/src/sage/combinat/posets/linear_extension_iterator.pyx +++ b/src/sage/combinat/posets/linear_extension_iterator.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # cython: binding=True r""" Fast linear extension iterator diff --git a/src/sage/combinat/posets/linear_extensions.py b/src/sage/combinat/posets/linear_extensions.py index cca9b098d4a..a7239e4b966 100644 --- a/src/sage/combinat/posets/linear_extensions.py +++ b/src/sage/combinat/posets/linear_extensions.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" Linear Extensions of Posets diff --git a/src/sage/combinat/posets/mobile.py b/src/sage/combinat/posets/mobile.py index 321942a0fd7..8ea18752bb5 100644 --- a/src/sage/combinat/posets/mobile.py +++ b/src/sage/combinat/posets/mobile.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs """ Mobile posets """ diff --git a/src/sage/combinat/posets/moebius_algebra.py b/src/sage/combinat/posets/moebius_algebra.py index 00691051587..b0088a0da82 100644 --- a/src/sage/combinat/posets/moebius_algebra.py +++ b/src/sage/combinat/posets/moebius_algebra.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # sage.doctest: needs sage.modules r""" Möbius Algebras diff --git a/src/sage/combinat/posets/poset_examples.py b/src/sage/combinat/posets/poset_examples.py index f565c7f9903..b3d68f8ac78 100644 --- a/src/sage/combinat/posets/poset_examples.py +++ b/src/sage/combinat/posets/poset_examples.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # sage.doctest: needs sage.combinat sage.modules r""" Catalog of posets and lattices diff --git a/src/sage/combinat/posets/posets.py b/src/sage/combinat/posets/posets.py index 0a8352274ee..f2123756996 100644 --- a/src/sage/combinat/posets/posets.py +++ b/src/sage/combinat/posets/posets.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # sage.doctest: needs sage.graphs sage.modules r""" Finite posets diff --git a/src/sage/combinat/q_analogues.py b/src/sage/combinat/q_analogues.py index bf346f03ad5..b0ee81631cc 100644 --- a/src/sage/combinat/q_analogues.py +++ b/src/sage/combinat/q_analogues.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" `q`-Analogues """ diff --git a/src/sage/combinat/q_bernoulli.pyx b/src/sage/combinat/q_bernoulli.pyx index 271a04487fb..19ac854e045 100644 --- a/src/sage/combinat/q_bernoulli.pyx +++ b/src/sage/combinat/q_bernoulli.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat """ `q`-Bernoulli Numbers and Polynomials """ diff --git a/src/sage/combinat/quickref.py b/src/sage/combinat/quickref.py index ee7d9ca8ec1..17ca1fd9d47 100644 --- a/src/sage/combinat/quickref.py +++ b/src/sage/combinat/quickref.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Combinatorics quickref diff --git a/src/sage/combinat/ranker.py b/src/sage/combinat/ranker.py index 1d51b8a04d2..bf93d9f61b2 100644 --- a/src/sage/combinat/ranker.py +++ b/src/sage/combinat/ranker.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Rankers """ diff --git a/src/sage/combinat/recognizable_series.py b/src/sage/combinat/recognizable_series.py index 161a7e05ec4..3fbf31ccec7 100644 --- a/src/sage/combinat/recognizable_series.py +++ b/src/sage/combinat/recognizable_series.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Recognizable Series diff --git a/src/sage/combinat/regular_sequence.py b/src/sage/combinat/regular_sequence.py index a2d5c09d94b..a6d372eb8a5 100644 --- a/src/sage/combinat/regular_sequence.py +++ b/src/sage/combinat/regular_sequence.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules sage.symbolic r""" `k`-regular sequences diff --git a/src/sage/combinat/restricted_growth.py b/src/sage/combinat/restricted_growth.py index b638356e4db..37e33b3688c 100644 --- a/src/sage/combinat/restricted_growth.py +++ b/src/sage/combinat/restricted_growth.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat """ Restricted growth arrays diff --git a/src/sage/combinat/ribbon.py b/src/sage/combinat/ribbon.py index 6c662f505c7..557ed1aa9a6 100644 --- a/src/sage/combinat/ribbon.py +++ b/src/sage/combinat/ribbon.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Ribbons """ diff --git a/src/sage/combinat/ribbon_shaped_tableau.py b/src/sage/combinat/ribbon_shaped_tableau.py index 84458d104f3..3effad089c1 100644 --- a/src/sage/combinat/ribbon_shaped_tableau.py +++ b/src/sage/combinat/ribbon_shaped_tableau.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Ribbon Shaped Tableaux """ diff --git a/src/sage/combinat/ribbon_tableau.py b/src/sage/combinat/ribbon_tableau.py index db82cbfd660..67d8485c315 100644 --- a/src/sage/combinat/ribbon_tableau.py +++ b/src/sage/combinat/ribbon_tableau.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Ribbon Tableaux """ diff --git a/src/sage/combinat/rigged_configurations/all.py b/src/sage/combinat/rigged_configurations/all.py index 36a10774a89..8330244606a 100644 --- a/src/sage/combinat/rigged_configurations/all.py +++ b/src/sage/combinat/rigged_configurations/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Rigged configurations diff --git a/src/sage/combinat/rigged_configurations/bij_abstract_class.py b/src/sage/combinat/rigged_configurations/bij_abstract_class.py index 520ce241d57..5c553841531 100644 --- a/src/sage/combinat/rigged_configurations/bij_abstract_class.py +++ b/src/sage/combinat/rigged_configurations/bij_abstract_class.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Abstract classes for the rigged configuration bijections diff --git a/src/sage/combinat/rigged_configurations/bij_infinity.py b/src/sage/combinat/rigged_configurations/bij_infinity.py index 0fd8ee7fdc9..03ad4f03aeb 100644 --- a/src/sage/combinat/rigged_configurations/bij_infinity.py +++ b/src/sage/combinat/rigged_configurations/bij_infinity.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Bijection between rigged configurations for `B(\infty)` and marginally large tableaux diff --git a/src/sage/combinat/rigged_configurations/bij_type_A.py b/src/sage/combinat/rigged_configurations/bij_type_A.py index 2a623f322da..6a5dbdb7e02 100644 --- a/src/sage/combinat/rigged_configurations/bij_type_A.py +++ b/src/sage/combinat/rigged_configurations/bij_type_A.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Bijection classes for type `A_n^{(1)}` diff --git a/src/sage/combinat/rigged_configurations/bij_type_A2_dual.py b/src/sage/combinat/rigged_configurations/bij_type_A2_dual.py index ceb6ad8f1b8..080b73e900d 100644 --- a/src/sage/combinat/rigged_configurations/bij_type_A2_dual.py +++ b/src/sage/combinat/rigged_configurations/bij_type_A2_dual.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Bijection classes for type `A_{2n}^{(2)\dagger}` diff --git a/src/sage/combinat/rigged_configurations/bij_type_A2_even.py b/src/sage/combinat/rigged_configurations/bij_type_A2_even.py index 8fa552a1077..b28430bd836 100644 --- a/src/sage/combinat/rigged_configurations/bij_type_A2_even.py +++ b/src/sage/combinat/rigged_configurations/bij_type_A2_even.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Bijection classes for type `A_{2n}^{(2)}` diff --git a/src/sage/combinat/rigged_configurations/bij_type_A2_odd.py b/src/sage/combinat/rigged_configurations/bij_type_A2_odd.py index ea7862ef3ef..cbedbae3fe6 100644 --- a/src/sage/combinat/rigged_configurations/bij_type_A2_odd.py +++ b/src/sage/combinat/rigged_configurations/bij_type_A2_odd.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Bijection classes for type `A_{2n-1}^{(2)}`. diff --git a/src/sage/combinat/rigged_configurations/bij_type_B.py b/src/sage/combinat/rigged_configurations/bij_type_B.py index 299f9e2e94c..3ecae079446 100644 --- a/src/sage/combinat/rigged_configurations/bij_type_B.py +++ b/src/sage/combinat/rigged_configurations/bij_type_B.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Bijection classes for type `B_n^{(1)}` diff --git a/src/sage/combinat/rigged_configurations/bij_type_C.py b/src/sage/combinat/rigged_configurations/bij_type_C.py index 9e0997e1479..182f178230a 100644 --- a/src/sage/combinat/rigged_configurations/bij_type_C.py +++ b/src/sage/combinat/rigged_configurations/bij_type_C.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Bijection classes for type `C_n^{(1)}` diff --git a/src/sage/combinat/rigged_configurations/bij_type_D.py b/src/sage/combinat/rigged_configurations/bij_type_D.py index ab9b41b89bd..9b102414dfd 100644 --- a/src/sage/combinat/rigged_configurations/bij_type_D.py +++ b/src/sage/combinat/rigged_configurations/bij_type_D.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Bijection classes for type `D_n^{(1)}` diff --git a/src/sage/combinat/rigged_configurations/bij_type_D_tri.py b/src/sage/combinat/rigged_configurations/bij_type_D_tri.py index b82ff955642..37770d2a07b 100644 --- a/src/sage/combinat/rigged_configurations/bij_type_D_tri.py +++ b/src/sage/combinat/rigged_configurations/bij_type_D_tri.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Bijection classes for type `D_4^{(3)}` diff --git a/src/sage/combinat/rigged_configurations/bij_type_D_twisted.py b/src/sage/combinat/rigged_configurations/bij_type_D_twisted.py index ce177ffb468..431e137223c 100644 --- a/src/sage/combinat/rigged_configurations/bij_type_D_twisted.py +++ b/src/sage/combinat/rigged_configurations/bij_type_D_twisted.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Bijection classes for type `D_{n+1}^{(2)}` diff --git a/src/sage/combinat/rigged_configurations/bij_type_E67.py b/src/sage/combinat/rigged_configurations/bij_type_E67.py index af59d3048f5..7c14ca00739 100644 --- a/src/sage/combinat/rigged_configurations/bij_type_E67.py +++ b/src/sage/combinat/rigged_configurations/bij_type_E67.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Bijection classes for type `E_{6,7}^{(1)}` diff --git a/src/sage/combinat/rigged_configurations/bijection.py b/src/sage/combinat/rigged_configurations/bijection.py index 850270930a6..e236611bfd2 100644 --- a/src/sage/combinat/rigged_configurations/bijection.py +++ b/src/sage/combinat/rigged_configurations/bijection.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Bijection between rigged configurations and KR tableaux diff --git a/src/sage/combinat/rigged_configurations/kleber_tree.py b/src/sage/combinat/rigged_configurations/kleber_tree.py index f6082658969..df05da5fc57 100644 --- a/src/sage/combinat/rigged_configurations/kleber_tree.py +++ b/src/sage/combinat/rigged_configurations/kleber_tree.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.graphs sage.modules r""" Kleber Trees diff --git a/src/sage/combinat/rigged_configurations/kr_tableaux.py b/src/sage/combinat/rigged_configurations/kr_tableaux.py index 8bdc1d275b9..7073cbb3a05 100644 --- a/src/sage/combinat/rigged_configurations/kr_tableaux.py +++ b/src/sage/combinat/rigged_configurations/kr_tableaux.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Kirillov-Reshetikhin Tableaux diff --git a/src/sage/combinat/rigged_configurations/rc_crystal.py b/src/sage/combinat/rigged_configurations/rc_crystal.py index 13bc6a86cfa..d90ae81772b 100644 --- a/src/sage/combinat/rigged_configurations/rc_crystal.py +++ b/src/sage/combinat/rigged_configurations/rc_crystal.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Crystal of Rigged Configurations diff --git a/src/sage/combinat/rigged_configurations/rc_infinity.py b/src/sage/combinat/rigged_configurations/rc_infinity.py index d633f50abca..b6860937641 100644 --- a/src/sage/combinat/rigged_configurations/rc_infinity.py +++ b/src/sage/combinat/rigged_configurations/rc_infinity.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Rigged Configurations of `\mathcal{B}(\infty)` diff --git a/src/sage/combinat/rigged_configurations/rigged_configuration_element.py b/src/sage/combinat/rigged_configurations/rigged_configuration_element.py index 088dd64f20f..65e2230b43f 100644 --- a/src/sage/combinat/rigged_configurations/rigged_configuration_element.py +++ b/src/sage/combinat/rigged_configurations/rigged_configuration_element.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Rigged Configuration Elements diff --git a/src/sage/combinat/rigged_configurations/rigged_configurations.py b/src/sage/combinat/rigged_configurations/rigged_configurations.py index 2d558322721..512e05cff17 100644 --- a/src/sage/combinat/rigged_configurations/rigged_configurations.py +++ b/src/sage/combinat/rigged_configurations/rigged_configurations.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Rigged Configurations diff --git a/src/sage/combinat/rigged_configurations/rigged_partition.pxd b/src/sage/combinat/rigged_configurations/rigged_partition.pxd index 9b333b4fdc6..3578a475f2a 100644 --- a/src/sage/combinat/rigged_configurations/rigged_partition.pxd +++ b/src/sage/combinat/rigged_configurations/rigged_partition.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat from sage.structure.sage_object cimport SageObject cdef class RiggedPartition(SageObject): diff --git a/src/sage/combinat/rigged_configurations/rigged_partition.pyx b/src/sage/combinat/rigged_configurations/rigged_partition.pyx index 98a9047d6c9..41b5272f3e1 100644 --- a/src/sage/combinat/rigged_configurations/rigged_partition.pyx +++ b/src/sage/combinat/rigged_configurations/rigged_partition.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Rigged Partitions diff --git a/src/sage/combinat/rigged_configurations/tensor_product_kr_tableaux.py b/src/sage/combinat/rigged_configurations/tensor_product_kr_tableaux.py index a2ccd72e902..f78e8821dc1 100644 --- a/src/sage/combinat/rigged_configurations/tensor_product_kr_tableaux.py +++ b/src/sage/combinat/rigged_configurations/tensor_product_kr_tableaux.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Tensor Product of Kirillov-Reshetikhin Tableaux diff --git a/src/sage/combinat/rigged_configurations/tensor_product_kr_tableaux_element.py b/src/sage/combinat/rigged_configurations/tensor_product_kr_tableaux_element.py index 8db94443af2..ed33700bb28 100644 --- a/src/sage/combinat/rigged_configurations/tensor_product_kr_tableaux_element.py +++ b/src/sage/combinat/rigged_configurations/tensor_product_kr_tableaux_element.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Tensor Product of Kirillov-Reshetikhin Tableaux Elements diff --git a/src/sage/combinat/root_system/all.py b/src/sage/combinat/root_system/all.py index 263a4d916d2..d240227b6c4 100644 --- a/src/sage/combinat/root_system/all.py +++ b/src/sage/combinat/root_system/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Root Systems diff --git a/src/sage/combinat/root_system/ambient_space.py b/src/sage/combinat/root_system/ambient_space.py index a8aa765ee5d..54b1461762b 100644 --- a/src/sage/combinat/root_system/ambient_space.py +++ b/src/sage/combinat/root_system/ambient_space.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Ambient lattices and ambient spaces """ diff --git a/src/sage/combinat/root_system/associahedron.py b/src/sage/combinat/root_system/associahedron.py index 448b1009036..8f111dbbf0c 100644 --- a/src/sage/combinat/root_system/associahedron.py +++ b/src/sage/combinat/root_system/associahedron.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.combinat sage.geometry.polyhedron r""" Associahedron diff --git a/src/sage/combinat/root_system/braid_move_calculator.py b/src/sage/combinat/root_system/braid_move_calculator.py index 38931a00229..aa89a038084 100644 --- a/src/sage/combinat/root_system/braid_move_calculator.py +++ b/src/sage/combinat/root_system/braid_move_calculator.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.libs.gap """ Braid Move Calculator diff --git a/src/sage/combinat/root_system/braid_orbit.pyx b/src/sage/combinat/root_system/braid_orbit.pyx index c7983eeb43a..10a10471bb5 100644 --- a/src/sage/combinat/root_system/braid_orbit.pyx +++ b/src/sage/combinat/root_system/braid_orbit.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # cython: wraparound=False, boundscheck=False """ Braid Orbit diff --git a/src/sage/combinat/root_system/branching_rules.py b/src/sage/combinat/root_system/branching_rules.py index b2ace92a56d..25c1644e9f0 100644 --- a/src/sage/combinat/root_system/branching_rules.py +++ b/src/sage/combinat/root_system/branching_rules.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.libs.gap """ Branching Rules diff --git a/src/sage/combinat/root_system/cartan_matrix.py b/src/sage/combinat/root_system/cartan_matrix.py index 8019029d62a..0295acd28c5 100644 --- a/src/sage/combinat/root_system/cartan_matrix.py +++ b/src/sage/combinat/root_system/cartan_matrix.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Cartan matrices diff --git a/src/sage/combinat/root_system/cartan_type.py b/src/sage/combinat/root_system/cartan_type.py index bd7ab5cdda4..acf53bbe520 100644 --- a/src/sage/combinat/root_system/cartan_type.py +++ b/src/sage/combinat/root_system/cartan_type.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Cartan types diff --git a/src/sage/combinat/root_system/coxeter_group.py b/src/sage/combinat/root_system/coxeter_group.py index 012daffdf87..b7b7deb7fe4 100644 --- a/src/sage/combinat/root_system/coxeter_group.py +++ b/src/sage/combinat/root_system/coxeter_group.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Coxeter Groups """ diff --git a/src/sage/combinat/root_system/coxeter_matrix.py b/src/sage/combinat/root_system/coxeter_matrix.py index 57e6030b9c4..3881e3a73f1 100644 --- a/src/sage/combinat/root_system/coxeter_matrix.py +++ b/src/sage/combinat/root_system/coxeter_matrix.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.graphs """ Coxeter Matrices diff --git a/src/sage/combinat/root_system/coxeter_type.py b/src/sage/combinat/root_system/coxeter_type.py index 88a53e4bd98..fc4e0d824bf 100644 --- a/src/sage/combinat/root_system/coxeter_type.py +++ b/src/sage/combinat/root_system/coxeter_type.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Coxeter Types """ diff --git a/src/sage/combinat/root_system/dynkin_diagram.py b/src/sage/combinat/root_system/dynkin_diagram.py index fe5f93549ef..7390efb627d 100644 --- a/src/sage/combinat/root_system/dynkin_diagram.py +++ b/src/sage/combinat/root_system/dynkin_diagram.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.combinat sage.graphs """ Dynkin diagrams diff --git a/src/sage/combinat/root_system/extended_affine_weyl_group.py b/src/sage/combinat/root_system/extended_affine_weyl_group.py index e81477653c2..f257dc7e455 100644 --- a/src/sage/combinat/root_system/extended_affine_weyl_group.py +++ b/src/sage/combinat/root_system/extended_affine_weyl_group.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.libs.gap r""" Extended Affine Weyl Groups diff --git a/src/sage/combinat/root_system/fundamental_group.py b/src/sage/combinat/root_system/fundamental_group.py index 8905471a5ab..2024231334e 100644 --- a/src/sage/combinat/root_system/fundamental_group.py +++ b/src/sage/combinat/root_system/fundamental_group.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.graphs sage.groups r""" Fundamental Group of an Extended Affine Weyl Group diff --git a/src/sage/combinat/root_system/hecke_algebra_representation.py b/src/sage/combinat/root_system/hecke_algebra_representation.py index 1dc8d16ad59..dea69183500 100644 --- a/src/sage/combinat/root_system/hecke_algebra_representation.py +++ b/src/sage/combinat/root_system/hecke_algebra_representation.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.libs.gap sage.groups r""" Hecke algebra representations diff --git a/src/sage/combinat/root_system/integrable_representations.py b/src/sage/combinat/root_system/integrable_representations.py index a1cb764e19a..10cd1427782 100644 --- a/src/sage/combinat/root_system/integrable_representations.py +++ b/src/sage/combinat/root_system/integrable_representations.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.graphs sage.modules """ Integrable Representations of Affine Lie Algebras diff --git a/src/sage/combinat/root_system/non_symmetric_macdonald_polynomials.py b/src/sage/combinat/root_system/non_symmetric_macdonald_polynomials.py index 34e7e0817f1..a4c211f12e4 100644 --- a/src/sage/combinat/root_system/non_symmetric_macdonald_polynomials.py +++ b/src/sage/combinat/root_system/non_symmetric_macdonald_polynomials.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.graphs r""" Nonsymmetric Macdonald polynomials diff --git a/src/sage/combinat/root_system/pieri_factors.py b/src/sage/combinat/root_system/pieri_factors.py index 28b26d8bf6f..ee8e22e1f66 100644 --- a/src/sage/combinat/root_system/pieri_factors.py +++ b/src/sage/combinat/root_system/pieri_factors.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.libs.gap r""" Pieri Factors diff --git a/src/sage/combinat/root_system/plot.py b/src/sage/combinat/root_system/plot.py index c81d86b8484..e21b14e250b 100644 --- a/src/sage/combinat/root_system/plot.py +++ b/src/sage/combinat/root_system/plot.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.geometry.polyhedron sage.plot sage.symbolic r""" Tutorial: visualizing root systems diff --git a/src/sage/combinat/root_system/reflection_group_c.pyx b/src/sage/combinat/root_system/reflection_group_c.pyx index a44a5874b7f..4f07d5b2097 100644 --- a/src/sage/combinat/root_system/reflection_group_c.pyx +++ b/src/sage/combinat/root_system/reflection_group_c.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap # cython: wraparound=False, boundscheck=False # sage.doctest: needs sage.graphs r""" diff --git a/src/sage/combinat/root_system/reflection_group_complex.py b/src/sage/combinat/root_system/reflection_group_complex.py index 6bf0e9936ea..bac138b6c7f 100644 --- a/src/sage/combinat/root_system/reflection_group_complex.py +++ b/src/sage/combinat/root_system/reflection_group_complex.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap # sage.doctest: optional - gap3, needs sage.libs.gap r""" Finite complex reflection groups diff --git a/src/sage/combinat/root_system/reflection_group_element.pxd b/src/sage/combinat/root_system/reflection_group_element.pxd index 194688e25b6..2fff042ade8 100644 --- a/src/sage/combinat/root_system/reflection_group_element.pxd +++ b/src/sage/combinat/root_system/reflection_group_element.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap from sage.groups.perm_gps.permgroup_element cimport PermutationGroupElement cdef class ComplexReflectionGroupElement(PermutationGroupElement): diff --git a/src/sage/combinat/root_system/reflection_group_element.pyx b/src/sage/combinat/root_system/reflection_group_element.pyx index 4f01a5a2882..e0db15e713d 100644 --- a/src/sage/combinat/root_system/reflection_group_element.pyx +++ b/src/sage/combinat/root_system/reflection_group_element.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap r""" Reflection group elements diff --git a/src/sage/combinat/root_system/reflection_group_real.py b/src/sage/combinat/root_system/reflection_group_real.py index 8ae2acee1c8..7cdf6216596 100644 --- a/src/sage/combinat/root_system/reflection_group_real.py +++ b/src/sage/combinat/root_system/reflection_group_real.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap # sage.doctest: optional - gap3 r""" Finite real reflection groups diff --git a/src/sage/combinat/root_system/root_lattice_realization_algebras.py b/src/sage/combinat/root_system/root_lattice_realization_algebras.py index 30251e983a7..adac4a1090b 100644 --- a/src/sage/combinat/root_system/root_lattice_realization_algebras.py +++ b/src/sage/combinat/root_system/root_lattice_realization_algebras.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Group algebras of root lattice realizations """ diff --git a/src/sage/combinat/root_system/root_lattice_realizations.py b/src/sage/combinat/root_system/root_lattice_realizations.py index d3e443d830b..5c69ecba564 100644 --- a/src/sage/combinat/root_system/root_lattice_realizations.py +++ b/src/sage/combinat/root_system/root_lattice_realizations.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Root lattice realizations """ diff --git a/src/sage/combinat/root_system/root_space.py b/src/sage/combinat/root_system/root_space.py index a375b3b8074..a6436855d98 100644 --- a/src/sage/combinat/root_system/root_space.py +++ b/src/sage/combinat/root_system/root_space.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Root lattices and root spaces """ diff --git a/src/sage/combinat/root_system/root_system.py b/src/sage/combinat/root_system/root_system.py index c80cffbdb87..e3d5e0048bd 100644 --- a/src/sage/combinat/root_system/root_system.py +++ b/src/sage/combinat/root_system/root_system.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Root systems ============ diff --git a/src/sage/combinat/root_system/type_A.py b/src/sage/combinat/root_system/type_A.py index 48d1474c1f4..6f9ba424e59 100644 --- a/src/sage/combinat/root_system/type_A.py +++ b/src/sage/combinat/root_system/type_A.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Root system data for type A """ diff --git a/src/sage/combinat/root_system/type_A_affine.py b/src/sage/combinat/root_system/type_A_affine.py index 57ed18afd01..cbd0b2798a4 100644 --- a/src/sage/combinat/root_system/type_A_affine.py +++ b/src/sage/combinat/root_system/type_A_affine.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Root system data for (untwisted) type A affine """ diff --git a/src/sage/combinat/root_system/type_A_infinity.py b/src/sage/combinat/root_system/type_A_infinity.py index 9e0f4711ccd..9b7a2c3a112 100644 --- a/src/sage/combinat/root_system/type_A_infinity.py +++ b/src/sage/combinat/root_system/type_A_infinity.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Root system data for type A infinity """ diff --git a/src/sage/combinat/root_system/type_B.py b/src/sage/combinat/root_system/type_B.py index 8e9cb6e75a5..2e59dec208f 100644 --- a/src/sage/combinat/root_system/type_B.py +++ b/src/sage/combinat/root_system/type_B.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Root system data for type B """ diff --git a/src/sage/combinat/root_system/type_BC_affine.py b/src/sage/combinat/root_system/type_BC_affine.py index 740dfa2e5f3..3dd5c47a511 100644 --- a/src/sage/combinat/root_system/type_BC_affine.py +++ b/src/sage/combinat/root_system/type_BC_affine.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Root system data for type BC affine """ diff --git a/src/sage/combinat/root_system/type_B_affine.py b/src/sage/combinat/root_system/type_B_affine.py index 047144f02d6..0f6a07310e6 100644 --- a/src/sage/combinat/root_system/type_B_affine.py +++ b/src/sage/combinat/root_system/type_B_affine.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Root system data for (untwisted) type B affine """ diff --git a/src/sage/combinat/root_system/type_C.py b/src/sage/combinat/root_system/type_C.py index 8c7ebce3359..fdd1426c107 100644 --- a/src/sage/combinat/root_system/type_C.py +++ b/src/sage/combinat/root_system/type_C.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Root system data for type C """ diff --git a/src/sage/combinat/root_system/type_C_affine.py b/src/sage/combinat/root_system/type_C_affine.py index adaf5c77562..cdb2763f75b 100644 --- a/src/sage/combinat/root_system/type_C_affine.py +++ b/src/sage/combinat/root_system/type_C_affine.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Root system data for (untwisted) type C affine """ diff --git a/src/sage/combinat/root_system/type_D.py b/src/sage/combinat/root_system/type_D.py index 5f1469e48a8..b116f2e7979 100644 --- a/src/sage/combinat/root_system/type_D.py +++ b/src/sage/combinat/root_system/type_D.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Root system data for type D """ diff --git a/src/sage/combinat/root_system/type_D_affine.py b/src/sage/combinat/root_system/type_D_affine.py index f77204e4a01..b33f999c56c 100644 --- a/src/sage/combinat/root_system/type_D_affine.py +++ b/src/sage/combinat/root_system/type_D_affine.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Root system data for (untwisted) type D affine """ diff --git a/src/sage/combinat/root_system/type_E.py b/src/sage/combinat/root_system/type_E.py index 7c3292d6ea7..3cb0abe2254 100644 --- a/src/sage/combinat/root_system/type_E.py +++ b/src/sage/combinat/root_system/type_E.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Root system data for type E """ diff --git a/src/sage/combinat/root_system/type_E_affine.py b/src/sage/combinat/root_system/type_E_affine.py index 3268d0603e5..47ae656d984 100644 --- a/src/sage/combinat/root_system/type_E_affine.py +++ b/src/sage/combinat/root_system/type_E_affine.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Root system data for (untwisted) type E affine """ diff --git a/src/sage/combinat/root_system/type_F.py b/src/sage/combinat/root_system/type_F.py index 5d699d31c5a..699bd011188 100644 --- a/src/sage/combinat/root_system/type_F.py +++ b/src/sage/combinat/root_system/type_F.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Root system data for type F """ diff --git a/src/sage/combinat/root_system/type_F_affine.py b/src/sage/combinat/root_system/type_F_affine.py index 3d2dc8350ee..ee2ccfe3275 100644 --- a/src/sage/combinat/root_system/type_F_affine.py +++ b/src/sage/combinat/root_system/type_F_affine.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Root system data for (untwisted) type F affine """ diff --git a/src/sage/combinat/root_system/type_G.py b/src/sage/combinat/root_system/type_G.py index 21dae3effa7..7632da51d49 100644 --- a/src/sage/combinat/root_system/type_G.py +++ b/src/sage/combinat/root_system/type_G.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Root system data for type G """ diff --git a/src/sage/combinat/root_system/type_G_affine.py b/src/sage/combinat/root_system/type_G_affine.py index 582f7d9ed03..e7321b348c2 100644 --- a/src/sage/combinat/root_system/type_G_affine.py +++ b/src/sage/combinat/root_system/type_G_affine.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Root system data for (untwisted) type G affine """ diff --git a/src/sage/combinat/root_system/type_H.py b/src/sage/combinat/root_system/type_H.py index 44f4b15db55..8ad752fb01a 100644 --- a/src/sage/combinat/root_system/type_H.py +++ b/src/sage/combinat/root_system/type_H.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Root system data for type H """ diff --git a/src/sage/combinat/root_system/type_I.py b/src/sage/combinat/root_system/type_I.py index 76a24817bf9..66876b41e55 100644 --- a/src/sage/combinat/root_system/type_I.py +++ b/src/sage/combinat/root_system/type_I.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Root system data for type I """ diff --git a/src/sage/combinat/root_system/type_Q.py b/src/sage/combinat/root_system/type_Q.py index b2aa3748e71..4184b396d75 100644 --- a/src/sage/combinat/root_system/type_Q.py +++ b/src/sage/combinat/root_system/type_Q.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Root system data for type Q """ diff --git a/src/sage/combinat/root_system/type_affine.py b/src/sage/combinat/root_system/type_affine.py index fd0695ee257..a0888a64e72 100644 --- a/src/sage/combinat/root_system/type_affine.py +++ b/src/sage/combinat/root_system/type_affine.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Root system data for affine Cartan types """ diff --git a/src/sage/combinat/root_system/type_dual.py b/src/sage/combinat/root_system/type_dual.py index 22c4fb809d4..36a9ee9a433 100644 --- a/src/sage/combinat/root_system/type_dual.py +++ b/src/sage/combinat/root_system/type_dual.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Root system data for dual Cartan types """ diff --git a/src/sage/combinat/root_system/type_folded.py b/src/sage/combinat/root_system/type_folded.py index 58f4911c361..b3be9273f5e 100644 --- a/src/sage/combinat/root_system/type_folded.py +++ b/src/sage/combinat/root_system/type_folded.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Root system data for folded Cartan types diff --git a/src/sage/combinat/root_system/type_marked.py b/src/sage/combinat/root_system/type_marked.py index a9ca7d15a35..b2c54c37249 100644 --- a/src/sage/combinat/root_system/type_marked.py +++ b/src/sage/combinat/root_system/type_marked.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Root system data for Cartan types with marked nodes """ diff --git a/src/sage/combinat/root_system/type_reducible.py b/src/sage/combinat/root_system/type_reducible.py index 46cdccd2ab4..9347e70cd54 100644 --- a/src/sage/combinat/root_system/type_reducible.py +++ b/src/sage/combinat/root_system/type_reducible.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Root system data for reducible Cartan types """ diff --git a/src/sage/combinat/root_system/type_relabel.py b/src/sage/combinat/root_system/type_relabel.py index 712937d08ce..777c43fafbd 100644 --- a/src/sage/combinat/root_system/type_relabel.py +++ b/src/sage/combinat/root_system/type_relabel.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Root system data for relabelled Cartan types """ diff --git a/src/sage/combinat/root_system/type_super_A.py b/src/sage/combinat/root_system/type_super_A.py index c2717a572ff..fc93a52b8a4 100644 --- a/src/sage/combinat/root_system/type_super_A.py +++ b/src/sage/combinat/root_system/type_super_A.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Root system data for super type A """ diff --git a/src/sage/combinat/root_system/weight_lattice_realizations.py b/src/sage/combinat/root_system/weight_lattice_realizations.py index c33299f1012..9bfde51417b 100644 --- a/src/sage/combinat/root_system/weight_lattice_realizations.py +++ b/src/sage/combinat/root_system/weight_lattice_realizations.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Weight lattice realizations """ diff --git a/src/sage/combinat/root_system/weight_space.py b/src/sage/combinat/root_system/weight_space.py index 8a5118714c7..2f8d71444d3 100644 --- a/src/sage/combinat/root_system/weight_space.py +++ b/src/sage/combinat/root_system/weight_space.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Weight lattices and weight spaces """ diff --git a/src/sage/combinat/root_system/weyl_characters.py b/src/sage/combinat/root_system/weyl_characters.py index a42929606b1..36fc6d23977 100644 --- a/src/sage/combinat/root_system/weyl_characters.py +++ b/src/sage/combinat/root_system/weyl_characters.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.graphs sage.groups sage.modules """ Weyl Character Rings diff --git a/src/sage/combinat/root_system/weyl_group.py b/src/sage/combinat/root_system/weyl_group.py index 58711f85653..b39ccff3c20 100644 --- a/src/sage/combinat/root_system/weyl_group.py +++ b/src/sage/combinat/root_system/weyl_group.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap # sage.doctest: needs sage.groups sage.modules """ Weyl Groups diff --git a/src/sage/combinat/rooted_tree.py b/src/sage/combinat/rooted_tree.py index 9bb17754233..61cfbf32070 100644 --- a/src/sage/combinat/rooted_tree.py +++ b/src/sage/combinat/rooted_tree.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" Rooted (Unordered) Trees diff --git a/src/sage/combinat/rsk.py b/src/sage/combinat/rsk.py index 96e5e29db5b..fa61c106634 100644 --- a/src/sage/combinat/rsk.py +++ b/src/sage/combinat/rsk.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Robinson-Schensted-Knuth correspondence diff --git a/src/sage/combinat/schubert_polynomial.py b/src/sage/combinat/schubert_polynomial.py index e4611fcdc55..4c9799ada26 100644 --- a/src/sage/combinat/schubert_polynomial.py +++ b/src/sage/combinat/schubert_polynomial.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Schubert Polynomials diff --git a/src/sage/combinat/set_partition.py b/src/sage/combinat/set_partition.py index c08e1c7aef3..62b25b82158 100644 --- a/src/sage/combinat/set_partition.py +++ b/src/sage/combinat/set_partition.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Set Partitions diff --git a/src/sage/combinat/set_partition_iterator.pyx b/src/sage/combinat/set_partition_iterator.pyx index 7c9bc0eaaf5..1998250689d 100644 --- a/src/sage/combinat/set_partition_iterator.pyx +++ b/src/sage/combinat/set_partition_iterator.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # cython: binding=True r""" Fast set partition iterators diff --git a/src/sage/combinat/set_partition_ordered.py b/src/sage/combinat/set_partition_ordered.py index a76adfa8f9f..a9e223c3e17 100644 --- a/src/sage/combinat/set_partition_ordered.py +++ b/src/sage/combinat/set_partition_ordered.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Ordered Set Partitions diff --git a/src/sage/combinat/sf/all.py b/src/sage/combinat/sf/all.py index 00f8e4f2bdf..70783aef167 100644 --- a/src/sage/combinat/sf/all.py +++ b/src/sage/combinat/sf/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Symmetric Functions diff --git a/src/sage/combinat/sf/character.py b/src/sage/combinat/sf/character.py index 3bd8ab5e0a1..958379031ef 100644 --- a/src/sage/combinat/sf/character.py +++ b/src/sage/combinat/sf/character.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Characters of the symmetric group as bases of the symmetric functions diff --git a/src/sage/combinat/sf/classical.py b/src/sage/combinat/sf/classical.py index 3151566ed6d..449ade1d9a2 100644 --- a/src/sage/combinat/sf/classical.py +++ b/src/sage/combinat/sf/classical.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules """ Classical symmetric functions diff --git a/src/sage/combinat/sf/dual.py b/src/sage/combinat/sf/dual.py index 6a68eb7dfe6..53fe44043d4 100644 --- a/src/sage/combinat/sf/dual.py +++ b/src/sage/combinat/sf/dual.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules """ Generic dual bases symmetric functions diff --git a/src/sage/combinat/sf/elementary.py b/src/sage/combinat/sf/elementary.py index f0942314323..1e6b080e4c1 100644 --- a/src/sage/combinat/sf/elementary.py +++ b/src/sage/combinat/sf/elementary.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules """ Elementary symmetric functions diff --git a/src/sage/combinat/sf/hall_littlewood.py b/src/sage/combinat/sf/hall_littlewood.py index c3376537a35..55ed4cee906 100644 --- a/src/sage/combinat/sf/hall_littlewood.py +++ b/src/sage/combinat/sf/hall_littlewood.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Hall-Littlewood Polynomials diff --git a/src/sage/combinat/sf/hecke.py b/src/sage/combinat/sf/hecke.py index 5cea11ccb2c..7c6b65715cc 100644 --- a/src/sage/combinat/sf/hecke.py +++ b/src/sage/combinat/sf/hecke.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Hecke Character Basis diff --git a/src/sage/combinat/sf/homogeneous.py b/src/sage/combinat/sf/homogeneous.py index 29cf294ea80..99e7185e8db 100644 --- a/src/sage/combinat/sf/homogeneous.py +++ b/src/sage/combinat/sf/homogeneous.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Homogeneous symmetric functions diff --git a/src/sage/combinat/sf/jack.py b/src/sage/combinat/sf/jack.py index a7a0fec6186..13097edd21f 100644 --- a/src/sage/combinat/sf/jack.py +++ b/src/sage/combinat/sf/jack.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Jack Symmetric Functions diff --git a/src/sage/combinat/sf/k_dual.py b/src/sage/combinat/sf/k_dual.py index 546695bc338..232455d999c 100644 --- a/src/sage/combinat/sf/k_dual.py +++ b/src/sage/combinat/sf/k_dual.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Quotient of symmetric function space by ideal generated by Hall-Littlewood symmetric functions diff --git a/src/sage/combinat/sf/kfpoly.py b/src/sage/combinat/sf/kfpoly.py index 09283745aa5..869d2169e32 100644 --- a/src/sage/combinat/sf/kfpoly.py +++ b/src/sage/combinat/sf/kfpoly.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Kostka-Foulkes Polynomials diff --git a/src/sage/combinat/sf/llt.py b/src/sage/combinat/sf/llt.py index 6e0e20d49ba..37849d8291f 100644 --- a/src/sage/combinat/sf/llt.py +++ b/src/sage/combinat/sf/llt.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" LLT symmetric functions diff --git a/src/sage/combinat/sf/macdonald.py b/src/sage/combinat/sf/macdonald.py index 1358c5779df..e3cbf46bf24 100644 --- a/src/sage/combinat/sf/macdonald.py +++ b/src/sage/combinat/sf/macdonald.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Macdonald Polynomials diff --git a/src/sage/combinat/sf/monomial.py b/src/sage/combinat/sf/monomial.py index 583008830af..594dffa7a54 100644 --- a/src/sage/combinat/sf/monomial.py +++ b/src/sage/combinat/sf/monomial.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules """ Monomial symmetric functions diff --git a/src/sage/combinat/sf/multiplicative.py b/src/sage/combinat/sf/multiplicative.py index 7ff9797f81a..a11ff5d8b7e 100644 --- a/src/sage/combinat/sf/multiplicative.py +++ b/src/sage/combinat/sf/multiplicative.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Multiplicative symmetric functions diff --git a/src/sage/combinat/sf/new_kschur.py b/src/sage/combinat/sf/new_kschur.py index e4c2abcc75a..74d81cef7f2 100644 --- a/src/sage/combinat/sf/new_kschur.py +++ b/src/sage/combinat/sf/new_kschur.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules """ `k`-Schur Functions diff --git a/src/sage/combinat/sf/ns_macdonald.py b/src/sage/combinat/sf/ns_macdonald.py index a2340ab5f68..657b3e2fab9 100644 --- a/src/sage/combinat/sf/ns_macdonald.py +++ b/src/sage/combinat/sf/ns_macdonald.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules """ Non-symmetric Macdonald Polynomials diff --git a/src/sage/combinat/sf/orthogonal.py b/src/sage/combinat/sf/orthogonal.py index 3ab5f56debc..38017601031 100644 --- a/src/sage/combinat/sf/orthogonal.py +++ b/src/sage/combinat/sf/orthogonal.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules """ Orthogonal Symmetric Functions diff --git a/src/sage/combinat/sf/orthotriang.py b/src/sage/combinat/sf/orthotriang.py index 2e1650e57a7..abcf9ba002c 100644 --- a/src/sage/combinat/sf/orthotriang.py +++ b/src/sage/combinat/sf/orthotriang.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules """ Symmetric functions defined by orthogonality and triangularity diff --git a/src/sage/combinat/sf/powersum.py b/src/sage/combinat/sf/powersum.py index 8d7f744e75f..018fce91024 100644 --- a/src/sage/combinat/sf/powersum.py +++ b/src/sage/combinat/sf/powersum.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules """ Power sum symmetric functions diff --git a/src/sage/combinat/sf/schur.py b/src/sage/combinat/sf/schur.py index 40e1de75812..c553fd411df 100644 --- a/src/sage/combinat/sf/schur.py +++ b/src/sage/combinat/sf/schur.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules """ Schur symmetric functions diff --git a/src/sage/combinat/sf/sf.py b/src/sage/combinat/sf/sf.py index ad86bfd6c7f..7c857201100 100644 --- a/src/sage/combinat/sf/sf.py +++ b/src/sage/combinat/sf/sf.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules """ Symmetric functions, with their multiple realizations diff --git a/src/sage/combinat/sf/sfa.py b/src/sage/combinat/sf/sfa.py index 2b42ebb7be6..9b93484a3fd 100644 --- a/src/sage/combinat/sf/sfa.py +++ b/src/sage/combinat/sf/sfa.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Symmetric Functions diff --git a/src/sage/combinat/sf/symplectic.py b/src/sage/combinat/sf/symplectic.py index f6db1782489..ed3c4459a28 100644 --- a/src/sage/combinat/sf/symplectic.py +++ b/src/sage/combinat/sf/symplectic.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules """ Symplectic Symmetric Functions diff --git a/src/sage/combinat/sf/witt.py b/src/sage/combinat/sf/witt.py index 138b2647826..103abd49d11 100644 --- a/src/sage/combinat/sf/witt.py +++ b/src/sage/combinat/sf/witt.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules """ Witt symmetric functions diff --git a/src/sage/combinat/shard_order.py b/src/sage/combinat/shard_order.py index d33bc2173f6..f995284fe07 100644 --- a/src/sage/combinat/shard_order.py +++ b/src/sage/combinat/shard_order.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" Shard intersection order diff --git a/src/sage/combinat/shifted_primed_tableau.py b/src/sage/combinat/shifted_primed_tableau.py index a05a8b0bee8..18b948c424d 100644 --- a/src/sage/combinat/shifted_primed_tableau.py +++ b/src/sage/combinat/shifted_primed_tableau.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules """ Shifted primed tableaux diff --git a/src/sage/combinat/shuffle.py b/src/sage/combinat/shuffle.py index 9da145671bf..105f662c16b 100644 --- a/src/sage/combinat/shuffle.py +++ b/src/sage/combinat/shuffle.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Shuffle product of iterables diff --git a/src/sage/combinat/sidon_sets.py b/src/sage/combinat/sidon_sets.py index 9ba6bdb5c71..7841a665d77 100644 --- a/src/sage/combinat/sidon_sets.py +++ b/src/sage/combinat/sidon_sets.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Sidon sets and their generalizations, Sidon `g`-sets diff --git a/src/sage/combinat/similarity_class_type.py b/src/sage/combinat/similarity_class_type.py index 64acd5696dc..8cba310930f 100644 --- a/src/sage/combinat/similarity_class_type.py +++ b/src/sage/combinat/similarity_class_type.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Similarity class types of matrices with entries in a finite field diff --git a/src/sage/combinat/sine_gordon.py b/src/sage/combinat/sine_gordon.py index 209acd4486e..4514a5169d0 100644 --- a/src/sage/combinat/sine_gordon.py +++ b/src/sage/combinat/sine_gordon.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" sine-Gordon Y-system plotter diff --git a/src/sage/combinat/six_vertex_model.py b/src/sage/combinat/six_vertex_model.py index 11b3267eb61..f94444c529b 100644 --- a/src/sage/combinat/six_vertex_model.py +++ b/src/sage/combinat/six_vertex_model.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Six Vertex Model """ diff --git a/src/sage/combinat/skew_partition.py b/src/sage/combinat/skew_partition.py index e525c67ee39..280c9703215 100644 --- a/src/sage/combinat/skew_partition.py +++ b/src/sage/combinat/skew_partition.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Skew Partitions diff --git a/src/sage/combinat/skew_tableau.py b/src/sage/combinat/skew_tableau.py index 3019522d21e..3b851044726 100644 --- a/src/sage/combinat/skew_tableau.py +++ b/src/sage/combinat/skew_tableau.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Skew Tableaux diff --git a/src/sage/combinat/sloane_functions.py b/src/sage/combinat/sloane_functions.py index e9911d47506..d90e2d92ca8 100644 --- a/src/sage/combinat/sloane_functions.py +++ b/src/sage/combinat/sloane_functions.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.libs.gap sage.libs.flint sage.libs.pari sage.modules r""" Functions that compute some of the sequences in Sloane's tables diff --git a/src/sage/combinat/specht_module.py b/src/sage/combinat/specht_module.py index 62842b11a30..d2a647b7da0 100644 --- a/src/sage/combinat/specht_module.py +++ b/src/sage/combinat/specht_module.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.groups sage.modules r""" Specht Modules diff --git a/src/sage/combinat/species/all.py b/src/sage/combinat/species/all.py index 6bda0eab5db..67747e0e803 100644 --- a/src/sage/combinat/species/all.py +++ b/src/sage/combinat/species/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Combinatorial species diff --git a/src/sage/combinat/species/characteristic_species.py b/src/sage/combinat/species/characteristic_species.py index 37ce75abe28..1ef62596491 100644 --- a/src/sage/combinat/species/characteristic_species.py +++ b/src/sage/combinat/species/characteristic_species.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat """ Characteristic Species """ diff --git a/src/sage/combinat/species/composition_species.py b/src/sage/combinat/species/composition_species.py index ccfe0141803..a11ae4b731c 100644 --- a/src/sage/combinat/species/composition_species.py +++ b/src/sage/combinat/species/composition_species.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat """ Composition species """ diff --git a/src/sage/combinat/species/cycle_species.py b/src/sage/combinat/species/cycle_species.py index c808f6a0db1..9d27db8761e 100644 --- a/src/sage/combinat/species/cycle_species.py +++ b/src/sage/combinat/species/cycle_species.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat """ Cycle Species """ diff --git a/src/sage/combinat/species/empty_species.py b/src/sage/combinat/species/empty_species.py index 5c4762cb34d..98c544d8c66 100644 --- a/src/sage/combinat/species/empty_species.py +++ b/src/sage/combinat/species/empty_species.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat """ Empty Species """ diff --git a/src/sage/combinat/species/functorial_composition_species.py b/src/sage/combinat/species/functorial_composition_species.py index b327492a54a..c2f49c42e67 100644 --- a/src/sage/combinat/species/functorial_composition_species.py +++ b/src/sage/combinat/species/functorial_composition_species.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat """ Functorial composition species """ diff --git a/src/sage/combinat/species/generating_series.py b/src/sage/combinat/species/generating_series.py index b7b208c3d87..d6d3ca62708 100644 --- a/src/sage/combinat/species/generating_series.py +++ b/src/sage/combinat/species/generating_series.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Generating Series diff --git a/src/sage/combinat/species/library.py b/src/sage/combinat/species/library.py index c50a9fe75fa..8d6bb4679c9 100644 --- a/src/sage/combinat/species/library.py +++ b/src/sage/combinat/species/library.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat """ Examples of Combinatorial Species """ diff --git a/src/sage/combinat/species/linear_order_species.py b/src/sage/combinat/species/linear_order_species.py index 0761dea576d..ca63ba6db40 100644 --- a/src/sage/combinat/species/linear_order_species.py +++ b/src/sage/combinat/species/linear_order_species.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat """ Linear-order Species """ diff --git a/src/sage/combinat/species/misc.py b/src/sage/combinat/species/misc.py index 12a9b2c8f70..2cf4ecee33e 100644 --- a/src/sage/combinat/species/misc.py +++ b/src/sage/combinat/species/misc.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.groups """ Miscellaneous Functions diff --git a/src/sage/combinat/species/partition_species.py b/src/sage/combinat/species/partition_species.py index dea38378a7a..f7d721a0680 100644 --- a/src/sage/combinat/species/partition_species.py +++ b/src/sage/combinat/species/partition_species.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.libs.flint """ Partition Species diff --git a/src/sage/combinat/species/permutation_species.py b/src/sage/combinat/species/permutation_species.py index 59f41bbad0a..dbc8ad524ca 100644 --- a/src/sage/combinat/species/permutation_species.py +++ b/src/sage/combinat/species/permutation_species.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.groups sage.libs.flint """ Permutation species diff --git a/src/sage/combinat/species/product_species.py b/src/sage/combinat/species/product_species.py index 90209e64776..e0ef889faa1 100644 --- a/src/sage/combinat/species/product_species.py +++ b/src/sage/combinat/species/product_species.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat """ Product species """ diff --git a/src/sage/combinat/species/recursive_species.py b/src/sage/combinat/species/recursive_species.py index 8eaabf0d2a8..c35e7843b2c 100644 --- a/src/sage/combinat/species/recursive_species.py +++ b/src/sage/combinat/species/recursive_species.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat """ Recursive Species """ diff --git a/src/sage/combinat/species/set_species.py b/src/sage/combinat/species/set_species.py index 94aa893cf46..1d837ba723b 100644 --- a/src/sage/combinat/species/set_species.py +++ b/src/sage/combinat/species/set_species.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat """ Set Species """ diff --git a/src/sage/combinat/species/species.py b/src/sage/combinat/species/species.py index 705dbd22494..af092883c79 100644 --- a/src/sage/combinat/species/species.py +++ b/src/sage/combinat/species/species.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat """ Combinatorial Species diff --git a/src/sage/combinat/species/structure.py b/src/sage/combinat/species/structure.py index b3003ed0f13..6fd7396888b 100644 --- a/src/sage/combinat/species/structure.py +++ b/src/sage/combinat/species/structure.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Species structures diff --git a/src/sage/combinat/species/subset_species.py b/src/sage/combinat/species/subset_species.py index 2e7a6697e29..fff66dd3f63 100644 --- a/src/sage/combinat/species/subset_species.py +++ b/src/sage/combinat/species/subset_species.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat """ Subset Species """ diff --git a/src/sage/combinat/species/sum_species.py b/src/sage/combinat/species/sum_species.py index b3ff129dc55..ff3ebbe8f94 100644 --- a/src/sage/combinat/species/sum_species.py +++ b/src/sage/combinat/species/sum_species.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat """ Sum species """ diff --git a/src/sage/combinat/subset.py b/src/sage/combinat/subset.py index 65dd76b8490..6d0439e8cb5 100644 --- a/src/sage/combinat/subset.py +++ b/src/sage/combinat/subset.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Subsets diff --git a/src/sage/combinat/subsets_hereditary.py b/src/sage/combinat/subsets_hereditary.py index 33b576e3cf1..12f62cd64ce 100644 --- a/src/sage/combinat/subsets_hereditary.py +++ b/src/sage/combinat/subsets_hereditary.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Subsets satisfying a hereditary property """ diff --git a/src/sage/combinat/subsets_pairwise.py b/src/sage/combinat/subsets_pairwise.py index ed5613157f2..9f207f5cc4d 100644 --- a/src/sage/combinat/subsets_pairwise.py +++ b/src/sage/combinat/subsets_pairwise.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Subsets whose elements satisfy a predicate pairwise """ diff --git a/src/sage/combinat/subword.py b/src/sage/combinat/subword.py index 9cced6b8645..4f4425afdc8 100644 --- a/src/sage/combinat/subword.py +++ b/src/sage/combinat/subword.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Subwords diff --git a/src/sage/combinat/subword_complex.py b/src/sage/combinat/subword_complex.py index 117f5599f70..307b556e1d1 100644 --- a/src/sage/combinat/subword_complex.py +++ b/src/sage/combinat/subword_complex.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.graphs sage.modules r""" Subword complex diff --git a/src/sage/combinat/subword_complex_c.pyx b/src/sage/combinat/subword_complex_c.pyx index 31a985f8675..8c944a28210 100644 --- a/src/sage/combinat/subword_complex_c.pyx +++ b/src/sage/combinat/subword_complex_c.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.modules cpdef int _flip_c(W, set positions, list extended_root_conf_indices, diff --git a/src/sage/combinat/super_tableau.py b/src/sage/combinat/super_tableau.py index ffcdb0fc374..199841b1117 100644 --- a/src/sage/combinat/super_tableau.py +++ b/src/sage/combinat/super_tableau.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Super Tableaux diff --git a/src/sage/combinat/superpartition.py b/src/sage/combinat/superpartition.py index a2e77f8a5b1..7ae02eaeda6 100644 --- a/src/sage/combinat/superpartition.py +++ b/src/sage/combinat/superpartition.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Super Partitions diff --git a/src/sage/combinat/symmetric_group_algebra.py b/src/sage/combinat/symmetric_group_algebra.py index 031940f5283..67220c9d5fe 100644 --- a/src/sage/combinat/symmetric_group_algebra.py +++ b/src/sage/combinat/symmetric_group_algebra.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules sage.groups r""" Symmetric Group Algebra diff --git a/src/sage/combinat/symmetric_group_representations.py b/src/sage/combinat/symmetric_group_representations.py index 7c975919a75..dd883082f6e 100644 --- a/src/sage/combinat/symmetric_group_representations.py +++ b/src/sage/combinat/symmetric_group_representations.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules sage.groups r""" Representations of the Symmetric Group diff --git a/src/sage/combinat/t_sequences.py b/src/sage/combinat/t_sequences.py index 7f0e8492ca4..8e9c8111818 100644 --- a/src/sage/combinat/t_sequences.py +++ b/src/sage/combinat/t_sequences.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" T-sequences diff --git a/src/sage/combinat/tableau.py b/src/sage/combinat/tableau.py index c4009853da6..acfed5551f0 100644 --- a/src/sage/combinat/tableau.py +++ b/src/sage/combinat/tableau.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Tableaux diff --git a/src/sage/combinat/tableau_residues.py b/src/sage/combinat/tableau_residues.py index ae3f65e7196..3b22cb88fcc 100644 --- a/src/sage/combinat/tableau_residues.py +++ b/src/sage/combinat/tableau_residues.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Residue sequences of tableaux diff --git a/src/sage/combinat/tableau_tuple.py b/src/sage/combinat/tableau_tuple.py index 807823a4af7..ef5947dbb23 100644 --- a/src/sage/combinat/tableau_tuple.py +++ b/src/sage/combinat/tableau_tuple.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" TableauTuples diff --git a/src/sage/combinat/tamari_lattices.py b/src/sage/combinat/tamari_lattices.py index 43191540d71..1ec16ef0446 100644 --- a/src/sage/combinat/tamari_lattices.py +++ b/src/sage/combinat/tamari_lattices.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # sage.doctest: needs sage.modules r""" Generalized Tamari lattices diff --git a/src/sage/combinat/tiling.py b/src/sage/combinat/tiling.py index 723557eb9ab..b4d36474142 100644 --- a/src/sage/combinat/tiling.py +++ b/src/sage/combinat/tiling.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Tiling Solver diff --git a/src/sage/combinat/tools.py b/src/sage/combinat/tools.py index 63c611581c8..feb2c5d4975 100644 --- a/src/sage/combinat/tools.py +++ b/src/sage/combinat/tools.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Transitive ideal closure tool """ diff --git a/src/sage/combinat/triangles_FHM.py b/src/sage/combinat/triangles_FHM.py index 8e3399d4da4..39313e439da 100644 --- a/src/sage/combinat/triangles_FHM.py +++ b/src/sage/combinat/triangles_FHM.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat """ Combinatorial triangles for posets and fans diff --git a/src/sage/combinat/tuple.py b/src/sage/combinat/tuple.py index 54d1caf9181..3e49394591c 100644 --- a/src/sage/combinat/tuple.py +++ b/src/sage/combinat/tuple.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Tuples """ diff --git a/src/sage/combinat/tutorial.py b/src/sage/combinat/tutorial.py index 6f9fad1c5dd..5279e06b03e 100644 --- a/src/sage/combinat/tutorial.py +++ b/src/sage/combinat/tutorial.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Introduction to combinatorics in Sage diff --git a/src/sage/combinat/vector_partition.py b/src/sage/combinat/vector_partition.py index 2bd89dbb244..e7b42038796 100644 --- a/src/sage/combinat/vector_partition.py +++ b/src/sage/combinat/vector_partition.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Vector Partitions diff --git a/src/sage/combinat/words/abstract_word.py b/src/sage/combinat/words/abstract_word.py index eaf5cbd4975..b94d42a31c4 100644 --- a/src/sage/combinat/words/abstract_word.py +++ b/src/sage/combinat/words/abstract_word.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Abstract word (finite or infinite) diff --git a/src/sage/combinat/words/all.py b/src/sage/combinat/words/all.py index 687b572c8e5..b52d56957b5 100644 --- a/src/sage/combinat/words/all.py +++ b/src/sage/combinat/words/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Combinatorics on words diff --git a/src/sage/combinat/words/alphabet.py b/src/sage/combinat/words/alphabet.py index 19ac17054b8..ea53ac437d0 100644 --- a/src/sage/combinat/words/alphabet.py +++ b/src/sage/combinat/words/alphabet.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Alphabet diff --git a/src/sage/combinat/words/finite_word.py b/src/sage/combinat/words/finite_word.py index 41613ed61e2..a0a66ba56dd 100644 --- a/src/sage/combinat/words/finite_word.py +++ b/src/sage/combinat/words/finite_word.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Finite word diff --git a/src/sage/combinat/words/infinite_word.py b/src/sage/combinat/words/infinite_word.py index 8baae7c1c3c..1fee1c7c8cf 100644 --- a/src/sage/combinat/words/infinite_word.py +++ b/src/sage/combinat/words/infinite_word.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Infinite word diff --git a/src/sage/combinat/words/lyndon_word.py b/src/sage/combinat/words/lyndon_word.py index 209f9099f18..9e375ffdf56 100644 --- a/src/sage/combinat/words/lyndon_word.py +++ b/src/sage/combinat/words/lyndon_word.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat """ Lyndon words """ diff --git a/src/sage/combinat/words/morphic.py b/src/sage/combinat/words/morphic.py index c036db8e2ec..342375cf387 100644 --- a/src/sage/combinat/words/morphic.py +++ b/src/sage/combinat/words/morphic.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Morphic words diff --git a/src/sage/combinat/words/morphism.py b/src/sage/combinat/words/morphism.py index abb99d9f685..963b18748f1 100644 --- a/src/sage/combinat/words/morphism.py +++ b/src/sage/combinat/words/morphism.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Word morphisms/substitutions diff --git a/src/sage/combinat/words/paths.py b/src/sage/combinat/words/paths.py index 5106615ae9b..3041fdc50a2 100644 --- a/src/sage/combinat/words/paths.py +++ b/src/sage/combinat/words/paths.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat sage.modules r""" Word paths diff --git a/src/sage/combinat/words/shuffle_product.py b/src/sage/combinat/words/shuffle_product.py index 7363d642126..6a2374f7ca8 100644 --- a/src/sage/combinat/words/shuffle_product.py +++ b/src/sage/combinat/words/shuffle_product.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Shuffle product of words diff --git a/src/sage/combinat/words/suffix_trees.py b/src/sage/combinat/words/suffix_trees.py index 8375bde1a8a..5d5ba768c3b 100644 --- a/src/sage/combinat/words/suffix_trees.py +++ b/src/sage/combinat/words/suffix_trees.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Suffix Tries and Suffix Trees """ diff --git a/src/sage/combinat/words/word.py b/src/sage/combinat/words/word.py index 222501a5dfd..9bfc13c6d89 100644 --- a/src/sage/combinat/words/word.py +++ b/src/sage/combinat/words/word.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Word classes diff --git a/src/sage/combinat/words/word_char.pyx b/src/sage/combinat/words/word_char.pyx index 1b68cd293ce..a7e207d50a4 100644 --- a/src/sage/combinat/words/word_char.pyx +++ b/src/sage/combinat/words/word_char.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Fast word datatype using an array of unsigned char """ diff --git a/src/sage/combinat/words/word_datatypes.pxd b/src/sage/combinat/words/word_datatypes.pxd index c3329bd5a78..5a2019651ec 100644 --- a/src/sage/combinat/words/word_datatypes.pxd +++ b/src/sage/combinat/words/word_datatypes.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat cdef class WordDatatype(): cdef public _parent cdef _hash diff --git a/src/sage/combinat/words/word_datatypes.pyx b/src/sage/combinat/words/word_datatypes.pyx index 9ab88d799ba..429b0a00ab3 100644 --- a/src/sage/combinat/words/word_datatypes.pyx +++ b/src/sage/combinat/words/word_datatypes.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Datatypes for finite words """ diff --git a/src/sage/combinat/words/word_generators.py b/src/sage/combinat/words/word_generators.py index 641319f2ee7..3357834f8fb 100644 --- a/src/sage/combinat/words/word_generators.py +++ b/src/sage/combinat/words/word_generators.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Common words diff --git a/src/sage/combinat/words/word_infinite_datatypes.py b/src/sage/combinat/words/word_infinite_datatypes.py index 9998d3487d5..5525342ae93 100644 --- a/src/sage/combinat/words/word_infinite_datatypes.py +++ b/src/sage/combinat/words/word_infinite_datatypes.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Datatypes for words defined by iterators and callables """ diff --git a/src/sage/combinat/words/word_options.py b/src/sage/combinat/words/word_options.py index 2d2bf3bc7ff..7a6d553f3cb 100644 --- a/src/sage/combinat/words/word_options.py +++ b/src/sage/combinat/words/word_options.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" User-customizable options for words """ diff --git a/src/sage/combinat/words/words.py b/src/sage/combinat/words/words.py index 2e3f82bede1..e3414ca0be1 100644 --- a/src/sage/combinat/words/words.py +++ b/src/sage/combinat/words/words.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Set of words diff --git a/src/sage/combinat/yang_baxter_graph.py b/src/sage/combinat/yang_baxter_graph.py index 451bdc9e82e..be2e2f6f58c 100644 --- a/src/sage/combinat/yang_baxter_graph.py +++ b/src/sage/combinat/yang_baxter_graph.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" Yang-Baxter Graphs """ diff --git a/src/sage/cpython/__init__.py b/src/sage/cpython/__init__.py index 0e4de12a8b1..1742d8853b4 100644 --- a/src/sage/cpython/__init__.py +++ b/src/sage/cpython/__init__.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects # sage.cpython is an ordinary package, not a namespace package. # This package is imported very early, which is why workarounds/monkey-patching diff --git a/src/sage/cpython/_py2_random.py b/src/sage/cpython/_py2_random.py index 3ba96ccbbd1..d949b1a2852 100644 --- a/src/sage/cpython/_py2_random.py +++ b/src/sage/cpython/_py2_random.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects """ Except from the `random` module from Python 2.7.14 used solely for consistency in the doctest suite for random results that depend on the Python PRNG. diff --git a/src/sage/cpython/all.py b/src/sage/cpython/all.py index d48ee4c7d45..f17f7a6559a 100644 --- a/src/sage/cpython/all.py +++ b/src/sage/cpython/all.py @@ -1,2 +1,3 @@ +# sage_setup: distribution = sagemath-objects from sage.cpython.debug import getattr_debug, type_debug from sage.cpython.getattr import raw_getattr diff --git a/src/sage/cpython/atexit.pyx b/src/sage/cpython/atexit.pyx index e5a82735137..2228cba4e98 100644 --- a/src/sage/cpython/atexit.pyx +++ b/src/sage/cpython/atexit.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects # -*- encoding: utf-8 -*- """Utilities for interfacing with the standard library's atexit module.""" diff --git a/src/sage/cpython/builtin_types.pyx b/src/sage/cpython/builtin_types.pyx index bfac8c414a7..f094d909dbf 100644 --- a/src/sage/cpython/builtin_types.pyx +++ b/src/sage/cpython/builtin_types.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects from cpython.object cimport PyTypeObject cdef extern from *: diff --git a/src/sage/cpython/cython_metaclass.pxd b/src/sage/cpython/cython_metaclass.pxd index 189eb04f1c4..fc4bb020ed0 100644 --- a/src/sage/cpython/cython_metaclass.pxd +++ b/src/sage/cpython/cython_metaclass.pxd @@ -1,2 +1,3 @@ +# sage_setup: distribution = sagemath-objects cdef extern from "cython_metaclass.h": PyMethodDescr_CallSelf(desc, self) diff --git a/src/sage/cpython/cython_metaclass.pyx b/src/sage/cpython/cython_metaclass.pyx index a8fa92fc1a8..6447ed19e6d 100644 --- a/src/sage/cpython/cython_metaclass.pyx +++ b/src/sage/cpython/cython_metaclass.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects """ Metaclasses for Cython extension types diff --git a/src/sage/cpython/debug.pyx b/src/sage/cpython/debug.pyx index 09680986673..79aba1a7fbe 100644 --- a/src/sage/cpython/debug.pyx +++ b/src/sage/cpython/debug.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects """ Various functions to debug Python internals """ diff --git a/src/sage/cpython/dict_del_by_value.pxd b/src/sage/cpython/dict_del_by_value.pxd index 71572b8951f..1bb9f8bd1c5 100644 --- a/src/sage/cpython/dict_del_by_value.pxd +++ b/src/sage/cpython/dict_del_by_value.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects from cpython.object cimport PyObject cdef extern from "Python.h": ctypedef struct PyDictObject diff --git a/src/sage/cpython/dict_del_by_value.pyx b/src/sage/cpython/dict_del_by_value.pyx index fdeb5fee8ff..1302dc2c891 100644 --- a/src/sage/cpython/dict_del_by_value.pyx +++ b/src/sage/cpython/dict_del_by_value.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects """ Delete item from PyDict by exact value and hash diff --git a/src/sage/cpython/getattr.pxd b/src/sage/cpython/getattr.pxd index 299509a00dc..ed6067132db 100644 --- a/src/sage/cpython/getattr.pxd +++ b/src/sage/cpython/getattr.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects # A class that allows for a more efficient creation # of attribute errors, so that raising them requires # less time. diff --git a/src/sage/cpython/getattr.pyx b/src/sage/cpython/getattr.pyx index e4982020879..166247e7d2f 100644 --- a/src/sage/cpython/getattr.pyx +++ b/src/sage/cpython/getattr.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects """ Variants of getattr() """ diff --git a/src/sage/cpython/pycore_long.pxd b/src/sage/cpython/pycore_long.pxd index 41de637ff18..4fe503a247e 100644 --- a/src/sage/cpython/pycore_long.pxd +++ b/src/sage/cpython/pycore_long.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects from cpython.longintrepr cimport py_long, digit cdef extern from "pycore_long.h": diff --git a/src/sage/cpython/python_debug.pxd b/src/sage/cpython/python_debug.pxd index a7a2f112d00..f43779e5362 100644 --- a/src/sage/cpython/python_debug.pxd +++ b/src/sage/cpython/python_debug.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects # Python can be built with extensive debugging support. This file lets # Sage know about which debugging options are enabled. # diff --git a/src/sage/cpython/string.pxd b/src/sage/cpython/string.pxd index dbf1c91c08b..a7c2977e2fd 100644 --- a/src/sage/cpython/string.pxd +++ b/src/sage/cpython/string.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects # **************************************************************************** # Copyright (C) 2017 Erik M. Bray # diff --git a/src/sage/cpython/string.pyx b/src/sage/cpython/string.pyx index 554a8a128be..cc1f64f3e3d 100644 --- a/src/sage/cpython/string.pyx +++ b/src/sage/cpython/string.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects # -*- encoding: utf-8 -*- """ String <-> bytes encoding/decoding diff --git a/src/sage/cpython/type.pxd b/src/sage/cpython/type.pxd index f3f80c7a6c6..2f77fe0a88e 100644 --- a/src/sage/cpython/type.pxd +++ b/src/sage/cpython/type.pxd @@ -1 +1,2 @@ +# sage_setup: distribution = sagemath-objects cpdef bint can_assign_class(obj) noexcept diff --git a/src/sage/cpython/type.pyx b/src/sage/cpython/type.pyx index f9dcabc5df4..d2041c13ab5 100644 --- a/src/sage/cpython/type.pyx +++ b/src/sage/cpython/type.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects """ Type internals """ diff --git a/src/sage/cpython/wrapperdescr.pxd b/src/sage/cpython/wrapperdescr.pxd index 2260c062f1f..51b4a112b03 100644 --- a/src/sage/cpython/wrapperdescr.pxd +++ b/src/sage/cpython/wrapperdescr.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects from cpython.object cimport PyObject, PyTypeObject cdef extern from *: diff --git a/src/sage/cpython/wrapperdescr.pyx b/src/sage/cpython/wrapperdescr.pyx index 5738a87af46..190c2d0d12b 100644 --- a/src/sage/cpython/wrapperdescr.pyx +++ b/src/sage/cpython/wrapperdescr.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects """ Slot wrappers diff --git a/src/sage/crypto/__init__.py b/src/sage/crypto/__init__.py index 107a9733a62..8d79ceb4559 100644 --- a/src/sage/crypto/__init__.py +++ b/src/sage/crypto/__init__.py @@ -1,2 +1,3 @@ +# sage_setup: distribution = sagemath-modules from sage.misc.lazy_import import lazy_import lazy_import('sage.crypto.lattice', 'gen_lattice') diff --git a/src/sage/crypto/all.py b/src/sage/crypto/all.py index 1ea6c8f20a7..8337bd45db2 100644 --- a/src/sage/crypto/all.py +++ b/src/sage/crypto/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules import sage.crypto.sbox from sage.misc.persist import register_unpickle_override register_unpickle_override('sage.crypto.mq.sbox', 'SBox', sage.crypto.sbox.SBox) diff --git a/src/sage/crypto/block_cipher/all.py b/src/sage/crypto/block_cipher/all.py index 0a5ec657f5d..95e04d98c0e 100644 --- a/src/sage/crypto/block_cipher/all.py +++ b/src/sage/crypto/block_cipher/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.misc.lazy_import import lazy_import lazy_import('sage.crypto.block_cipher.miniaes', 'MiniAES') diff --git a/src/sage/crypto/block_cipher/des.py b/src/sage/crypto/block_cipher/des.py index 08afe715710..3accbd180c3 100644 --- a/src/sage/crypto/block_cipher/des.py +++ b/src/sage/crypto/block_cipher/des.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.modules sage.rings.finite_rings r""" DES diff --git a/src/sage/crypto/block_cipher/miniaes.py b/src/sage/crypto/block_cipher/miniaes.py index 6eb9568b9fc..45cf03ad43c 100644 --- a/src/sage/crypto/block_cipher/miniaes.py +++ b/src/sage/crypto/block_cipher/miniaes.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.combinat sage.modules sage.rings.finite_rings r""" Mini-AES diff --git a/src/sage/crypto/block_cipher/present.py b/src/sage/crypto/block_cipher/present.py index 6e5605692a1..cdc54bcdbd2 100644 --- a/src/sage/crypto/block_cipher/present.py +++ b/src/sage/crypto/block_cipher/present.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.modules sage.rings.finite_rings r""" PRESENT diff --git a/src/sage/crypto/block_cipher/sdes.py b/src/sage/crypto/block_cipher/sdes.py index 30b8cf2516c..04f8d373ef8 100644 --- a/src/sage/crypto/block_cipher/sdes.py +++ b/src/sage/crypto/block_cipher/sdes.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.combinat sage.rings.finite_rings r""" Simplified DES diff --git a/src/sage/crypto/boolean_function.pxd b/src/sage/crypto/boolean_function.pxd index d9fd1017fcd..0299f8323fa 100644 --- a/src/sage/crypto/boolean_function.pxd +++ b/src/sage/crypto/boolean_function.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules cdef inline unsigned int hamming_weight(unsigned int x) noexcept: # valid for 32bits x -= (x>>1) & 0x55555555UL # 0-2 in 2 bits diff --git a/src/sage/crypto/boolean_function.pyx b/src/sage/crypto/boolean_function.pyx index 6190129278f..9074251e9bf 100644 --- a/src/sage/crypto/boolean_function.pyx +++ b/src/sage/crypto/boolean_function.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # -*- coding: utf-8 -*- """ Boolean functions diff --git a/src/sage/crypto/cipher.py b/src/sage/crypto/cipher.py index 14e9df6a504..0b5403415f7 100644 --- a/src/sage/crypto/cipher.py +++ b/src/sage/crypto/cipher.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.combinat """ Ciphers diff --git a/src/sage/crypto/classical.py b/src/sage/crypto/classical.py index e88ad4924bb..8d7b820fc10 100644 --- a/src/sage/crypto/classical.py +++ b/src/sage/crypto/classical.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.combinat r""" Classical Cryptosystems diff --git a/src/sage/crypto/classical_cipher.py b/src/sage/crypto/classical_cipher.py index b775c426058..d071c537d13 100644 --- a/src/sage/crypto/classical_cipher.py +++ b/src/sage/crypto/classical_cipher.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.combinat """ Classical Ciphers diff --git a/src/sage/crypto/cryptosystem.py b/src/sage/crypto/cryptosystem.py index 488b9a014b5..6524ecc0185 100644 --- a/src/sage/crypto/cryptosystem.py +++ b/src/sage/crypto/cryptosystem.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.combinat r""" Cryptosystems diff --git a/src/sage/crypto/lattice.py b/src/sage/crypto/lattice.py index ce6c63f66f3..83223e12779 100644 --- a/src/sage/crypto/lattice.py +++ b/src/sage/crypto/lattice.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.modules """ Hard Lattice Generator diff --git a/src/sage/crypto/lfsr.py b/src/sage/crypto/lfsr.py index 869bdcf5990..5b25196d732 100644 --- a/src/sage/crypto/lfsr.py +++ b/src/sage/crypto/lfsr.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.rings.finite_rings r""" Linear feedback shift register (LFSR) sequence commands diff --git a/src/sage/crypto/lwe.py b/src/sage/crypto/lwe.py index 25bb2a3fb47..e4b3367afc7 100644 --- a/src/sage/crypto/lwe.py +++ b/src/sage/crypto/lwe.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs scipy sage.symbolic """ (Ring-)LWE oracle generators diff --git a/src/sage/crypto/mq/__init__.py b/src/sage/crypto/mq/__init__.py index bc96f8eb607..a0b767f60a5 100644 --- a/src/sage/crypto/mq/__init__.py +++ b/src/sage/crypto/mq/__init__.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.misc.lazy_import import lazy_import lazy_import('sage.crypto.mq.rijndael_gf', 'RijndaelGF') lazy_import('sage.crypto.mq.sr', 'SR') diff --git a/src/sage/crypto/mq/mpolynomialsystemgenerator.py b/src/sage/crypto/mq/mpolynomialsystemgenerator.py index 4416d9ef7f6..31690a55e34 100644 --- a/src/sage/crypto/mq/mpolynomialsystemgenerator.py +++ b/src/sage/crypto/mq/mpolynomialsystemgenerator.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Abstract base class for generators of polynomial systems diff --git a/src/sage/crypto/mq/rijndael_gf.py b/src/sage/crypto/mq/rijndael_gf.py index 55ae295f2cd..5192c742694 100644 --- a/src/sage/crypto/mq/rijndael_gf.py +++ b/src/sage/crypto/mq/rijndael_gf.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.modules sage.rings.finite_rings r""" Rijndael-GF diff --git a/src/sage/crypto/mq/sbox.py b/src/sage/crypto/mq/sbox.py index b05411fe0d3..ea2e3ea529e 100644 --- a/src/sage/crypto/mq/sbox.py +++ b/src/sage/crypto/mq/sbox.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.misc.lazy_import import lazy_import lazy_import('sage.crypto.sbox', ['SBox', diff --git a/src/sage/crypto/mq/sr.py b/src/sage/crypto/mq/sr.py index 49b7d67374d..28d16286ad5 100644 --- a/src/sage/crypto/mq/sr.py +++ b/src/sage/crypto/mq/sr.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.modules sage.rings.finite_rings r""" Small Scale Variants of the AES (SR) Polynomial System Generator diff --git a/src/sage/crypto/public_key/all.py b/src/sage/crypto/public_key/all.py index 56416dd76b5..c9e6b16d743 100644 --- a/src/sage/crypto/public_key/all.py +++ b/src/sage/crypto/public_key/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.misc.lazy_import import lazy_import lazy_import('sage.crypto.public_key.blum_goldwasser', 'BlumGoldwasser') diff --git a/src/sage/crypto/public_key/blum_goldwasser.py b/src/sage/crypto/public_key/blum_goldwasser.py index 1d090673400..c759cc2784f 100644 --- a/src/sage/crypto/public_key/blum_goldwasser.py +++ b/src/sage/crypto/public_key/blum_goldwasser.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.combinat r""" Blum-Goldwasser Probabilistic Encryption diff --git a/src/sage/crypto/sbox.pyx b/src/sage/crypto/sbox.pyx index a08eacb4740..0cdb6f29ce2 100644 --- a/src/sage/crypto/sbox.pyx +++ b/src/sage/crypto/sbox.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.modules sage.rings.finite_rings r""" S-Boxes and Their Algebraic Representations diff --git a/src/sage/crypto/sboxes.py b/src/sage/crypto/sboxes.py index 749593c401b..5f16103a641 100644 --- a/src/sage/crypto/sboxes.py +++ b/src/sage/crypto/sboxes.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.modules sage.rings.finite_rings r""" S-Boxes used in cryptographic schemes diff --git a/src/sage/crypto/stream.py b/src/sage/crypto/stream.py index 636f588ad97..a7d8760d7d5 100644 --- a/src/sage/crypto/stream.py +++ b/src/sage/crypto/stream.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.combinat sage.rings.finite_rings """ Stream Cryptosystems diff --git a/src/sage/crypto/stream_cipher.py b/src/sage/crypto/stream_cipher.py index 7eb69e3c7b7..f2262ee43de 100644 --- a/src/sage/crypto/stream_cipher.py +++ b/src/sage/crypto/stream_cipher.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.combinat sage.rings.finite_rings """ Stream Ciphers diff --git a/src/sage/crypto/util.py b/src/sage/crypto/util.py index 8590c83db5c..1610427b90e 100644 --- a/src/sage/crypto/util.py +++ b/src/sage/crypto/util.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.combinat """ Utility Functions for Cryptography diff --git a/src/sage/data_structures/all.py b/src/sage/data_structures/all.py index eac1b4b8931..8c4200be2c3 100644 --- a/src/sage/data_structures/all.py +++ b/src/sage/data_structures/all.py @@ -1,2 +1,3 @@ +# sage_setup: distribution = sagemath-categories from sage.data_structures.bitset import Bitset, FrozenBitset diff --git a/src/sage/data_structures/binary_matrix.pxd b/src/sage/data_structures/binary_matrix.pxd index 848489e7697..44f965b8c50 100644 --- a/src/sage/data_structures/binary_matrix.pxd +++ b/src/sage/data_structures/binary_matrix.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" A binary matrix datatype in Cython diff --git a/src/sage/data_structures/binary_search.pxd b/src/sage/data_structures/binary_search.pxd index 5eee088e8b8..88b025a3766 100644 --- a/src/sage/data_structures/binary_search.pxd +++ b/src/sage/data_structures/binary_search.pxd @@ -1,2 +1,3 @@ +# sage_setup: distribution = sagemath-categories cdef Py_ssize_t binary_search(Py_ssize_t* v, Py_ssize_t n, Py_ssize_t x, Py_ssize_t* ins) noexcept -cdef Py_ssize_t binary_search0(Py_ssize_t* v, Py_ssize_t n, Py_ssize_t x) noexcept \ No newline at end of file +cdef Py_ssize_t binary_search0(Py_ssize_t* v, Py_ssize_t n, Py_ssize_t x) noexcept diff --git a/src/sage/data_structures/binary_search.pyx b/src/sage/data_structures/binary_search.pyx index 173affa5687..47d92ca3a16 100644 --- a/src/sage/data_structures/binary_search.pyx +++ b/src/sage/data_structures/binary_search.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # We can probably get away with only having the mpz_binary_searches in here. # I'm too scared to get rid of it at 2am though. cdef Py_ssize_t binary_search(Py_ssize_t* v, Py_ssize_t n, Py_ssize_t x, Py_ssize_t* ins) noexcept: diff --git a/src/sage/data_structures/bitset.pxd b/src/sage/data_structures/bitset.pxd index 0d72f7eb6ed..2de564430da 100644 --- a/src/sage/data_structures/bitset.pxd +++ b/src/sage/data_structures/bitset.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories #***************************************************************************** # Copyright (C) 2008 Robert Bradshaw # diff --git a/src/sage/data_structures/bitset.pyx b/src/sage/data_structures/bitset.pyx index 5c341c8a003..3e2ad8490d2 100644 --- a/src/sage/data_structures/bitset.pyx +++ b/src/sage/data_structures/bitset.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Bitsets diff --git a/src/sage/data_structures/bitset_base.pxd b/src/sage/data_structures/bitset_base.pxd index 60082345ccc..a2571fff97b 100644 --- a/src/sage/data_structures/bitset_base.pxd +++ b/src/sage/data_structures/bitset_base.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # distutils: depends = bitset_intrinsics.h # distutils: libraries = gmp """ diff --git a/src/sage/data_structures/bitset_base.pyx b/src/sage/data_structures/bitset_base.pyx index 616e3b1ab04..7ad65022649 100644 --- a/src/sage/data_structures/bitset_base.pyx +++ b/src/sage/data_structures/bitset_base.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Few functions from ``bitset_base.pxd`` that are not inlined. """ diff --git a/src/sage/data_structures/blas_dict.pxd b/src/sage/data_structures/blas_dict.pxd index 3def4f5a950..5a69a00d015 100644 --- a/src/sage/data_structures/blas_dict.pxd +++ b/src/sage/data_structures/blas_dict.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories cpdef int iaxpy(a, dict X, dict Y, bint remove_zeros=*, bint factor_on_left=*) except -1 cpdef dict axpy(a, dict X, dict Y, bint factor_on_left=*) noexcept cpdef dict negate(dict D) noexcept diff --git a/src/sage/data_structures/blas_dict.pyx b/src/sage/data_structures/blas_dict.pyx index c624aa6a2d5..69b43d928ac 100644 --- a/src/sage/data_structures/blas_dict.pyx +++ b/src/sage/data_structures/blas_dict.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # -*- coding: utf-8 -*- r""" Basic Linear Algebra Subroutines on dictionaries diff --git a/src/sage/data_structures/bounded_integer_sequences.pxd b/src/sage/data_structures/bounded_integer_sequences.pxd index 44267b4fb46..b1a1f0961c7 100644 --- a/src/sage/data_structures/bounded_integer_sequences.pxd +++ b/src/sage/data_structures/bounded_integer_sequences.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint from sage.libs.gmp.types cimport * from sage.data_structures.bitset cimport * diff --git a/src/sage/data_structures/bounded_integer_sequences.pyx b/src/sage/data_structures/bounded_integer_sequences.pyx index 7e6513ec1b0..27115cd85f5 100644 --- a/src/sage/data_structures/bounded_integer_sequences.pyx +++ b/src/sage/data_structures/bounded_integer_sequences.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint r""" Sequences of bounded integers diff --git a/src/sage/data_structures/list_of_pairs.pxd b/src/sage/data_structures/list_of_pairs.pxd index 4dbb57c201c..e16c6ae628c 100644 --- a/src/sage/data_structures/list_of_pairs.pxd +++ b/src/sage/data_structures/list_of_pairs.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories cimport cython cdef struct pair_s: diff --git a/src/sage/data_structures/list_of_pairs.pyx b/src/sage/data_structures/list_of_pairs.pyx index 258320353a0..a8e213aea36 100644 --- a/src/sage/data_structures/list_of_pairs.pyx +++ b/src/sage/data_structures/list_of_pairs.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" A data structure to store lists of integer pairs of large size. """ diff --git a/src/sage/data_structures/mutable_poset.py b/src/sage/data_structures/mutable_poset.py index 97bfcf1cd52..8d5d49be8d6 100644 --- a/src/sage/data_structures/mutable_poset.py +++ b/src/sage/data_structures/mutable_poset.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Mutable Poset diff --git a/src/sage/data_structures/sparse_bitset.pxd b/src/sage/data_structures/sparse_bitset.pxd index 9b95c55675b..9bebdb48b22 100644 --- a/src/sage/data_structures/sparse_bitset.pxd +++ b/src/sage/data_structures/sparse_bitset.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Sparse bitset. diff --git a/src/sage/data_structures/stream.py b/src/sage/data_structures/stream.py index 8838a4f1754..d30b9ed153c 100644 --- a/src/sage/data_structures/stream.py +++ b/src/sage/data_structures/stream.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Streams diff --git a/src/sage/databases/knotinfo_db.py b/src/sage/databases/knotinfo_db.py index 72e39796965..0fe218b41b4 100644 --- a/src/sage/databases/knotinfo_db.py +++ b/src/sage/databases/knotinfo_db.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # -*- coding: utf-8 -*- r""" KnotInfo database diff --git a/src/sage/doctest/__init__.py b/src/sage/doctest/__init__.py index 95280f2c603..d0892b4ed55 100644 --- a/src/sage/doctest/__init__.py +++ b/src/sage/doctest/__init__.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl # This flag gets set to True by sage.doctest.forker.init_sage at the # beginning of each doctest run. DOCTEST_MODE = False diff --git a/src/sage/doctest/all.py b/src/sage/doctest/all.py index bc363e7830c..1ae5a6ab93c 100644 --- a/src/sage/doctest/all.py +++ b/src/sage/doctest/all.py @@ -1,2 +1,3 @@ +# sage_setup: distribution = sagemath-repl from sage.misc.lazy_import import lazy_import lazy_import('sage.doctest.control', 'run_doctests') diff --git a/src/sage/doctest/control.py b/src/sage/doctest/control.py index fd92dc386bf..65bc3360e4c 100644 --- a/src/sage/doctest/control.py +++ b/src/sage/doctest/control.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl """ Classes involved in doctesting diff --git a/src/sage/doctest/external.py b/src/sage/doctest/external.py index 9768202e76f..87e90dee4db 100644 --- a/src/sage/doctest/external.py +++ b/src/sage/doctest/external.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl """ Detecting external software diff --git a/src/sage/doctest/fixtures.py b/src/sage/doctest/fixtures.py index 9fbfdf86db9..01f931727df 100644 --- a/src/sage/doctest/fixtures.py +++ b/src/sage/doctest/fixtures.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl r""" Fixtures to help testing functionality diff --git a/src/sage/doctest/forker.py b/src/sage/doctest/forker.py index ef16027cdc3..68d26fbcb7d 100644 --- a/src/sage/doctest/forker.py +++ b/src/sage/doctest/forker.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl """ Processes for running doctests diff --git a/src/sage/doctest/parsing.py b/src/sage/doctest/parsing.py index 32d15b4c720..b5580a302f4 100644 --- a/src/sage/doctest/parsing.py +++ b/src/sage/doctest/parsing.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl # -*- encoding: utf-8 -*- """ Parsing docstrings diff --git a/src/sage/doctest/reporting.py b/src/sage/doctest/reporting.py index a86153ce326..bac84da558a 100644 --- a/src/sage/doctest/reporting.py +++ b/src/sage/doctest/reporting.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl # -*- coding: utf-8 -*- r""" Reporting doctest results diff --git a/src/sage/doctest/sources.py b/src/sage/doctest/sources.py index cae09766f5d..50d93799020 100644 --- a/src/sage/doctest/sources.py +++ b/src/sage/doctest/sources.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl """ Classes for sources of doctests diff --git a/src/sage/doctest/test.py b/src/sage/doctest/test.py index aa64974fd72..d200c61de7f 100644 --- a/src/sage/doctest/test.py +++ b/src/sage/doctest/test.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl """ Test the doctesting framework diff --git a/src/sage/doctest/util.py b/src/sage/doctest/util.py index b68068a0ce1..3fe9d3408bd 100644 --- a/src/sage/doctest/util.py +++ b/src/sage/doctest/util.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl """ Utility functions diff --git a/src/sage/dynamics/arithmetic_dynamics/affine_ds.py b/src/sage/dynamics/arithmetic_dynamics/affine_ds.py index 6938068bbc6..d89c79ee259 100644 --- a/src/sage/dynamics/arithmetic_dynamics/affine_ds.py +++ b/src/sage/dynamics/arithmetic_dynamics/affine_ds.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes r""" Dynamical systems on affine schemes diff --git a/src/sage/dynamics/arithmetic_dynamics/all.py b/src/sage/dynamics/arithmetic_dynamics/all.py index f536734b5d9..c60ab2bead6 100644 --- a/src/sage/dynamics/arithmetic_dynamics/all.py +++ b/src/sage/dynamics/arithmetic_dynamics/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes from sage.misc.lazy_import import lazy_import from .generic_ds import DynamicalSystem diff --git a/src/sage/dynamics/arithmetic_dynamics/berkovich_ds.py b/src/sage/dynamics/arithmetic_dynamics/berkovich_ds.py index 5559a48ecce..976d00fe6fd 100644 --- a/src/sage/dynamics/arithmetic_dynamics/berkovich_ds.py +++ b/src/sage/dynamics/arithmetic_dynamics/berkovich_ds.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.rings.padics r""" Dynamical systems on Berkovich space over `\CC_p`. diff --git a/src/sage/dynamics/arithmetic_dynamics/dynamical_semigroup.py b/src/sage/dynamics/arithmetic_dynamics/dynamical_semigroup.py index ebb8702a7db..540f633d545 100644 --- a/src/sage/dynamics/arithmetic_dynamics/dynamical_semigroup.py +++ b/src/sage/dynamics/arithmetic_dynamics/dynamical_semigroup.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes r""" Dynamical semigroups diff --git a/src/sage/dynamics/arithmetic_dynamics/endPN_automorphism_group.py b/src/sage/dynamics/arithmetic_dynamics/endPN_automorphism_group.py index c82f10aed0d..10c7ef51ce3 100644 --- a/src/sage/dynamics/arithmetic_dynamics/endPN_automorphism_group.py +++ b/src/sage/dynamics/arithmetic_dynamics/endPN_automorphism_group.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes r""" Automorphism groups of dynamical systems of the projective line diff --git a/src/sage/dynamics/arithmetic_dynamics/endPN_minimal_model.py b/src/sage/dynamics/arithmetic_dynamics/endPN_minimal_model.py index 9a2e5fd6e15..af921d7fc96 100644 --- a/src/sage/dynamics/arithmetic_dynamics/endPN_minimal_model.py +++ b/src/sage/dynamics/arithmetic_dynamics/endPN_minimal_model.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes r""" Sage functions to compute minimal models of rational functions under the conjugation action of `PGL_2(QQ)`. diff --git a/src/sage/dynamics/arithmetic_dynamics/generic_ds.py b/src/sage/dynamics/arithmetic_dynamics/generic_ds.py index 0afff17895c..3ed33e439a1 100644 --- a/src/sage/dynamics/arithmetic_dynamics/generic_ds.py +++ b/src/sage/dynamics/arithmetic_dynamics/generic_ds.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes r""" Generic dynamical systems on schemes diff --git a/src/sage/dynamics/arithmetic_dynamics/product_projective_ds.py b/src/sage/dynamics/arithmetic_dynamics/product_projective_ds.py index 44565197717..12a032a7d63 100644 --- a/src/sage/dynamics/arithmetic_dynamics/product_projective_ds.py +++ b/src/sage/dynamics/arithmetic_dynamics/product_projective_ds.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes r""" Dynamical systems for products of projective spaces diff --git a/src/sage/dynamics/arithmetic_dynamics/projective_ds.py b/src/sage/dynamics/arithmetic_dynamics/projective_ds.py index 8ade7f9b31b..3d959687d51 100644 --- a/src/sage/dynamics/arithmetic_dynamics/projective_ds.py +++ b/src/sage/dynamics/arithmetic_dynamics/projective_ds.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # -*- coding: utf-8 -*- r""" Dynamical systems on projective schemes diff --git a/src/sage/dynamics/arithmetic_dynamics/projective_ds_helper.pyx b/src/sage/dynamics/arithmetic_dynamics/projective_ds_helper.pyx index 9b0009629de..1146d4d8f34 100644 --- a/src/sage/dynamics/arithmetic_dynamics/projective_ds_helper.pyx +++ b/src/sage/dynamics/arithmetic_dynamics/projective_ds_helper.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes r""" Dynamical systems on projective varieties (Cython helper) diff --git a/src/sage/dynamics/arithmetic_dynamics/wehlerK3.py b/src/sage/dynamics/arithmetic_dynamics/wehlerK3.py index a0eedfed4a6..13345476337 100644 --- a/src/sage/dynamics/arithmetic_dynamics/wehlerK3.py +++ b/src/sage/dynamics/arithmetic_dynamics/wehlerK3.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes r""" Wehler K3 Surfaces diff --git a/src/sage/dynamics/complex_dynamics/all.py b/src/sage/dynamics/complex_dynamics/all.py index a4f82d614e5..d3ec5c8a41e 100644 --- a/src/sage/dynamics/complex_dynamics/all.py +++ b/src/sage/dynamics/complex_dynamics/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics from sage.misc.lazy_import import lazy_import lazy_import("sage.dynamics.complex_dynamics.mandel_julia", ["mandelbrot_plot", "external_ray", "kneading_sequence", "julia_plot"]) diff --git a/src/sage/dynamics/complex_dynamics/mandel_julia.py b/src/sage/dynamics/complex_dynamics/mandel_julia.py index f3d6fbfa5a0..43810d6582b 100644 --- a/src/sage/dynamics/complex_dynamics/mandel_julia.py +++ b/src/sage/dynamics/complex_dynamics/mandel_julia.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Mandelbrot and Julia sets diff --git a/src/sage/dynamics/complex_dynamics/mandel_julia_helper.pyx b/src/sage/dynamics/complex_dynamics/mandel_julia_helper.pyx index 32ffb1effe5..0378cdf0951 100644 --- a/src/sage/dynamics/complex_dynamics/mandel_julia_helper.pyx +++ b/src/sage/dynamics/complex_dynamics/mandel_julia_helper.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics # cython: binding=True # sage.doctest: needs sage.plot r""" diff --git a/src/sage/env.py b/src/sage/env.py index 39d09528788..6903a3dbba1 100644 --- a/src/sage/env.py +++ b/src/sage/env.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-environment r""" Sage Runtime Environment diff --git a/src/sage/ext/all__sagemath_objects.py b/src/sage/ext/all__sagemath_objects.py index 38e44245ad3..40da49fdd73 100644 --- a/src/sage/ext/all__sagemath_objects.py +++ b/src/sage/ext/all__sagemath_objects.py @@ -1,2 +1,3 @@ +# sage_setup: distribution = sagemath-objects # The presence of this file ensures that sage_setup for sagemath-objects # considers this directory as a namespace package diff --git a/src/sage/ext/cplusplus.pxd b/src/sage/ext/cplusplus.pxd index d748bf2347a..d5d2035ebe3 100644 --- a/src/sage/ext/cplusplus.pxd +++ b/src/sage/ext/cplusplus.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects #***************************************************************************** # Copyright (C) 2017 Jeroen Demeyer # diff --git a/src/sage/ext/fast_callable.pxd b/src/sage/ext/fast_callable.pxd index 73dd0311c12..9e03efad5d5 100644 --- a/src/sage/ext/fast_callable.pxd +++ b/src/sage/ext/fast_callable.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories cdef class Wrapper: cdef readonly object _orig_args cdef readonly object _metadata diff --git a/src/sage/ext/fast_callable.pyx b/src/sage/ext/fast_callable.pyx index 962b743b0c8..f930ac6b85c 100644 --- a/src/sage/ext/fast_callable.pyx +++ b/src/sage/ext/fast_callable.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Fast Expression Evaluation diff --git a/src/sage/ext/fast_eval.pxd b/src/sage/ext/fast_eval.pxd index e69de29bb2d..b230a6a2ad9 100644 --- a/src/sage/ext/fast_eval.pxd +++ b/src/sage/ext/fast_eval.pxd @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-categories diff --git a/src/sage/ext/fast_eval.pyx b/src/sage/ext/fast_eval.pyx index 52fbc8f7406..961b0825c8b 100644 --- a/src/sage/ext/fast_eval.pyx +++ b/src/sage/ext/fast_eval.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Fast Numerical Evaluation diff --git a/src/sage/ext/memory.pyx b/src/sage/ext/memory.pyx index e7961348cb8..d3136233a94 100644 --- a/src/sage/ext/memory.pyx +++ b/src/sage/ext/memory.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari """ Low-level memory allocation functions diff --git a/src/sage/ext/mod_int.pxd b/src/sage/ext/mod_int.pxd index f2ef6fe5527..98be0ab54dd 100644 --- a/src/sage/ext/mod_int.pxd +++ b/src/sage/ext/mod_int.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects """ The `mod_int` Data Type diff --git a/src/sage/ext/stdsage.pxd b/src/sage/ext/stdsage.pxd index 7249fbf84d8..e3bb99b541f 100644 --- a/src/sage/ext/stdsage.pxd +++ b/src/sage/ext/stdsage.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects """ Standard C helper code for Cython modules """ diff --git a/src/sage/features/__init__.py b/src/sage/features/__init__.py index d5669c3c9ff..6d751676b4c 100644 --- a/src/sage/features/__init__.py +++ b/src/sage/features/__init__.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-environment # -*- coding: utf-8 -*- r""" Testing for features of the environment at runtime diff --git a/src/sage/features/all.py b/src/sage/features/all.py index 599bc575dd7..a53d095c596 100644 --- a/src/sage/features/all.py +++ b/src/sage/features/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-environment r""" Enumeration of all defined features """ diff --git a/src/sage/features/bliss.py b/src/sage/features/bliss.py index 37fc4d7f8c3..cfdd84da1c7 100644 --- a/src/sage/features/bliss.py +++ b/src/sage/features/bliss.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-environment r""" Features for testing the presence of ``bliss`` """ diff --git a/src/sage/features/cddlib.py b/src/sage/features/cddlib.py index b8fdb6fed8e..24b67ef9f8e 100644 --- a/src/sage/features/cddlib.py +++ b/src/sage/features/cddlib.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-environment r""" Feature for testing the presence of ``cddlib`` """ diff --git a/src/sage/features/csdp.py b/src/sage/features/csdp.py index e8aa55e50ea..354ff03facc 100644 --- a/src/sage/features/csdp.py +++ b/src/sage/features/csdp.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-environment # -*- coding: utf-8 -*- r""" Feature for testing the presence of ``csdp`` diff --git a/src/sage/features/cython.py b/src/sage/features/cython.py index 8f03155ac2f..30f66eb3426 100644 --- a/src/sage/features/cython.py +++ b/src/sage/features/cython.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-environment r""" Features for testing the presence of ``cython`` """ diff --git a/src/sage/features/databases.py b/src/sage/features/databases.py index bca8c094b30..bb32013c642 100644 --- a/src/sage/features/databases.py +++ b/src/sage/features/databases.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-environment r""" Features for testing the presence of various databases """ diff --git a/src/sage/features/dvipng.py b/src/sage/features/dvipng.py index 281084a6e72..66fbee39561 100644 --- a/src/sage/features/dvipng.py +++ b/src/sage/features/dvipng.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-environment r""" Feature for testing the presence of ``dvipng`` """ diff --git a/src/sage/features/ffmpeg.py b/src/sage/features/ffmpeg.py index 36a23594162..366249875d7 100644 --- a/src/sage/features/ffmpeg.py +++ b/src/sage/features/ffmpeg.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-environment r""" Feature for testing the presence of ``ffmpeg`` """ diff --git a/src/sage/features/four_ti_2.py b/src/sage/features/four_ti_2.py index 2af1c1e25d2..655674cbde1 100644 --- a/src/sage/features/four_ti_2.py +++ b/src/sage/features/four_ti_2.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-environment r""" Features for testing the presence of ``4ti2`` """ diff --git a/src/sage/features/fricas.py b/src/sage/features/fricas.py index a52e082d114..d5b7d469207 100644 --- a/src/sage/features/fricas.py +++ b/src/sage/features/fricas.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-environment r""" Features for testing the presence of ``fricas`` """ diff --git a/src/sage/features/gap.py b/src/sage/features/gap.py index df5545e9c07..d0b4d72eb4c 100644 --- a/src/sage/features/gap.py +++ b/src/sage/features/gap.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-environment r""" Features for testing the presence of the SageMath interfaces to ``gap`` and of GAP packages """ diff --git a/src/sage/features/gfan.py b/src/sage/features/gfan.py index a58090b4c91..e3545392934 100644 --- a/src/sage/features/gfan.py +++ b/src/sage/features/gfan.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-environment r""" Features for testing the presence of ``gfan`` """ diff --git a/src/sage/features/graph_generators.py b/src/sage/features/graph_generators.py index 47c4557241c..8f384af9ed3 100644 --- a/src/sage/features/graph_generators.py +++ b/src/sage/features/graph_generators.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-environment r""" Features for testing the presence of graph generator programs ``benzene``, ``buckygen``, ``plantri`` """ diff --git a/src/sage/features/graphviz.py b/src/sage/features/graphviz.py index abf9b7615fa..4e6ae9a6c4a 100644 --- a/src/sage/features/graphviz.py +++ b/src/sage/features/graphviz.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-environment r""" Features for testing the presence of ``graphviz`` """ diff --git a/src/sage/features/igraph.py b/src/sage/features/igraph.py index bcf81f9cec7..00d260f2ac7 100644 --- a/src/sage/features/igraph.py +++ b/src/sage/features/igraph.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-environment r""" Check for igraph """ diff --git a/src/sage/features/imagemagick.py b/src/sage/features/imagemagick.py index fceeed8b727..526ac278877 100644 --- a/src/sage/features/imagemagick.py +++ b/src/sage/features/imagemagick.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-environment r""" Feature for testing the presence of ``imagemagick`` diff --git a/src/sage/features/interfaces.py b/src/sage/features/interfaces.py index ddfc3b9b7ee..6d5249ab443 100644 --- a/src/sage/features/interfaces.py +++ b/src/sage/features/interfaces.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-environment r""" Features for testing whether interpreter interfaces to ``magma``, ``maple``, ``mathematica`` etc. are functional """ diff --git a/src/sage/features/internet.py b/src/sage/features/internet.py index 576b0136926..bba178bd326 100644 --- a/src/sage/features/internet.py +++ b/src/sage/features/internet.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-environment r""" Feature for testing if the Internet is available """ diff --git a/src/sage/features/join_feature.py b/src/sage/features/join_feature.py index 6360eec1576..ca1097794f6 100644 --- a/src/sage/features/join_feature.py +++ b/src/sage/features/join_feature.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-environment r""" Join features """ diff --git a/src/sage/features/kenzo.py b/src/sage/features/kenzo.py index 72f703da15f..39b8dd9a936 100644 --- a/src/sage/features/kenzo.py +++ b/src/sage/features/kenzo.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-environment r""" Feature for testing the presence of ``kenzo`` """ diff --git a/src/sage/features/latex.py b/src/sage/features/latex.py index 874c5ca7bfb..6f366ff86f6 100644 --- a/src/sage/features/latex.py +++ b/src/sage/features/latex.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-environment r""" Features for testing the presence of ``latex`` and equivalent programs """ diff --git a/src/sage/features/latte.py b/src/sage/features/latte.py index 4df8b1cd586..7e973978c24 100644 --- a/src/sage/features/latte.py +++ b/src/sage/features/latte.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-environment r""" Features for testing the presence of ``latte_int`` """ diff --git a/src/sage/features/lrs.py b/src/sage/features/lrs.py index 6eb0a11b642..17fee8edc6d 100644 --- a/src/sage/features/lrs.py +++ b/src/sage/features/lrs.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-environment # -*- coding: utf-8 -*- r""" Feature for testing the presence of ``lrslib`` diff --git a/src/sage/features/mcqd.py b/src/sage/features/mcqd.py index 036e8fc727b..25dc159f8d3 100644 --- a/src/sage/features/mcqd.py +++ b/src/sage/features/mcqd.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-environment r""" Features for testing the presence of ``mcqd`` """ diff --git a/src/sage/features/meataxe.py b/src/sage/features/meataxe.py index cc2a69cfeff..319b58866ca 100644 --- a/src/sage/features/meataxe.py +++ b/src/sage/features/meataxe.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-environment r""" Feature for testing the presence of ``meataxe`` """ diff --git a/src/sage/features/mip_backends.py b/src/sage/features/mip_backends.py index 98b4766c1f5..a6aa0ff2525 100644 --- a/src/sage/features/mip_backends.py +++ b/src/sage/features/mip_backends.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-environment r""" Features for testing the presence of :class:`MixedIntegerLinearProgram` backends """ diff --git a/src/sage/features/msolve.py b/src/sage/features/msolve.py index 31cc42e6176..0098a452b36 100644 --- a/src/sage/features/msolve.py +++ b/src/sage/features/msolve.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-environment # -*- coding: utf-8 -*- r""" Feature for testing the presence of msolve diff --git a/src/sage/features/nauty.py b/src/sage/features/nauty.py index 4a07264f927..79542de74fc 100644 --- a/src/sage/features/nauty.py +++ b/src/sage/features/nauty.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-environment r""" Features for testing the presence of nauty executables """ diff --git a/src/sage/features/normaliz.py b/src/sage/features/normaliz.py index 80b3891daf3..6d1de88bf58 100644 --- a/src/sage/features/normaliz.py +++ b/src/sage/features/normaliz.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-environment r""" Feature for testing the presence of ``pynormaliz`` """ diff --git a/src/sage/features/palp.py b/src/sage/features/palp.py index b58a8fc2e54..b35634ac800 100644 --- a/src/sage/features/palp.py +++ b/src/sage/features/palp.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-environment r""" Feature for testing the presence of ``palp`` """ diff --git a/src/sage/features/pandoc.py b/src/sage/features/pandoc.py index 00ee6055024..ebb46589362 100644 --- a/src/sage/features/pandoc.py +++ b/src/sage/features/pandoc.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-environment # -*- coding: utf-8 -*- r""" Feature for testing the presence of ``pandoc`` diff --git a/src/sage/features/pdf2svg.py b/src/sage/features/pdf2svg.py index 98578ecb6a1..af20d011ac3 100644 --- a/src/sage/features/pdf2svg.py +++ b/src/sage/features/pdf2svg.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-environment r""" Feature for testing the presence of ``pdf2svg`` """ diff --git a/src/sage/features/phitigra.py b/src/sage/features/phitigra.py index 6c1896bd8df..ea4d855cf53 100644 --- a/src/sage/features/phitigra.py +++ b/src/sage/features/phitigra.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-environment r""" Check for ``phitigra`` """ diff --git a/src/sage/features/pkg_systems.py b/src/sage/features/pkg_systems.py index 72ecd494344..4f6db21b735 100644 --- a/src/sage/features/pkg_systems.py +++ b/src/sage/features/pkg_systems.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-environment r""" Features for testing the presence of package systems ``sage_spkg``, ``conda``, ``pip``, ``debian``, ``fedora`` etc. """ diff --git a/src/sage/features/polymake.py b/src/sage/features/polymake.py index d2b433b1c7f..10dfab73346 100644 --- a/src/sage/features/polymake.py +++ b/src/sage/features/polymake.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-environment r""" Feature for testing the presence of ``jupymake``, the Python interface to polymake """ diff --git a/src/sage/features/poppler.py b/src/sage/features/poppler.py index b8f8586e7f5..c4777e9c6ca 100644 --- a/src/sage/features/poppler.py +++ b/src/sage/features/poppler.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-environment r""" Check for poppler features diff --git a/src/sage/features/rubiks.py b/src/sage/features/rubiks.py index 07250532cb6..2429645d2ff 100644 --- a/src/sage/features/rubiks.py +++ b/src/sage/features/rubiks.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-environment r""" Features for testing the presence of ``rubiks`` """ diff --git a/src/sage/features/sagemath.py b/src/sage/features/sagemath.py index dd48c55ee6b..fd28f4f02bc 100644 --- a/src/sage/features/sagemath.py +++ b/src/sage/features/sagemath.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-environment r""" Features for testing the presence of Python modules in the Sage library diff --git a/src/sage/features/singular.py b/src/sage/features/singular.py index fce89a8e91c..d6469b6f7f4 100644 --- a/src/sage/features/singular.py +++ b/src/sage/features/singular.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-environment r""" Features for testing the presence of ``singular`` and the SageMath interfaces to it """ diff --git a/src/sage/features/sphinx.py b/src/sage/features/sphinx.py index a70e8a11eee..ec7c8be17b6 100644 --- a/src/sage/features/sphinx.py +++ b/src/sage/features/sphinx.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-environment r""" Features for testing the presence of ``sphinx`` """ diff --git a/src/sage/features/standard.py b/src/sage/features/standard.py index c2090fc53a4..94272802aad 100644 --- a/src/sage/features/standard.py +++ b/src/sage/features/standard.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-environment r""" Check for various standard packages (for modularized distributions) diff --git a/src/sage/features/symengine_py.py b/src/sage/features/symengine_py.py index d32492085b7..0e602e0b84d 100644 --- a/src/sage/features/symengine_py.py +++ b/src/sage/features/symengine_py.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-environment r""" Check for symengine_py """ diff --git a/src/sage/features/tdlib.py b/src/sage/features/tdlib.py index 128c056a49c..eb0b3b10c93 100644 --- a/src/sage/features/tdlib.py +++ b/src/sage/features/tdlib.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-environment r""" Features for testing the presence of ``tdlib`` """ diff --git a/src/sage/functions/airy.py b/src/sage/functions/airy.py index 11f4c56be8c..11bd49f5339 100644 --- a/src/sage/functions/airy.py +++ b/src/sage/functions/airy.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Airy functions diff --git a/src/sage/functions/all.py b/src/sage/functions/all.py index 4cf9005f7e3..3a95cb17857 100644 --- a/src/sage/functions/all.py +++ b/src/sage/functions/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories from sage.misc.lazy_import import lazy_import diff --git a/src/sage/functions/bessel.py b/src/sage/functions/bessel.py index 24ee74b561c..74def5e7fda 100644 --- a/src/sage/functions/bessel.py +++ b/src/sage/functions/bessel.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Bessel functions diff --git a/src/sage/functions/error.py b/src/sage/functions/error.py index 1e4b74d5afe..fd0e644c4ab 100644 --- a/src/sage/functions/error.py +++ b/src/sage/functions/error.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Error functions diff --git a/src/sage/functions/exp_integral.py b/src/sage/functions/exp_integral.py index 5fb024c877c..4cd6aa696c3 100644 --- a/src/sage/functions/exp_integral.py +++ b/src/sage/functions/exp_integral.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Exponential integrals diff --git a/src/sage/functions/gamma.py b/src/sage/functions/gamma.py index 8ecf834a8a8..46a3c0c6236 100644 --- a/src/sage/functions/gamma.py +++ b/src/sage/functions/gamma.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Gamma and related functions """ diff --git a/src/sage/functions/generalized.py b/src/sage/functions/generalized.py index 3d58d4d9d0a..f9b34b33f1b 100644 --- a/src/sage/functions/generalized.py +++ b/src/sage/functions/generalized.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Generalized functions diff --git a/src/sage/functions/hyperbolic.py b/src/sage/functions/hyperbolic.py index 6c70caef310..5892d05bcac 100644 --- a/src/sage/functions/hyperbolic.py +++ b/src/sage/functions/hyperbolic.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Hyperbolic functions diff --git a/src/sage/functions/hypergeometric.py b/src/sage/functions/hypergeometric.py index 1c2712382f3..ae0c3c8cfc8 100644 --- a/src/sage/functions/hypergeometric.py +++ b/src/sage/functions/hypergeometric.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Hypergeometric functions diff --git a/src/sage/functions/jacobi.py b/src/sage/functions/jacobi.py index 063dc8c7b78..c817ab0638c 100644 --- a/src/sage/functions/jacobi.py +++ b/src/sage/functions/jacobi.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Jacobi elliptic functions diff --git a/src/sage/functions/log.py b/src/sage/functions/log.py index 38c6ca08bbe..8249066f60d 100644 --- a/src/sage/functions/log.py +++ b/src/sage/functions/log.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Logarithmic functions diff --git a/src/sage/functions/min_max.py b/src/sage/functions/min_max.py index caaed6f1193..38b68ba4314 100644 --- a/src/sage/functions/min_max.py +++ b/src/sage/functions/min_max.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Symbolic minimum and maximum diff --git a/src/sage/functions/orthogonal_polys.py b/src/sage/functions/orthogonal_polys.py index f4e0dc1bdbf..6f661980d19 100644 --- a/src/sage/functions/orthogonal_polys.py +++ b/src/sage/functions/orthogonal_polys.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Orthogonal polynomials diff --git a/src/sage/functions/other.py b/src/sage/functions/other.py index eed84964be3..261ce88e6b8 100644 --- a/src/sage/functions/other.py +++ b/src/sage/functions/other.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Other functions diff --git a/src/sage/functions/piecewise.py b/src/sage/functions/piecewise.py index 1638637287f..2dd10545219 100644 --- a/src/sage/functions/piecewise.py +++ b/src/sage/functions/piecewise.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.symbolic r""" Piecewise functions diff --git a/src/sage/functions/prime_pi.pyx b/src/sage/functions/prime_pi.pyx index 2f64469c731..d82886f1424 100644 --- a/src/sage/functions/prime_pi.pyx +++ b/src/sage/functions/prime_pi.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs primecountpy r""" Counting primes diff --git a/src/sage/functions/special.py b/src/sage/functions/special.py index 9348b921685..f203a4ef2f7 100644 --- a/src/sage/functions/special.py +++ b/src/sage/functions/special.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Miscellaneous special functions diff --git a/src/sage/functions/spike_function.py b/src/sage/functions/spike_function.py index 4739ca7ffb4..737486e6e54 100644 --- a/src/sage/functions/spike_function.py +++ b/src/sage/functions/spike_function.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Spike functions diff --git a/src/sage/functions/transcendental.py b/src/sage/functions/transcendental.py index d0a30362fdf..49b413b633c 100644 --- a/src/sage/functions/transcendental.py +++ b/src/sage/functions/transcendental.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Number-theoretic functions """ diff --git a/src/sage/functions/trig.py b/src/sage/functions/trig.py index 62e5bd35b2e..e3a6319c42d 100644 --- a/src/sage/functions/trig.py +++ b/src/sage/functions/trig.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Trigonometric functions """ diff --git a/src/sage/functions/wigner.py b/src/sage/functions/wigner.py index af987c20084..6caf92583a7 100644 --- a/src/sage/functions/wigner.py +++ b/src/sage/functions/wigner.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Wigner, Clebsch-Gordan, Racah, and Gaunt coefficients diff --git a/src/sage/game_theory/all.py b/src/sage/game_theory/all.py index 4658885c3ab..eb9c5bed5f6 100644 --- a/src/sage/game_theory/all.py +++ b/src/sage/game_theory/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra from sage.misc.lazy_import import lazy_import lazy_import('sage.game_theory', 'catalog', 'game_theory') diff --git a/src/sage/game_theory/catalog.py b/src/sage/game_theory/catalog.py index 9abb2c74151..58c3fb02a80 100644 --- a/src/sage/game_theory/catalog.py +++ b/src/sage/game_theory/catalog.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra r""" Catalog Of Games """ diff --git a/src/sage/game_theory/catalog_normal_form_games.py b/src/sage/game_theory/catalog_normal_form_games.py index ab7b48a4dc0..7733b970269 100644 --- a/src/sage/game_theory/catalog_normal_form_games.py +++ b/src/sage/game_theory/catalog_normal_form_games.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra r""" A catalog of normal form games diff --git a/src/sage/game_theory/cooperative_game.py b/src/sage/game_theory/cooperative_game.py index b95ba0f655a..1394c132960 100644 --- a/src/sage/game_theory/cooperative_game.py +++ b/src/sage/game_theory/cooperative_game.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra """ Co-operative Games With Finite Players diff --git a/src/sage/game_theory/gambit_docs.py b/src/sage/game_theory/gambit_docs.py index b2d8af991e9..e6acc5e6b69 100644 --- a/src/sage/game_theory/gambit_docs.py +++ b/src/sage/game_theory/gambit_docs.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra """ Using Gambit as a standalone package diff --git a/src/sage/game_theory/matching_game.py b/src/sage/game_theory/matching_game.py index 11c04f6e5b1..e356132be82 100644 --- a/src/sage/game_theory/matching_game.py +++ b/src/sage/game_theory/matching_game.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra """ Matching games diff --git a/src/sage/game_theory/normal_form_game.py b/src/sage/game_theory/normal_form_game.py index 275907d7276..6d1a122e0be 100644 --- a/src/sage/game_theory/normal_form_game.py +++ b/src/sage/game_theory/normal_form_game.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra # -*- coding: utf-8 -*- r""" Normal form games with N players. diff --git a/src/sage/game_theory/parser.py b/src/sage/game_theory/parser.py index d528116f244..0fd8892a6b1 100644 --- a/src/sage/game_theory/parser.py +++ b/src/sage/game_theory/parser.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra """ Parser For gambit And lrs Nash Equilibria """ diff --git a/src/sage/games/all.py b/src/sage/games/all.py index e3e31bcf03e..03c5f44d72b 100644 --- a/src/sage/games/all.py +++ b/src/sage/games/all.py @@ -1,2 +1,3 @@ +# sage_setup: distribution = sagemath-combinat from .sudoku import Sudoku, sudoku from .hexad import Minimog diff --git a/src/sage/games/hexad.py b/src/sage/games/hexad.py index ddc08530b08..64138d012e3 100644 --- a/src/sage/games/hexad.py +++ b/src/sage/games/hexad.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Hexads in S(5, 6, 12) diff --git a/src/sage/games/quantumino.py b/src/sage/games/quantumino.py index d5646406882..8cfb04cdfa8 100644 --- a/src/sage/games/quantumino.py +++ b/src/sage/games/quantumino.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # -*- coding: utf-8 -*- r""" Family Games America's Quantumino solver diff --git a/src/sage/games/sudoku.py b/src/sage/games/sudoku.py index abcadd08ca3..a98632df734 100644 --- a/src/sage/games/sudoku.py +++ b/src/sage/games/sudoku.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Sudoku Puzzles diff --git a/src/sage/games/sudoku_backtrack.pyx b/src/sage/games/sudoku_backtrack.pyx index 9d02c4fcf9a..28504c3f109 100644 --- a/src/sage/games/sudoku_backtrack.pyx +++ b/src/sage/games/sudoku_backtrack.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" This module contains Cython code for a backtracking algorithm to solve Sudoku puzzles. diff --git a/src/sage/geometry/abc.pyx b/src/sage/geometry/abc.pyx index f3aee46d324..a40fc1933e4 100644 --- a/src/sage/geometry/abc.pyx +++ b/src/sage/geometry/abc.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Abstract base classes for classes in :mod:`~sage.geometry` """ diff --git a/src/sage/geometry/cone.py b/src/sage/geometry/cone.py index 0cebb40237c..ee837e717b0 100644 --- a/src/sage/geometry/cone.py +++ b/src/sage/geometry/cone.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra r""" Convex rational polyhedral cones diff --git a/src/sage/geometry/cone_catalog.py b/src/sage/geometry/cone_catalog.py index d6898d40087..015fb5aad12 100644 --- a/src/sage/geometry/cone_catalog.py +++ b/src/sage/geometry/cone_catalog.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra r""" Catalog of common polyhedral convex cones diff --git a/src/sage/geometry/convex_set.py b/src/sage/geometry/convex_set.py index 65249cd2a4d..1f1cd03b48a 100644 --- a/src/sage/geometry/convex_set.py +++ b/src/sage/geometry/convex_set.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra r""" Convex Sets """ diff --git a/src/sage/geometry/fan.py b/src/sage/geometry/fan.py index 4ac1fdb497d..43a01d8106a 100644 --- a/src/sage/geometry/fan.py +++ b/src/sage/geometry/fan.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra # sage.doctest: optional - sage.graphs sage.combinat r""" Rational polyhedral fans diff --git a/src/sage/geometry/fan_isomorphism.py b/src/sage/geometry/fan_isomorphism.py index 2c69f06a71f..d2e3dbb3000 100644 --- a/src/sage/geometry/fan_isomorphism.py +++ b/src/sage/geometry/fan_isomorphism.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra """ Find isomorphisms between fans """ diff --git a/src/sage/geometry/fan_morphism.py b/src/sage/geometry/fan_morphism.py index d00e87083f7..b89ed61c3a6 100644 --- a/src/sage/geometry/fan_morphism.py +++ b/src/sage/geometry/fan_morphism.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra # sage.doctest: optional - sage.graphs, sage.combinat r""" Morphisms between toric lattices compatible with fans diff --git a/src/sage/geometry/hasse_diagram.py b/src/sage/geometry/hasse_diagram.py index d30f08ac8d5..96048cc817e 100644 --- a/src/sage/geometry/hasse_diagram.py +++ b/src/sage/geometry/hasse_diagram.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra """ Construction of finite atomic and coatomic lattices from incidences diff --git a/src/sage/geometry/hyperbolic_space/all.py b/src/sage/geometry/hyperbolic_space/all.py index d1b2a930e04..fc13477282e 100644 --- a/src/sage/geometry/hyperbolic_space/all.py +++ b/src/sage/geometry/hyperbolic_space/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics from sage.misc.lazy_import import lazy_import lazy_import('sage.geometry.hyperbolic_space.hyperbolic_interface', 'HyperbolicPlane') diff --git a/src/sage/geometry/hyperbolic_space/hyperbolic_coercion.py b/src/sage/geometry/hyperbolic_space/hyperbolic_coercion.py index ff509d0d97f..fc0f68e417b 100644 --- a/src/sage/geometry/hyperbolic_space/hyperbolic_coercion.py +++ b/src/sage/geometry/hyperbolic_space/hyperbolic_coercion.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics """ Coercion Maps Between Hyperbolic Plane Models diff --git a/src/sage/geometry/hyperbolic_space/hyperbolic_constants.py b/src/sage/geometry/hyperbolic_space/hyperbolic_constants.py index 1ea800e58b0..b42f519014a 100644 --- a/src/sage/geometry/hyperbolic_space/hyperbolic_constants.py +++ b/src/sage/geometry/hyperbolic_space/hyperbolic_constants.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics from sage.matrix.constructor import matrix EPSILON = 10 ** -9 diff --git a/src/sage/geometry/hyperbolic_space/hyperbolic_geodesic.py b/src/sage/geometry/hyperbolic_space/hyperbolic_geodesic.py index f8fb369bb39..b0c23304a67 100644 --- a/src/sage/geometry/hyperbolic_space/hyperbolic_geodesic.py +++ b/src/sage/geometry/hyperbolic_space/hyperbolic_geodesic.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Hyperbolic Geodesics diff --git a/src/sage/geometry/hyperbolic_space/hyperbolic_interface.py b/src/sage/geometry/hyperbolic_space/hyperbolic_interface.py index 11f4c08add9..e0d4055e09e 100644 --- a/src/sage/geometry/hyperbolic_space/hyperbolic_interface.py +++ b/src/sage/geometry/hyperbolic_space/hyperbolic_interface.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Interface to Hyperbolic Models diff --git a/src/sage/geometry/hyperbolic_space/hyperbolic_isometry.py b/src/sage/geometry/hyperbolic_space/hyperbolic_isometry.py index 0d9e0ec4a08..21bce215523 100644 --- a/src/sage/geometry/hyperbolic_space/hyperbolic_isometry.py +++ b/src/sage/geometry/hyperbolic_space/hyperbolic_isometry.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Hyperbolic Isometries diff --git a/src/sage/geometry/hyperbolic_space/hyperbolic_model.py b/src/sage/geometry/hyperbolic_space/hyperbolic_model.py index 33e5f0008fe..fd8c12ed990 100644 --- a/src/sage/geometry/hyperbolic_space/hyperbolic_model.py +++ b/src/sage/geometry/hyperbolic_space/hyperbolic_model.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Hyperbolic Models diff --git a/src/sage/geometry/hyperbolic_space/hyperbolic_point.py b/src/sage/geometry/hyperbolic_space/hyperbolic_point.py index 650c90a4403..e12330e1908 100644 --- a/src/sage/geometry/hyperbolic_space/hyperbolic_point.py +++ b/src/sage/geometry/hyperbolic_space/hyperbolic_point.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Hyperbolic Points diff --git a/src/sage/geometry/hyperplane_arrangement/affine_subspace.py b/src/sage/geometry/hyperplane_arrangement/affine_subspace.py index 7c1065553c4..74150f422f0 100644 --- a/src/sage/geometry/hyperplane_arrangement/affine_subspace.py +++ b/src/sage/geometry/hyperplane_arrangement/affine_subspace.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra """ Affine Subspaces of a Vector Space diff --git a/src/sage/geometry/hyperplane_arrangement/all.py b/src/sage/geometry/hyperplane_arrangement/all.py index e69de29bb2d..ca4c26e905d 100644 --- a/src/sage/geometry/hyperplane_arrangement/all.py +++ b/src/sage/geometry/hyperplane_arrangement/all.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-polyhedra diff --git a/src/sage/geometry/hyperplane_arrangement/arrangement.py b/src/sage/geometry/hyperplane_arrangement/arrangement.py index 1b429cdf804..860dce09cf6 100644 --- a/src/sage/geometry/hyperplane_arrangement/arrangement.py +++ b/src/sage/geometry/hyperplane_arrangement/arrangement.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra r""" Hyperplane Arrangements diff --git a/src/sage/geometry/hyperplane_arrangement/check_freeness.py b/src/sage/geometry/hyperplane_arrangement/check_freeness.py index e99c8ee9b39..385f83788f9 100644 --- a/src/sage/geometry/hyperplane_arrangement/check_freeness.py +++ b/src/sage/geometry/hyperplane_arrangement/check_freeness.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra # sage.doctest: optional - sage.libs.singular r""" Helper Functions For Freeness Of Hyperplane Arrangements diff --git a/src/sage/geometry/hyperplane_arrangement/hyperplane.py b/src/sage/geometry/hyperplane_arrangement/hyperplane.py index 18e39e286a0..3125083183b 100644 --- a/src/sage/geometry/hyperplane_arrangement/hyperplane.py +++ b/src/sage/geometry/hyperplane_arrangement/hyperplane.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra r""" Hyperplanes diff --git a/src/sage/geometry/hyperplane_arrangement/library.py b/src/sage/geometry/hyperplane_arrangement/library.py index cdfaca2faf0..280ac089c87 100644 --- a/src/sage/geometry/hyperplane_arrangement/library.py +++ b/src/sage/geometry/hyperplane_arrangement/library.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra r""" Library of Hyperplane Arrangements diff --git a/src/sage/geometry/hyperplane_arrangement/plot.py b/src/sage/geometry/hyperplane_arrangement/plot.py index be468c111bc..93a8112cd54 100644 --- a/src/sage/geometry/hyperplane_arrangement/plot.py +++ b/src/sage/geometry/hyperplane_arrangement/plot.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra """ Plotting of Hyperplane Arrangements diff --git a/src/sage/geometry/integral_points.pxi b/src/sage/geometry/integral_points.pxi index 8d45f44714c..0a30d2f9af4 100644 --- a/src/sage/geometry/integral_points.pxi +++ b/src/sage/geometry/integral_points.pxi @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-linbox r""" Cython helper methods to compute integral points in polyhedra. """ diff --git a/src/sage/geometry/integral_points.py b/src/sage/geometry/integral_points.py index 48153591bcf..bc6e4a0626f 100644 --- a/src/sage/geometry/integral_points.py +++ b/src/sage/geometry/integral_points.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra try: from .integral_points_integer_dense import ( parallelotope_points, diff --git a/src/sage/geometry/integral_points_generic_dense.pyx b/src/sage/geometry/integral_points_generic_dense.pyx index 5ff619f44d4..99b0a60e49e 100644 --- a/src/sage/geometry/integral_points_generic_dense.pyx +++ b/src/sage/geometry/integral_points_generic_dense.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra #cython: wraparound=False, boundscheck=False from sage.modules.vector_integer_dense cimport Vector_integer_dense as VectorClass diff --git a/src/sage/geometry/integral_points_integer_dense.pyx b/src/sage/geometry/integral_points_integer_dense.pyx index 0151ffed5c0..67b5009f191 100644 --- a/src/sage/geometry/integral_points_integer_dense.pyx +++ b/src/sage/geometry/integral_points_integer_dense.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-linbox #cython: wraparound=False, boundscheck=False from sage.modules.vector_integer_dense cimport Vector_integer_dense as VectorClass diff --git a/src/sage/geometry/lattice_polytope.py b/src/sage/geometry/lattice_polytope.py index 449143c8999..b097c55c03b 100644 --- a/src/sage/geometry/lattice_polytope.py +++ b/src/sage/geometry/lattice_polytope.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra r""" Lattice and reflexive polytopes diff --git a/src/sage/geometry/linear_expression.py b/src/sage/geometry/linear_expression.py index 0bc15952746..91da770e913 100644 --- a/src/sage/geometry/linear_expression.py +++ b/src/sage/geometry/linear_expression.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra """ Linear Expressions diff --git a/src/sage/geometry/newton_polygon.py b/src/sage/geometry/newton_polygon.py index 28101e70646..b0b3209f426 100644 --- a/src/sage/geometry/newton_polygon.py +++ b/src/sage/geometry/newton_polygon.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra """ Newton Polygons diff --git a/src/sage/geometry/palp_normal_form.pyx b/src/sage/geometry/palp_normal_form.pyx index fa756fe65b0..baaedefa467 100644 --- a/src/sage/geometry/palp_normal_form.pyx +++ b/src/sage/geometry/palp_normal_form.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra # sage.doctest: needs sage.groups r""" PALP normal form of vertices of a lattice polytope diff --git a/src/sage/geometry/point_collection.pyx b/src/sage/geometry/point_collection.pyx index aabb0bdcde3..162269b3a5f 100644 --- a/src/sage/geometry/point_collection.pyx +++ b/src/sage/geometry/point_collection.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra r""" Point collections diff --git a/src/sage/geometry/polyhedral_complex.py b/src/sage/geometry/polyhedral_complex.py index 09200a60be9..6194595c2c8 100644 --- a/src/sage/geometry/polyhedral_complex.py +++ b/src/sage/geometry/polyhedral_complex.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra # sage.doctest: optional - sage.graphs r""" Finite polyhedral complexes diff --git a/src/sage/geometry/polyhedron/all.py b/src/sage/geometry/polyhedron/all.py index 3668a0b8b50..4479fdde735 100644 --- a/src/sage/geometry/polyhedron/all.py +++ b/src/sage/geometry/polyhedron/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra from sage.misc.lazy_import import lazy_import lazy_import('sage.geometry.polyhedron.constructor', 'Polyhedron') diff --git a/src/sage/geometry/polyhedron/backend_cdd.py b/src/sage/geometry/polyhedron/backend_cdd.py index e35ea92fe67..5680750cd81 100644 --- a/src/sage/geometry/polyhedron/backend_cdd.py +++ b/src/sage/geometry/polyhedron/backend_cdd.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra r""" The cdd backend for polyhedral computations """ diff --git a/src/sage/geometry/polyhedron/backend_cdd_rdf.py b/src/sage/geometry/polyhedron/backend_cdd_rdf.py index a39ad446a80..783c1470d58 100644 --- a/src/sage/geometry/polyhedron/backend_cdd_rdf.py +++ b/src/sage/geometry/polyhedron/backend_cdd_rdf.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra # sage.doctest: optional - sage.rings.real_double r""" diff --git a/src/sage/geometry/polyhedron/backend_field.py b/src/sage/geometry/polyhedron/backend_field.py index 77d83c4a381..34703ea5e7d 100644 --- a/src/sage/geometry/polyhedron/backend_field.py +++ b/src/sage/geometry/polyhedron/backend_field.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra """ The Python backend diff --git a/src/sage/geometry/polyhedron/backend_normaliz.py b/src/sage/geometry/polyhedron/backend_normaliz.py index 19da8cce5e5..e90cd5a3bd5 100644 --- a/src/sage/geometry/polyhedron/backend_normaliz.py +++ b/src/sage/geometry/polyhedron/backend_normaliz.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra # sage.doctest: optional - pynormaliz """ The Normaliz backend for polyhedral computations diff --git a/src/sage/geometry/polyhedron/backend_number_field.py b/src/sage/geometry/polyhedron/backend_number_field.py index e79688bea5f..22834a0755f 100644 --- a/src/sage/geometry/polyhedron/backend_number_field.py +++ b/src/sage/geometry/polyhedron/backend_number_field.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra r""" The Python backend, using number fields internally """ diff --git a/src/sage/geometry/polyhedron/backend_polymake.py b/src/sage/geometry/polyhedron/backend_polymake.py index a2bce697e1c..ce75370f3ef 100644 --- a/src/sage/geometry/polyhedron/backend_polymake.py +++ b/src/sage/geometry/polyhedron/backend_polymake.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra """ The polymake backend for polyhedral computations diff --git a/src/sage/geometry/polyhedron/backend_ppl.py b/src/sage/geometry/polyhedron/backend_ppl.py index a4012616deb..cf1fe9e3c8c 100644 --- a/src/sage/geometry/polyhedron/backend_ppl.py +++ b/src/sage/geometry/polyhedron/backend_ppl.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra """ The PPL (Parma Polyhedra Library) backend for polyhedral computations """ diff --git a/src/sage/geometry/polyhedron/base.py b/src/sage/geometry/polyhedron/base.py index ec26e49075c..b629109a168 100644 --- a/src/sage/geometry/polyhedron/base.py +++ b/src/sage/geometry/polyhedron/base.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra r""" Base class for polyhedra: Miscellaneous methods """ diff --git a/src/sage/geometry/polyhedron/base0.py b/src/sage/geometry/polyhedron/base0.py index 4b31a8eb6ed..c9588b98273 100644 --- a/src/sage/geometry/polyhedron/base0.py +++ b/src/sage/geometry/polyhedron/base0.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra r""" Base class for polyhedra: Initialization and access to Vrepresentation and Hrepresentation """ diff --git a/src/sage/geometry/polyhedron/base1.py b/src/sage/geometry/polyhedron/base1.py index 77b7bf4427e..fbed2ca5759 100644 --- a/src/sage/geometry/polyhedron/base1.py +++ b/src/sage/geometry/polyhedron/base1.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra r""" Base class for polyhedra: Implementation of the :class:`ConvexSet_base` API diff --git a/src/sage/geometry/polyhedron/base2.py b/src/sage/geometry/polyhedron/base2.py index 0594d0c6708..8afff30ad93 100644 --- a/src/sage/geometry/polyhedron/base2.py +++ b/src/sage/geometry/polyhedron/base2.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra r""" Base class for polyhedra: Methods related to lattice points """ diff --git a/src/sage/geometry/polyhedron/base3.py b/src/sage/geometry/polyhedron/base3.py index 8904d9fac82..30f27e9e494 100644 --- a/src/sage/geometry/polyhedron/base3.py +++ b/src/sage/geometry/polyhedron/base3.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra r""" Base class for polyhedra: Methods regarding the combinatorics of a polyhedron diff --git a/src/sage/geometry/polyhedron/base4.py b/src/sage/geometry/polyhedron/base4.py index 2ba2a696b30..191693f5fe1 100644 --- a/src/sage/geometry/polyhedron/base4.py +++ b/src/sage/geometry/polyhedron/base4.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra # sage.doctest: needs sage.graphs r""" Base class for polyhedra: Graph-theoretic methods diff --git a/src/sage/geometry/polyhedron/base5.py b/src/sage/geometry/polyhedron/base5.py index 72cb9f349ca..28ba996846e 100644 --- a/src/sage/geometry/polyhedron/base5.py +++ b/src/sage/geometry/polyhedron/base5.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra r""" Base class for polyhedra: Methods for constructing new polyhedra diff --git a/src/sage/geometry/polyhedron/base6.py b/src/sage/geometry/polyhedron/base6.py index b9d23daefa1..8e5922d08da 100644 --- a/src/sage/geometry/polyhedron/base6.py +++ b/src/sage/geometry/polyhedron/base6.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra r""" Base class for polyhedra: Methods for plotting and affine hull projection """ diff --git a/src/sage/geometry/polyhedron/base7.py b/src/sage/geometry/polyhedron/base7.py index 99ca1b7ebe7..54f4c1a170f 100644 --- a/src/sage/geometry/polyhedron/base7.py +++ b/src/sage/geometry/polyhedron/base7.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra r""" Base class for polyhedra: Methods for triangulation and volume computation """ diff --git a/src/sage/geometry/polyhedron/base_QQ.py b/src/sage/geometry/polyhedron/base_QQ.py index d31c5bc254c..62d37c4e878 100644 --- a/src/sage/geometry/polyhedron/base_QQ.py +++ b/src/sage/geometry/polyhedron/base_QQ.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra r""" Base class for polyhedra over `\QQ` """ diff --git a/src/sage/geometry/polyhedron/base_RDF.py b/src/sage/geometry/polyhedron/base_RDF.py index b3ba587746e..4fbbf52750c 100644 --- a/src/sage/geometry/polyhedron/base_RDF.py +++ b/src/sage/geometry/polyhedron/base_RDF.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra # sage.doctest: optional - sage.rings.real_double """ diff --git a/src/sage/geometry/polyhedron/base_ZZ.py b/src/sage/geometry/polyhedron/base_ZZ.py index 20b3c95bbcc..5dc5cb2e385 100644 --- a/src/sage/geometry/polyhedron/base_ZZ.py +++ b/src/sage/geometry/polyhedron/base_ZZ.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra r""" Base class for polyhedra over `\ZZ` """ diff --git a/src/sage/geometry/polyhedron/base_mutable.py b/src/sage/geometry/polyhedron/base_mutable.py index 42e77a8fcf0..3b6842da210 100644 --- a/src/sage/geometry/polyhedron/base_mutable.py +++ b/src/sage/geometry/polyhedron/base_mutable.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra r""" Base class for mutable polyhedra. diff --git a/src/sage/geometry/polyhedron/base_number_field.py b/src/sage/geometry/polyhedron/base_number_field.py index 9491fce4e75..ec90e5b3e14 100644 --- a/src/sage/geometry/polyhedron/base_number_field.py +++ b/src/sage/geometry/polyhedron/base_number_field.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra r""" Support for internal use of number fields in backends for polyhedral computations """ diff --git a/src/sage/geometry/polyhedron/cdd_file_format.py b/src/sage/geometry/polyhedron/cdd_file_format.py index 728f20bb9b5..6934ebfd26c 100644 --- a/src/sage/geometry/polyhedron/cdd_file_format.py +++ b/src/sage/geometry/polyhedron/cdd_file_format.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra """ Generate cdd ``.ext`` / ``.ine`` file format """ diff --git a/src/sage/geometry/polyhedron/combinatorial_polyhedron/all.py b/src/sage/geometry/polyhedron/combinatorial_polyhedron/all.py index e69de29bb2d..ca4c26e905d 100644 --- a/src/sage/geometry/polyhedron/combinatorial_polyhedron/all.py +++ b/src/sage/geometry/polyhedron/combinatorial_polyhedron/all.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-polyhedra diff --git a/src/sage/geometry/polyhedron/combinatorial_polyhedron/base.pxd b/src/sage/geometry/polyhedron/combinatorial_polyhedron/base.pxd index 3506aab65bb..6be9de47abe 100644 --- a/src/sage/geometry/polyhedron/combinatorial_polyhedron/base.pxd +++ b/src/sage/geometry/polyhedron/combinatorial_polyhedron/base.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra cimport cython from sage.data_structures.list_of_pairs cimport ListOfPairs from sage.structure.sage_object cimport SageObject diff --git a/src/sage/geometry/polyhedron/combinatorial_polyhedron/base.pyx b/src/sage/geometry/polyhedron/combinatorial_polyhedron/base.pyx index 830d45f9b90..2c14226850d 100644 --- a/src/sage/geometry/polyhedron/combinatorial_polyhedron/base.pyx +++ b/src/sage/geometry/polyhedron/combinatorial_polyhedron/base.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra r""" Combinatorial polyhedron diff --git a/src/sage/geometry/polyhedron/combinatorial_polyhedron/combinatorial_face.pxd b/src/sage/geometry/polyhedron/combinatorial_polyhedron/combinatorial_face.pxd index afc01904da2..c6f2fea9276 100644 --- a/src/sage/geometry/polyhedron/combinatorial_polyhedron/combinatorial_face.pxd +++ b/src/sage/geometry/polyhedron/combinatorial_polyhedron/combinatorial_face.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra cimport cython from sage.structure.sage_object cimport SageObject from sage.geometry.polyhedron.combinatorial_polyhedron.list_of_faces cimport ListOfFaces diff --git a/src/sage/geometry/polyhedron/combinatorial_polyhedron/combinatorial_face.pyx b/src/sage/geometry/polyhedron/combinatorial_polyhedron/combinatorial_face.pyx index 81dc7c269db..a98687fdd1b 100644 --- a/src/sage/geometry/polyhedron/combinatorial_polyhedron/combinatorial_face.pyx +++ b/src/sage/geometry/polyhedron/combinatorial_polyhedron/combinatorial_face.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra r""" Combinatorial face of a polyhedron diff --git a/src/sage/geometry/polyhedron/combinatorial_polyhedron/conversions.pxd b/src/sage/geometry/polyhedron/combinatorial_polyhedron/conversions.pxd index 2a0e950b469..9d876fa72f5 100644 --- a/src/sage/geometry/polyhedron/combinatorial_polyhedron/conversions.pxd +++ b/src/sage/geometry/polyhedron/combinatorial_polyhedron/conversions.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra from sage.geometry.polyhedron.combinatorial_polyhedron.face_list_data_structure cimport face_t diff --git a/src/sage/geometry/polyhedron/combinatorial_polyhedron/conversions.pyx b/src/sage/geometry/polyhedron/combinatorial_polyhedron/conversions.pyx index 951dd9e5420..f26e00cb65d 100644 --- a/src/sage/geometry/polyhedron/combinatorial_polyhedron/conversions.pyx +++ b/src/sage/geometry/polyhedron/combinatorial_polyhedron/conversions.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra r""" Conversions diff --git a/src/sage/geometry/polyhedron/combinatorial_polyhedron/face_data_structure.pxd b/src/sage/geometry/polyhedron/combinatorial_polyhedron/face_data_structure.pxd index 3ed71a664e1..ef347d8e9a9 100644 --- a/src/sage/geometry/polyhedron/combinatorial_polyhedron/face_data_structure.pxd +++ b/src/sage/geometry/polyhedron/combinatorial_polyhedron/face_data_structure.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra """ Cython data structure for combinatorial faces. """ diff --git a/src/sage/geometry/polyhedron/combinatorial_polyhedron/face_iterator.pxd b/src/sage/geometry/polyhedron/combinatorial_polyhedron/face_iterator.pxd index 87e3e87c1c6..9738b449a25 100644 --- a/src/sage/geometry/polyhedron/combinatorial_polyhedron/face_iterator.pxd +++ b/src/sage/geometry/polyhedron/combinatorial_polyhedron/face_iterator.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra cimport cython from sage.structure.sage_object cimport SageObject from sage.geometry.polyhedron.combinatorial_polyhedron.list_of_faces cimport ListOfFaces diff --git a/src/sage/geometry/polyhedron/combinatorial_polyhedron/face_iterator.pyx b/src/sage/geometry/polyhedron/combinatorial_polyhedron/face_iterator.pyx index 76227cfe3cf..ac520fbf576 100644 --- a/src/sage/geometry/polyhedron/combinatorial_polyhedron/face_iterator.pyx +++ b/src/sage/geometry/polyhedron/combinatorial_polyhedron/face_iterator.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra # distutils: extra_compile_args = OPENMP_CFLAGS # distutils: extra_link_args = OPENMP_CFLAGS r""" diff --git a/src/sage/geometry/polyhedron/combinatorial_polyhedron/face_list_data_structure.pxd b/src/sage/geometry/polyhedron/combinatorial_polyhedron/face_list_data_structure.pxd index 50bbd7c4026..4768c7809f2 100644 --- a/src/sage/geometry/polyhedron/combinatorial_polyhedron/face_list_data_structure.pxd +++ b/src/sage/geometry/polyhedron/combinatorial_polyhedron/face_list_data_structure.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra """ Inline cython methods for lists of faces. """ diff --git a/src/sage/geometry/polyhedron/combinatorial_polyhedron/face_list_data_structure.pyx b/src/sage/geometry/polyhedron/combinatorial_polyhedron/face_list_data_structure.pyx index 34adfb092dd..6b95606d751 100644 --- a/src/sage/geometry/polyhedron/combinatorial_polyhedron/face_list_data_structure.pyx +++ b/src/sage/geometry/polyhedron/combinatorial_polyhedron/face_list_data_structure.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra """ Sorting of a list of faces. """ diff --git a/src/sage/geometry/polyhedron/combinatorial_polyhedron/list_of_faces.pxd b/src/sage/geometry/polyhedron/combinatorial_polyhedron/list_of_faces.pxd index c660240fbc4..4bd249c77aa 100644 --- a/src/sage/geometry/polyhedron/combinatorial_polyhedron/list_of_faces.pxd +++ b/src/sage/geometry/polyhedron/combinatorial_polyhedron/list_of_faces.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra cimport cython from sage.geometry.polyhedron.combinatorial_polyhedron.face_list_data_structure cimport face_list_t, face_t diff --git a/src/sage/geometry/polyhedron/combinatorial_polyhedron/list_of_faces.pyx b/src/sage/geometry/polyhedron/combinatorial_polyhedron/list_of_faces.pyx index cd7b7316a43..7c83809416e 100644 --- a/src/sage/geometry/polyhedron/combinatorial_polyhedron/list_of_faces.pyx +++ b/src/sage/geometry/polyhedron/combinatorial_polyhedron/list_of_faces.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra r""" List of faces diff --git a/src/sage/geometry/polyhedron/combinatorial_polyhedron/polyhedron_face_lattice.pxd b/src/sage/geometry/polyhedron/combinatorial_polyhedron/polyhedron_face_lattice.pxd index afe956672ff..42c68a6b72f 100644 --- a/src/sage/geometry/polyhedron/combinatorial_polyhedron/polyhedron_face_lattice.pxd +++ b/src/sage/geometry/polyhedron/combinatorial_polyhedron/polyhedron_face_lattice.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra cimport cython from sage.geometry.polyhedron.combinatorial_polyhedron.list_of_faces cimport ListOfFaces from sage.geometry.polyhedron.combinatorial_polyhedron.face_data_structure cimport face_t diff --git a/src/sage/geometry/polyhedron/combinatorial_polyhedron/polyhedron_face_lattice.pyx b/src/sage/geometry/polyhedron/combinatorial_polyhedron/polyhedron_face_lattice.pyx index 5a2c31f6453..82f68d0f3ec 100644 --- a/src/sage/geometry/polyhedron/combinatorial_polyhedron/polyhedron_face_lattice.pyx +++ b/src/sage/geometry/polyhedron/combinatorial_polyhedron/polyhedron_face_lattice.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra r""" PolyhedronFaceLattice diff --git a/src/sage/geometry/polyhedron/constructor.py b/src/sage/geometry/polyhedron/constructor.py index f18492f584f..b03d8ce2abc 100644 --- a/src/sage/geometry/polyhedron/constructor.py +++ b/src/sage/geometry/polyhedron/constructor.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra r""" Polyhedra diff --git a/src/sage/geometry/polyhedron/double_description.py b/src/sage/geometry/polyhedron/double_description.py index 089580e3146..08a18bfaa82 100644 --- a/src/sage/geometry/polyhedron/double_description.py +++ b/src/sage/geometry/polyhedron/double_description.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra r""" Double Description Algorithm for Cones diff --git a/src/sage/geometry/polyhedron/double_description_inhomogeneous.py b/src/sage/geometry/polyhedron/double_description_inhomogeneous.py index 9b7882a5bcd..28f4bbc6a17 100644 --- a/src/sage/geometry/polyhedron/double_description_inhomogeneous.py +++ b/src/sage/geometry/polyhedron/double_description_inhomogeneous.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra r""" Double Description for Arbitrary Polyhedra diff --git a/src/sage/geometry/polyhedron/face.py b/src/sage/geometry/polyhedron/face.py index 8a1e2dc2969..636bb410ad3 100644 --- a/src/sage/geometry/polyhedron/face.py +++ b/src/sage/geometry/polyhedron/face.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra """ A class to keep information about faces of a polyhedron diff --git a/src/sage/geometry/polyhedron/generating_function.py b/src/sage/geometry/polyhedron/generating_function.py index 7a33bd528b9..0d287fbe4d0 100644 --- a/src/sage/geometry/polyhedron/generating_function.py +++ b/src/sage/geometry/polyhedron/generating_function.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra # sage.doctest: optional - sage.combinat r""" Generating Function of Polyhedron's Integral Points diff --git a/src/sage/geometry/polyhedron/lattice_euclidean_group_element.py b/src/sage/geometry/polyhedron/lattice_euclidean_group_element.py index 79331133960..95a8fd63633 100644 --- a/src/sage/geometry/polyhedron/lattice_euclidean_group_element.py +++ b/src/sage/geometry/polyhedron/lattice_euclidean_group_element.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra """ Lattice Euclidean Group Elements diff --git a/src/sage/geometry/polyhedron/library.py b/src/sage/geometry/polyhedron/library.py index d48cffd5c5c..14d0012bbe4 100644 --- a/src/sage/geometry/polyhedron/library.py +++ b/src/sage/geometry/polyhedron/library.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra r""" Library of commonly used, famous, or interesting polytopes diff --git a/src/sage/geometry/polyhedron/misc.py b/src/sage/geometry/polyhedron/misc.py index b47e51f79b8..28ed9250c5a 100644 --- a/src/sage/geometry/polyhedron/misc.py +++ b/src/sage/geometry/polyhedron/misc.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra r""" Miscellaneous helper functions """ diff --git a/src/sage/geometry/polyhedron/modules/all.py b/src/sage/geometry/polyhedron/modules/all.py index e69de29bb2d..ca4c26e905d 100644 --- a/src/sage/geometry/polyhedron/modules/all.py +++ b/src/sage/geometry/polyhedron/modules/all.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-polyhedra diff --git a/src/sage/geometry/polyhedron/modules/formal_polyhedra_module.py b/src/sage/geometry/polyhedron/modules/formal_polyhedra_module.py index 6255650b84f..d375d26ae7b 100644 --- a/src/sage/geometry/polyhedron/modules/formal_polyhedra_module.py +++ b/src/sage/geometry/polyhedron/modules/formal_polyhedra_module.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra r""" Formal modules generated by polyhedra """ diff --git a/src/sage/geometry/polyhedron/palp_database.py b/src/sage/geometry/polyhedron/palp_database.py index 29b729cec18..4dfadff00e6 100644 --- a/src/sage/geometry/polyhedron/palp_database.py +++ b/src/sage/geometry/polyhedron/palp_database.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra # sage.doctest: optional - polytopes_db palp """ Access the PALP database(s) of reflexive lattice polytopes diff --git a/src/sage/geometry/polyhedron/parent.py b/src/sage/geometry/polyhedron/parent.py index 92691fab081..c47a902fe70 100644 --- a/src/sage/geometry/polyhedron/parent.py +++ b/src/sage/geometry/polyhedron/parent.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra r""" Parents for Polyhedra """ diff --git a/src/sage/geometry/polyhedron/plot.py b/src/sage/geometry/polyhedron/plot.py index 78767803eb0..e339ad7be63 100644 --- a/src/sage/geometry/polyhedron/plot.py +++ b/src/sage/geometry/polyhedron/plot.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra """ Functions for plotting polyhedra """ diff --git a/src/sage/geometry/polyhedron/ppl_lattice_polygon.py b/src/sage/geometry/polyhedron/ppl_lattice_polygon.py index 933275357d8..95404238463 100644 --- a/src/sage/geometry/polyhedron/ppl_lattice_polygon.py +++ b/src/sage/geometry/polyhedron/ppl_lattice_polygon.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra """ Fast Lattice Polygons using PPL diff --git a/src/sage/geometry/polyhedron/ppl_lattice_polytope.py b/src/sage/geometry/polyhedron/ppl_lattice_polytope.py index e62e108e61d..f053159524a 100644 --- a/src/sage/geometry/polyhedron/ppl_lattice_polytope.py +++ b/src/sage/geometry/polyhedron/ppl_lattice_polytope.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra r""" Fast Lattice Polytopes using PPL. diff --git a/src/sage/geometry/polyhedron/representation.py b/src/sage/geometry/polyhedron/representation.py index 76a7d8831fa..a686277da85 100644 --- a/src/sage/geometry/polyhedron/representation.py +++ b/src/sage/geometry/polyhedron/representation.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra """ H(yperplane) and V(ertex) representation objects for polyhedra """ diff --git a/src/sage/geometry/pseudolines.py b/src/sage/geometry/pseudolines.py index cc52979b577..034848ab63e 100644 --- a/src/sage/geometry/pseudolines.py +++ b/src/sage/geometry/pseudolines.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra r""" Pseudolines diff --git a/src/sage/geometry/relative_interior.py b/src/sage/geometry/relative_interior.py index 8f4a63a8a14..df303f0ac72 100644 --- a/src/sage/geometry/relative_interior.py +++ b/src/sage/geometry/relative_interior.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra r""" Relative Interiors of Polyhedra and Cones """ diff --git a/src/sage/geometry/ribbon_graph.py b/src/sage/geometry/ribbon_graph.py index 12918ae29b5..8e927bdedea 100644 --- a/src/sage/geometry/ribbon_graph.py +++ b/src/sage/geometry/ribbon_graph.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap r""" Ribbon Graphs diff --git a/src/sage/geometry/riemannian_manifolds/all.py b/src/sage/geometry/riemannian_manifolds/all.py index b375f473546..88d6d633a6c 100644 --- a/src/sage/geometry/riemannian_manifolds/all.py +++ b/src/sage/geometry/riemannian_manifolds/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics from sage.misc.lazy_import import lazy_import lazy_import('sage.geometry.riemannian_manifolds.parametrized_surface3d', 'ParametrizedSurface3D') diff --git a/src/sage/geometry/riemannian_manifolds/parametrized_surface3d.py b/src/sage/geometry/riemannian_manifolds/parametrized_surface3d.py index fd56b956c90..5e5477f58d0 100644 --- a/src/sage/geometry/riemannian_manifolds/parametrized_surface3d.py +++ b/src/sage/geometry/riemannian_manifolds/parametrized_surface3d.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics """ Differential Geometry of Parametrized Surfaces diff --git a/src/sage/geometry/riemannian_manifolds/surface3d_generators.py b/src/sage/geometry/riemannian_manifolds/surface3d_generators.py index a75fdb0f2f2..576f420783d 100644 --- a/src/sage/geometry/riemannian_manifolds/surface3d_generators.py +++ b/src/sage/geometry/riemannian_manifolds/surface3d_generators.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Common parametrized surfaces in 3D. diff --git a/src/sage/geometry/toric_lattice.py b/src/sage/geometry/toric_lattice.py index 4a34a6a510e..c41ad2ac890 100644 --- a/src/sage/geometry/toric_lattice.py +++ b/src/sage/geometry/toric_lattice.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Toric lattices diff --git a/src/sage/geometry/toric_lattice_element.pyx b/src/sage/geometry/toric_lattice_element.pyx index 60782a805f4..8f370b8f55b 100644 --- a/src/sage/geometry/toric_lattice_element.pyx +++ b/src/sage/geometry/toric_lattice_element.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Toric lattice elements diff --git a/src/sage/geometry/toric_plotter.py b/src/sage/geometry/toric_plotter.py index 2943daa49bd..7a7f1976cc7 100644 --- a/src/sage/geometry/toric_plotter.py +++ b/src/sage/geometry/toric_plotter.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra r""" Toric plotter diff --git a/src/sage/geometry/triangulation/all.py b/src/sage/geometry/triangulation/all.py index d40e50321f8..e966541c6c6 100644 --- a/src/sage/geometry/triangulation/all.py +++ b/src/sage/geometry/triangulation/all.py @@ -1 +1,2 @@ +# sage_setup: distribution = sagemath-polyhedra from .point_configuration import PointConfiguration diff --git a/src/sage/geometry/triangulation/base.pyx b/src/sage/geometry/triangulation/base.pyx index 3161d19afba..d7c652181e4 100644 --- a/src/sage/geometry/triangulation/base.pyx +++ b/src/sage/geometry/triangulation/base.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra # distutils: sources = sage/geometry/triangulation/functions.cc sage/geometry/triangulation/data.cc sage/geometry/triangulation/triangulations.cc # distutils: depends = sage/geometry/triangulation/functions.h sage/geometry/triangulation/data.h sage/geometry/triangulation/triangulations.h # distutils: language = c++ diff --git a/src/sage/geometry/triangulation/data.pxd b/src/sage/geometry/triangulation/data.pxd index 1baf9381ef7..13bdc971669 100644 --- a/src/sage/geometry/triangulation/data.pxd +++ b/src/sage/geometry/triangulation/data.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra cdef extern from "data.h": cdef cppclass compact_simplices(): void push_back(int encoded_simplex) diff --git a/src/sage/geometry/triangulation/element.py b/src/sage/geometry/triangulation/element.py index e8c8d7e1a51..f40e555ae99 100644 --- a/src/sage/geometry/triangulation/element.py +++ b/src/sage/geometry/triangulation/element.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra """ A triangulation diff --git a/src/sage/geometry/triangulation/functions.pxd b/src/sage/geometry/triangulation/functions.pxd index fa981e5215b..875adc3fdba 100644 --- a/src/sage/geometry/triangulation/functions.pxd +++ b/src/sage/geometry/triangulation/functions.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra cdef extern from "functions.h": int factorial(int n) int binomial(int n, int D) diff --git a/src/sage/geometry/triangulation/point_configuration.py b/src/sage/geometry/triangulation/point_configuration.py index 89d486b1e4f..88f306b177c 100644 --- a/src/sage/geometry/triangulation/point_configuration.py +++ b/src/sage/geometry/triangulation/point_configuration.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra r""" Triangulations of a point configuration diff --git a/src/sage/geometry/triangulation/triangulations.pxd b/src/sage/geometry/triangulation/triangulations.pxd index 0111fb0dd5f..0caca05228c 100644 --- a/src/sage/geometry/triangulation/triangulations.pxd +++ b/src/sage/geometry/triangulation/triangulations.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra cdef extern from "triangulations.h": ctypedef void* triangulations_ptr cdef triangulations_ptr init_triangulations \ diff --git a/src/sage/geometry/voronoi_diagram.py b/src/sage/geometry/voronoi_diagram.py index 0cea1e91377..d2954a310fa 100644 --- a/src/sage/geometry/voronoi_diagram.py +++ b/src/sage/geometry/voronoi_diagram.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra r""" Voronoi diagram diff --git a/src/sage/graphs/all.py b/src/sage/graphs/all.py index 2cbc65d0e23..739bbf57994 100644 --- a/src/sage/graphs/all.py +++ b/src/sage/graphs/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs from sage.misc.lazy_import import lazy_import diff --git a/src/sage/graphs/all__sagemath_bliss.py b/src/sage/graphs/all__sagemath_bliss.py index e69de29bb2d..00e01e7dfe7 100644 --- a/src/sage/graphs/all__sagemath_bliss.py +++ b/src/sage/graphs/all__sagemath_bliss.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-bliss diff --git a/src/sage/graphs/all__sagemath_mcqd.py b/src/sage/graphs/all__sagemath_mcqd.py index e69de29bb2d..9d46f0ff6ba 100644 --- a/src/sage/graphs/all__sagemath_mcqd.py +++ b/src/sage/graphs/all__sagemath_mcqd.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-mcqd diff --git a/src/sage/graphs/all__sagemath_tdlib.py b/src/sage/graphs/all__sagemath_tdlib.py index e69de29bb2d..e26612c8409 100644 --- a/src/sage/graphs/all__sagemath_tdlib.py +++ b/src/sage/graphs/all__sagemath_tdlib.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-tdlib diff --git a/src/sage/graphs/asteroidal_triples.pyx b/src/sage/graphs/asteroidal_triples.pyx index fc5cc3ff09b..399c604194f 100644 --- a/src/sage/graphs/asteroidal_triples.pyx +++ b/src/sage/graphs/asteroidal_triples.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # cython: binding=True r""" Asteroidal triples diff --git a/src/sage/graphs/base/all.py b/src/sage/graphs/base/all.py index e69de29bb2d..9d0d23c0337 100644 --- a/src/sage/graphs/base/all.py +++ b/src/sage/graphs/base/all.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-graphs diff --git a/src/sage/graphs/base/boost_graph.pxd b/src/sage/graphs/base/boost_graph.pxd index 7c7333a525b..c0b41e8b5cc 100644 --- a/src/sage/graphs/base/boost_graph.pxd +++ b/src/sage/graphs/base/boost_graph.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # distutils: language = c++ # distutils: extra_compile_args = -std=c++11 diff --git a/src/sage/graphs/base/boost_graph.pyx b/src/sage/graphs/base/boost_graph.pyx index 5c7aa0b61c8..b66af472bf1 100644 --- a/src/sage/graphs/base/boost_graph.pyx +++ b/src/sage/graphs/base/boost_graph.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" Interface to run Boost algorithms diff --git a/src/sage/graphs/base/c_graph.pxd b/src/sage/graphs/base/c_graph.pxd index b29cc3c9527..75a7a484a32 100644 --- a/src/sage/graphs/base/c_graph.pxd +++ b/src/sage/graphs/base/c_graph.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs #************************************************************************** # Copyright (C) 2008-9 Robert L. Miller # diff --git a/src/sage/graphs/base/c_graph.pyx b/src/sage/graphs/base/c_graph.pyx index 70ce392a43c..80bed619ca9 100644 --- a/src/sage/graphs/base/c_graph.pyx +++ b/src/sage/graphs/base/c_graph.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # distutils: language = c++ r""" Fast compiled graphs diff --git a/src/sage/graphs/base/dense_graph.pxd b/src/sage/graphs/base/dense_graph.pxd index 6c4145694fe..75bdfe3d0cf 100644 --- a/src/sage/graphs/base/dense_graph.pxd +++ b/src/sage/graphs/base/dense_graph.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs #***************************************************************************** # Copyright (C) 2008-2009 Robert L. Miller # diff --git a/src/sage/graphs/base/dense_graph.pyx b/src/sage/graphs/base/dense_graph.pyx index db4a02a5a3f..829e5a1e9d4 100644 --- a/src/sage/graphs/base/dense_graph.pyx +++ b/src/sage/graphs/base/dense_graph.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" Fast dense graphs diff --git a/src/sage/graphs/base/graph_backends.pxd b/src/sage/graphs/base/graph_backends.pxd index 063e70e575e..ad412643bab 100644 --- a/src/sage/graphs/base/graph_backends.pxd +++ b/src/sage/graphs/base/graph_backends.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs from sage.structure.sage_object cimport SageObject cdef class GenericGraphBackend(SageObject): diff --git a/src/sage/graphs/base/graph_backends.pyx b/src/sage/graphs/base/graph_backends.pyx index 77961c33cf6..8db3989adf8 100644 --- a/src/sage/graphs/base/graph_backends.pyx +++ b/src/sage/graphs/base/graph_backends.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # -*- coding: utf-8 -*- r""" Backends for Sage (di)graphs diff --git a/src/sage/graphs/base/overview.py b/src/sage/graphs/base/overview.py index e349d84b828..a1c781f1afc 100644 --- a/src/sage/graphs/base/overview.py +++ b/src/sage/graphs/base/overview.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" Overview of (di)graph data structures diff --git a/src/sage/graphs/base/sparse_graph.pxd b/src/sage/graphs/base/sparse_graph.pxd index 3795c8ff0f0..505900e6c28 100644 --- a/src/sage/graphs/base/sparse_graph.pxd +++ b/src/sage/graphs/base/sparse_graph.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # **************************************************************************** # Copyright (C) 2008-2009 Robert L. Miller # diff --git a/src/sage/graphs/base/sparse_graph.pyx b/src/sage/graphs/base/sparse_graph.pyx index e512832d958..a4d20590630 100644 --- a/src/sage/graphs/base/sparse_graph.pyx +++ b/src/sage/graphs/base/sparse_graph.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" Fast sparse graphs diff --git a/src/sage/graphs/base/static_dense_graph.pxd b/src/sage/graphs/base/static_dense_graph.pxd index d1c2a0aa3f9..071f9749e40 100644 --- a/src/sage/graphs/base/static_dense_graph.pxd +++ b/src/sage/graphs/base/static_dense_graph.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs from sage.data_structures.binary_matrix cimport binary_matrix_t from libc.stdint cimport uint32_t, uint64_t diff --git a/src/sage/graphs/base/static_dense_graph.pyx b/src/sage/graphs/base/static_dense_graph.pyx index 9d8732b2f83..e5d60c95650 100644 --- a/src/sage/graphs/base/static_dense_graph.pyx +++ b/src/sage/graphs/base/static_dense_graph.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # cython: binding=True r""" Static dense graphs diff --git a/src/sage/graphs/base/static_sparse_backend.pxd b/src/sage/graphs/base/static_sparse_backend.pxd index fb72a89180b..60d6792c853 100644 --- a/src/sage/graphs/base/static_sparse_backend.pxd +++ b/src/sage/graphs/base/static_sparse_backend.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs from libc.stdint cimport uint64_t, uint32_t, INT32_MAX, UINT32_MAX from sage.data_structures.bitset cimport * diff --git a/src/sage/graphs/base/static_sparse_backend.pyx b/src/sage/graphs/base/static_sparse_backend.pyx index 0d1361c940a..8a6523e314b 100644 --- a/src/sage/graphs/base/static_sparse_backend.pyx +++ b/src/sage/graphs/base/static_sparse_backend.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" Static sparse graph backend diff --git a/src/sage/graphs/base/static_sparse_graph.pxd b/src/sage/graphs/base/static_sparse_graph.pxd index 4a427f81237..6863ae632af 100644 --- a/src/sage/graphs/base/static_sparse_graph.pxd +++ b/src/sage/graphs/base/static_sparse_graph.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs from cpython.object cimport PyObject from libc.stdint cimport uint32_t, uint64_t, UINT32_MAX from sage.data_structures.bitset cimport * diff --git a/src/sage/graphs/base/static_sparse_graph.pyx b/src/sage/graphs/base/static_sparse_graph.pyx index 35f3de67c98..1ce8dde3a7a 100644 --- a/src/sage/graphs/base/static_sparse_graph.pyx +++ b/src/sage/graphs/base/static_sparse_graph.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # cython: binding=True # distutils: language = c++ r""" diff --git a/src/sage/graphs/bipartite_graph.py b/src/sage/graphs/bipartite_graph.py index 6bb65e6ad33..668141bc5f3 100644 --- a/src/sage/graphs/bipartite_graph.py +++ b/src/sage/graphs/bipartite_graph.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # autopep8: off r""" Bipartite graphs diff --git a/src/sage/graphs/centrality.pyx b/src/sage/graphs/centrality.pyx index 118edd5d7b0..515c6654cd2 100755 --- a/src/sage/graphs/centrality.pyx +++ b/src/sage/graphs/centrality.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" Centrality diff --git a/src/sage/graphs/chrompoly.pyx b/src/sage/graphs/chrompoly.pyx index f596272219e..da352d95383 100644 --- a/src/sage/graphs/chrompoly.pyx +++ b/src/sage/graphs/chrompoly.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # cython: binding=True # sage.doctest: needs sage.libs.flint sage.graphs """ diff --git a/src/sage/graphs/cliquer.pxd b/src/sage/graphs/cliquer.pxd index df1576b164e..05f6ad93ab0 100644 --- a/src/sage/graphs/cliquer.pxd +++ b/src/sage/graphs/cliquer.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # distutils: libraries = cliquer cdef extern from "cliquer/graph.h": diff --git a/src/sage/graphs/cliquer.pyx b/src/sage/graphs/cliquer.pyx index 2800efa5d37..772c6f85f35 100644 --- a/src/sage/graphs/cliquer.pyx +++ b/src/sage/graphs/cliquer.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # cython: binding=True r""" Interface with Cliquer (clique-related problems) diff --git a/src/sage/graphs/comparability.pyx b/src/sage/graphs/comparability.pyx index b10ce489268..d30fa021066 100644 --- a/src/sage/graphs/comparability.pyx +++ b/src/sage/graphs/comparability.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # cython: binding=True r""" Comparability and permutation graphs diff --git a/src/sage/graphs/connectivity.pxd b/src/sage/graphs/connectivity.pxd index 5e49e66cc3a..b74d1900579 100644 --- a/src/sage/graphs/connectivity.pxd +++ b/src/sage/graphs/connectivity.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs from memory_allocator cimport MemoryAllocator from sage.graphs.generic_graph_pyx cimport GenericGraph_pyx diff --git a/src/sage/graphs/connectivity.pyx b/src/sage/graphs/connectivity.pyx index 910fcc88df8..65a0fbf08d2 100644 --- a/src/sage/graphs/connectivity.pyx +++ b/src/sage/graphs/connectivity.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # cython: binding=True r""" Connectivity related functions diff --git a/src/sage/graphs/convexity_properties.pxd b/src/sage/graphs/convexity_properties.pxd index cc80e214ea5..3ed3d75a059 100644 --- a/src/sage/graphs/convexity_properties.pxd +++ b/src/sage/graphs/convexity_properties.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs from sage.data_structures.bitset cimport bitset_t from sage.data_structures.binary_matrix cimport binary_matrix_t diff --git a/src/sage/graphs/convexity_properties.pyx b/src/sage/graphs/convexity_properties.pyx index 7024324f362..f24f1950563 100644 --- a/src/sage/graphs/convexity_properties.pyx +++ b/src/sage/graphs/convexity_properties.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # cython: binding=True r""" Convexity properties of graphs diff --git a/src/sage/graphs/digraph.py b/src/sage/graphs/digraph.py index 58f902b10cd..06eae82c73d 100644 --- a/src/sage/graphs/digraph.py +++ b/src/sage/graphs/digraph.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" Directed graphs diff --git a/src/sage/graphs/digraph_generators.py b/src/sage/graphs/digraph_generators.py index d182f49afb1..e09a8f17b02 100644 --- a/src/sage/graphs/digraph_generators.py +++ b/src/sage/graphs/digraph_generators.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" Common digraphs diff --git a/src/sage/graphs/distances_all_pairs.pxd b/src/sage/graphs/distances_all_pairs.pxd index 98301b92213..b1da5ef94fd 100644 --- a/src/sage/graphs/distances_all_pairs.pxd +++ b/src/sage/graphs/distances_all_pairs.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs from libc.stdint cimport uint32_t cdef unsigned short * c_shortest_path_all_pairs(G, vertex_list=*) except NULL diff --git a/src/sage/graphs/distances_all_pairs.pyx b/src/sage/graphs/distances_all_pairs.pyx index ec24fd5378f..5ee21fc7129 100644 --- a/src/sage/graphs/distances_all_pairs.pyx +++ b/src/sage/graphs/distances_all_pairs.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # cython: binding=True r""" Distances/shortest paths between all pairs of vertices diff --git a/src/sage/graphs/domination.py b/src/sage/graphs/domination.py index 6323cdd29e4..1c174e3120a 100644 --- a/src/sage/graphs/domination.py +++ b/src/sage/graphs/domination.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" Domination diff --git a/src/sage/graphs/dot2tex_utils.py b/src/sage/graphs/dot2tex_utils.py index f8eb55485ac..4c653e06598 100644 --- a/src/sage/graphs/dot2tex_utils.py +++ b/src/sage/graphs/dot2tex_utils.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" This file contains some utility functions for the interface with dot2tex """ diff --git a/src/sage/graphs/edge_connectivity.pyx b/src/sage/graphs/edge_connectivity.pyx index 22163fc9c77..2a69d39c8e9 100644 --- a/src/sage/graphs/edge_connectivity.pyx +++ b/src/sage/graphs/edge_connectivity.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # cython: binding=True # distutils: language = c++ r""" diff --git a/src/sage/graphs/generators/all.py b/src/sage/graphs/generators/all.py index e69de29bb2d..9d0d23c0337 100644 --- a/src/sage/graphs/generators/all.py +++ b/src/sage/graphs/generators/all.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-graphs diff --git a/src/sage/graphs/generators/basic.py b/src/sage/graphs/generators/basic.py index 0dc2c00baef..3bed0d40ff9 100644 --- a/src/sage/graphs/generators/basic.py +++ b/src/sage/graphs/generators/basic.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" Basic graphs diff --git a/src/sage/graphs/generators/chessboard.py b/src/sage/graphs/generators/chessboard.py index a76d6f98de7..79f08fe6492 100644 --- a/src/sage/graphs/generators/chessboard.py +++ b/src/sage/graphs/generators/chessboard.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" Chessboard graphs diff --git a/src/sage/graphs/generators/classical_geometries.py b/src/sage/graphs/generators/classical_geometries.py index e27f7e11b6d..5b465cd3bb1 100644 --- a/src/sage/graphs/generators/classical_geometries.py +++ b/src/sage/graphs/generators/classical_geometries.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # sage.doctest: optional - sage.modules r""" Families of graphs derived from classical geometries over finite fields diff --git a/src/sage/graphs/generators/degree_sequence.py b/src/sage/graphs/generators/degree_sequence.py index 05c021403b0..c585c837e94 100644 --- a/src/sage/graphs/generators/degree_sequence.py +++ b/src/sage/graphs/generators/degree_sequence.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" Graphs with a given degree sequence diff --git a/src/sage/graphs/generators/distance_regular.pyx b/src/sage/graphs/generators/distance_regular.pyx index f05e4d714f7..442f88883f6 100644 --- a/src/sage/graphs/generators/distance_regular.pyx +++ b/src/sage/graphs/generators/distance_regular.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" Database of distance regular graphs diff --git a/src/sage/graphs/generators/families.py b/src/sage/graphs/generators/families.py index c962378cd25..3218e17e384 100644 --- a/src/sage/graphs/generators/families.py +++ b/src/sage/graphs/generators/families.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" Various families of graphs diff --git a/src/sage/graphs/generators/intersection.py b/src/sage/graphs/generators/intersection.py index 0434806fb73..ff948504a82 100644 --- a/src/sage/graphs/generators/intersection.py +++ b/src/sage/graphs/generators/intersection.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" Intersection graphs diff --git a/src/sage/graphs/generators/platonic_solids.py b/src/sage/graphs/generators/platonic_solids.py index 5a572611539..db52f5a9ae8 100644 --- a/src/sage/graphs/generators/platonic_solids.py +++ b/src/sage/graphs/generators/platonic_solids.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" 1-skeletons of Platonic solids diff --git a/src/sage/graphs/generators/random.py b/src/sage/graphs/generators/random.py index e0868b36e21..4a61298d22c 100644 --- a/src/sage/graphs/generators/random.py +++ b/src/sage/graphs/generators/random.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" Random graphs diff --git a/src/sage/graphs/generators/smallgraphs.py b/src/sage/graphs/generators/smallgraphs.py index bde0cafc0a8..61904dd904f 100644 --- a/src/sage/graphs/generators/smallgraphs.py +++ b/src/sage/graphs/generators/smallgraphs.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" Various small graphs diff --git a/src/sage/graphs/generators/world_map.py b/src/sage/graphs/generators/world_map.py index 76ec2b4f9ae..b15baa7d034 100644 --- a/src/sage/graphs/generators/world_map.py +++ b/src/sage/graphs/generators/world_map.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" Graphs from the World Map diff --git a/src/sage/graphs/generic_graph.py b/src/sage/graphs/generic_graph.py index e6677c26803..591303bcdab 100644 --- a/src/sage/graphs/generic_graph.py +++ b/src/sage/graphs/generic_graph.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" Generic graphs (common to directed/undirected) diff --git a/src/sage/graphs/generic_graph_pyx.pxd b/src/sage/graphs/generic_graph_pyx.pxd index 1a472c59a70..35a59eeabd0 100644 --- a/src/sage/graphs/generic_graph_pyx.pxd +++ b/src/sage/graphs/generic_graph_pyx.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs from sage.structure.sage_object cimport SageObject from sage.graphs.base.dense_graph cimport DenseGraph from memory_allocator cimport MemoryAllocator diff --git a/src/sage/graphs/generic_graph_pyx.pyx b/src/sage/graphs/generic_graph_pyx.pyx index 653a36d43f3..67098da1ffc 100644 --- a/src/sage/graphs/generic_graph_pyx.pyx +++ b/src/sage/graphs/generic_graph_pyx.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # -*- coding: utf-8 -*- """ GenericGraph Cython functions diff --git a/src/sage/graphs/genus.pyx b/src/sage/graphs/genus.pyx index 441fae754d6..64d6b930e5e 100644 --- a/src/sage/graphs/genus.pyx +++ b/src/sage/graphs/genus.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs """ Genus diff --git a/src/sage/graphs/graph.py b/src/sage/graphs/graph.py index 0308fbca960..848176e691b 100644 --- a/src/sage/graphs/graph.py +++ b/src/sage/graphs/graph.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" Undirected graphs diff --git a/src/sage/graphs/graph_coloring.pyx b/src/sage/graphs/graph_coloring.pyx index f5025a641ac..5cacdea2a34 100644 --- a/src/sage/graphs/graph_coloring.pyx +++ b/src/sage/graphs/graph_coloring.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # cython: binding=True # distutils: language = c++ diff --git a/src/sage/graphs/graph_database.py b/src/sage/graphs/graph_database.py index 9dec951aa98..3082aa88300 100644 --- a/src/sage/graphs/graph_database.py +++ b/src/sage/graphs/graph_database.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs """ Graph database diff --git a/src/sage/graphs/graph_decompositions/all.py b/src/sage/graphs/graph_decompositions/all.py index e69de29bb2d..9d0d23c0337 100644 --- a/src/sage/graphs/graph_decompositions/all.py +++ b/src/sage/graphs/graph_decompositions/all.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-graphs diff --git a/src/sage/graphs/graph_decompositions/all__sagemath_tdlib.py b/src/sage/graphs/graph_decompositions/all__sagemath_tdlib.py index e69de29bb2d..e26612c8409 100644 --- a/src/sage/graphs/graph_decompositions/all__sagemath_tdlib.py +++ b/src/sage/graphs/graph_decompositions/all__sagemath_tdlib.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-tdlib diff --git a/src/sage/graphs/graph_decompositions/bandwidth.pyx b/src/sage/graphs/graph_decompositions/bandwidth.pyx index 61bacd2daf5..659c9eefdb2 100644 --- a/src/sage/graphs/graph_decompositions/bandwidth.pyx +++ b/src/sage/graphs/graph_decompositions/bandwidth.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # cython: binding=True r""" Bandwidth of undirected graphs diff --git a/src/sage/graphs/graph_decompositions/clique_separators.pyx b/src/sage/graphs/graph_decompositions/clique_separators.pyx index 0989a5a9dae..3e811eb5826 100644 --- a/src/sage/graphs/graph_decompositions/clique_separators.pyx +++ b/src/sage/graphs/graph_decompositions/clique_separators.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # -*- coding: utf-8 -*- # cython: binding=True # distutils: language = c++ diff --git a/src/sage/graphs/graph_decompositions/cutwidth.pyx b/src/sage/graphs/graph_decompositions/cutwidth.pyx index e4e139084c0..e70fca844f5 100644 --- a/src/sage/graphs/graph_decompositions/cutwidth.pyx +++ b/src/sage/graphs/graph_decompositions/cutwidth.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # cython: binding=True r""" Cutwidth diff --git a/src/sage/graphs/graph_decompositions/fast_digraph.pxd b/src/sage/graphs/graph_decompositions/fast_digraph.pxd index 2687f8f974d..b2b2f44b989 100644 --- a/src/sage/graphs/graph_decompositions/fast_digraph.pxd +++ b/src/sage/graphs/graph_decompositions/fast_digraph.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs from libc.stdint cimport uint8_t cdef class FastDigraph: diff --git a/src/sage/graphs/graph_decompositions/fast_digraph.pyx b/src/sage/graphs/graph_decompositions/fast_digraph.pyx index 2d28ccf4d05..5e0924e06ff 100644 --- a/src/sage/graphs/graph_decompositions/fast_digraph.pyx +++ b/src/sage/graphs/graph_decompositions/fast_digraph.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" Compact structure for fast operations on less than 32 vertices diff --git a/src/sage/graphs/graph_decompositions/graph_products.pyx b/src/sage/graphs/graph_decompositions/graph_products.pyx index cd4f0b04c7d..8960afab2af 100644 --- a/src/sage/graphs/graph_decompositions/graph_products.pyx +++ b/src/sage/graphs/graph_decompositions/graph_products.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # cython: binding=True r""" Products of graphs diff --git a/src/sage/graphs/graph_decompositions/modular_decomposition.py b/src/sage/graphs/graph_decompositions/modular_decomposition.py index c994475bd6b..5649af1d19c 100644 --- a/src/sage/graphs/graph_decompositions/modular_decomposition.py +++ b/src/sage/graphs/graph_decompositions/modular_decomposition.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" Modular Decomposition diff --git a/src/sage/graphs/graph_decompositions/rankwidth.pxd b/src/sage/graphs/graph_decompositions/rankwidth.pxd index a23faceac4f..a970d155391 100644 --- a/src/sage/graphs/graph_decompositions/rankwidth.pxd +++ b/src/sage/graphs/graph_decompositions/rankwidth.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs cdef extern from "rw.h": ctypedef int uint_fast8_t ctypedef int uint_fast32_t diff --git a/src/sage/graphs/graph_decompositions/rankwidth.pyx b/src/sage/graphs/graph_decompositions/rankwidth.pyx index 5be540bafe2..fef3e9c631f 100644 --- a/src/sage/graphs/graph_decompositions/rankwidth.pyx +++ b/src/sage/graphs/graph_decompositions/rankwidth.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # cython: binding=True # distutils: libraries = rw r""" diff --git a/src/sage/graphs/graph_decompositions/tree_decomposition.pxd b/src/sage/graphs/graph_decompositions/tree_decomposition.pxd index 2de876e8889..ace3fd5a327 100644 --- a/src/sage/graphs/graph_decompositions/tree_decomposition.pxd +++ b/src/sage/graphs/graph_decompositions/tree_decomposition.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs from sage.graphs.generic_graph_pyx cimport GenericGraph_pyx cdef class TreelengthConnected: diff --git a/src/sage/graphs/graph_decompositions/tree_decomposition.pyx b/src/sage/graphs/graph_decompositions/tree_decomposition.pyx index 803f5a09771..aebcb8b925c 100644 --- a/src/sage/graphs/graph_decompositions/tree_decomposition.pyx +++ b/src/sage/graphs/graph_decompositions/tree_decomposition.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # cython: binding=True r""" Tree decompositions diff --git a/src/sage/graphs/graph_decompositions/vertex_separation.pxd b/src/sage/graphs/graph_decompositions/vertex_separation.pxd index fbadc893436..fd3ae9af359 100644 --- a/src/sage/graphs/graph_decompositions/vertex_separation.pxd +++ b/src/sage/graphs/graph_decompositions/vertex_separation.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs from libc.stdint cimport uint8_t from sage.graphs.graph_decompositions.fast_digraph cimport FastDigraph diff --git a/src/sage/graphs/graph_decompositions/vertex_separation.pyx b/src/sage/graphs/graph_decompositions/vertex_separation.pyx index eaec31b5c96..40407a978e9 100644 --- a/src/sage/graphs/graph_decompositions/vertex_separation.pyx +++ b/src/sage/graphs/graph_decompositions/vertex_separation.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # cython: binding=True r""" Vertex separation diff --git a/src/sage/graphs/graph_editor.py b/src/sage/graphs/graph_editor.py index fc1fc72ccc8..e09368db17a 100644 --- a/src/sage/graphs/graph_editor.py +++ b/src/sage/graphs/graph_editor.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" Graph editor widget diff --git a/src/sage/graphs/graph_generators.py b/src/sage/graphs/graph_generators.py index 58a52a309f2..e1644d711a5 100644 --- a/src/sage/graphs/graph_generators.py +++ b/src/sage/graphs/graph_generators.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" Common graphs diff --git a/src/sage/graphs/graph_generators_pyx.pyx b/src/sage/graphs/graph_generators_pyx.pyx index 033e8b22adc..1817e99c497 100644 --- a/src/sage/graphs/graph_generators_pyx.pyx +++ b/src/sage/graphs/graph_generators_pyx.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" Common graphs and digraphs generators (Cython) diff --git a/src/sage/graphs/graph_input.py b/src/sage/graphs/graph_input.py index 4e08af6a4fc..947fd60b3da 100644 --- a/src/sage/graphs/graph_input.py +++ b/src/sage/graphs/graph_input.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" Functions for reading/building graphs/digraphs diff --git a/src/sage/graphs/graph_latex.py b/src/sage/graphs/graph_latex.py index bff200a1a86..1b2857c3a9f 100644 --- a/src/sage/graphs/graph_latex.py +++ b/src/sage/graphs/graph_latex.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # sage.doctest: needs sage.plot r""" LaTeX options for graphs diff --git a/src/sage/graphs/graph_list.py b/src/sage/graphs/graph_list.py index 6994a821948..d6bfcfd1369 100644 --- a/src/sage/graphs/graph_list.py +++ b/src/sage/graphs/graph_list.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" Lists of graphs diff --git a/src/sage/graphs/graph_plot.py b/src/sage/graphs/graph_plot.py index 7908454db54..40aabba87aa 100644 --- a/src/sage/graphs/graph_plot.py +++ b/src/sage/graphs/graph_plot.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # sage.doctest: optional - sage.plot r""" Graph plotting diff --git a/src/sage/graphs/graph_plot_js.py b/src/sage/graphs/graph_plot_js.py index f1045446d65..7515ac048ee 100644 --- a/src/sage/graphs/graph_plot_js.py +++ b/src/sage/graphs/graph_plot_js.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # sage.doctest: needs sage.plot r""" Graph plotting in Javascript with d3.js diff --git a/src/sage/graphs/hyperbolicity.pyx b/src/sage/graphs/hyperbolicity.pyx index 6474e9d6869..d36c9d3de85 100644 --- a/src/sage/graphs/hyperbolicity.pyx +++ b/src/sage/graphs/hyperbolicity.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # cython: binding=True r""" Hyperbolicity diff --git a/src/sage/graphs/hypergraph_generators.py b/src/sage/graphs/hypergraph_generators.py index f5218e225f1..5141c02e968 100644 --- a/src/sage/graphs/hypergraph_generators.py +++ b/src/sage/graphs/hypergraph_generators.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" Hypergraph generators diff --git a/src/sage/graphs/independent_sets.pxd b/src/sage/graphs/independent_sets.pxd index 91f65b64ff7..7089adec2ae 100644 --- a/src/sage/graphs/independent_sets.pxd +++ b/src/sage/graphs/independent_sets.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs from libc.stdint cimport uint32_t, uint64_t from sage.data_structures.binary_matrix cimport * diff --git a/src/sage/graphs/independent_sets.pyx b/src/sage/graphs/independent_sets.pyx index 3064ccbc86f..22303abefd5 100644 --- a/src/sage/graphs/independent_sets.pyx +++ b/src/sage/graphs/independent_sets.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" Independent sets diff --git a/src/sage/graphs/isgci.py b/src/sage/graphs/isgci.py index e19c4a8103e..264fe3134c1 100644 --- a/src/sage/graphs/isgci.py +++ b/src/sage/graphs/isgci.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" ISGCI: Information System on Graph Classes and their Inclusions diff --git a/src/sage/graphs/isoperimetric_inequalities.pyx b/src/sage/graphs/isoperimetric_inequalities.pyx index 1d01e311c1c..0b17d17f59f 100644 --- a/src/sage/graphs/isoperimetric_inequalities.pyx +++ b/src/sage/graphs/isoperimetric_inequalities.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # cython: binding = True r""" Isoperimetric inequalities diff --git a/src/sage/graphs/line_graph.pyx b/src/sage/graphs/line_graph.pyx index cef56940d38..5170e331abe 100644 --- a/src/sage/graphs/line_graph.pyx +++ b/src/sage/graphs/line_graph.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # cython: binding=True r""" Line graphs diff --git a/src/sage/graphs/lovasz_theta.py b/src/sage/graphs/lovasz_theta.py index 5335a597ebf..8ebd37e2372 100644 --- a/src/sage/graphs/lovasz_theta.py +++ b/src/sage/graphs/lovasz_theta.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" Lovász theta-function of graphs diff --git a/src/sage/graphs/matchpoly.pyx b/src/sage/graphs/matchpoly.pyx index 5d70faf40a1..7028af04b0b 100644 --- a/src/sage/graphs/matchpoly.pyx +++ b/src/sage/graphs/matchpoly.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # cython: binding=True # sage.doctest: needs sage.libs.flint sage.graphs """ diff --git a/src/sage/graphs/orientations.py b/src/sage/graphs/orientations.py index 7b7fa8681fc..1dc08b891bf 100644 --- a/src/sage/graphs/orientations.py +++ b/src/sage/graphs/orientations.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" Orientations diff --git a/src/sage/graphs/partial_cube.py b/src/sage/graphs/partial_cube.py index 79b1edc957c..5f181f557d0 100644 --- a/src/sage/graphs/partial_cube.py +++ b/src/sage/graphs/partial_cube.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" Partial cubes diff --git a/src/sage/graphs/path_enumeration.pyx b/src/sage/graphs/path_enumeration.pyx index 140bbda60e7..18659f086ed 100644 --- a/src/sage/graphs/path_enumeration.pyx +++ b/src/sage/graphs/path_enumeration.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # -*- coding: utf-8 -*- # cython: binding=True # distutils: language = c++ diff --git a/src/sage/graphs/planarity.pyx b/src/sage/graphs/planarity.pyx index 987669d97fe..351238ffacd 100644 --- a/src/sage/graphs/planarity.pyx +++ b/src/sage/graphs/planarity.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # distutils: libraries = planarity """ Wrapper for Boyer's (C) planarity algorithm diff --git a/src/sage/graphs/pq_trees.py b/src/sage/graphs/pq_trees.py index 68063bc8e73..c1aa183dedd 100644 --- a/src/sage/graphs/pq_trees.py +++ b/src/sage/graphs/pq_trees.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" PQ-Trees diff --git a/src/sage/graphs/print_graphs.py b/src/sage/graphs/print_graphs.py index e89610d0424..e0248c86806 100644 --- a/src/sage/graphs/print_graphs.py +++ b/src/sage/graphs/print_graphs.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs """ Print graph diff --git a/src/sage/graphs/schnyder.py b/src/sage/graphs/schnyder.py index b52dcff829a..8ee7f5b3718 100644 --- a/src/sage/graphs/schnyder.py +++ b/src/sage/graphs/schnyder.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs """ Schnyder's algorithm for straight-line planar embeddings diff --git a/src/sage/graphs/spanning_tree.pyx b/src/sage/graphs/spanning_tree.pyx index 7576a341701..5742ab1b0e6 100644 --- a/src/sage/graphs/spanning_tree.pyx +++ b/src/sage/graphs/spanning_tree.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # cython: binding=True r""" Spanning trees diff --git a/src/sage/graphs/strongly_regular_db.pyx b/src/sage/graphs/strongly_regular_db.pyx index 632016b0703..70bf5ed12d3 100644 --- a/src/sage/graphs/strongly_regular_db.pyx +++ b/src/sage/graphs/strongly_regular_db.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # -*- coding: utf-8 -*- r""" Database of strongly regular graphs diff --git a/src/sage/graphs/traversals.pxd b/src/sage/graphs/traversals.pxd index c9a8444be0c..9dc5cd67d38 100644 --- a/src/sage/graphs/traversals.pxd +++ b/src/sage/graphs/traversals.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs from sage.graphs.base.static_sparse_graph cimport short_digraph cdef maximum_cardinality_search_M_short_digraph(short_digraph sd, diff --git a/src/sage/graphs/traversals.pyx b/src/sage/graphs/traversals.pyx index ae8518d3b25..9d15f853ff0 100644 --- a/src/sage/graphs/traversals.pyx +++ b/src/sage/graphs/traversals.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # -*- coding: utf-8 -*- # cython: binding=True # distutils: language = c++ diff --git a/src/sage/graphs/trees.pxd b/src/sage/graphs/trees.pxd index f2c81ab49a7..953d29c1f7e 100644 --- a/src/sage/graphs/trees.pxd +++ b/src/sage/graphs/trees.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs cdef class TreeIterator: cdef int vertices diff --git a/src/sage/graphs/trees.pyx b/src/sage/graphs/trees.pyx index 422fa28baa1..b97734d3fd9 100644 --- a/src/sage/graphs/trees.pyx +++ b/src/sage/graphs/trees.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" Generation of trees diff --git a/src/sage/graphs/tutte_polynomial.py b/src/sage/graphs/tutte_polynomial.py index 4868577c892..67aa614c219 100644 --- a/src/sage/graphs/tutte_polynomial.py +++ b/src/sage/graphs/tutte_polynomial.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" Tutte polynomial diff --git a/src/sage/graphs/views.pyx b/src/sage/graphs/views.pyx index 05534c744ef..527e08bb253 100644 --- a/src/sage/graphs/views.pyx +++ b/src/sage/graphs/views.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" View classes diff --git a/src/sage/graphs/weakly_chordal.pyx b/src/sage/graphs/weakly_chordal.pyx index 9153c8ee93d..9e88fd33dc9 100644 --- a/src/sage/graphs/weakly_chordal.pyx +++ b/src/sage/graphs/weakly_chordal.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # cython: binding=True r""" Weakly chordal graphs diff --git a/src/sage/groups/abelian_gps/abelian_aut.py b/src/sage/groups/abelian_gps/abelian_aut.py index b27f9bdb220..5b9f8f53b32 100644 --- a/src/sage/groups/abelian_gps/abelian_aut.py +++ b/src/sage/groups/abelian_gps/abelian_aut.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap r""" Automorphisms of abelian groups diff --git a/src/sage/groups/abelian_gps/abelian_group.py b/src/sage/groups/abelian_gps/abelian_group.py index 66558a9ffb0..3f07d7887e1 100644 --- a/src/sage/groups/abelian_gps/abelian_group.py +++ b/src/sage/groups/abelian_gps/abelian_group.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Multiplicative Abelian Groups diff --git a/src/sage/groups/abelian_gps/abelian_group_element.py b/src/sage/groups/abelian_gps/abelian_group_element.py index 6ae81844f98..7b8b7b188c0 100644 --- a/src/sage/groups/abelian_gps/abelian_group_element.py +++ b/src/sage/groups/abelian_gps/abelian_group_element.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Abelian group elements diff --git a/src/sage/groups/abelian_gps/abelian_group_gap.py b/src/sage/groups/abelian_gps/abelian_group_gap.py index 3a183ab9a20..eab612a9f67 100644 --- a/src/sage/groups/abelian_gps/abelian_group_gap.py +++ b/src/sage/groups/abelian_gps/abelian_group_gap.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap r""" Finitely generated abelian groups with GAP. diff --git a/src/sage/groups/abelian_gps/abelian_group_morphism.py b/src/sage/groups/abelian_gps/abelian_group_morphism.py index e4b7b82b42b..650567fe07d 100644 --- a/src/sage/groups/abelian_gps/abelian_group_morphism.py +++ b/src/sage/groups/abelian_gps/abelian_group_morphism.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap """ Homomorphisms of abelian groups diff --git a/src/sage/groups/abelian_gps/all.py b/src/sage/groups/abelian_gps/all.py index 2bb91f85f3b..627e15b9e0b 100644 --- a/src/sage/groups/abelian_gps/all.py +++ b/src/sage/groups/abelian_gps/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-groups """ all.py -- export of abelian groups to Sage """ diff --git a/src/sage/groups/abelian_gps/dual_abelian_group.py b/src/sage/groups/abelian_gps/dual_abelian_group.py index c6012254630..ba15375ceca 100644 --- a/src/sage/groups/abelian_gps/dual_abelian_group.py +++ b/src/sage/groups/abelian_gps/dual_abelian_group.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.rings.number_field r""" Dual groups of Finite Multiplicative Abelian Groups diff --git a/src/sage/groups/abelian_gps/dual_abelian_group_element.py b/src/sage/groups/abelian_gps/dual_abelian_group_element.py index 6fdb8a68c4e..08afe59ecd5 100644 --- a/src/sage/groups/abelian_gps/dual_abelian_group_element.py +++ b/src/sage/groups/abelian_gps/dual_abelian_group_element.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.rings.number_field """ Elements (characters) of the dual group of a finite Abelian group diff --git a/src/sage/groups/abelian_gps/element_base.py b/src/sage/groups/abelian_gps/element_base.py index 0435c9835b9..9ed358c9807 100644 --- a/src/sage/groups/abelian_gps/element_base.py +++ b/src/sage/groups/abelian_gps/element_base.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Base class for abelian group elements diff --git a/src/sage/groups/abelian_gps/values.py b/src/sage/groups/abelian_gps/values.py index 3db117123f0..32992e04eb9 100644 --- a/src/sage/groups/abelian_gps/values.py +++ b/src/sage/groups/abelian_gps/values.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Multiplicative Abelian Groups With Values diff --git a/src/sage/groups/additive_abelian/additive_abelian_group.py b/src/sage/groups/additive_abelian/additive_abelian_group.py index a856f2120fe..81fcd3e7280 100644 --- a/src/sage/groups/additive_abelian/additive_abelian_group.py +++ b/src/sage/groups/additive_abelian/additive_abelian_group.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Additive Abelian Groups diff --git a/src/sage/groups/additive_abelian/additive_abelian_wrapper.py b/src/sage/groups/additive_abelian/additive_abelian_wrapper.py index 2a7496cb215..ea7f2f85849 100644 --- a/src/sage/groups/additive_abelian/additive_abelian_wrapper.py +++ b/src/sage/groups/additive_abelian/additive_abelian_wrapper.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Wrapper class for abelian groups diff --git a/src/sage/groups/additive_abelian/all.py b/src/sage/groups/additive_abelian/all.py index 956cf00614e..682b498c7da 100644 --- a/src/sage/groups/additive_abelian/all.py +++ b/src/sage/groups/additive_abelian/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from .additive_abelian_group import AdditiveAbelianGroup from .additive_abelian_wrapper import * diff --git a/src/sage/groups/additive_abelian/qmodnz.py b/src/sage/groups/additive_abelian/qmodnz.py index db0b23d5fe4..8c1b60ee80f 100644 --- a/src/sage/groups/additive_abelian/qmodnz.py +++ b/src/sage/groups/additive_abelian/qmodnz.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" This module implements `\Q/n\Z` for `n \in \Q`. diff --git a/src/sage/groups/additive_abelian/qmodnz_element.py b/src/sage/groups/additive_abelian/qmodnz_element.py index c5a857468c4..e7b2fb0b716 100644 --- a/src/sage/groups/additive_abelian/qmodnz_element.py +++ b/src/sage/groups/additive_abelian/qmodnz_element.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Elements of `\Q/n\Z`. diff --git a/src/sage/groups/affine_gps/affine_group.py b/src/sage/groups/affine_gps/affine_group.py index 7b5e4695fb1..3e0b082f35f 100644 --- a/src/sage/groups/affine_gps/affine_group.py +++ b/src/sage/groups/affine_gps/affine_group.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Affine Groups diff --git a/src/sage/groups/affine_gps/all.py b/src/sage/groups/affine_gps/all.py index e69de29bb2d..6f6ab52d0f2 100644 --- a/src/sage/groups/affine_gps/all.py +++ b/src/sage/groups/affine_gps/all.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-modules diff --git a/src/sage/groups/affine_gps/catalog.py b/src/sage/groups/affine_gps/catalog.py index cefcfeb97bf..5e86c8ded23 100644 --- a/src/sage/groups/affine_gps/catalog.py +++ b/src/sage/groups/affine_gps/catalog.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Type ``groups.affine.`` to access examples of groups implemented as affine groups. diff --git a/src/sage/groups/affine_gps/euclidean_group.py b/src/sage/groups/affine_gps/euclidean_group.py index 59fb411b925..b5c2ac33bf7 100644 --- a/src/sage/groups/affine_gps/euclidean_group.py +++ b/src/sage/groups/affine_gps/euclidean_group.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Euclidean Groups diff --git a/src/sage/groups/affine_gps/group_element.py b/src/sage/groups/affine_gps/group_element.py index 7df4dc8a69a..99d4f278d69 100644 --- a/src/sage/groups/affine_gps/group_element.py +++ b/src/sage/groups/affine_gps/group_element.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Elements of Affine Groups diff --git a/src/sage/groups/all.py b/src/sage/groups/all.py index 4361403dccc..7e65b67cae2 100644 --- a/src/sage/groups/all.py +++ b/src/sage/groups/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-groups from sage.misc.lazy_import import lazy_import from .pari_group import PariGroup diff --git a/src/sage/groups/artin.py b/src/sage/groups/artin.py index 2b2f604a462..b2fce6ff030 100644 --- a/src/sage/groups/artin.py +++ b/src/sage/groups/artin.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-groups """ Artin Groups diff --git a/src/sage/groups/braid.py b/src/sage/groups/braid.py index bd787d3c153..7eb39568816 100644 --- a/src/sage/groups/braid.py +++ b/src/sage/groups/braid.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-groups """ Braid groups diff --git a/src/sage/groups/cactus_group.py b/src/sage/groups/cactus_group.py index a12fbb88563..6b0e147a956 100644 --- a/src/sage/groups/cactus_group.py +++ b/src/sage/groups/cactus_group.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-groups # sage.doctest: needs sage.rings.number_field r""" Cactus Groups diff --git a/src/sage/groups/class_function.py b/src/sage/groups/class_function.py index c788a596809..fd93fbcc404 100644 --- a/src/sage/groups/class_function.py +++ b/src/sage/groups/class_function.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-groups # sage.doctest: needs sage.rings.number_field r""" Class functions of groups. diff --git a/src/sage/groups/conjugacy_classes.py b/src/sage/groups/conjugacy_classes.py index 147cc803842..873d420b547 100644 --- a/src/sage/groups/conjugacy_classes.py +++ b/src/sage/groups/conjugacy_classes.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-groups r""" Conjugacy classes of groups diff --git a/src/sage/groups/cubic_braid.py b/src/sage/groups/cubic_braid.py index 9b12d8b9cfa..793d5b953ca 100644 --- a/src/sage/groups/cubic_braid.py +++ b/src/sage/groups/cubic_braid.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-groups r""" Cubic Braid Groups diff --git a/src/sage/groups/finitely_presented.py b/src/sage/groups/finitely_presented.py index 07eabcd25b4..0a056c373dd 100644 --- a/src/sage/groups/finitely_presented.py +++ b/src/sage/groups/finitely_presented.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-groups """ Finitely Presented Groups diff --git a/src/sage/groups/finitely_presented_catalog.py b/src/sage/groups/finitely_presented_catalog.py index 512e851628b..a21d3e582cb 100644 --- a/src/sage/groups/finitely_presented_catalog.py +++ b/src/sage/groups/finitely_presented_catalog.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-groups """ Type ``groups.presentation.`` to access examples of groups implemented as finite presentations (quotients of diff --git a/src/sage/groups/finitely_presented_named.py b/src/sage/groups/finitely_presented_named.py index d800bf014d0..262d205ccf4 100644 --- a/src/sage/groups/finitely_presented_named.py +++ b/src/sage/groups/finitely_presented_named.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-groups r""" Named Finitely Presented Groups diff --git a/src/sage/groups/fqf_orthogonal.py b/src/sage/groups/fqf_orthogonal.py index 24dcb5412db..52d5d2db55f 100644 --- a/src/sage/groups/fqf_orthogonal.py +++ b/src/sage/groups/fqf_orthogonal.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-groups r""" Orthogonal Groups of Torsion Quadratic Forms diff --git a/src/sage/groups/free_group.py b/src/sage/groups/free_group.py index 5bc575ae264..827cbe0de2e 100644 --- a/src/sage/groups/free_group.py +++ b/src/sage/groups/free_group.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-groups """ Free Groups diff --git a/src/sage/groups/galois_group.py b/src/sage/groups/galois_group.py index a7439d18ab3..d7d479305fa 100644 --- a/src/sage/groups/galois_group.py +++ b/src/sage/groups/galois_group.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Galois groups of field extensions. diff --git a/src/sage/groups/galois_group_perm.py b/src/sage/groups/galois_group_perm.py index 162e5174143..46f6dc9b769 100644 --- a/src/sage/groups/galois_group_perm.py +++ b/src/sage/groups/galois_group_perm.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap r""" Galois groups of field extensions as permutation groups """ diff --git a/src/sage/groups/generic.py b/src/sage/groups/generic.py index 9ef099fa93e..7afd5afe460 100644 --- a/src/sage/groups/generic.py +++ b/src/sage/groups/generic.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Miscellaneous generic functions diff --git a/src/sage/groups/group.pxd b/src/sage/groups/group.pxd index 8a38ba4b583..771408df9ab 100644 --- a/src/sage/groups/group.pxd +++ b/src/sage/groups/group.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects from sage.structure.parent cimport Parent cdef class Group(Parent): diff --git a/src/sage/groups/group.pyx b/src/sage/groups/group.pyx index ef639a0c367..ee28eb64d7b 100644 --- a/src/sage/groups/group.pyx +++ b/src/sage/groups/group.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects """ Base class for groups """ diff --git a/src/sage/groups/group_exp.py b/src/sage/groups/group_exp.py index ffae5e73cb2..fe3567e5801 100644 --- a/src/sage/groups/group_exp.py +++ b/src/sage/groups/group_exp.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-groups r""" Functor that converts a commutative additive group into a multiplicative group. diff --git a/src/sage/groups/group_semidirect_product.py b/src/sage/groups/group_semidirect_product.py index 1805dbbc53a..e5e7077f271 100644 --- a/src/sage/groups/group_semidirect_product.py +++ b/src/sage/groups/group_semidirect_product.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-groups r""" Semidirect product of groups diff --git a/src/sage/groups/groups_catalog.py b/src/sage/groups/groups_catalog.py index a95ffaefb4a..d2c87813273 100644 --- a/src/sage/groups/groups_catalog.py +++ b/src/sage/groups/groups_catalog.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Examples of Groups diff --git a/src/sage/groups/indexed_free_group.py b/src/sage/groups/indexed_free_group.py index 79be1df663d..a2735e7ea6b 100644 --- a/src/sage/groups/indexed_free_group.py +++ b/src/sage/groups/indexed_free_group.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.combinat """ Indexed Free Groups diff --git a/src/sage/groups/kernel_subgroup.py b/src/sage/groups/kernel_subgroup.py index 605778784e4..c4488ca162f 100644 --- a/src/sage/groups/kernel_subgroup.py +++ b/src/sage/groups/kernel_subgroup.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-groups r""" Kernel Subgroups diff --git a/src/sage/groups/libgap_group.py b/src/sage/groups/libgap_group.py index 09889de4af5..3a181ff46ba 100644 --- a/src/sage/groups/libgap_group.py +++ b/src/sage/groups/libgap_group.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap """ Generic LibGAP-based Group diff --git a/src/sage/groups/libgap_mixin.py b/src/sage/groups/libgap_mixin.py index 3bb5d68e36f..e4fa3137573 100644 --- a/src/sage/groups/libgap_mixin.py +++ b/src/sage/groups/libgap_mixin.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap # sage.doctest: needs sage.modules """ Mix-in Class for GAP-based Groups diff --git a/src/sage/groups/libgap_morphism.py b/src/sage/groups/libgap_morphism.py index f1a47fcb279..29187791eba 100644 --- a/src/sage/groups/libgap_morphism.py +++ b/src/sage/groups/libgap_morphism.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap r""" Group homomorphisms for groups with a GAP backend diff --git a/src/sage/groups/libgap_wrapper.pxd b/src/sage/groups/libgap_wrapper.pxd index 25599eea2a8..9ccdd3aa381 100644 --- a/src/sage/groups/libgap_wrapper.pxd +++ b/src/sage/groups/libgap_wrapper.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap from sage.structure.element cimport MultiplicativeGroupElement from sage.libs.gap.element cimport GapElement diff --git a/src/sage/groups/libgap_wrapper.pyx b/src/sage/groups/libgap_wrapper.pyx index edcd50dfa4f..49772d1768e 100644 --- a/src/sage/groups/libgap_wrapper.pyx +++ b/src/sage/groups/libgap_wrapper.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap """ LibGAP-based Groups diff --git a/src/sage/groups/lie_gps/all.py b/src/sage/groups/lie_gps/all.py index e69de29bb2d..11f290a2a34 100644 --- a/src/sage/groups/lie_gps/all.py +++ b/src/sage/groups/lie_gps/all.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-groups diff --git a/src/sage/groups/lie_gps/catalog.py b/src/sage/groups/lie_gps/catalog.py index 1b35d31d6b7..976df6bc1ac 100644 --- a/src/sage/groups/lie_gps/catalog.py +++ b/src/sage/groups/lie_gps/catalog.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-groups r""" Type ``groups.lie.`` to access examples of Lie groups. """ diff --git a/src/sage/groups/lie_gps/nilpotent_lie_group.py b/src/sage/groups/lie_gps/nilpotent_lie_group.py index 19bfb0e2288..36d59fbecb8 100644 --- a/src/sage/groups/lie_gps/nilpotent_lie_group.py +++ b/src/sage/groups/lie_gps/nilpotent_lie_group.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-groups r""" Nilpotent Lie groups diff --git a/src/sage/groups/matrix_gps/all.py b/src/sage/groups/matrix_gps/all.py index c6360cd6a03..415fbb1d1eb 100644 --- a/src/sage/groups/matrix_gps/all.py +++ b/src/sage/groups/matrix_gps/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.misc.lazy_import import lazy_import lazy_import('sage.groups.matrix_gps.linear', 'GL') diff --git a/src/sage/groups/matrix_gps/binary_dihedral.py b/src/sage/groups/matrix_gps/binary_dihedral.py index ccce9eeb17b..bf2a1b69342 100644 --- a/src/sage/groups/matrix_gps/binary_dihedral.py +++ b/src/sage/groups/matrix_gps/binary_dihedral.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap # sage.doctest: needs sage.libs.gap sage.modules sage.rings.number_field """ Binary Dihedral Groups diff --git a/src/sage/groups/matrix_gps/catalog.py b/src/sage/groups/matrix_gps/catalog.py index a9687740649..2419053f843 100644 --- a/src/sage/groups/matrix_gps/catalog.py +++ b/src/sage/groups/matrix_gps/catalog.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Library of Interesting Groups diff --git a/src/sage/groups/matrix_gps/coxeter_group.py b/src/sage/groups/matrix_gps/coxeter_group.py index d1c647f1286..4f7fe9f0682 100644 --- a/src/sage/groups/matrix_gps/coxeter_group.py +++ b/src/sage/groups/matrix_gps/coxeter_group.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.graphs """ Coxeter Groups As Matrix Groups diff --git a/src/sage/groups/matrix_gps/finitely_generated.py b/src/sage/groups/matrix_gps/finitely_generated.py index ef6ba42a105..664b0fbe03c 100644 --- a/src/sage/groups/matrix_gps/finitely_generated.py +++ b/src/sage/groups/matrix_gps/finitely_generated.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Finitely Generated Matrix Groups diff --git a/src/sage/groups/matrix_gps/finitely_generated_gap.py b/src/sage/groups/matrix_gps/finitely_generated_gap.py index add6875a802..cafc23a1e88 100644 --- a/src/sage/groups/matrix_gps/finitely_generated_gap.py +++ b/src/sage/groups/matrix_gps/finitely_generated_gap.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap """ Finitely Generated Matrix Groups with GAP """ diff --git a/src/sage/groups/matrix_gps/group_element.pxd b/src/sage/groups/matrix_gps/group_element.pxd index 1b32eea3602..e47a5c8fee8 100644 --- a/src/sage/groups/matrix_gps/group_element.pxd +++ b/src/sage/groups/matrix_gps/group_element.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.structure.element cimport MultiplicativeGroupElement, Element, MonoidElement, Matrix cpdef is_MatrixGroupElement(x) noexcept diff --git a/src/sage/groups/matrix_gps/group_element.pyx b/src/sage/groups/matrix_gps/group_element.pyx index fa914a9499d..391ab7309cc 100644 --- a/src/sage/groups/matrix_gps/group_element.pyx +++ b/src/sage/groups/matrix_gps/group_element.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Matrix Group Elements diff --git a/src/sage/groups/matrix_gps/group_element_gap.pxd b/src/sage/groups/matrix_gps/group_element_gap.pxd index 2633f21892c..18cd7591dff 100644 --- a/src/sage/groups/matrix_gps/group_element_gap.pxd +++ b/src/sage/groups/matrix_gps/group_element_gap.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap from sage.groups.libgap_wrapper cimport ElementLibGAP cdef class MatrixGroupElement_gap(ElementLibGAP): diff --git a/src/sage/groups/matrix_gps/group_element_gap.pyx b/src/sage/groups/matrix_gps/group_element_gap.pyx index 7c581377f6f..4f26823beaf 100644 --- a/src/sage/groups/matrix_gps/group_element_gap.pyx +++ b/src/sage/groups/matrix_gps/group_element_gap.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap r""" Matrix group elements implemented in GAP """ diff --git a/src/sage/groups/matrix_gps/heisenberg.py b/src/sage/groups/matrix_gps/heisenberg.py index 8a262ddf1c7..21ab7db9d45 100644 --- a/src/sage/groups/matrix_gps/heisenberg.py +++ b/src/sage/groups/matrix_gps/heisenberg.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap # sage.doctest: needs sage.libs.gap sage.modules """ Heisenberg Group diff --git a/src/sage/groups/matrix_gps/isometries.py b/src/sage/groups/matrix_gps/isometries.py index 424e5a0edf0..b351f5533b2 100644 --- a/src/sage/groups/matrix_gps/isometries.py +++ b/src/sage/groups/matrix_gps/isometries.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap r""" Groups of isometries diff --git a/src/sage/groups/matrix_gps/linear.py b/src/sage/groups/matrix_gps/linear.py index 822bd576afd..1c01968c879 100644 --- a/src/sage/groups/matrix_gps/linear.py +++ b/src/sage/groups/matrix_gps/linear.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Linear Groups diff --git a/src/sage/groups/matrix_gps/linear_gap.py b/src/sage/groups/matrix_gps/linear_gap.py index 37d33d5d2be..36f4a57734c 100644 --- a/src/sage/groups/matrix_gps/linear_gap.py +++ b/src/sage/groups/matrix_gps/linear_gap.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap """ Linear Groups with GAP """ diff --git a/src/sage/groups/matrix_gps/matrix_group.py b/src/sage/groups/matrix_gps/matrix_group.py index 192c4e4d4cf..60f10f4e617 100644 --- a/src/sage/groups/matrix_gps/matrix_group.py +++ b/src/sage/groups/matrix_gps/matrix_group.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Base classes for Matrix Groups diff --git a/src/sage/groups/matrix_gps/matrix_group_gap.py b/src/sage/groups/matrix_gps/matrix_group_gap.py index 9205951ccdd..8f9987cd3f4 100644 --- a/src/sage/groups/matrix_gps/matrix_group_gap.py +++ b/src/sage/groups/matrix_gps/matrix_group_gap.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap r""" Matrix group over a ring that GAP understands """ diff --git a/src/sage/groups/matrix_gps/named_group.py b/src/sage/groups/matrix_gps/named_group.py index 98841d9f0af..2d7324410bd 100644 --- a/src/sage/groups/matrix_gps/named_group.py +++ b/src/sage/groups/matrix_gps/named_group.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Base for Classical Matrix Groups diff --git a/src/sage/groups/matrix_gps/named_group_gap.py b/src/sage/groups/matrix_gps/named_group_gap.py index b8b1f54722c..3e4f0131a54 100644 --- a/src/sage/groups/matrix_gps/named_group_gap.py +++ b/src/sage/groups/matrix_gps/named_group_gap.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap """ Base for Classical Matrix Groups with GAP """ diff --git a/src/sage/groups/matrix_gps/orthogonal.py b/src/sage/groups/matrix_gps/orthogonal.py index 8d622f7b14f..b155fbea4cc 100644 --- a/src/sage/groups/matrix_gps/orthogonal.py +++ b/src/sage/groups/matrix_gps/orthogonal.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Orthogonal Linear Groups diff --git a/src/sage/groups/matrix_gps/orthogonal_gap.py b/src/sage/groups/matrix_gps/orthogonal_gap.py index 17dabb698f2..1a90bfb1336 100644 --- a/src/sage/groups/matrix_gps/orthogonal_gap.py +++ b/src/sage/groups/matrix_gps/orthogonal_gap.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap r""" Orthogonal Linear Groups with GAP """ diff --git a/src/sage/groups/matrix_gps/symplectic.py b/src/sage/groups/matrix_gps/symplectic.py index ec61d8a0634..0645f0d1de7 100644 --- a/src/sage/groups/matrix_gps/symplectic.py +++ b/src/sage/groups/matrix_gps/symplectic.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Symplectic Linear Groups diff --git a/src/sage/groups/matrix_gps/symplectic_gap.py b/src/sage/groups/matrix_gps/symplectic_gap.py index 96bf1fb5a75..2654bed7e21 100644 --- a/src/sage/groups/matrix_gps/symplectic_gap.py +++ b/src/sage/groups/matrix_gps/symplectic_gap.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap """ Symplectic Linear Groups with GAP """ diff --git a/src/sage/groups/matrix_gps/unitary.py b/src/sage/groups/matrix_gps/unitary.py index 379d8276571..a613365d758 100644 --- a/src/sage/groups/matrix_gps/unitary.py +++ b/src/sage/groups/matrix_gps/unitary.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Unitary Groups `GU(n,q)` and `SU(n,q)` diff --git a/src/sage/groups/matrix_gps/unitary_gap.py b/src/sage/groups/matrix_gps/unitary_gap.py index 0aa547f32e2..1869d95d07b 100644 --- a/src/sage/groups/matrix_gps/unitary_gap.py +++ b/src/sage/groups/matrix_gps/unitary_gap.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap # sage.doctest: needs sage.rings.finite_rings r""" Unitary Groups `GU(n,q)` and `SU(n,q)` with GAP diff --git a/src/sage/groups/misc_gps/all.py b/src/sage/groups/misc_gps/all.py index e69de29bb2d..11f290a2a34 100644 --- a/src/sage/groups/misc_gps/all.py +++ b/src/sage/groups/misc_gps/all.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-groups diff --git a/src/sage/groups/misc_gps/argument_groups.py b/src/sage/groups/misc_gps/argument_groups.py index 1c949a57f51..cc533de027c 100644 --- a/src/sage/groups/misc_gps/argument_groups.py +++ b/src/sage/groups/misc_gps/argument_groups.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-groups r""" Groups of elements representing (complex) arguments. diff --git a/src/sage/groups/misc_gps/imaginary_groups.py b/src/sage/groups/misc_gps/imaginary_groups.py index 41fe79f9959..e197273ec6c 100644 --- a/src/sage/groups/misc_gps/imaginary_groups.py +++ b/src/sage/groups/misc_gps/imaginary_groups.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-groups r""" Groups of imaginary elements diff --git a/src/sage/groups/misc_gps/misc_groups.py b/src/sage/groups/misc_gps/misc_groups.py index fb6bcb30fb7..7b695bb6fab 100644 --- a/src/sage/groups/misc_gps/misc_groups.py +++ b/src/sage/groups/misc_gps/misc_groups.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-groups r""" Miscellaneous Groups diff --git a/src/sage/groups/misc_gps/misc_groups_catalog.py b/src/sage/groups/misc_gps/misc_groups_catalog.py index 5396677d0b1..2eb44762f04 100644 --- a/src/sage/groups/misc_gps/misc_groups_catalog.py +++ b/src/sage/groups/misc_gps/misc_groups_catalog.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-groups r""" Type ``groups.misc.`` to access examples of various groups not listed elsewhere. diff --git a/src/sage/groups/old.pxd b/src/sage/groups/old.pxd index 3409c5b1764..87b029a4992 100644 --- a/src/sage/groups/old.pxd +++ b/src/sage/groups/old.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects cimport sage.structure.parent_gens cdef class Group(sage.structure.parent.Parent): diff --git a/src/sage/groups/old.pyx b/src/sage/groups/old.pyx index 761034cff65..fe954999ed3 100644 --- a/src/sage/groups/old.pyx +++ b/src/sage/groups/old.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects """ Base class for groups """ diff --git a/src/sage/groups/pari_group.py b/src/sage/groups/pari_group.py index 4d1ca0bff22..17b9e552f61 100644 --- a/src/sage/groups/pari_group.py +++ b/src/sage/groups/pari_group.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari # sage.doctest: needs sage.libs.pari r""" PARI Groups diff --git a/src/sage/groups/perm_gps/all.py b/src/sage/groups/perm_gps/all.py index ae405f298a2..9add6adfe45 100644 --- a/src/sage/groups/perm_gps/all.py +++ b/src/sage/groups/perm_gps/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap from .permgroup_named import (SymmetricGroup, AlternatingGroup, DihedralGroup, SplitMetacyclicGroup, SemidihedralGroup, CyclicPermutationGroup, diff --git a/src/sage/groups/perm_gps/constructor.py b/src/sage/groups/perm_gps/constructor.py index 5a130eb19be..2061c514436 100644 --- a/src/sage/groups/perm_gps/constructor.py +++ b/src/sage/groups/perm_gps/constructor.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap """ Constructor for permutations diff --git a/src/sage/groups/perm_gps/cubegroup.py b/src/sage/groups/perm_gps/cubegroup.py index 0b40ba3bc78..6dc0ba2477f 100644 --- a/src/sage/groups/perm_gps/cubegroup.py +++ b/src/sage/groups/perm_gps/cubegroup.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap r""" Rubik's cube group functions diff --git a/src/sage/groups/perm_gps/partn_ref/all.py b/src/sage/groups/perm_gps/partn_ref/all.py index e69de29bb2d..b230a6a2ad9 100644 --- a/src/sage/groups/perm_gps/partn_ref/all.py +++ b/src/sage/groups/perm_gps/partn_ref/all.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-categories diff --git a/src/sage/groups/perm_gps/partn_ref/automorphism_group_canonical_label.pxd b/src/sage/groups/perm_gps/partn_ref/automorphism_group_canonical_label.pxd index 52f75a3df9c..62c9b138371 100644 --- a/src/sage/groups/perm_gps/partn_ref/automorphism_group_canonical_label.pxd +++ b/src/sage/groups/perm_gps/partn_ref/automorphism_group_canonical_label.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories #***************************************************************************** # Copyright (C) 2006 - 2011 Robert L. Miller # diff --git a/src/sage/groups/perm_gps/partn_ref/automorphism_group_canonical_label.pyx b/src/sage/groups/perm_gps/partn_ref/automorphism_group_canonical_label.pyx index 803f2533b7d..15838965934 100644 --- a/src/sage/groups/perm_gps/partn_ref/automorphism_group_canonical_label.pyx +++ b/src/sage/groups/perm_gps/partn_ref/automorphism_group_canonical_label.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.groups r""" Automorphism groups and canonical labels diff --git a/src/sage/groups/perm_gps/partn_ref/canonical_augmentation.pxd b/src/sage/groups/perm_gps/partn_ref/canonical_augmentation.pxd index 49e2f3cdbde..70ff0198384 100644 --- a/src/sage/groups/perm_gps/partn_ref/canonical_augmentation.pxd +++ b/src/sage/groups/perm_gps/partn_ref/canonical_augmentation.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Declaration file for canonical augmentation diff --git a/src/sage/groups/perm_gps/partn_ref/canonical_augmentation.pyx b/src/sage/groups/perm_gps/partn_ref/canonical_augmentation.pyx index 6143e509caa..95faace2536 100644 --- a/src/sage/groups/perm_gps/partn_ref/canonical_augmentation.pyx +++ b/src/sage/groups/perm_gps/partn_ref/canonical_augmentation.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Canonical augmentation diff --git a/src/sage/groups/perm_gps/partn_ref/data_structures.pxd b/src/sage/groups/perm_gps/partn_ref/data_structures.pxd index 4c7152e5d6d..584dca1f136 100644 --- a/src/sage/groups/perm_gps/partn_ref/data_structures.pxd +++ b/src/sage/groups/perm_gps/partn_ref/data_structures.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories #***************************************************************************** # Copyright (C) 2006 - 2011 Robert L. Miller # diff --git a/src/sage/groups/perm_gps/partn_ref/data_structures.pyx b/src/sage/groups/perm_gps/partn_ref/data_structures.pyx index 02a74f5c676..05e74957049 100644 --- a/src/sage/groups/perm_gps/partn_ref/data_structures.pyx +++ b/src/sage/groups/perm_gps/partn_ref/data_structures.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Data structures diff --git a/src/sage/groups/perm_gps/partn_ref/double_coset.pxd b/src/sage/groups/perm_gps/partn_ref/double_coset.pxd index 6c5d9e0f279..a0c86f1bcb5 100644 --- a/src/sage/groups/perm_gps/partn_ref/double_coset.pxd +++ b/src/sage/groups/perm_gps/partn_ref/double_coset.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories #***************************************************************************** # Copyright (C) 2006 - 2011 Robert L. Miller # diff --git a/src/sage/groups/perm_gps/partn_ref/double_coset.pyx b/src/sage/groups/perm_gps/partn_ref/double_coset.pyx index 873199ce380..34904aa4475 100644 --- a/src/sage/groups/perm_gps/partn_ref/double_coset.pyx +++ b/src/sage/groups/perm_gps/partn_ref/double_coset.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.groups r""" Double cosets diff --git a/src/sage/groups/perm_gps/partn_ref/refinement_binary.pxd b/src/sage/groups/perm_gps/partn_ref/refinement_binary.pxd index 4af69f4b5f5..dbcaa574b8e 100644 --- a/src/sage/groups/perm_gps/partn_ref/refinement_binary.pxd +++ b/src/sage/groups/perm_gps/partn_ref/refinement_binary.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules #***************************************************************************** # Copyright (C) 2006 - 2011 Robert L. Miller # diff --git a/src/sage/groups/perm_gps/partn_ref/refinement_binary.pyx b/src/sage/groups/perm_gps/partn_ref/refinement_binary.pyx index 6a3c07ac75d..3590d950164 100644 --- a/src/sage/groups/perm_gps/partn_ref/refinement_binary.pyx +++ b/src/sage/groups/perm_gps/partn_ref/refinement_binary.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: optional - sage.modules sage.rings.finite_rings """ Partition backtrack functions for binary codes diff --git a/src/sage/groups/perm_gps/partn_ref/refinement_graphs.pxd b/src/sage/groups/perm_gps/partn_ref/refinement_graphs.pxd index 464ddde015d..3dbbb6f8c5a 100644 --- a/src/sage/groups/perm_gps/partn_ref/refinement_graphs.pxd +++ b/src/sage/groups/perm_gps/partn_ref/refinement_graphs.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs #***************************************************************************** # Copyright (C) 2006 - 2011 Robert L. Miller # diff --git a/src/sage/groups/perm_gps/partn_ref/refinement_graphs.pyx b/src/sage/groups/perm_gps/partn_ref/refinement_graphs.pyx index 1b588487d1c..f5042c7bf58 100644 --- a/src/sage/groups/perm_gps/partn_ref/refinement_graphs.pyx +++ b/src/sage/groups/perm_gps/partn_ref/refinement_graphs.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs """ Graph-theoretic partition backtrack functions diff --git a/src/sage/groups/perm_gps/partn_ref/refinement_lists.pxd b/src/sage/groups/perm_gps/partn_ref/refinement_lists.pxd index e7b6cf42f6d..d8462ad64af 100644 --- a/src/sage/groups/perm_gps/partn_ref/refinement_lists.pxd +++ b/src/sage/groups/perm_gps/partn_ref/refinement_lists.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories #***************************************************************************** # Copyright (C) 2006 - 2011 Robert L. Miller # Copyright (C) 2009 Nicolas Borie diff --git a/src/sage/groups/perm_gps/partn_ref/refinement_lists.pyx b/src/sage/groups/perm_gps/partn_ref/refinement_lists.pyx index 00365bcbd3c..7959f355a02 100644 --- a/src/sage/groups/perm_gps/partn_ref/refinement_lists.pyx +++ b/src/sage/groups/perm_gps/partn_ref/refinement_lists.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Partition backtrack functions for lists -- a simple example of using partn_ref diff --git a/src/sage/groups/perm_gps/partn_ref/refinement_matrices.pxd b/src/sage/groups/perm_gps/partn_ref/refinement_matrices.pxd index 2cf087e9915..15a8c8a045b 100644 --- a/src/sage/groups/perm_gps/partn_ref/refinement_matrices.pxd +++ b/src/sage/groups/perm_gps/partn_ref/refinement_matrices.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules #***************************************************************************** # Copyright (C) 2006 - 2011 Robert L. Miller # diff --git a/src/sage/groups/perm_gps/partn_ref/refinement_matrices.pyx b/src/sage/groups/perm_gps/partn_ref/refinement_matrices.pyx index c8d4f86a8f1..616b45e6dba 100644 --- a/src/sage/groups/perm_gps/partn_ref/refinement_matrices.pyx +++ b/src/sage/groups/perm_gps/partn_ref/refinement_matrices.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Partition backtrack functions for matrices diff --git a/src/sage/groups/perm_gps/partn_ref/refinement_python.pxd b/src/sage/groups/perm_gps/partn_ref/refinement_python.pxd index 9f46107a1c1..96e68132042 100644 --- a/src/sage/groups/perm_gps/partn_ref/refinement_python.pxd +++ b/src/sage/groups/perm_gps/partn_ref/refinement_python.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories #***************************************************************************** # Copyright (C) 2006 - 2011 Robert L. Miller # diff --git a/src/sage/groups/perm_gps/partn_ref/refinement_python.pyx b/src/sage/groups/perm_gps/partn_ref/refinement_python.pyx index 23d5e7576c7..cef8a50bc58 100644 --- a/src/sage/groups/perm_gps/partn_ref/refinement_python.pyx +++ b/src/sage/groups/perm_gps/partn_ref/refinement_python.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Python interface to partition backtrack functions diff --git a/src/sage/groups/perm_gps/partn_ref/refinement_sets.pxd b/src/sage/groups/perm_gps/partn_ref/refinement_sets.pxd index 94bcbe5bf95..452dbd8a772 100644 --- a/src/sage/groups/perm_gps/partn_ref/refinement_sets.pxd +++ b/src/sage/groups/perm_gps/partn_ref/refinement_sets.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Declaration file for simple set datastructures diff --git a/src/sage/groups/perm_gps/partn_ref/refinement_sets.pyx b/src/sage/groups/perm_gps/partn_ref/refinement_sets.pyx index 6ccc0b28c45..232e4745c4c 100644 --- a/src/sage/groups/perm_gps/partn_ref/refinement_sets.pyx +++ b/src/sage/groups/perm_gps/partn_ref/refinement_sets.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Partition backtrack functions for sets diff --git a/src/sage/groups/perm_gps/partn_ref2/all.py b/src/sage/groups/perm_gps/partn_ref2/all.py index e69de29bb2d..dd59a6da735 100644 --- a/src/sage/groups/perm_gps/partn_ref2/all.py +++ b/src/sage/groups/perm_gps/partn_ref2/all.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-gap diff --git a/src/sage/groups/perm_gps/partn_ref2/refinement_generic.pxd b/src/sage/groups/perm_gps/partn_ref2/refinement_generic.pxd index cf964bfd17c..b1eda80c3ee 100644 --- a/src/sage/groups/perm_gps/partn_ref2/refinement_generic.pxd +++ b/src/sage/groups/perm_gps/partn_ref2/refinement_generic.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap #******************************************************************************* # Copyright (C) 2012 Thomas Feulner # diff --git a/src/sage/groups/perm_gps/partn_ref2/refinement_generic.pyx b/src/sage/groups/perm_gps/partn_ref2/refinement_generic.pyx index 4a723873ae7..e851cd6102e 100644 --- a/src/sage/groups/perm_gps/partn_ref2/refinement_generic.pyx +++ b/src/sage/groups/perm_gps/partn_ref2/refinement_generic.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap r""" Automorphism groups and canonical labels. diff --git a/src/sage/groups/perm_gps/permgroup.py b/src/sage/groups/perm_gps/permgroup.py index 2d73c8e7cf2..79e2012f872 100644 --- a/src/sage/groups/perm_gps/permgroup.py +++ b/src/sage/groups/perm_gps/permgroup.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap r""" Permutation groups diff --git a/src/sage/groups/perm_gps/permgroup_element.pxd b/src/sage/groups/perm_gps/permgroup_element.pxd index 2e3f22150e7..7b4064180e7 100644 --- a/src/sage/groups/perm_gps/permgroup_element.pxd +++ b/src/sage/groups/perm_gps/permgroup_element.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap from sage.structure.element cimport MultiplicativeGroupElement, MonoidElement, Element from sage.structure.list_clone cimport ClonableIntArray from sage.rings.polynomial.polydict cimport ETuple diff --git a/src/sage/groups/perm_gps/permgroup_element.pyx b/src/sage/groups/perm_gps/permgroup_element.pyx index a459451bd6d..7ea048ee0ad 100644 --- a/src/sage/groups/perm_gps/permgroup_element.pyx +++ b/src/sage/groups/perm_gps/permgroup_element.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap r""" Permutation group elements diff --git a/src/sage/groups/perm_gps/permgroup_morphism.py b/src/sage/groups/perm_gps/permgroup_morphism.py index 0a86068790b..4fb0553083e 100644 --- a/src/sage/groups/perm_gps/permgroup_morphism.py +++ b/src/sage/groups/perm_gps/permgroup_morphism.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap r""" Permutation group homomorphisms diff --git a/src/sage/groups/perm_gps/permgroup_named.py b/src/sage/groups/perm_gps/permgroup_named.py index 222ee36f6da..5e91b4da094 100644 --- a/src/sage/groups/perm_gps/permgroup_named.py +++ b/src/sage/groups/perm_gps/permgroup_named.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap r""" "Named" Permutation groups (such as the symmetric group, S_n) diff --git a/src/sage/groups/perm_gps/permutation_groups_catalog.py b/src/sage/groups/perm_gps/permutation_groups_catalog.py index 52f99920307..e91742a3e11 100644 --- a/src/sage/groups/perm_gps/permutation_groups_catalog.py +++ b/src/sage/groups/perm_gps/permutation_groups_catalog.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap r""" Catalog of permutation groups diff --git a/src/sage/groups/perm_gps/symgp_conjugacy_class.py b/src/sage/groups/perm_gps/symgp_conjugacy_class.py index 5a8d5f435fa..2578462c2d1 100644 --- a/src/sage/groups/perm_gps/symgp_conjugacy_class.py +++ b/src/sage/groups/perm_gps/symgp_conjugacy_class.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap r""" Conjugacy Classes Of The Symmetric Group diff --git a/src/sage/groups/raag.py b/src/sage/groups/raag.py index ff7aa0ae9c2..02b679136a4 100644 --- a/src/sage/groups/raag.py +++ b/src/sage/groups/raag.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-groups # sage.doctest: needs sage.graphs sage.rings.number_field r""" Right-Angled Artin Groups diff --git a/src/sage/groups/semimonomial_transformations/all.py b/src/sage/groups/semimonomial_transformations/all.py index e69de29bb2d..11f290a2a34 100644 --- a/src/sage/groups/semimonomial_transformations/all.py +++ b/src/sage/groups/semimonomial_transformations/all.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-groups diff --git a/src/sage/groups/semimonomial_transformations/semimonomial_transformation.pxd b/src/sage/groups/semimonomial_transformations/semimonomial_transformation.pxd index 1808129c4b7..066b845634f 100644 --- a/src/sage/groups/semimonomial_transformations/semimonomial_transformation.pxd +++ b/src/sage/groups/semimonomial_transformations/semimonomial_transformation.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-groups from sage.structure.element cimport Element, MonoidElement, MultiplicativeGroupElement cdef class SemimonomialTransformation(MultiplicativeGroupElement): diff --git a/src/sage/groups/semimonomial_transformations/semimonomial_transformation.pyx b/src/sage/groups/semimonomial_transformations/semimonomial_transformation.pyx index 453f2be85f0..65b337dbf51 100644 --- a/src/sage/groups/semimonomial_transformations/semimonomial_transformation.pyx +++ b/src/sage/groups/semimonomial_transformations/semimonomial_transformation.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-groups # sage.doctest: needs sage.rings.finite_rings r""" Elements of a semimonomial transformation group diff --git a/src/sage/groups/semimonomial_transformations/semimonomial_transformation_group.py b/src/sage/groups/semimonomial_transformations/semimonomial_transformation_group.py index e61c7bf64c7..8b91afca6cc 100644 --- a/src/sage/groups/semimonomial_transformations/semimonomial_transformation_group.py +++ b/src/sage/groups/semimonomial_transformations/semimonomial_transformation_group.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-groups # sage.doctest: needs sage.rings.finite_rings r""" Semimonomial transformation group diff --git a/src/sage/homology/algebraic_topological_model.py b/src/sage/homology/algebraic_topological_model.py index c7856836f28..caab0e0e6a7 100644 --- a/src/sage/homology/algebraic_topological_model.py +++ b/src/sage/homology/algebraic_topological_model.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.graphs r""" Algebraic topological model for a cell complex diff --git a/src/sage/homology/all.py b/src/sage/homology/all.py index d9306c19daa..63c1b6c847c 100644 --- a/src/sage/homology/all.py +++ b/src/sage/homology/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from .chain_complex import ChainComplex from .chain_complex_morphism import ChainComplexMorphism diff --git a/src/sage/homology/chain_complex.py b/src/sage/homology/chain_complex.py index 16f2a78c7db..93220979c3a 100644 --- a/src/sage/homology/chain_complex.py +++ b/src/sage/homology/chain_complex.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # -*- coding: utf-8 -*- r""" Chain complexes diff --git a/src/sage/homology/chain_complex_homspace.py b/src/sage/homology/chain_complex_homspace.py index ad7a6bf9b84..eb550837a41 100644 --- a/src/sage/homology/chain_complex_homspace.py +++ b/src/sage/homology/chain_complex_homspace.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.graphs (because all doctests use SimplicialComplex) r""" Homspaces between chain complexes diff --git a/src/sage/homology/chain_complex_morphism.py b/src/sage/homology/chain_complex_morphism.py index 2a182b24cdc..e9c45eb1e5f 100644 --- a/src/sage/homology/chain_complex_morphism.py +++ b/src/sage/homology/chain_complex_morphism.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Morphisms of chain complexes diff --git a/src/sage/homology/chain_homotopy.py b/src/sage/homology/chain_homotopy.py index 91ae14eda11..c3704cbd205 100644 --- a/src/sage/homology/chain_homotopy.py +++ b/src/sage/homology/chain_homotopy.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # -*- coding: utf-8 -*- r""" Chain homotopies and chain contractions diff --git a/src/sage/homology/chains.py b/src/sage/homology/chains.py index b9a54940943..1bddf164ba4 100644 --- a/src/sage/homology/chains.py +++ b/src/sage/homology/chains.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.graphs (because all doctests use the catalogs simplicial_complexes, cubical_complexes) r""" Chains and cochains diff --git a/src/sage/homology/free_resolution.py b/src/sage/homology/free_resolution.py index 280a479b438..e399812046a 100644 --- a/src/sage/homology/free_resolution.py +++ b/src/sage/homology/free_resolution.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.libs.singular r""" Free resolutions diff --git a/src/sage/homology/graded_resolution.py b/src/sage/homology/graded_resolution.py index 0c01ad6f423..f45961709ba 100644 --- a/src/sage/homology/graded_resolution.py +++ b/src/sage/homology/graded_resolution.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.libs.singular r""" Graded free resolutions diff --git a/src/sage/homology/hochschild_complex.py b/src/sage/homology/hochschild_complex.py index ea42164ef9d..0845517bcd6 100644 --- a/src/sage/homology/hochschild_complex.py +++ b/src/sage/homology/hochschild_complex.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.combinat (because all doctests use FreeAlgebra, SymmetricGroupAlgebra, etc.) """ Hochschild Complexes diff --git a/src/sage/homology/homology_group.py b/src/sage/homology/homology_group.py index 8d86d477ad8..12e07b61c07 100644 --- a/src/sage/homology/homology_group.py +++ b/src/sage/homology/homology_group.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Homology Groups diff --git a/src/sage/homology/homology_morphism.py b/src/sage/homology/homology_morphism.py index 1b4a69c2e7e..06eba661b3c 100644 --- a/src/sage/homology/homology_morphism.py +++ b/src/sage/homology/homology_morphism.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.graphs (because all doctests use the catalog simplicial_complexes) r""" Induced morphisms on homology diff --git a/src/sage/homology/homology_vector_space_with_basis.py b/src/sage/homology/homology_vector_space_with_basis.py index ace9775d56b..cc945e528ed 100644 --- a/src/sage/homology/homology_vector_space_with_basis.py +++ b/src/sage/homology/homology_vector_space_with_basis.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.graphs (because all doctests use the catalogs simplicial_complexes, cubical_complexes) """ diff --git a/src/sage/homology/koszul_complex.py b/src/sage/homology/koszul_complex.py index 22a1ceb5d80..5d0716e9772 100644 --- a/src/sage/homology/koszul_complex.py +++ b/src/sage/homology/koszul_complex.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Koszul Complexes """ diff --git a/src/sage/homology/matrix_utils.py b/src/sage/homology/matrix_utils.py index 4f10ae415a3..50a9ff6dba3 100644 --- a/src/sage/homology/matrix_utils.py +++ b/src/sage/homology/matrix_utils.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Utility Functions for Matrices diff --git a/src/sage/interfaces/abc.py b/src/sage/interfaces/abc.py index 5fbba099dd5..0a0c78e0a9f 100644 --- a/src/sage/interfaces/abc.py +++ b/src/sage/interfaces/abc.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Abstract base classes for interface elements """ diff --git a/src/sage/interfaces/all.py b/src/sage/interfaces/all.py index 1e0623ec4ec..22f42613c59 100644 --- a/src/sage/interfaces/all.py +++ b/src/sage/interfaces/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # interfaces to other interpreters from .sage0 import sage0, sage0_version, Sage diff --git a/src/sage/interfaces/all__sagemath_polyhedra.py b/src/sage/interfaces/all__sagemath_polyhedra.py index e69de29bb2d..ca4c26e905d 100644 --- a/src/sage/interfaces/all__sagemath_polyhedra.py +++ b/src/sage/interfaces/all__sagemath_polyhedra.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-polyhedra diff --git a/src/sage/interfaces/cleaner.py b/src/sage/interfaces/cleaner.py index 54bfac779ac..2d72be495e1 100644 --- a/src/sage/interfaces/cleaner.py +++ b/src/sage/interfaces/cleaner.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Interface to the Sage cleaner diff --git a/src/sage/interfaces/ecm.py b/src/sage/interfaces/ecm.py index 99287dec718..c7df6b0942e 100644 --- a/src/sage/interfaces/ecm.py +++ b/src/sage/interfaces/ecm.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-libecm r""" The Elliptic Curve Factorization Method diff --git a/src/sage/interfaces/expect.py b/src/sage/interfaces/expect.py index f6228d3842e..4e90d3ef8ef 100644 --- a/src/sage/interfaces/expect.py +++ b/src/sage/interfaces/expect.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.libs.gap sage.libs.pari sage.libs.singular sage.symbolic """ Common Interface Functionality through Pexpect diff --git a/src/sage/interfaces/four_ti_2.py b/src/sage/interfaces/four_ti_2.py index 1f5a6beb559..eeb2cc8fb47 100644 --- a/src/sage/interfaces/four_ti_2.py +++ b/src/sage/interfaces/four_ti_2.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra r""" Interface to 4ti2 diff --git a/src/sage/interfaces/fricas.py b/src/sage/interfaces/fricas.py index 75a277bcd05..751c23f1611 100644 --- a/src/sage/interfaces/fricas.py +++ b/src/sage/interfaces/fricas.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics # sage.doctest: optional - fricas r""" Interface to FriCAS diff --git a/src/sage/interfaces/gap.py b/src/sage/interfaces/gap.py index 26afa44edda..dbc66349ba6 100644 --- a/src/sage/interfaces/gap.py +++ b/src/sage/interfaces/gap.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap # -*- coding: utf-8 -*- r""" Interface to GAP diff --git a/src/sage/interfaces/gap3.py b/src/sage/interfaces/gap3.py index d403dc8b9dc..7f561ed2e1a 100644 --- a/src/sage/interfaces/gap3.py +++ b/src/sage/interfaces/gap3.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap r""" Interface to GAP3 diff --git a/src/sage/interfaces/gap_workspace.py b/src/sage/interfaces/gap_workspace.py index a2c97260077..1b5333da51f 100644 --- a/src/sage/interfaces/gap_workspace.py +++ b/src/sage/interfaces/gap_workspace.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap r""" Support for (lib)GAP workspace files """ diff --git a/src/sage/interfaces/giac.py b/src/sage/interfaces/giac.py index cd7e7b8def5..c91a324b79c 100644 --- a/src/sage/interfaces/giac.py +++ b/src/sage/interfaces/giac.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Pexpect Interface to Giac diff --git a/src/sage/interfaces/gnuplot.py b/src/sage/interfaces/gnuplot.py index 76841963721..d281eea0288 100644 --- a/src/sage/interfaces/gnuplot.py +++ b/src/sage/interfaces/gnuplot.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-plot r""" Interface to the Gnuplot interpreter """ diff --git a/src/sage/interfaces/gp.py b/src/sage/interfaces/gp.py index 456007de9e3..f7e4a948cfb 100644 --- a/src/sage/interfaces/gp.py +++ b/src/sage/interfaces/gp.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari # sage.doctest: needs sage.libs.pari r""" Interface to the GP calculator of PARI/GP diff --git a/src/sage/interfaces/interface.py b/src/sage/interfaces/interface.py index fa6dd7d5854..0068c6d2df6 100644 --- a/src/sage/interfaces/interface.py +++ b/src/sage/interfaces/interface.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.libs.gap sage.libs.pari sage.libs.singular sage.symbolic r""" Common Interface Functionality diff --git a/src/sage/interfaces/jmoldata.py b/src/sage/interfaces/jmoldata.py index e7354e05c70..fec4d38ff51 100644 --- a/src/sage/interfaces/jmoldata.py +++ b/src/sage/interfaces/jmoldata.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-plot r""" Interface for extracting data and generating images from Jmol readable files. diff --git a/src/sage/interfaces/latte.py b/src/sage/interfaces/latte.py index 6923be55d53..c2a1f0dfb23 100644 --- a/src/sage/interfaces/latte.py +++ b/src/sage/interfaces/latte.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra r""" Interface to LattE integrale programs """ diff --git a/src/sage/interfaces/magma.py b/src/sage/interfaces/magma.py index 7d66375f25f..645719e1f8b 100644 --- a/src/sage/interfaces/magma.py +++ b/src/sage/interfaces/magma.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Interface to Magma diff --git a/src/sage/interfaces/magma_free.py b/src/sage/interfaces/magma_free.py index d01d291c337..61f9aab5d57 100644 --- a/src/sage/interfaces/magma_free.py +++ b/src/sage/interfaces/magma_free.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics "Interface to the free online MAGMA calculator" #***************************************************************************** diff --git a/src/sage/interfaces/maple.py b/src/sage/interfaces/maple.py index 7ba21a66cf6..4096ff8ec63 100644 --- a/src/sage/interfaces/maple.py +++ b/src/sage/interfaces/maple.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Interface to Maple diff --git a/src/sage/interfaces/mathematica.py b/src/sage/interfaces/mathematica.py index c77a142ff74..6ee9aafc374 100644 --- a/src/sage/interfaces/mathematica.py +++ b/src/sage/interfaces/mathematica.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Interface to Mathematica diff --git a/src/sage/interfaces/mathics.py b/src/sage/interfaces/mathics.py index c03472ecf5e..40205ddae00 100644 --- a/src/sage/interfaces/mathics.py +++ b/src/sage/interfaces/mathics.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Interface to Mathics diff --git a/src/sage/interfaces/maxima.py b/src/sage/interfaces/maxima.py index 5526e2c6458..b2f974b5dd6 100644 --- a/src/sage/interfaces/maxima.py +++ b/src/sage/interfaces/maxima.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Pexpect interface to Maxima diff --git a/src/sage/interfaces/maxima_abstract.py b/src/sage/interfaces/maxima_abstract.py index f0fefa9ac15..f6b3a611972 100644 --- a/src/sage/interfaces/maxima_abstract.py +++ b/src/sage/interfaces/maxima_abstract.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics # -*- coding: utf-8 -*- r""" Abstract interface to Maxima diff --git a/src/sage/interfaces/maxima_lib.py b/src/sage/interfaces/maxima_lib.py index ea40cf4ed8a..319cae9439f 100644 --- a/src/sage/interfaces/maxima_lib.py +++ b/src/sage/interfaces/maxima_lib.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Library interface to Maxima diff --git a/src/sage/interfaces/povray.py b/src/sage/interfaces/povray.py index b892cb112cd..bfc8d445f6f 100644 --- a/src/sage/interfaces/povray.py +++ b/src/sage/interfaces/povray.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-plot r""" POV-Ray, The Persistence of Vision Ray Tracer """ diff --git a/src/sage/interfaces/process.pxd b/src/sage/interfaces/process.pxd index 3f1ae3f0dc8..99a14e6bb43 100644 --- a/src/sage/interfaces/process.pxd +++ b/src/sage/interfaces/process.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories cdef class ContainChildren(): cdef int parentpid cdef int exitcode, exceptcode diff --git a/src/sage/interfaces/process.pyx b/src/sage/interfaces/process.pyx index 016de82a30f..e8cda516797 100644 --- a/src/sage/interfaces/process.pyx +++ b/src/sage/interfaces/process.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Utilities for subprocess management """ diff --git a/src/sage/interfaces/qepcad.py b/src/sage/interfaces/qepcad.py index 01ae082cca6..084f8c4f094 100644 --- a/src/sage/interfaces/qepcad.py +++ b/src/sage/interfaces/qepcad.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Interface to QEPCAD =================== diff --git a/src/sage/interfaces/quit.py b/src/sage/interfaces/quit.py index c10b1414dde..b276a87b0af 100644 --- a/src/sage/interfaces/quit.py +++ b/src/sage/interfaces/quit.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Quitting interfaces """ diff --git a/src/sage/interfaces/sage0.py b/src/sage/interfaces/sage0.py index 11ece30ac56..9dc0b466ff9 100644 --- a/src/sage/interfaces/sage0.py +++ b/src/sage/interfaces/sage0.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.all r""" Interface to Sage diff --git a/src/sage/interfaces/sagespawn.pyx b/src/sage/interfaces/sagespawn.pyx index 497efc74bba..aa5c13bf762 100644 --- a/src/sage/interfaces/sagespawn.pyx +++ b/src/sage/interfaces/sagespawn.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: optional - ptyprocess """ Sage wrapper around pexpect's ``spawn`` class and diff --git a/src/sage/interfaces/sympy.py b/src/sage/interfaces/sympy.py index ffecf1eddbd..d1fb70761c6 100644 --- a/src/sage/interfaces/sympy.py +++ b/src/sage/interfaces/sympy.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics # sage.doctest: optional - sympy """ SymPy --> Sage conversion diff --git a/src/sage/interfaces/sympy_wrapper.py b/src/sage/interfaces/sympy_wrapper.py index 5ad6095a787..56f00a036c6 100644 --- a/src/sage/interfaces/sympy_wrapper.py +++ b/src/sage/interfaces/sympy_wrapper.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics # sage.doctest: optional - sympy """ Wrapper Class for Sage Sets as SymPy Sets diff --git a/src/sage/interfaces/tab_completion.py b/src/sage/interfaces/tab_completion.py index ca106a67273..1cc27554350 100644 --- a/src/sage/interfaces/tab_completion.py +++ b/src/sage/interfaces/tab_completion.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Mixin For Extra Tab Completions diff --git a/src/sage/interfaces/tachyon.py b/src/sage/interfaces/tachyon.py index 253253620bd..46b76d6a563 100644 --- a/src/sage/interfaces/tachyon.py +++ b/src/sage/interfaces/tachyon.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-plot r""" The Tachyon Ray Tracer diff --git a/src/sage/interfaces/tides.py b/src/sage/interfaces/tides.py index 1b00f52df54..57d1e6c45fa 100644 --- a/src/sage/interfaces/tides.py +++ b/src/sage/interfaces/tides.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Interface to TIDES diff --git a/src/sage/knots/all.py b/src/sage/knots/all.py index 02223efef57..907aad8c578 100644 --- a/src/sage/knots/all.py +++ b/src/sage/knots/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs from sage.misc.lazy_import import lazy_import from sage.features.databases import DatabaseKnotInfo diff --git a/src/sage/knots/gauss_code.py b/src/sage/knots/gauss_code.py index 0a631bdd0d5..a34257aef05 100644 --- a/src/sage/knots/gauss_code.py +++ b/src/sage/knots/gauss_code.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # -*- coding: utf-8 -*- """ Helper functions related to Gauss codes of knots diff --git a/src/sage/knots/knot.py b/src/sage/knots/knot.py index 10f0e241608..0009fad0335 100644 --- a/src/sage/knots/knot.py +++ b/src/sage/knots/knot.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # -*- coding: utf-8 -*- r""" Knots diff --git a/src/sage/knots/knot_table.py b/src/sage/knots/knot_table.py index 8defab899c4..85e1a156574 100644 --- a/src/sage/knots/knot_table.py +++ b/src/sage/knots/knot_table.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" Rolfsen database of knots with at most 10 crossings. diff --git a/src/sage/knots/knotinfo.py b/src/sage/knots/knotinfo.py index 0ef601e124c..2208e466e2a 100644 --- a/src/sage/knots/knotinfo.py +++ b/src/sage/knots/knotinfo.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # -*- coding: utf-8 -*- r""" Access to the KnotInfo database diff --git a/src/sage/knots/link.py b/src/sage/knots/link.py index eb3d51a883d..aac80148be9 100644 --- a/src/sage/knots/link.py +++ b/src/sage/knots/link.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs r""" Links diff --git a/src/sage/lfunctions/lcalc.py b/src/sage/lfunctions/lcalc.py index 73246cdd81e..e8b4c728575 100644 --- a/src/sage/lfunctions/lcalc.py +++ b/src/sage/lfunctions/lcalc.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-lcalc r""" Rubinstein's `L`-function calculator diff --git a/src/sage/libs/all__sagemath_coxeter3.py b/src/sage/libs/all__sagemath_coxeter3.py index e69de29bb2d..61138b7bc1a 100644 --- a/src/sage/libs/all__sagemath_coxeter3.py +++ b/src/sage/libs/all__sagemath_coxeter3.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-coxeter3 diff --git a/src/sage/libs/all__sagemath_meataxe.py b/src/sage/libs/all__sagemath_meataxe.py index e69de29bb2d..fd1e327ee2f 100644 --- a/src/sage/libs/all__sagemath_meataxe.py +++ b/src/sage/libs/all__sagemath_meataxe.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-meataxe diff --git a/src/sage/libs/all__sagemath_objects.py b/src/sage/libs/all__sagemath_objects.py index 38e44245ad3..40da49fdd73 100644 --- a/src/sage/libs/all__sagemath_objects.py +++ b/src/sage/libs/all__sagemath_objects.py @@ -1,2 +1,3 @@ +# sage_setup: distribution = sagemath-objects # The presence of this file ensures that sage_setup for sagemath-objects # considers this directory as a namespace package diff --git a/src/sage/libs/all__sagemath_sirocco.py b/src/sage/libs/all__sagemath_sirocco.py index e69de29bb2d..44db2511e89 100644 --- a/src/sage/libs/all__sagemath_sirocco.py +++ b/src/sage/libs/all__sagemath_sirocco.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-sirocco diff --git a/src/sage/libs/arb/__init__.py b/src/sage/libs/arb/__init__.py index e69de29bb2d..d31bae41036 100644 --- a/src/sage/libs/arb/__init__.py +++ b/src/sage/libs/arb/__init__.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-flint diff --git a/src/sage/libs/arb/acb.pxd b/src/sage/libs/arb/acb.pxd index 851488d803a..3ef8e3e8ae8 100644 --- a/src/sage/libs/arb/acb.pxd +++ b/src/sage/libs/arb/acb.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = gmp flint # distutils: depends = acb.h diff --git a/src/sage/libs/arb/acb_calc.pxd b/src/sage/libs/arb/acb_calc.pxd index 67bd2ed57dc..245bed1224d 100644 --- a/src/sage/libs/arb/acb_calc.pxd +++ b/src/sage/libs/arb/acb_calc.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = gmp flint # distutils: depends = acb_calc.h diff --git a/src/sage/libs/arb/acb_elliptic.pxd b/src/sage/libs/arb/acb_elliptic.pxd index e3480e9f73b..4a9f04b5d25 100644 --- a/src/sage/libs/arb/acb_elliptic.pxd +++ b/src/sage/libs/arb/acb_elliptic.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = gmp flint # distutils: depends = acb_elliptic.h diff --git a/src/sage/libs/arb/acb_hypgeom.pxd b/src/sage/libs/arb/acb_hypgeom.pxd index c43e5c0623b..03eef700ac9 100644 --- a/src/sage/libs/arb/acb_hypgeom.pxd +++ b/src/sage/libs/arb/acb_hypgeom.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = gmp flint # distutils: depends = acb_hypgeom.h diff --git a/src/sage/libs/arb/acb_mat.pxd b/src/sage/libs/arb/acb_mat.pxd index aff7fa7d7b2..fcf39441109 100644 --- a/src/sage/libs/arb/acb_mat.pxd +++ b/src/sage/libs/arb/acb_mat.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: depends = acb_mat.h from sage.libs.arb.types cimport acb_t, acb_ptr, acb_srcptr, acb_mat_t, acb_poly_t, mag_t diff --git a/src/sage/libs/arb/acb_modular.pxd b/src/sage/libs/arb/acb_modular.pxd index cdc413c92da..b2ca6de6585 100644 --- a/src/sage/libs/arb/acb_modular.pxd +++ b/src/sage/libs/arb/acb_modular.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = gmp flint # distutils: depends = acb_modular.h diff --git a/src/sage/libs/arb/acb_poly.pxd b/src/sage/libs/arb/acb_poly.pxd index ae02757ffd9..3e55afdc25d 100644 --- a/src/sage/libs/arb/acb_poly.pxd +++ b/src/sage/libs/arb/acb_poly.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = gmp flint # distutils: depends = acb_poly.h diff --git a/src/sage/libs/arb/arb.pxd b/src/sage/libs/arb/arb.pxd index acd232ab816..b50c8152c94 100644 --- a/src/sage/libs/arb/arb.pxd +++ b/src/sage/libs/arb/arb.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = gmp flint # distutils: depends = arb.h diff --git a/src/sage/libs/arb/arb_fmpz_poly.pxd b/src/sage/libs/arb/arb_fmpz_poly.pxd index 55daa705238..ac928f6d94c 100644 --- a/src/sage/libs/arb/arb_fmpz_poly.pxd +++ b/src/sage/libs/arb/arb_fmpz_poly.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = gmp flint # distutils: depends = arb_fmpz_poly.h diff --git a/src/sage/libs/arb/arb_hypgeom.pxd b/src/sage/libs/arb/arb_hypgeom.pxd index 139b987d669..3ce426d3a70 100644 --- a/src/sage/libs/arb/arb_hypgeom.pxd +++ b/src/sage/libs/arb/arb_hypgeom.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = gmp flint # distutils: depends = arb_hypgeom.h diff --git a/src/sage/libs/arb/arb_version.pyx b/src/sage/libs/arb/arb_version.pyx index 55736c392e9..37629d8d2ad 100644 --- a/src/sage/libs/arb/arb_version.pyx +++ b/src/sage/libs/arb/arb_version.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # -*- coding: utf-8 from sage.libs.arb.arb cimport arb_version from sage.cpython.string cimport char_to_str diff --git a/src/sage/libs/arb/arf.pxd b/src/sage/libs/arb/arf.pxd index 84778fe9f09..f1a0afc2397 100644 --- a/src/sage/libs/arb/arf.pxd +++ b/src/sage/libs/arb/arf.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = gmp flint # distutils: depends = arf.h diff --git a/src/sage/libs/arb/arith.pyx b/src/sage/libs/arb/arith.pyx index 69281d916ce..79cd0d36dbc 100644 --- a/src/sage/libs/arb/arith.pyx +++ b/src/sage/libs/arb/arith.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint """ Arithmetic functions using the arb library """ diff --git a/src/sage/libs/arb/bernoulli.pxd b/src/sage/libs/arb/bernoulli.pxd index 95a84dd5179..90cef27fe89 100644 --- a/src/sage/libs/arb/bernoulli.pxd +++ b/src/sage/libs/arb/bernoulli.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = gmp flint # distutils: depends = bernoulli.h diff --git a/src/sage/libs/arb/mag.pxd b/src/sage/libs/arb/mag.pxd index 69dfb990ae0..a378e396187 100644 --- a/src/sage/libs/arb/mag.pxd +++ b/src/sage/libs/arb/mag.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = gmp flint # distutils: depends = mag.h diff --git a/src/sage/libs/arb/types.pxd b/src/sage/libs/arb/types.pxd index 98ed96dfb7a..0f2113054b3 100644 --- a/src/sage/libs/arb/types.pxd +++ b/src/sage/libs/arb/types.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: depends = mag.h arf.h arb.h acb.h acb_mat.h acb_poly.h acb_calc.h # mag.h diff --git a/src/sage/libs/braiding.pyx b/src/sage/libs/braiding.pyx index e8f37dad588..f03dad09503 100644 --- a/src/sage/libs/braiding.pyx +++ b/src/sage/libs/braiding.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-libbraiding # distutils: libraries = braiding # distutils: language = c++ r""" diff --git a/src/sage/libs/ecl.pxd b/src/sage/libs/ecl.pxd index 19472171403..24d872c59ff 100644 --- a/src/sage/libs/ecl.pxd +++ b/src/sage/libs/ecl.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics # distutils: extra_compile_args = ECL_CFLAGS # distutils: include_dirs = ECL_INCDIR # distutils: libraries = ECL_LIBRARIES diff --git a/src/sage/libs/ecl.pyx b/src/sage/libs/ecl.pyx index a4942781c5e..65807e958bc 100644 --- a/src/sage/libs/ecl.pyx +++ b/src/sage/libs/ecl.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics """ Library interface to Embeddable Common Lisp (ECL) """ diff --git a/src/sage/libs/eclib/__init__.pxd b/src/sage/libs/eclib/__init__.pxd index d44d4fba865..8bade99e170 100644 --- a/src/sage/libs/eclib/__init__.pxd +++ b/src/sage/libs/eclib/__init__.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-eclib # distutils: language = c++ # distutils: libraries = ec NTL_LIBRARIES pari gmp m # distutils: extra_compile_args = NTL_CFLAGS diff --git a/src/sage/libs/eclib/__init__.py b/src/sage/libs/eclib/__init__.py index e69de29bb2d..95995325cb0 100644 --- a/src/sage/libs/eclib/__init__.py +++ b/src/sage/libs/eclib/__init__.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-eclib diff --git a/src/sage/libs/eclib/all.py b/src/sage/libs/eclib/all.py index 717a66fae7b..820f0a16b93 100644 --- a/src/sage/libs/eclib/all.py +++ b/src/sage/libs/eclib/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-eclib from .constructor import CremonaModularSymbols from .interface import mwrank_EllipticCurve, mwrank_MordellWeil from .mwrank import get_precision, set_precision diff --git a/src/sage/libs/eclib/constructor.py b/src/sage/libs/eclib/constructor.py index d8881077a75..66d8ccf55c5 100644 --- a/src/sage/libs/eclib/constructor.py +++ b/src/sage/libs/eclib/constructor.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-eclib "Cremona modular symbols" def CremonaModularSymbols(level, sign=0, cuspidal=False, verbose=0): diff --git a/src/sage/libs/eclib/homspace.pxd b/src/sage/libs/eclib/homspace.pxd index d3600547f1e..f9fdefe66f4 100644 --- a/src/sage/libs/eclib/homspace.pxd +++ b/src/sage/libs/eclib/homspace.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-eclib from sage.libs.eclib cimport homspace cdef class ModularSymbols: diff --git a/src/sage/libs/eclib/homspace.pyx b/src/sage/libs/eclib/homspace.pyx index 735de8787e2..a3a00db761e 100644 --- a/src/sage/libs/eclib/homspace.pyx +++ b/src/sage/libs/eclib/homspace.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-eclib "Cremona modular symbols" from cysignals.signals cimport sig_on, sig_off diff --git a/src/sage/libs/eclib/interface.py b/src/sage/libs/eclib/interface.py index 30e286cea16..f8a91ca3839 100644 --- a/src/sage/libs/eclib/interface.py +++ b/src/sage/libs/eclib/interface.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-eclib r""" Sage interface to Cremona's ``eclib`` library (also known as ``mwrank``) diff --git a/src/sage/libs/eclib/mat.pxd b/src/sage/libs/eclib/mat.pxd index de8d9e81ad3..ece1d844846 100644 --- a/src/sage/libs/eclib/mat.pxd +++ b/src/sage/libs/eclib/mat.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-eclib from sage.libs.eclib cimport mat cdef class Matrix: diff --git a/src/sage/libs/eclib/mat.pyx b/src/sage/libs/eclib/mat.pyx index b83cd76b5a5..2cc498d3385 100644 --- a/src/sage/libs/eclib/mat.pyx +++ b/src/sage/libs/eclib/mat.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-eclib """ Cremona matrices """ diff --git a/src/sage/libs/eclib/mwrank.pyx b/src/sage/libs/eclib/mwrank.pyx index 49b20a33c0e..21e9f8b6756 100644 --- a/src/sage/libs/eclib/mwrank.pyx +++ b/src/sage/libs/eclib/mwrank.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-eclib """ Cython interface to Cremona's ``eclib`` library (also known as ``mwrank``) diff --git a/src/sage/libs/eclib/newforms.pxd b/src/sage/libs/eclib/newforms.pxd index 7f78a4f9f63..04398ec7748 100644 --- a/src/sage/libs/eclib/newforms.pxd +++ b/src/sage/libs/eclib/newforms.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-eclib from sage.libs.eclib cimport newforms cdef class ECModularSymbol: diff --git a/src/sage/libs/eclib/newforms.pyx b/src/sage/libs/eclib/newforms.pyx index 210c1d9e2c0..55902a3beb7 100644 --- a/src/sage/libs/eclib/newforms.pyx +++ b/src/sage/libs/eclib/newforms.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-eclib """ Modular symbols using eclib newforms """ diff --git a/src/sage/libs/flint/__init__.py b/src/sage/libs/flint/__init__.py index e69de29bb2d..d31bae41036 100644 --- a/src/sage/libs/flint/__init__.py +++ b/src/sage/libs/flint/__init__.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-flint diff --git a/src/sage/libs/flint/arith.pxd b/src/sage/libs/flint/arith.pxd index c8e1fb35566..31188526d8d 100644 --- a/src/sage/libs/flint/arith.pxd +++ b/src/sage/libs/flint/arith.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = flint # distutils: depends = flint/arith.h diff --git a/src/sage/libs/flint/arith.pyx b/src/sage/libs/flint/arith.pyx index fefe5f07efd..61f42145931 100644 --- a/src/sage/libs/flint/arith.pyx +++ b/src/sage/libs/flint/arith.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: extra_compile_args = -D_XPG6 """ FLINT Arithmetic Functions diff --git a/src/sage/libs/flint/flint.pxd b/src/sage/libs/flint/flint.pxd index df9e6a1e870..d8ccbe723f1 100644 --- a/src/sage/libs/flint/flint.pxd +++ b/src/sage/libs/flint/flint.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = flint # distutils: depends = flint/flint.h flint/fmpz.h diff --git a/src/sage/libs/flint/flint.pyx b/src/sage/libs/flint/flint.pyx index 19d76b4c867..1196d375f3b 100644 --- a/src/sage/libs/flint/flint.pyx +++ b/src/sage/libs/flint/flint.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: extra_compile_args = -D_XPG6 """ Flint imports diff --git a/src/sage/libs/flint/fmpq.pxd b/src/sage/libs/flint/fmpq.pxd index 0616c0a7408..a0bf17a0b45 100644 --- a/src/sage/libs/flint/fmpq.pxd +++ b/src/sage/libs/flint/fmpq.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = flint # distutils: depends = flint/fmpq.h diff --git a/src/sage/libs/flint/fmpq_mat.pxd b/src/sage/libs/flint/fmpq_mat.pxd index ccd90c251a8..ffba3422bea 100644 --- a/src/sage/libs/flint/fmpq_mat.pxd +++ b/src/sage/libs/flint/fmpq_mat.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = flint # distutils: depends = flint/fmpq_mat.h diff --git a/src/sage/libs/flint/fmpq_poly.pxd b/src/sage/libs/flint/fmpq_poly.pxd index afa16e5bbdd..c761a7f79b3 100644 --- a/src/sage/libs/flint/fmpq_poly.pxd +++ b/src/sage/libs/flint/fmpq_poly.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = flint # distutils: depends = flint/fmpq_poly.h diff --git a/src/sage/libs/flint/fmpq_poly.pyx b/src/sage/libs/flint/fmpq_poly.pyx index 3b8a0cf0c51..216ba9c1acc 100644 --- a/src/sage/libs/flint/fmpq_poly.pyx +++ b/src/sage/libs/flint/fmpq_poly.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # Functions removed from flint but still needed in Sage. Code adapted from # earlier versions of flint. diff --git a/src/sage/libs/flint/fmpz.pxd b/src/sage/libs/flint/fmpz.pxd index b97fbe1eae0..6a2a7621bed 100644 --- a/src/sage/libs/flint/fmpz.pxd +++ b/src/sage/libs/flint/fmpz.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = flint # distutils: depends = flint/fmpz.h diff --git a/src/sage/libs/flint/fmpz_factor.pxd b/src/sage/libs/flint/fmpz_factor.pxd index 7d28c2795b4..becb95e993b 100644 --- a/src/sage/libs/flint/fmpz_factor.pxd +++ b/src/sage/libs/flint/fmpz_factor.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = flint # distutils: depends = flint/fmpz_factor.h diff --git a/src/sage/libs/flint/fmpz_factor.pyx b/src/sage/libs/flint/fmpz_factor.pyx index aeb9c76f9e3..241a8e960d2 100644 --- a/src/sage/libs/flint/fmpz_factor.pyx +++ b/src/sage/libs/flint/fmpz_factor.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint from cysignals.signals cimport sig_check from sage.libs.flint.fmpz cimport fmpz_get_mpz from sage.rings.integer cimport Integer diff --git a/src/sage/libs/flint/fmpz_mat.pxd b/src/sage/libs/flint/fmpz_mat.pxd index 91457930213..0036d172438 100644 --- a/src/sage/libs/flint/fmpz_mat.pxd +++ b/src/sage/libs/flint/fmpz_mat.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = flint # distutils: depends = flint/fmpz_mat.h diff --git a/src/sage/libs/flint/fmpz_mod.pxd b/src/sage/libs/flint/fmpz_mod.pxd index 555b3123398..6a26effca8b 100644 --- a/src/sage/libs/flint/fmpz_mod.pxd +++ b/src/sage/libs/flint/fmpz_mod.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = flint # distutils: depends = flint/fmpz_mod.h diff --git a/src/sage/libs/flint/fmpz_mod_poly.pxd b/src/sage/libs/flint/fmpz_mod_poly.pxd index 2727246da98..f8b3268e34f 100644 --- a/src/sage/libs/flint/fmpz_mod_poly.pxd +++ b/src/sage/libs/flint/fmpz_mod_poly.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = flint # distutils: depends = flint/fmpz_mod_poly.h diff --git a/src/sage/libs/flint/fmpz_poly.pxd b/src/sage/libs/flint/fmpz_poly.pxd index c8bc6d3ca0a..ea8c4f4212c 100644 --- a/src/sage/libs/flint/fmpz_poly.pxd +++ b/src/sage/libs/flint/fmpz_poly.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = flint # distutils: depends = flint/fmpz_poly.h diff --git a/src/sage/libs/flint/fmpz_poly.pyx b/src/sage/libs/flint/fmpz_poly.pyx index cfcbea9090c..8dea6fec37a 100644 --- a/src/sage/libs/flint/fmpz_poly.pyx +++ b/src/sage/libs/flint/fmpz_poly.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: extra_compile_args = -D_XPG6 """ FLINT fmpz_poly class wrapper diff --git a/src/sage/libs/flint/fmpz_poly_mat.pxd b/src/sage/libs/flint/fmpz_poly_mat.pxd index d045c745de3..b7a990aeead 100644 --- a/src/sage/libs/flint/fmpz_poly_mat.pxd +++ b/src/sage/libs/flint/fmpz_poly_mat.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = flint # distutils: depends = flint/fmpz_poly_mat.h diff --git a/src/sage/libs/flint/fmpz_poly_q.pxd b/src/sage/libs/flint/fmpz_poly_q.pxd index 63c13355bf6..8e673ffa0be 100644 --- a/src/sage/libs/flint/fmpz_poly_q.pxd +++ b/src/sage/libs/flint/fmpz_poly_q.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = flint # distutils: depends = flint/qadic.h diff --git a/src/sage/libs/flint/fmpz_vec.pxd b/src/sage/libs/flint/fmpz_vec.pxd index 8d90aaf5ba5..db4965c89f3 100644 --- a/src/sage/libs/flint/fmpz_vec.pxd +++ b/src/sage/libs/flint/fmpz_vec.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = flint # distutils: depends = flint/fmpz_vec.h diff --git a/src/sage/libs/flint/fq.pxd b/src/sage/libs/flint/fq.pxd index 7c7565a38d8..4d2625d7277 100644 --- a/src/sage/libs/flint/fq.pxd +++ b/src/sage/libs/flint/fq.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = flint # distutils: depends = flint/fq.h diff --git a/src/sage/libs/flint/fq_nmod.pxd b/src/sage/libs/flint/fq_nmod.pxd index 159aa4e4077..1d769595232 100644 --- a/src/sage/libs/flint/fq_nmod.pxd +++ b/src/sage/libs/flint/fq_nmod.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = flint # distutils: depends = flint/fq_nmod.h diff --git a/src/sage/libs/flint/nmod_poly.pxd b/src/sage/libs/flint/nmod_poly.pxd index d11ef304ca2..cc2b938db5f 100644 --- a/src/sage/libs/flint/nmod_poly.pxd +++ b/src/sage/libs/flint/nmod_poly.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = flint # distutils: depends = flint/nmod_poly.h diff --git a/src/sage/libs/flint/nmod_poly_linkage.pxi b/src/sage/libs/flint/nmod_poly_linkage.pxi index 32087acf9dc..c26d904540e 100644 --- a/src/sage/libs/flint/nmod_poly_linkage.pxi +++ b/src/sage/libs/flint/nmod_poly_linkage.pxi @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint r""" Linkage for arithmetic with FLINT's nmod_poly_t elements. diff --git a/src/sage/libs/flint/nmod_vec.pxd b/src/sage/libs/flint/nmod_vec.pxd index b839447bb56..3cdd01afbfb 100644 --- a/src/sage/libs/flint/nmod_vec.pxd +++ b/src/sage/libs/flint/nmod_vec.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = flint # distutils: depends = flint/nmod_vec.h diff --git a/src/sage/libs/flint/ntl_interface.pxd b/src/sage/libs/flint/ntl_interface.pxd index d6112383330..cf25aa73004 100644 --- a/src/sage/libs/flint/ntl_interface.pxd +++ b/src/sage/libs/flint/ntl_interface.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: language = c++ # distutils: libraries = flint # distutils: depends = flint/NTL-interface.h diff --git a/src/sage/libs/flint/padic.pxd b/src/sage/libs/flint/padic.pxd index e155ddabfd8..4699a768e76 100644 --- a/src/sage/libs/flint/padic.pxd +++ b/src/sage/libs/flint/padic.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = flint # distutils: depends = flint/qadic.h diff --git a/src/sage/libs/flint/padic_poly.pxd b/src/sage/libs/flint/padic_poly.pxd index 6cd172fd14f..e5a4c0866cb 100644 --- a/src/sage/libs/flint/padic_poly.pxd +++ b/src/sage/libs/flint/padic_poly.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = flint # distutils: depends = flint/padic_poly.h diff --git a/src/sage/libs/flint/qadic.pxd b/src/sage/libs/flint/qadic.pxd index ec64e9eef74..29534b98594 100644 --- a/src/sage/libs/flint/qadic.pxd +++ b/src/sage/libs/flint/qadic.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = flint # distutils: depends = flint/qadic.h diff --git a/src/sage/libs/flint/qsieve.pxd b/src/sage/libs/flint/qsieve.pxd index ceab7a684a6..e845ffaf707 100644 --- a/src/sage/libs/flint/qsieve.pxd +++ b/src/sage/libs/flint/qsieve.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = flint # distutils: depends = flint/qsieve.h diff --git a/src/sage/libs/flint/qsieve.pyx b/src/sage/libs/flint/qsieve.pyx index 7d93d41f4cc..8425ca8bf82 100644 --- a/src/sage/libs/flint/qsieve.pyx +++ b/src/sage/libs/flint/qsieve.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint """ Interface to FLINT's ``qsieve_factor()``. This used to interact with an external "QuadraticSieve" program, but its functionality has diff --git a/src/sage/libs/flint/thread_pool.pxd b/src/sage/libs/flint/thread_pool.pxd index a2cd915de79..517dacd2284 100644 --- a/src/sage/libs/flint/thread_pool.pxd +++ b/src/sage/libs/flint/thread_pool.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = flint # distutils: depends = flint/thread_pool.h diff --git a/src/sage/libs/flint/types.pxd b/src/sage/libs/flint/types.pxd index aee66dc9aa2..ef1393b1f46 100644 --- a/src/sage/libs/flint/types.pxd +++ b/src/sage/libs/flint/types.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: depends = flint/flint.h flint/fmpz.h flint/fmpz_factor.h flint/fmpz_poly.h flint/fmpz_mat.h flint/fmpq.h flint/fmpq_poly.h flint/fmpq_mat.h flint/fmpz_mod_poly.h flint/nmod_poly.h flint/fq.h flint/fq_nmod.h flint/ulong_extras.h flint/padic.h flint/padic_poly.h flint/qadic.h flint/fmpz_poly_q.h """ diff --git a/src/sage/libs/flint/ulong_extras.pxd b/src/sage/libs/flint/ulong_extras.pxd index b56f11d44db..9f3a627c123 100644 --- a/src/sage/libs/flint/ulong_extras.pxd +++ b/src/sage/libs/flint/ulong_extras.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = flint # distutils: depends = flint/ulong_extras.h diff --git a/src/sage/libs/flint/ulong_extras.pyx b/src/sage/libs/flint/ulong_extras.pyx index 10255a96f1c..6cb909ed3b1 100644 --- a/src/sage/libs/flint/ulong_extras.pyx +++ b/src/sage/libs/flint/ulong_extras.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint def n_factor_to_list(unsigned long n, int proved): """ A wrapper around ``n_factor``. diff --git a/src/sage/libs/gap/all.py b/src/sage/libs/gap/all.py index e69de29bb2d..dd59a6da735 100644 --- a/src/sage/libs/gap/all.py +++ b/src/sage/libs/gap/all.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-gap diff --git a/src/sage/libs/gap/all_documented_functions.py b/src/sage/libs/gap/all_documented_functions.py index 0820dc71064..f680ddff75a 100644 --- a/src/sage/libs/gap/all_documented_functions.py +++ b/src/sage/libs/gap/all_documented_functions.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap """nodoctest All Documented GAP Functions diff --git a/src/sage/libs/gap/assigned_names.py b/src/sage/libs/gap/assigned_names.py index e8d1f1707cc..e136e95f5e0 100644 --- a/src/sage/libs/gap/assigned_names.py +++ b/src/sage/libs/gap/assigned_names.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap """nodoctest List of assigned names in GAP diff --git a/src/sage/libs/gap/context_managers.py b/src/sage/libs/gap/context_managers.py index b42e9c02f4f..9252c3ee510 100644 --- a/src/sage/libs/gap/context_managers.py +++ b/src/sage/libs/gap/context_managers.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap """ Context Managers for LibGAP diff --git a/src/sage/libs/gap/element.pxd b/src/sage/libs/gap/element.pxd index 329001e72f5..2341f5a19c9 100644 --- a/src/sage/libs/gap/element.pxd +++ b/src/sage/libs/gap/element.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap #***************************************************************************** # Copyright (C) 2012 Volker Braun # diff --git a/src/sage/libs/gap/element.pyx b/src/sage/libs/gap/element.pyx index 1f0f451a2c2..4a9cc614910 100644 --- a/src/sage/libs/gap/element.pyx +++ b/src/sage/libs/gap/element.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap """ GAP element wrapper diff --git a/src/sage/libs/gap/gap_functions.py b/src/sage/libs/gap/gap_functions.py index 5e35ca672bf..7df65a0db51 100644 --- a/src/sage/libs/gap/gap_functions.py +++ b/src/sage/libs/gap/gap_functions.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap """Common global functions defined by GAP.""" ############################################################################### diff --git a/src/sage/libs/gap/gap_globals.py b/src/sage/libs/gap/gap_globals.py index 4c3e6eb3aae..b2a413c06d9 100644 --- a/src/sage/libs/gap/gap_globals.py +++ b/src/sage/libs/gap/gap_globals.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap """Common globals defined by GAP.""" ############################################################################### diff --git a/src/sage/libs/gap/gap_includes.pxd b/src/sage/libs/gap/gap_includes.pxd index 1ed4378a6c7..67746723817 100644 --- a/src/sage/libs/gap/gap_includes.pxd +++ b/src/sage/libs/gap/gap_includes.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap # distutils: libraries = gap gmp m ############################################################################### # Copyright (C) 2009, William Stein diff --git a/src/sage/libs/gap/libgap.pyx b/src/sage/libs/gap/libgap.pyx index 63400adab4c..e27dffcfef4 100644 --- a/src/sage/libs/gap/libgap.pyx +++ b/src/sage/libs/gap/libgap.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap """ Library Interface to GAP diff --git a/src/sage/libs/gap/operations.py b/src/sage/libs/gap/operations.py index 434d1a01511..0cbfb8ffa5a 100644 --- a/src/sage/libs/gap/operations.py +++ b/src/sage/libs/gap/operations.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap """ Operations for LibGAP Elements diff --git a/src/sage/libs/gap/saved_workspace.py b/src/sage/libs/gap/saved_workspace.py index fdaf18f4644..43e5e066ed4 100644 --- a/src/sage/libs/gap/saved_workspace.py +++ b/src/sage/libs/gap/saved_workspace.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap """ LibGAP Workspace Support diff --git a/src/sage/libs/gap/test.py b/src/sage/libs/gap/test.py index bee6f17ba84..2ab1f306582 100644 --- a/src/sage/libs/gap/test.py +++ b/src/sage/libs/gap/test.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap """ Short tests for GAP """ diff --git a/src/sage/libs/gap/test_long.py b/src/sage/libs/gap/test_long.py index 262db5ad287..a365b2c4a4a 100644 --- a/src/sage/libs/gap/test_long.py +++ b/src/sage/libs/gap/test_long.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap """ Long tests for GAP diff --git a/src/sage/libs/gap/util.pxd b/src/sage/libs/gap/util.pxd index 8b4a7aadce7..f3387ae926d 100644 --- a/src/sage/libs/gap/util.pxd +++ b/src/sage/libs/gap/util.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap #***************************************************************************** # Copyright (C) 2012 Volker Braun # diff --git a/src/sage/libs/gap/util.pyx b/src/sage/libs/gap/util.pyx index 8685dc08fa5..65ea9365d97 100644 --- a/src/sage/libs/gap/util.pyx +++ b/src/sage/libs/gap/util.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap """ Utility functions for GAP """ diff --git a/src/sage/libs/giac/__init__.py b/src/sage/libs/giac/__init__.py index e7d7bc67d14..f92a2f5b616 100644 --- a/src/sage/libs/giac/__init__.py +++ b/src/sage/libs/giac/__init__.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-giac # -*- coding: utf-8 -*- """ Wrappers for Giac functions diff --git a/src/sage/libs/giac/auto-methods.pxi b/src/sage/libs/giac/auto-methods.pxi index 9af4c0023bf..92166556652 100644 --- a/src/sage/libs/giac/auto-methods.pxi +++ b/src/sage/libs/giac/auto-methods.pxi @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-giac # file auto generated by mkkeywords.py cdef class GiacMethods_base: """ diff --git a/src/sage/libs/giac/giac.pxd b/src/sage/libs/giac/giac.pxd index 1d9da88d8d4..b1c57995763 100644 --- a/src/sage/libs/giac/giac.pxd +++ b/src/sage/libs/giac/giac.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-giac # distutils: language = c++ # **************************************************************************** # Copyright (C) 2012, Frederic Han diff --git a/src/sage/libs/giac/giac.pyx b/src/sage/libs/giac/giac.pyx index c5f738eadc0..00fc4fa4f5a 100644 --- a/src/sage/libs/giac/giac.pyx +++ b/src/sage/libs/giac/giac.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-giac # distutils: libraries = giac # distutils: language = c++ r""" diff --git a/src/sage/libs/giac/keywords.pxi b/src/sage/libs/giac/keywords.pxi index 9bc7eebe0b5..e1253b9746a 100644 --- a/src/sage/libs/giac/keywords.pxi +++ b/src/sage/libs/giac/keywords.pxi @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-giac # file auto generated by mkkeywords.py blacklist = ['eval', 'cas_setup', 'i', 'list', 'input', 'in', 'sto', 'string', 'and', 'break', 'continue', 'else', 'for', 'from', 'if', 'not', 'or', 'pow', 'print', 'return', 'set[]', 'try', 'while', 'open', 'output', 'do', 'of', 'Request', 'i[]', '[]', 'ffunction', 'sleep', '[..]'] diff --git a/src/sage/libs/glpk/__init__.py b/src/sage/libs/glpk/__init__.py index e69de29bb2d..b555a29542b 100644 --- a/src/sage/libs/glpk/__init__.py +++ b/src/sage/libs/glpk/__init__.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-glpk diff --git a/src/sage/libs/glpk/constants.pxd b/src/sage/libs/glpk/constants.pxd index 55fd165dcd3..f75107a9ae6 100644 --- a/src/sage/libs/glpk/constants.pxd +++ b/src/sage/libs/glpk/constants.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-glpk #***************************************************************************** # Copyright (C) 2010 Nathann Cohen # Copyright (C) 2015 Jeroen Demeyer diff --git a/src/sage/libs/glpk/env.pxd b/src/sage/libs/glpk/env.pxd index 80d5153d3c9..8da2da5c261 100644 --- a/src/sage/libs/glpk/env.pxd +++ b/src/sage/libs/glpk/env.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-glpk # distutils: libraries = glpk z gmp cdef extern from "glpk.h": diff --git a/src/sage/libs/glpk/error.pyx b/src/sage/libs/glpk/error.pyx index da5595a7709..508b92a26b6 100644 --- a/src/sage/libs/glpk/error.pyx +++ b/src/sage/libs/glpk/error.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-glpk """ Error handler for the GLPK library """ diff --git a/src/sage/libs/glpk/graph.pxd b/src/sage/libs/glpk/graph.pxd index 2266952444c..94ebbb91c47 100644 --- a/src/sage/libs/glpk/graph.pxd +++ b/src/sage/libs/glpk/graph.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-glpk # distutils: libraries = glpk z gmp #***************************************************************************** diff --git a/src/sage/libs/glpk/lp.pxd b/src/sage/libs/glpk/lp.pxd index cc4f05e5368..d3260e30f60 100644 --- a/src/sage/libs/glpk/lp.pxd +++ b/src/sage/libs/glpk/lp.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-glpk # distutils: libraries = glpk z gmp #***************************************************************************** diff --git a/src/sage/libs/glpk/types.pxd b/src/sage/libs/glpk/types.pxd index 2d02df5dad4..33db76589d4 100644 --- a/src/sage/libs/glpk/types.pxd +++ b/src/sage/libs/glpk/types.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-glpk #***************************************************************************** # Copyright (C) 2010 Nathann Cohen # Copyright (C) 2015 Jeroen Demeyer diff --git a/src/sage/libs/gmp/__init__.py b/src/sage/libs/gmp/__init__.py index e69de29bb2d..f9b8167c3cd 100644 --- a/src/sage/libs/gmp/__init__.py +++ b/src/sage/libs/gmp/__init__.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-objects diff --git a/src/sage/libs/gmp/all.pxd b/src/sage/libs/gmp/all.pxd index cf1f3fa6417..ee59521494e 100644 --- a/src/sage/libs/gmp/all.pxd +++ b/src/sage/libs/gmp/all.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects from sage.libs.gmp.types cimport * from sage.libs.gmp.random cimport * from sage.libs.gmp.mpz cimport * diff --git a/src/sage/libs/gmp/binop.pxd b/src/sage/libs/gmp/binop.pxd index 6b56c24a1b5..94b6db1a8db 100644 --- a/src/sage/libs/gmp/binop.pxd +++ b/src/sage/libs/gmp/binop.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects r""" Fast binary operations for basic types """ diff --git a/src/sage/libs/gmp/misc.pxd b/src/sage/libs/gmp/misc.pxd index 3ad4f2a89db..c64528d0e9c 100644 --- a/src/sage/libs/gmp/misc.pxd +++ b/src/sage/libs/gmp/misc.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects # distutils: libraries = gmp cdef extern from "gmp.h": diff --git a/src/sage/libs/gmp/mpf.pxd b/src/sage/libs/gmp/mpf.pxd index b63d84009c0..a1bbfd46df3 100644 --- a/src/sage/libs/gmp/mpf.pxd +++ b/src/sage/libs/gmp/mpf.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects # distutils: libraries = gmp from sage.libs.gmp.types cimport * diff --git a/src/sage/libs/gmp/mpn.pxd b/src/sage/libs/gmp/mpn.pxd index 890c5b63da7..34b045e1f4b 100644 --- a/src/sage/libs/gmp/mpn.pxd +++ b/src/sage/libs/gmp/mpn.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects # distutils: libraries = gmp from sage.libs.gmp.types cimport * diff --git a/src/sage/libs/gmp/mpq.pxd b/src/sage/libs/gmp/mpq.pxd index d865630aee0..068988ffbc4 100644 --- a/src/sage/libs/gmp/mpq.pxd +++ b/src/sage/libs/gmp/mpq.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects # distutils: libraries = gmp from sage.libs.gmp.types cimport * diff --git a/src/sage/libs/gmp/mpz.pxd b/src/sage/libs/gmp/mpz.pxd index 71d1e5e3069..66c44773d17 100644 --- a/src/sage/libs/gmp/mpz.pxd +++ b/src/sage/libs/gmp/mpz.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects # distutils: libraries = gmp from sage.libs.gmp.types cimport * diff --git a/src/sage/libs/gmp/pylong.pxd b/src/sage/libs/gmp/pylong.pxd index 846444d2082..99811de0886 100644 --- a/src/sage/libs/gmp/pylong.pxd +++ b/src/sage/libs/gmp/pylong.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects """ Various functions to deal with conversion mpz <-> Python int/long """ diff --git a/src/sage/libs/gmp/pylong.pyx b/src/sage/libs/gmp/pylong.pyx index 406f2703c1f..b747cc6feda 100644 --- a/src/sage/libs/gmp/pylong.pyx +++ b/src/sage/libs/gmp/pylong.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects """ Various functions to deal with conversion mpz <-> Python int/long diff --git a/src/sage/libs/gmp/random.pxd b/src/sage/libs/gmp/random.pxd index a50657454ca..ef3cde3c4ea 100644 --- a/src/sage/libs/gmp/random.pxd +++ b/src/sage/libs/gmp/random.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects # distutils: libraries = gmp from sage.libs.gmp.types cimport * diff --git a/src/sage/libs/gmp/randomize.pxd b/src/sage/libs/gmp/randomize.pxd index 3876c0dda13..ac4d155c694 100644 --- a/src/sage/libs/gmp/randomize.pxd +++ b/src/sage/libs/gmp/randomize.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects """ Generate random rationals in Sage """ diff --git a/src/sage/libs/gmp/types.pxd b/src/sage/libs/gmp/types.pxd index a8a4a6a35c4..0047df1194e 100644 --- a/src/sage/libs/gmp/types.pxd +++ b/src/sage/libs/gmp/types.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects from libc.stdio cimport FILE cdef extern from "gmp.h": diff --git a/src/sage/libs/gmpxx.pxd b/src/sage/libs/gmpxx.pxd index 8ad41212dbf..227e62fe9c3 100644 --- a/src/sage/libs/gmpxx.pxd +++ b/src/sage/libs/gmpxx.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects # distutils: language = c++ # distutils: libraries = gmpxx gmp diff --git a/src/sage/libs/gsl/__init__.py b/src/sage/libs/gsl/__init__.py index e69de29bb2d..6f6ab52d0f2 100644 --- a/src/sage/libs/gsl/__init__.py +++ b/src/sage/libs/gsl/__init__.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-modules diff --git a/src/sage/libs/gsl/airy.pxd b/src/sage/libs/gsl/airy.pxd index 7e996d5af81..d4f8c8806ee 100644 --- a/src/sage/libs/gsl/airy.pxd +++ b/src/sage/libs/gsl/airy.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: libraries = GSL_LIBRARIES # distutils: library_dirs = GSL_LIBDIR # distutils: include_dirs = GSL_INCDIR diff --git a/src/sage/libs/gsl/all.pxd b/src/sage/libs/gsl/all.pxd index 099399d9f3f..5d90292969a 100644 --- a/src/sage/libs/gsl/all.pxd +++ b/src/sage/libs/gsl/all.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.libs.gsl.types cimport * from sage.libs.gsl.math cimport * diff --git a/src/sage/libs/gsl/array.pxd b/src/sage/libs/gsl/array.pxd index 45ed04e45d0..0860ade618f 100644 --- a/src/sage/libs/gsl/array.pxd +++ b/src/sage/libs/gsl/array.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules cdef class GSLDoubleArray: cdef size_t n cdef size_t stride diff --git a/src/sage/libs/gsl/array.pyx b/src/sage/libs/gsl/array.pyx index 3916929cca4..ac01868f01e 100644 --- a/src/sage/libs/gsl/array.pyx +++ b/src/sage/libs/gsl/array.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ GSL arrays """ diff --git a/src/sage/libs/gsl/bessel.pxd b/src/sage/libs/gsl/bessel.pxd index 8a0a521aa3d..64f06a36db9 100644 --- a/src/sage/libs/gsl/bessel.pxd +++ b/src/sage/libs/gsl/bessel.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: libraries = GSL_LIBRARIES # distutils: library_dirs = GSL_LIBDIR # distutils: include_dirs = GSL_INCDIR diff --git a/src/sage/libs/gsl/blas.pxd b/src/sage/libs/gsl/blas.pxd index 7b195751993..0648ecf42a2 100644 --- a/src/sage/libs/gsl/blas.pxd +++ b/src/sage/libs/gsl/blas.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: libraries = GSL_LIBRARIES # distutils: library_dirs = GSL_LIBDIR # distutils: include_dirs = GSL_INCDIR diff --git a/src/sage/libs/gsl/blas_types.pxd b/src/sage/libs/gsl/blas_types.pxd index 7292912a641..9b09ddc36c4 100644 --- a/src/sage/libs/gsl/blas_types.pxd +++ b/src/sage/libs/gsl/blas_types.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: include_dirs = GSL_INCDIR cdef extern from "gsl/gsl_cblas.h": cdef enum CBLAS_ORDER: diff --git a/src/sage/libs/gsl/block.pxd b/src/sage/libs/gsl/block.pxd index 69ee5251dda..f0ddd7ecb52 100644 --- a/src/sage/libs/gsl/block.pxd +++ b/src/sage/libs/gsl/block.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: libraries = GSL_LIBRARIES # distutils: library_dirs = GSL_LIBDIR # distutils: include_dirs = GSL_INCDIR diff --git a/src/sage/libs/gsl/chebyshev.pxd b/src/sage/libs/gsl/chebyshev.pxd index 06d2da41732..87158ebd611 100644 --- a/src/sage/libs/gsl/chebyshev.pxd +++ b/src/sage/libs/gsl/chebyshev.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: libraries = GSL_LIBRARIES # distutils: library_dirs = GSL_LIBDIR # distutils: include_dirs = GSL_INCDIR diff --git a/src/sage/libs/gsl/clausen.pxd b/src/sage/libs/gsl/clausen.pxd index 2f92518e171..f45676f2673 100644 --- a/src/sage/libs/gsl/clausen.pxd +++ b/src/sage/libs/gsl/clausen.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: libraries = GSL_LIBRARIES # distutils: library_dirs = GSL_LIBDIR # distutils: include_dirs = GSL_INCDIR diff --git a/src/sage/libs/gsl/combination.pxd b/src/sage/libs/gsl/combination.pxd index 6072fb2417a..8e382d71d97 100644 --- a/src/sage/libs/gsl/combination.pxd +++ b/src/sage/libs/gsl/combination.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: libraries = GSL_LIBRARIES # distutils: library_dirs = GSL_LIBDIR # distutils: include_dirs = GSL_INCDIR diff --git a/src/sage/libs/gsl/complex.pxd b/src/sage/libs/gsl/complex.pxd index 87fd3957b62..98db853b947 100644 --- a/src/sage/libs/gsl/complex.pxd +++ b/src/sage/libs/gsl/complex.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: libraries = GSL_LIBRARIES # distutils: library_dirs = GSL_LIBDIR # distutils: include_dirs = GSL_INCDIR diff --git a/src/sage/libs/gsl/coulomb.pxd b/src/sage/libs/gsl/coulomb.pxd index 7941dff093d..7b6d8be0640 100644 --- a/src/sage/libs/gsl/coulomb.pxd +++ b/src/sage/libs/gsl/coulomb.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: libraries = GSL_LIBRARIES # distutils: library_dirs = GSL_LIBDIR # distutils: include_dirs = GSL_INCDIR diff --git a/src/sage/libs/gsl/coupling.pxd b/src/sage/libs/gsl/coupling.pxd index cd5f4d301a6..29a3fc89ce9 100644 --- a/src/sage/libs/gsl/coupling.pxd +++ b/src/sage/libs/gsl/coupling.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: libraries = GSL_LIBRARIES # distutils: library_dirs = GSL_LIBDIR # distutils: include_dirs = GSL_INCDIR diff --git a/src/sage/libs/gsl/dawson.pxd b/src/sage/libs/gsl/dawson.pxd index 9eccc6c4485..553527d588a 100644 --- a/src/sage/libs/gsl/dawson.pxd +++ b/src/sage/libs/gsl/dawson.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: libraries = GSL_LIBRARIES # distutils: library_dirs = GSL_LIBDIR # distutils: include_dirs = GSL_INCDIR diff --git a/src/sage/libs/gsl/debye.pxd b/src/sage/libs/gsl/debye.pxd index ca6d5722e56..07273be89a6 100644 --- a/src/sage/libs/gsl/debye.pxd +++ b/src/sage/libs/gsl/debye.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: libraries = GSL_LIBRARIES # distutils: library_dirs = GSL_LIBDIR # distutils: include_dirs = GSL_INCDIR diff --git a/src/sage/libs/gsl/dilog.pxd b/src/sage/libs/gsl/dilog.pxd index 30f633dd5d2..3af4655c653 100644 --- a/src/sage/libs/gsl/dilog.pxd +++ b/src/sage/libs/gsl/dilog.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: libraries = GSL_LIBRARIES # distutils: library_dirs = GSL_LIBDIR # distutils: include_dirs = GSL_INCDIR diff --git a/src/sage/libs/gsl/eigen.pxd b/src/sage/libs/gsl/eigen.pxd index a0568b1f464..11f849b3715 100644 --- a/src/sage/libs/gsl/eigen.pxd +++ b/src/sage/libs/gsl/eigen.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: libraries = GSL_LIBRARIES # distutils: library_dirs = GSL_LIBDIR # distutils: include_dirs = GSL_INCDIR diff --git a/src/sage/libs/gsl/elementary.pxd b/src/sage/libs/gsl/elementary.pxd index 66e3d39b1e9..da6f0dcae56 100644 --- a/src/sage/libs/gsl/elementary.pxd +++ b/src/sage/libs/gsl/elementary.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: libraries = GSL_LIBRARIES # distutils: library_dirs = GSL_LIBDIR # distutils: include_dirs = GSL_INCDIR diff --git a/src/sage/libs/gsl/ellint.pxd b/src/sage/libs/gsl/ellint.pxd index 2c6cdfb9662..49bda769ce4 100644 --- a/src/sage/libs/gsl/ellint.pxd +++ b/src/sage/libs/gsl/ellint.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: libraries = GSL_LIBRARIES # distutils: library_dirs = GSL_LIBDIR # distutils: include_dirs = GSL_INCDIR diff --git a/src/sage/libs/gsl/elljac.pxd b/src/sage/libs/gsl/elljac.pxd index b343222e1a0..ace72b4ec73 100644 --- a/src/sage/libs/gsl/elljac.pxd +++ b/src/sage/libs/gsl/elljac.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: libraries = GSL_LIBRARIES # distutils: library_dirs = GSL_LIBDIR # distutils: include_dirs = GSL_INCDIR diff --git a/src/sage/libs/gsl/erf.pxd b/src/sage/libs/gsl/erf.pxd index 3035944ae47..836629ec3f5 100644 --- a/src/sage/libs/gsl/erf.pxd +++ b/src/sage/libs/gsl/erf.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: libraries = GSL_LIBRARIES # distutils: library_dirs = GSL_LIBDIR # distutils: include_dirs = GSL_INCDIR diff --git a/src/sage/libs/gsl/errno.pxd b/src/sage/libs/gsl/errno.pxd index 02d599289fd..d273be21303 100644 --- a/src/sage/libs/gsl/errno.pxd +++ b/src/sage/libs/gsl/errno.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: libraries = GSL_LIBRARIES # distutils: library_dirs = GSL_LIBDIR # distutils: include_dirs = GSL_INCDIR diff --git a/src/sage/libs/gsl/exp.pxd b/src/sage/libs/gsl/exp.pxd index 875f5564053..9c47c1a8237 100644 --- a/src/sage/libs/gsl/exp.pxd +++ b/src/sage/libs/gsl/exp.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: libraries = GSL_LIBRARIES # distutils: library_dirs = GSL_LIBDIR # distutils: include_dirs = GSL_INCDIR diff --git a/src/sage/libs/gsl/expint.pxd b/src/sage/libs/gsl/expint.pxd index 66e2e7b2091..5bb6c70cf52 100644 --- a/src/sage/libs/gsl/expint.pxd +++ b/src/sage/libs/gsl/expint.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: libraries = GSL_LIBRARIES # distutils: library_dirs = GSL_LIBDIR # distutils: include_dirs = GSL_INCDIR diff --git a/src/sage/libs/gsl/fermi_dirac.pxd b/src/sage/libs/gsl/fermi_dirac.pxd index 367fe60f293..af5ca2d2ec7 100644 --- a/src/sage/libs/gsl/fermi_dirac.pxd +++ b/src/sage/libs/gsl/fermi_dirac.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: libraries = GSL_LIBRARIES # distutils: library_dirs = GSL_LIBDIR # distutils: include_dirs = GSL_INCDIR diff --git a/src/sage/libs/gsl/fft.pxd b/src/sage/libs/gsl/fft.pxd index 8d0bbff58c1..d798b153755 100644 --- a/src/sage/libs/gsl/fft.pxd +++ b/src/sage/libs/gsl/fft.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: libraries = GSL_LIBRARIES # distutils: library_dirs = GSL_LIBDIR # distutils: include_dirs = GSL_INCDIR diff --git a/src/sage/libs/gsl/fit.pxd b/src/sage/libs/gsl/fit.pxd index 7a052d157dd..ca20f893822 100644 --- a/src/sage/libs/gsl/fit.pxd +++ b/src/sage/libs/gsl/fit.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: libraries = GSL_LIBRARIES # distutils: library_dirs = GSL_LIBDIR # distutils: include_dirs = GSL_INCDIR diff --git a/src/sage/libs/gsl/gamma.pxd b/src/sage/libs/gsl/gamma.pxd index 59bcced37be..aae7e4228dc 100644 --- a/src/sage/libs/gsl/gamma.pxd +++ b/src/sage/libs/gsl/gamma.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: libraries = GSL_LIBRARIES # distutils: library_dirs = GSL_LIBDIR # distutils: include_dirs = GSL_INCDIR diff --git a/src/sage/libs/gsl/gegenbauer.pxd b/src/sage/libs/gsl/gegenbauer.pxd index 8b3c802a9b9..b9affccfb27 100644 --- a/src/sage/libs/gsl/gegenbauer.pxd +++ b/src/sage/libs/gsl/gegenbauer.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: libraries = GSL_LIBRARIES # distutils: library_dirs = GSL_LIBDIR # distutils: include_dirs = GSL_INCDIR diff --git a/src/sage/libs/gsl/histogram.pxd b/src/sage/libs/gsl/histogram.pxd index 6e83a5e48a8..7f504a71b41 100644 --- a/src/sage/libs/gsl/histogram.pxd +++ b/src/sage/libs/gsl/histogram.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: libraries = GSL_LIBRARIES # distutils: library_dirs = GSL_LIBDIR # distutils: include_dirs = GSL_INCDIR diff --git a/src/sage/libs/gsl/hyperg.pxd b/src/sage/libs/gsl/hyperg.pxd index 3e85ebfb0e4..e80953d372c 100644 --- a/src/sage/libs/gsl/hyperg.pxd +++ b/src/sage/libs/gsl/hyperg.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: libraries = GSL_LIBRARIES # distutils: library_dirs = GSL_LIBDIR # distutils: include_dirs = GSL_INCDIR diff --git a/src/sage/libs/gsl/integration.pxd b/src/sage/libs/gsl/integration.pxd index 0a584a90ecd..8542bf36b56 100644 --- a/src/sage/libs/gsl/integration.pxd +++ b/src/sage/libs/gsl/integration.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: libraries = GSL_LIBRARIES # distutils: library_dirs = GSL_LIBDIR # distutils: include_dirs = GSL_INCDIR diff --git a/src/sage/libs/gsl/interp.pxd b/src/sage/libs/gsl/interp.pxd index c64fa0bd4f7..cea79d3f8ad 100644 --- a/src/sage/libs/gsl/interp.pxd +++ b/src/sage/libs/gsl/interp.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: libraries = GSL_LIBRARIES # distutils: library_dirs = GSL_LIBDIR # distutils: include_dirs = GSL_INCDIR diff --git a/src/sage/libs/gsl/laguerre.pxd b/src/sage/libs/gsl/laguerre.pxd index 14a2bcbee83..c7505bc7475 100644 --- a/src/sage/libs/gsl/laguerre.pxd +++ b/src/sage/libs/gsl/laguerre.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: libraries = GSL_LIBRARIES # distutils: library_dirs = GSL_LIBDIR # distutils: include_dirs = GSL_INCDIR diff --git a/src/sage/libs/gsl/lambert.pxd b/src/sage/libs/gsl/lambert.pxd index e30e41f0bd9..850279a8c36 100644 --- a/src/sage/libs/gsl/lambert.pxd +++ b/src/sage/libs/gsl/lambert.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: libraries = GSL_LIBRARIES # distutils: library_dirs = GSL_LIBDIR # distutils: include_dirs = GSL_INCDIR diff --git a/src/sage/libs/gsl/legendre.pxd b/src/sage/libs/gsl/legendre.pxd index f9a69910bc2..62a61a9cf63 100644 --- a/src/sage/libs/gsl/legendre.pxd +++ b/src/sage/libs/gsl/legendre.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: libraries = GSL_LIBRARIES # distutils: library_dirs = GSL_LIBDIR # distutils: include_dirs = GSL_INCDIR diff --git a/src/sage/libs/gsl/linalg.pxd b/src/sage/libs/gsl/linalg.pxd index 389ec2e7997..38075323f51 100644 --- a/src/sage/libs/gsl/linalg.pxd +++ b/src/sage/libs/gsl/linalg.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: libraries = GSL_LIBRARIES # distutils: library_dirs = GSL_LIBDIR # distutils: include_dirs = GSL_INCDIR diff --git a/src/sage/libs/gsl/log.pxd b/src/sage/libs/gsl/log.pxd index 35798b2b150..64877bf51a7 100644 --- a/src/sage/libs/gsl/log.pxd +++ b/src/sage/libs/gsl/log.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: libraries = GSL_LIBRARIES # distutils: library_dirs = GSL_LIBDIR # distutils: include_dirs = GSL_INCDIR diff --git a/src/sage/libs/gsl/math.pxd b/src/sage/libs/gsl/math.pxd index 0f0a27a58e1..6e71fca54bf 100644 --- a/src/sage/libs/gsl/math.pxd +++ b/src/sage/libs/gsl/math.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: libraries = GSL_LIBRARIES # distutils: library_dirs = GSL_LIBDIR # distutils: include_dirs = GSL_INCDIR diff --git a/src/sage/libs/gsl/matrix.pxd b/src/sage/libs/gsl/matrix.pxd index e1e2009b609..4e5ab16ed79 100644 --- a/src/sage/libs/gsl/matrix.pxd +++ b/src/sage/libs/gsl/matrix.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: libraries = GSL_LIBRARIES # distutils: library_dirs = GSL_LIBDIR # distutils: include_dirs = GSL_INCDIR diff --git a/src/sage/libs/gsl/matrix_complex.pxd b/src/sage/libs/gsl/matrix_complex.pxd index 6cbc983a45e..ea894c74893 100644 --- a/src/sage/libs/gsl/matrix_complex.pxd +++ b/src/sage/libs/gsl/matrix_complex.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: libraries = GSL_LIBRARIES # distutils: library_dirs = GSL_LIBDIR # distutils: include_dirs = GSL_INCDIR diff --git a/src/sage/libs/gsl/min.pxd b/src/sage/libs/gsl/min.pxd index 25a9770eba0..67982bde2b5 100644 --- a/src/sage/libs/gsl/min.pxd +++ b/src/sage/libs/gsl/min.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: libraries = GSL_LIBRARIES # distutils: library_dirs = GSL_LIBDIR # distutils: include_dirs = GSL_INCDIR diff --git a/src/sage/libs/gsl/monte.pxd b/src/sage/libs/gsl/monte.pxd index 92142abdbcc..8d9ba8cd657 100644 --- a/src/sage/libs/gsl/monte.pxd +++ b/src/sage/libs/gsl/monte.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: libraries = GSL_LIBRARIES # distutils: library_dirs = GSL_LIBDIR # distutils: include_dirs = GSL_INCDIR diff --git a/src/sage/libs/gsl/ntuple.pxd b/src/sage/libs/gsl/ntuple.pxd index c47ab38d289..c94f3a2211f 100644 --- a/src/sage/libs/gsl/ntuple.pxd +++ b/src/sage/libs/gsl/ntuple.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: libraries = GSL_LIBRARIES # distutils: library_dirs = GSL_LIBDIR # distutils: include_dirs = GSL_INCDIR diff --git a/src/sage/libs/gsl/odeiv.pxd b/src/sage/libs/gsl/odeiv.pxd index 25924ff86aa..3ad312bb68a 100644 --- a/src/sage/libs/gsl/odeiv.pxd +++ b/src/sage/libs/gsl/odeiv.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: libraries = GSL_LIBRARIES # distutils: library_dirs = GSL_LIBDIR # distutils: include_dirs = GSL_INCDIR diff --git a/src/sage/libs/gsl/permutation.pxd b/src/sage/libs/gsl/permutation.pxd index 49b10e0611d..443dffa4c4b 100644 --- a/src/sage/libs/gsl/permutation.pxd +++ b/src/sage/libs/gsl/permutation.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: libraries = GSL_LIBRARIES # distutils: library_dirs = GSL_LIBDIR # distutils: include_dirs = GSL_INCDIR diff --git a/src/sage/libs/gsl/poly.pxd b/src/sage/libs/gsl/poly.pxd index ae172cbf07f..8ad7eb86ed2 100644 --- a/src/sage/libs/gsl/poly.pxd +++ b/src/sage/libs/gsl/poly.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: libraries = GSL_LIBRARIES # distutils: library_dirs = GSL_LIBDIR # distutils: include_dirs = GSL_INCDIR diff --git a/src/sage/libs/gsl/pow_int.pxd b/src/sage/libs/gsl/pow_int.pxd index af5de0263b8..155f1bc0629 100644 --- a/src/sage/libs/gsl/pow_int.pxd +++ b/src/sage/libs/gsl/pow_int.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: libraries = GSL_LIBRARIES # distutils: library_dirs = GSL_LIBDIR # distutils: include_dirs = GSL_INCDIR diff --git a/src/sage/libs/gsl/psi.pxd b/src/sage/libs/gsl/psi.pxd index fd33ccd636c..885f4001489 100644 --- a/src/sage/libs/gsl/psi.pxd +++ b/src/sage/libs/gsl/psi.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: libraries = GSL_LIBRARIES # distutils: library_dirs = GSL_LIBDIR # distutils: include_dirs = GSL_INCDIR diff --git a/src/sage/libs/gsl/qrng.pxd b/src/sage/libs/gsl/qrng.pxd index 24f0702f6c1..6987fb3f5e7 100644 --- a/src/sage/libs/gsl/qrng.pxd +++ b/src/sage/libs/gsl/qrng.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: libraries = GSL_LIBRARIES # distutils: library_dirs = GSL_LIBDIR # distutils: include_dirs = GSL_INCDIR diff --git a/src/sage/libs/gsl/random.pxd b/src/sage/libs/gsl/random.pxd index 21f531265bc..89f792cdbb1 100644 --- a/src/sage/libs/gsl/random.pxd +++ b/src/sage/libs/gsl/random.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: libraries = GSL_LIBRARIES # distutils: library_dirs = GSL_LIBDIR # distutils: include_dirs = GSL_INCDIR diff --git a/src/sage/libs/gsl/rng.pxd b/src/sage/libs/gsl/rng.pxd index b1ab233715e..0b976df3586 100644 --- a/src/sage/libs/gsl/rng.pxd +++ b/src/sage/libs/gsl/rng.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: libraries = GSL_LIBRARIES # distutils: library_dirs = GSL_LIBDIR # distutils: include_dirs = GSL_INCDIR diff --git a/src/sage/libs/gsl/roots.pxd b/src/sage/libs/gsl/roots.pxd index 2bf1ccf9403..4380949a3ba 100644 --- a/src/sage/libs/gsl/roots.pxd +++ b/src/sage/libs/gsl/roots.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: libraries = GSL_LIBRARIES # distutils: library_dirs = GSL_LIBDIR # distutils: include_dirs = GSL_INCDIR diff --git a/src/sage/libs/gsl/sort.pxd b/src/sage/libs/gsl/sort.pxd index 68493a8a1a8..bc1932a57db 100644 --- a/src/sage/libs/gsl/sort.pxd +++ b/src/sage/libs/gsl/sort.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: libraries = GSL_LIBRARIES # distutils: library_dirs = GSL_LIBDIR # distutils: include_dirs = GSL_INCDIR diff --git a/src/sage/libs/gsl/statistics.pxd b/src/sage/libs/gsl/statistics.pxd index 5f5dcaa426e..62ef3dbde6c 100644 --- a/src/sage/libs/gsl/statistics.pxd +++ b/src/sage/libs/gsl/statistics.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: libraries = GSL_LIBRARIES # distutils: library_dirs = GSL_LIBDIR # distutils: include_dirs = GSL_INCDIR diff --git a/src/sage/libs/gsl/sum.pxd b/src/sage/libs/gsl/sum.pxd index 83966b8eb34..3a75e8fc666 100644 --- a/src/sage/libs/gsl/sum.pxd +++ b/src/sage/libs/gsl/sum.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: libraries = GSL_LIBRARIES # distutils: library_dirs = GSL_LIBDIR # distutils: include_dirs = GSL_INCDIR diff --git a/src/sage/libs/gsl/synchrotron.pxd b/src/sage/libs/gsl/synchrotron.pxd index a02c9964fc2..fd642e85113 100644 --- a/src/sage/libs/gsl/synchrotron.pxd +++ b/src/sage/libs/gsl/synchrotron.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: libraries = GSL_LIBRARIES # distutils: library_dirs = GSL_LIBDIR # distutils: include_dirs = GSL_INCDIR diff --git a/src/sage/libs/gsl/transport.pxd b/src/sage/libs/gsl/transport.pxd index 6700511a9c9..86691a48b05 100644 --- a/src/sage/libs/gsl/transport.pxd +++ b/src/sage/libs/gsl/transport.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: libraries = GSL_LIBRARIES # distutils: library_dirs = GSL_LIBDIR # distutils: include_dirs = GSL_INCDIR diff --git a/src/sage/libs/gsl/trig.pxd b/src/sage/libs/gsl/trig.pxd index c9da72206af..b7ebe9e14f2 100644 --- a/src/sage/libs/gsl/trig.pxd +++ b/src/sage/libs/gsl/trig.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: libraries = GSL_LIBRARIES # distutils: library_dirs = GSL_LIBDIR # distutils: include_dirs = GSL_INCDIR diff --git a/src/sage/libs/gsl/types.pxd b/src/sage/libs/gsl/types.pxd index 7076e2f8861..00ffe3fb4ea 100644 --- a/src/sage/libs/gsl/types.pxd +++ b/src/sage/libs/gsl/types.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: include_dirs = GSL_INCDIR from libc.stdio cimport FILE diff --git a/src/sage/libs/gsl/vector.pxd b/src/sage/libs/gsl/vector.pxd index 30960a2d1ef..a00611fced0 100644 --- a/src/sage/libs/gsl/vector.pxd +++ b/src/sage/libs/gsl/vector.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: libraries = GSL_LIBRARIES # distutils: library_dirs = GSL_LIBDIR # distutils: include_dirs = GSL_INCDIR diff --git a/src/sage/libs/gsl/vector_complex.pxd b/src/sage/libs/gsl/vector_complex.pxd index a784c32880a..7629f946720 100644 --- a/src/sage/libs/gsl/vector_complex.pxd +++ b/src/sage/libs/gsl/vector_complex.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: libraries = GSL_LIBRARIES # distutils: library_dirs = GSL_LIBDIR # distutils: include_dirs = GSL_INCDIR diff --git a/src/sage/libs/gsl/wavelet.pxd b/src/sage/libs/gsl/wavelet.pxd index c74052e8bfc..2f94e13e6d9 100644 --- a/src/sage/libs/gsl/wavelet.pxd +++ b/src/sage/libs/gsl/wavelet.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: libraries = GSL_LIBRARIES # distutils: library_dirs = GSL_LIBDIR # distutils: include_dirs = GSL_INCDIR diff --git a/src/sage/libs/gsl/zeta.pxd b/src/sage/libs/gsl/zeta.pxd index 9b6edbd74b9..b89442a28fa 100644 --- a/src/sage/libs/gsl/zeta.pxd +++ b/src/sage/libs/gsl/zeta.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: libraries = GSL_LIBRARIES # distutils: library_dirs = GSL_LIBDIR # distutils: include_dirs = GSL_INCDIR diff --git a/src/sage/libs/homfly.pyx b/src/sage/libs/homfly.pyx index 550c5f02a65..1cc3f591f8a 100644 --- a/src/sage/libs/homfly.pyx +++ b/src/sage/libs/homfly.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-homfly # distutils: libraries = homfly gc r""" Cython wrapper for libhomfly library diff --git a/src/sage/libs/iml.pxd b/src/sage/libs/iml.pxd index 274a05f4313..9796c931db4 100644 --- a/src/sage/libs/iml.pxd +++ b/src/sage/libs/iml.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-linbox from sage.libs.gmp.types cimport mpz_t cdef extern from "iml.h": @@ -6,4 +7,4 @@ cdef extern from "iml.h": RightSolu cdef long nullspaceMP(long n, long m, const mpz_t *A, mpz_t * *mp_N_pass) - cdef void nonsingSolvLlhsMM(SOLU_POS solupos, long n, long m, mpz_t *mp_A, mpz_t *mp_B, mpz_t *mp_N, mpz_t mp_D) \ No newline at end of file + cdef void nonsingSolvLlhsMM(SOLU_POS solupos, long n, long m, mpz_t *mp_A, mpz_t *mp_B, mpz_t *mp_N, mpz_t mp_D) diff --git a/src/sage/libs/lcalc/__init__.py b/src/sage/libs/lcalc/__init__.py index e69de29bb2d..35fac988d13 100644 --- a/src/sage/libs/lcalc/__init__.py +++ b/src/sage/libs/lcalc/__init__.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-lcalc diff --git a/src/sage/libs/lcalc/lcalc_Lfunction.pxd b/src/sage/libs/lcalc/lcalc_Lfunction.pxd index 715fa46bba0..1da49c00755 100644 --- a/src/sage/libs/lcalc/lcalc_Lfunction.pxd +++ b/src/sage/libs/lcalc/lcalc_Lfunction.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-lcalc cdef extern from "lcalc_sage.h": ctypedef struct doublevec "std::vector": int (*size)() diff --git a/src/sage/libs/lcalc/lcalc_Lfunction.pyx b/src/sage/libs/lcalc/lcalc_Lfunction.pyx index 4950ed1d97f..c841a55f079 100644 --- a/src/sage/libs/lcalc/lcalc_Lfunction.pyx +++ b/src/sage/libs/lcalc/lcalc_Lfunction.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-lcalc # distutils: libraries = m NTL_LIBRARIES Lfunction # distutils: extra_compile_args = NTL_CFLAGS -O3 -ffast-math # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/libs/libecm.pyx b/src/sage/libs/libecm.pyx index 886a9b816e4..c9ccb4b35f0 100644 --- a/src/sage/libs/libecm.pyx +++ b/src/sage/libs/libecm.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-libecm # distutils: libraries = ecm # distutils: extra_link_args = LINUX_NOEXECSTACK r""" diff --git a/src/sage/libs/linbox/__init__.py b/src/sage/libs/linbox/__init__.py index e69de29bb2d..d3fe8dc3de9 100644 --- a/src/sage/libs/linbox/__init__.py +++ b/src/sage/libs/linbox/__init__.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-linbox diff --git a/src/sage/libs/linbox/conversion.pxd b/src/sage/libs/linbox/conversion.pxd index a4cdd09711d..c998a73aecd 100644 --- a/src/sage/libs/linbox/conversion.pxd +++ b/src/sage/libs/linbox/conversion.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-linbox r""" Inline conversions between LinBox and Sage diff --git a/src/sage/libs/linbox/fflas.pxd b/src/sage/libs/linbox/fflas.pxd index d5b077cf045..f962d26b000 100644 --- a/src/sage/libs/linbox/fflas.pxd +++ b/src/sage/libs/linbox/fflas.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-linbox # Issue #33153: fflas-ffpack-2.4.3 is missing a return value in one of # its functions and runs afoul of -Werror=return-type. Compounding the # problem on openSUSE tumbleweed, the CFLAGS in python's sysconfig diff --git a/src/sage/libs/linbox/givaro.pxd b/src/sage/libs/linbox/givaro.pxd index e6b5a06c3b0..4a1fa3beebc 100644 --- a/src/sage/libs/linbox/givaro.pxd +++ b/src/sage/libs/linbox/givaro.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-linbox # distutils: extra_compile_args = GIVARO_CFLAGS # distutils: include_dirs = GIVARO_INCDIR # distutils: libraries = GIVARO_LIBRARIES FFLASFFPACK_LIBRARIES diff --git a/src/sage/libs/linbox/linbox.pxd b/src/sage/libs/linbox/linbox.pxd index 6792e260a34..e4064118461 100644 --- a/src/sage/libs/linbox/linbox.pxd +++ b/src/sage/libs/linbox/linbox.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-linbox # distutils: extra_compile_args = LINBOX_CFLAGS # distutils: include_dirs = LINBOX_INCDIR # distutils: libraries = LINBOX_LIBRARIES diff --git a/src/sage/libs/linbox/linbox_flint_interface.pxd b/src/sage/libs/linbox/linbox_flint_interface.pxd index f47d5386a01..72cf727e886 100644 --- a/src/sage/libs/linbox/linbox_flint_interface.pxd +++ b/src/sage/libs/linbox/linbox_flint_interface.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-linbox # distutils: libraries = LINBOX_LIBRARIES # distutils: library_dirs = LINBOX_LIBDIR # distutils: extra_link_args = LINBOX_LIBEXTRA diff --git a/src/sage/libs/linbox/linbox_flint_interface.pyx b/src/sage/libs/linbox/linbox_flint_interface.pyx index 37a340c457f..34f861d7ad4 100644 --- a/src/sage/libs/linbox/linbox_flint_interface.pyx +++ b/src/sage/libs/linbox/linbox_flint_interface.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-linbox r""" Interface between flint matrices and linbox diff --git a/src/sage/libs/linkages/__init__.py b/src/sage/libs/linkages/__init__.py index e69de29bb2d..d31bae41036 100644 --- a/src/sage/libs/linkages/__init__.py +++ b/src/sage/libs/linkages/__init__.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-flint diff --git a/src/sage/libs/linkages/padics/API.pxi b/src/sage/libs/linkages/padics/API.pxi index ec69c5bbaa3..bfc8583dbbd 100644 --- a/src/sage/libs/linkages/padics/API.pxi +++ b/src/sage/libs/linkages/padics/API.pxi @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari """ This file defines the common API for p-adic elements. Elements using different precision models (e.g. capped relative, diff --git a/src/sage/libs/linkages/padics/Polynomial_ram.pxi b/src/sage/libs/linkages/padics/Polynomial_ram.pxi index 2048bb0a3c2..bb83aa2a675 100644 --- a/src/sage/libs/linkages/padics/Polynomial_ram.pxi +++ b/src/sage/libs/linkages/padics/Polynomial_ram.pxi @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari # -*- coding: utf-8 -*- r""" This linkage file implements the padics API for ramified extensions using Sage diff --git a/src/sage/libs/linkages/padics/Polynomial_shared.pxi b/src/sage/libs/linkages/padics/Polynomial_shared.pxi index b210b53ce19..89af64a3c8e 100644 --- a/src/sage/libs/linkages/padics/Polynomial_shared.pxi +++ b/src/sage/libs/linkages/padics/Polynomial_shared.pxi @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari r""" This linkage file implements the padics API using Sage Polynomials. diff --git a/src/sage/libs/linkages/padics/__init__.py b/src/sage/libs/linkages/padics/__init__.py index e69de29bb2d..d31bae41036 100644 --- a/src/sage/libs/linkages/padics/__init__.py +++ b/src/sage/libs/linkages/padics/__init__.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-flint diff --git a/src/sage/libs/linkages/padics/fmpz_poly_unram.pxi b/src/sage/libs/linkages/padics/fmpz_poly_unram.pxi index afb9d191609..3df3a3facee 100644 --- a/src/sage/libs/linkages/padics/fmpz_poly_unram.pxi +++ b/src/sage/libs/linkages/padics/fmpz_poly_unram.pxi @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari """ This linkage file implements the API for unramified extensions of the padics using FLINT's fmpz_poly_t. diff --git a/src/sage/libs/linkages/padics/mpz.pxi b/src/sage/libs/linkages/padics/mpz.pxi index ba8c143f3b7..062e6cd7665 100644 --- a/src/sage/libs/linkages/padics/mpz.pxi +++ b/src/sage/libs/linkages/padics/mpz.pxi @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari """ This linkage file implements the padics API using MPIR mpz_t multiprecision integers. diff --git a/src/sage/libs/linkages/padics/relaxed/API.pxi b/src/sage/libs/linkages/padics/relaxed/API.pxi index 4e9ea075bb2..8ebfda5e115 100644 --- a/src/sage/libs/linkages/padics/relaxed/API.pxi +++ b/src/sage/libs/linkages/padics/relaxed/API.pxi @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint r""" This file defines the common API for relaxed `p`-adic numbers. diff --git a/src/sage/libs/linkages/padics/relaxed/__init__.py b/src/sage/libs/linkages/padics/relaxed/__init__.py index e69de29bb2d..d31bae41036 100644 --- a/src/sage/libs/linkages/padics/relaxed/__init__.py +++ b/src/sage/libs/linkages/padics/relaxed/__init__.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-flint diff --git a/src/sage/libs/linkages/padics/relaxed/flint.pxi b/src/sage/libs/linkages/padics/relaxed/flint.pxi index 3dab6ecbc30..40965883a79 100644 --- a/src/sage/libs/linkages/padics/relaxed/flint.pxi +++ b/src/sage/libs/linkages/padics/relaxed/flint.pxi @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint r""" This linkage file implements the relaxed padics API using flint. diff --git a/src/sage/libs/linkages/padics/unram_shared.pxi b/src/sage/libs/linkages/padics/unram_shared.pxi index b23168e0eb2..0ca091dd6e5 100644 --- a/src/sage/libs/linkages/padics/unram_shared.pxi +++ b/src/sage/libs/linkages/padics/unram_shared.pxi @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari cimport cython @cython.binding(True) diff --git a/src/sage/libs/lrcalc/__init__.py b/src/sage/libs/lrcalc/__init__.py index e69de29bb2d..28c48d66b20 100644 --- a/src/sage/libs/lrcalc/__init__.py +++ b/src/sage/libs/lrcalc/__init__.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-combinat diff --git a/src/sage/libs/lrcalc/lrcalc.py b/src/sage/libs/lrcalc/lrcalc.py index cf50d52a927..d4690ba8c3b 100644 --- a/src/sage/libs/lrcalc/lrcalc.py +++ b/src/sage/libs/lrcalc/lrcalc.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" An interface to Anders Buch's Littlewood-Richardson Calculator ``lrcalc`` diff --git a/src/sage/libs/m4ri.pxd b/src/sage/libs/m4ri.pxd index a9c6c792c05..5a55204b7c4 100644 --- a/src/sage/libs/m4ri.pxd +++ b/src/sage/libs/m4ri.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-linbox # distutils: extra_compile_args = -std=c++11 # distutils: language = c++ diff --git a/src/sage/libs/m4rie.pxd b/src/sage/libs/m4rie.pxd index 4bc99aba4d7..f769003b8f5 100644 --- a/src/sage/libs/m4rie.pxd +++ b/src/sage/libs/m4rie.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-linbox ############################################################################## # Copyright (C) 2010 Martin Albrecht # Distributed under the terms of the GNU General Public License (GPL) diff --git a/src/sage/libs/mpc/__init__.pxd b/src/sage/libs/mpc/__init__.pxd index 4930a636c41..7f27ba719e8 100644 --- a/src/sage/libs/mpc/__init__.pxd +++ b/src/sage/libs/mpc/__init__.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: libraries = gmp mpfr mpc from sage.libs.gmp.types cimport * diff --git a/src/sage/libs/mpc/types.pxd b/src/sage/libs/mpc/types.pxd index 72565c08630..2221e931726 100644 --- a/src/sage/libs/mpc/types.pxd +++ b/src/sage/libs/mpc/types.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.libs.mpfr.types cimport mpfr_t cdef extern from "mpc.h": diff --git a/src/sage/libs/mpfi/__init__.pxd b/src/sage/libs/mpfi/__init__.pxd index b55a5129d18..1c83243299e 100644 --- a/src/sage/libs/mpfi/__init__.pxd +++ b/src/sage/libs/mpfi/__init__.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: libraries = gmp mpfr mpfi from sage.libs.gmp.types cimport * diff --git a/src/sage/libs/mpfi/types.pxd b/src/sage/libs/mpfi/types.pxd index 073a2e719ac..efc8552675e 100644 --- a/src/sage/libs/mpfi/types.pxd +++ b/src/sage/libs/mpfi/types.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from sage.libs.mpfr.types cimport __mpfr_struct cdef extern from "mpfi.h": diff --git a/src/sage/libs/mpfr/__init__.pxd b/src/sage/libs/mpfr/__init__.pxd index facac9aa6c7..a6c222d600f 100644 --- a/src/sage/libs/mpfr/__init__.pxd +++ b/src/sage/libs/mpfr/__init__.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: libraries = gmp mpfr from sage.libs.gmp.types cimport * diff --git a/src/sage/libs/mpfr/types.pxd b/src/sage/libs/mpfr/types.pxd index 45f8a161361..9cfbc0e96fd 100644 --- a/src/sage/libs/mpfr/types.pxd +++ b/src/sage/libs/mpfr/types.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.libs.gmp.types cimport mp_limb_t cdef extern from "mpfr.h": diff --git a/src/sage/libs/mpmath/all.py b/src/sage/libs/mpmath/all.py index cae40f79314..9eb980ed217 100644 --- a/src/sage/libs/mpmath/all.py +++ b/src/sage/libs/mpmath/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-mpmath import mpmath # Patch mpmath to use Cythonized functions diff --git a/src/sage/libs/mpmath/ext_impl.pxd b/src/sage/libs/mpmath/ext_impl.pxd index f2540d326dd..fbc13926935 100644 --- a/src/sage/libs/mpmath/ext_impl.pxd +++ b/src/sage/libs/mpmath/ext_impl.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-mpmath from sage.libs.gmp.all cimport mpz_t ctypedef struct MPopts: diff --git a/src/sage/libs/mpmath/ext_impl.pyx b/src/sage/libs/mpmath/ext_impl.pyx index aa69f6e0409..f9d53a0d9ae 100644 --- a/src/sage/libs/mpmath/ext_impl.pyx +++ b/src/sage/libs/mpmath/ext_impl.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-mpmath """ This module provides the core implementation of multiprecision floating-point arithmetic. Operations are done in-place. diff --git a/src/sage/libs/mpmath/ext_libmp.pyx b/src/sage/libs/mpmath/ext_libmp.pyx index 10d1b32eb36..d59d1d268cd 100644 --- a/src/sage/libs/mpmath/ext_libmp.pyx +++ b/src/sage/libs/mpmath/ext_libmp.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-mpmath """ Faster versions of some key functions in mpmath.libmp """ diff --git a/src/sage/libs/mpmath/ext_main.pxd b/src/sage/libs/mpmath/ext_main.pxd index 8a3bf740b0e..ea3f7bba6d4 100644 --- a/src/sage/libs/mpmath/ext_main.pxd +++ b/src/sage/libs/mpmath/ext_main.pxd @@ -1 +1,2 @@ +# sage_setup: distribution = sagemath-mpmath from sage.libs.mpmath.ext_impl cimport * diff --git a/src/sage/libs/mpmath/ext_main.pyx b/src/sage/libs/mpmath/ext_main.pyx index 4b717bb3860..2cc7d476794 100644 --- a/src/sage/libs/mpmath/ext_main.pyx +++ b/src/sage/libs/mpmath/ext_main.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-mpmath """ mpmath floating-point numbers diff --git a/src/sage/libs/mpmath/utils.pyx b/src/sage/libs/mpmath/utils.pyx index 7265c0bf7a7..f18991c7b15 100644 --- a/src/sage/libs/mpmath/utils.pyx +++ b/src/sage/libs/mpmath/utils.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-mpmath """ Utilities for Sage-mpmath interaction diff --git a/src/sage/libs/ntl/GF2.pxd b/src/sage/libs/ntl/GF2.pxd index 5be7f496766..1d5d9ea49d7 100644 --- a/src/sage/libs/ntl/GF2.pxd +++ b/src/sage/libs/ntl/GF2.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from sage.libs.ntl.types cimport GF2_c diff --git a/src/sage/libs/ntl/GF2E.pxd b/src/sage/libs/ntl/GF2E.pxd index 5a72efec6a4..901df87a4ef 100644 --- a/src/sage/libs/ntl/GF2E.pxd +++ b/src/sage/libs/ntl/GF2E.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from sage.libs.ntl.types cimport GF2E_c, GF2X_c, GF2_c, GF2XModulus_c, ZZ_c diff --git a/src/sage/libs/ntl/GF2EX.pxd b/src/sage/libs/ntl/GF2EX.pxd index 4a0df45c9f1..4648aaa7429 100644 --- a/src/sage/libs/ntl/GF2EX.pxd +++ b/src/sage/libs/ntl/GF2EX.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from sage.libs.ntl.types cimport GF2EX_c diff --git a/src/sage/libs/ntl/GF2X.pxd b/src/sage/libs/ntl/GF2X.pxd index 9342f63244c..e3da7f38126 100644 --- a/src/sage/libs/ntl/GF2X.pxd +++ b/src/sage/libs/ntl/GF2X.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from sage.libs.ntl.types cimport GF2X_c, GF2_c, GF2XModulus_c, vec_GF2_c, ZZ_c diff --git a/src/sage/libs/ntl/ZZ.pxd b/src/sage/libs/ntl/ZZ.pxd index fc8901fc31a..faf139e6848 100644 --- a/src/sage/libs/ntl/ZZ.pxd +++ b/src/sage/libs/ntl/ZZ.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: depends = NTL/ZZ.h from sage.libs.ntl.types cimport ZZ_c diff --git a/src/sage/libs/ntl/ZZX.pxd b/src/sage/libs/ntl/ZZX.pxd index bc2780e3a83..e5511934cca 100644 --- a/src/sage/libs/ntl/ZZX.pxd +++ b/src/sage/libs/ntl/ZZX.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: depends = NTL/ZZ.h from sage.libs.gmp.types cimport mpz_t diff --git a/src/sage/libs/ntl/ZZ_p.pxd b/src/sage/libs/ntl/ZZ_p.pxd index 1d7d95e4007..0611bc4e1b6 100644 --- a/src/sage/libs/ntl/ZZ_p.pxd +++ b/src/sage/libs/ntl/ZZ_p.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: depends = NTL/ZZ.h from sage.libs.ntl.types cimport ZZ_c, ZZ_p_c diff --git a/src/sage/libs/ntl/ZZ_pE.pxd b/src/sage/libs/ntl/ZZ_pE.pxd index bdfb04cb783..f8842659911 100644 --- a/src/sage/libs/ntl/ZZ_pE.pxd +++ b/src/sage/libs/ntl/ZZ_pE.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: depends = NTL/ZZ.h from sage.libs.ntl.types cimport ZZ_c, ZZ_p_c, ZZ_pX_c, ZZ_pE_c diff --git a/src/sage/libs/ntl/ZZ_pEX.pxd b/src/sage/libs/ntl/ZZ_pEX.pxd index 78be3ee13ea..e5f2b12d62e 100644 --- a/src/sage/libs/ntl/ZZ_pEX.pxd +++ b/src/sage/libs/ntl/ZZ_pEX.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: depends = NTL/ZZ.h from sage.libs.ntl.types cimport (ZZ_c, ZZ_p_c, ZZ_pContext_c, ZZ_pE_c, vec_ZZ_p_c, diff --git a/src/sage/libs/ntl/ZZ_pX.pxd b/src/sage/libs/ntl/ZZ_pX.pxd index 8c9f609f1cd..d54625fcebf 100644 --- a/src/sage/libs/ntl/ZZ_pX.pxd +++ b/src/sage/libs/ntl/ZZ_pX.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: depends = NTL/ZZ.h from sage.libs.ntl.types cimport (ZZ_c, ZZX_c, ZZ_p_c, vec_ZZ_p_c, ZZ_pContext_c, diff --git a/src/sage/libs/ntl/__init__.py b/src/sage/libs/ntl/__init__.py index 0ab0a2c43e7..ba2e4477f9f 100644 --- a/src/sage/libs/ntl/__init__.py +++ b/src/sage/libs/ntl/__init__.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from sage.libs.ntl.error import setup_NTL_error_callback setup_NTL_error_callback() diff --git a/src/sage/libs/ntl/all.py b/src/sage/libs/ntl/all.py index e9d4271879a..5634f89fd99 100644 --- a/src/sage/libs/ntl/all.py +++ b/src/sage/libs/ntl/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl r""" Victor Shoup's NTL C++ Library diff --git a/src/sage/libs/ntl/conversion.pxd b/src/sage/libs/ntl/conversion.pxd index e46cc66284e..a24de983a12 100644 --- a/src/sage/libs/ntl/conversion.pxd +++ b/src/sage/libs/ntl/conversion.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl r""" Inline conversions between NTL and Sage diff --git a/src/sage/libs/ntl/convert.pxd b/src/sage/libs/ntl/convert.pxd index 58420abb94c..42d2f01dc1b 100644 --- a/src/sage/libs/ntl/convert.pxd +++ b/src/sage/libs/ntl/convert.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from sage.libs.ntl.types cimport ZZ_c from sage.libs.gmp.types cimport mpz_t, mpz_srcptr diff --git a/src/sage/libs/ntl/convert.pyx b/src/sage/libs/ntl/convert.pyx index 5924c9f2e79..3002ce3061d 100644 --- a/src/sage/libs/ntl/convert.pyx +++ b/src/sage/libs/ntl/convert.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: depends = NTL/ZZ.h # distutils: libraries = NTL_LIBRARIES gmp # distutils: extra_compile_args = NTL_CFLAGS diff --git a/src/sage/libs/ntl/decl.pxi b/src/sage/libs/ntl/decl.pxi index ae4eb5500f5..79b9592d199 100644 --- a/src/sage/libs/ntl/decl.pxi +++ b/src/sage/libs/ntl/decl.pxi @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from sage.libs.ntl.types cimport * from sage.libs.ntl.ZZ cimport * from sage.libs.ntl.ZZ_pX cimport * diff --git a/src/sage/libs/ntl/error.pyx b/src/sage/libs/ntl/error.pyx index 54443c13597..06fbe1fe6dc 100644 --- a/src/sage/libs/ntl/error.pyx +++ b/src/sage/libs/ntl/error.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: libraries = ntl gmp # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/libs/ntl/lzz_p.pxd b/src/sage/libs/ntl/lzz_p.pxd index 14d81bc8ab0..3d30b2f38c4 100644 --- a/src/sage/libs/ntl/lzz_p.pxd +++ b/src/sage/libs/ntl/lzz_p.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: depends = NTL/ZZ.h from sage.libs.ntl.types cimport zz_p_c diff --git a/src/sage/libs/ntl/lzz_pX.pxd b/src/sage/libs/ntl/lzz_pX.pxd index 72905fd1d54..e747309ceb9 100644 --- a/src/sage/libs/ntl/lzz_pX.pxd +++ b/src/sage/libs/ntl/lzz_pX.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: depends = NTL/ZZ.h from sage.libs.ntl.types cimport ZZ_c, zz_p_c, zz_pX_c, zz_pX_Modulus_c diff --git a/src/sage/libs/ntl/mat_GF2.pxd b/src/sage/libs/ntl/mat_GF2.pxd index db535d800fc..0405a90c646 100644 --- a/src/sage/libs/ntl/mat_GF2.pxd +++ b/src/sage/libs/ntl/mat_GF2.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from sage.libs.ntl.types cimport mat_GF2_c, vec_GF2_c, GF2_c diff --git a/src/sage/libs/ntl/mat_GF2E.pxd b/src/sage/libs/ntl/mat_GF2E.pxd index e6c3b5fc622..c6d2c615dbd 100644 --- a/src/sage/libs/ntl/mat_GF2E.pxd +++ b/src/sage/libs/ntl/mat_GF2E.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from sage.libs.ntl.types cimport mat_GF2E_c, vec_GF2E_c, GF2E_c diff --git a/src/sage/libs/ntl/mat_ZZ.pxd b/src/sage/libs/ntl/mat_ZZ.pxd index a676c90fb1b..a33fc2b1a1a 100644 --- a/src/sage/libs/ntl/mat_ZZ.pxd +++ b/src/sage/libs/ntl/mat_ZZ.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from sage.libs.ntl.types cimport mat_ZZ_c, ZZ_c, ZZX_c diff --git a/src/sage/libs/ntl/misc.pxi b/src/sage/libs/ntl/misc.pxi index e0d24b01a60..98bbb93a454 100644 --- a/src/sage/libs/ntl/misc.pxi +++ b/src/sage/libs/ntl/misc.pxi @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: depends = NTL/ZZ.h from cysignals.memory cimport sig_free diff --git a/src/sage/libs/ntl/ntl_GF2.pxd b/src/sage/libs/ntl/ntl_GF2.pxd index 2be873c950c..1f388a00ff0 100644 --- a/src/sage/libs/ntl/ntl_GF2.pxd +++ b/src/sage/libs/ntl/ntl_GF2.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from sage.libs.ntl.types cimport GF2_c cdef class ntl_GF2(): diff --git a/src/sage/libs/ntl/ntl_GF2.pyx b/src/sage/libs/ntl/ntl_GF2.pyx index 7bbdaa09d05..ac0ff7295ff 100644 --- a/src/sage/libs/ntl/ntl_GF2.pyx +++ b/src/sage/libs/ntl/ntl_GF2.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: libraries = NTL_LIBRARIES gmp # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/libs/ntl/ntl_GF2E.pxd b/src/sage/libs/ntl/ntl_GF2E.pxd index 93539cf8abf..01e2e76c8aa 100644 --- a/src/sage/libs/ntl/ntl_GF2E.pxd +++ b/src/sage/libs/ntl/ntl_GF2E.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from sage.libs.ntl.types cimport GF2E_c from sage.libs.ntl.ntl_GF2EContext cimport ntl_GF2EContext_class diff --git a/src/sage/libs/ntl/ntl_GF2E.pyx b/src/sage/libs/ntl/ntl_GF2E.pyx index fa941804293..e8603985a63 100644 --- a/src/sage/libs/ntl/ntl_GF2E.pyx +++ b/src/sage/libs/ntl/ntl_GF2E.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: libraries = NTL_LIBRARIES gmp m # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/libs/ntl/ntl_GF2EContext.pxd b/src/sage/libs/ntl/ntl_GF2EContext.pxd index 01fc4676e58..c7256683a56 100644 --- a/src/sage/libs/ntl/ntl_GF2EContext.pxd +++ b/src/sage/libs/ntl/ntl_GF2EContext.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from sage.libs.ntl.types cimport GF2EContext_c from sage.libs.ntl.ntl_GF2X cimport ntl_GF2X diff --git a/src/sage/libs/ntl/ntl_GF2EContext.pyx b/src/sage/libs/ntl/ntl_GF2EContext.pyx index f00bda404df..865f1b0089f 100644 --- a/src/sage/libs/ntl/ntl_GF2EContext.pyx +++ b/src/sage/libs/ntl/ntl_GF2EContext.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: libraries = NTL_LIBRARIES gmp m # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/libs/ntl/ntl_GF2EX.pxd b/src/sage/libs/ntl/ntl_GF2EX.pxd index 38c96a7fe52..e4a4c6f7d20 100644 --- a/src/sage/libs/ntl/ntl_GF2EX.pxd +++ b/src/sage/libs/ntl/ntl_GF2EX.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from sage.libs.ntl.types cimport GF2EX_c from sage.libs.ntl.ntl_GF2EContext cimport ntl_GF2EContext_class from sage.libs.ntl.ntl_GF2E cimport ntl_GF2E diff --git a/src/sage/libs/ntl/ntl_GF2EX.pyx b/src/sage/libs/ntl/ntl_GF2EX.pyx index 4e1c4324915..edf9d34326d 100644 --- a/src/sage/libs/ntl/ntl_GF2EX.pyx +++ b/src/sage/libs/ntl/ntl_GF2EX.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: libraries = NTL_LIBRARIES gmp m # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/libs/ntl/ntl_GF2X.pxd b/src/sage/libs/ntl/ntl_GF2X.pxd index 8d50c9d17d8..f72db7c0404 100644 --- a/src/sage/libs/ntl/ntl_GF2X.pxd +++ b/src/sage/libs/ntl/ntl_GF2X.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from sage.libs.ntl.types cimport GF2X_c cdef class ntl_GF2X(): diff --git a/src/sage/libs/ntl/ntl_GF2X.pyx b/src/sage/libs/ntl/ntl_GF2X.pyx index 5e6ef736763..57329a65e90 100644 --- a/src/sage/libs/ntl/ntl_GF2X.pyx +++ b/src/sage/libs/ntl/ntl_GF2X.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: libraries = NTL_LIBRARIES gmp m # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/libs/ntl/ntl_GF2X_linkage.pxi b/src/sage/libs/ntl/ntl_GF2X_linkage.pxi index cf480a34653..21b036b3dc5 100644 --- a/src/sage/libs/ntl/ntl_GF2X_linkage.pxi +++ b/src/sage/libs/ntl/ntl_GF2X_linkage.pxi @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl r""" Linkage for arithmetic with NTL's GF2X elements. diff --git a/src/sage/libs/ntl/ntl_ZZ.pxd b/src/sage/libs/ntl/ntl_ZZ.pxd index 2ada3d8398c..bab369973a5 100644 --- a/src/sage/libs/ntl/ntl_ZZ.pxd +++ b/src/sage/libs/ntl/ntl_ZZ.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from sage.libs.ntl.types cimport ZZ_c cdef class ntl_ZZ(): diff --git a/src/sage/libs/ntl/ntl_ZZ.pyx b/src/sage/libs/ntl/ntl_ZZ.pyx index 37acfef79a8..786e8e5ae48 100644 --- a/src/sage/libs/ntl/ntl_ZZ.pyx +++ b/src/sage/libs/ntl/ntl_ZZ.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: libraries = NTL_LIBRARIES gmp m # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/libs/ntl/ntl_ZZX.pxd b/src/sage/libs/ntl/ntl_ZZX.pxd index 63e588c1d42..287d3fec8af 100644 --- a/src/sage/libs/ntl/ntl_ZZX.pxd +++ b/src/sage/libs/ntl/ntl_ZZX.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from sage.libs.ntl.types cimport ZZX_c cdef class ntl_ZZX(): diff --git a/src/sage/libs/ntl/ntl_ZZX.pyx b/src/sage/libs/ntl/ntl_ZZX.pyx index 343e5883191..4af5fa62fe5 100644 --- a/src/sage/libs/ntl/ntl_ZZX.pyx +++ b/src/sage/libs/ntl/ntl_ZZX.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: libraries = NTL_LIBRARIES gmp m # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/libs/ntl/ntl_ZZ_p.pxd b/src/sage/libs/ntl/ntl_ZZ_p.pxd index a92c9766112..249278f5e67 100644 --- a/src/sage/libs/ntl/ntl_ZZ_p.pxd +++ b/src/sage/libs/ntl/ntl_ZZ_p.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from sage.libs.ntl.types cimport ZZ_p_c from sage.libs.ntl.ntl_ZZ_pContext cimport ntl_ZZ_pContext_class diff --git a/src/sage/libs/ntl/ntl_ZZ_p.pyx b/src/sage/libs/ntl/ntl_ZZ_p.pyx index cca767303f7..79a73633a6f 100644 --- a/src/sage/libs/ntl/ntl_ZZ_p.pyx +++ b/src/sage/libs/ntl/ntl_ZZ_p.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: libraries = NTL_LIBRARIES gmp m # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/libs/ntl/ntl_ZZ_pContext.pxd b/src/sage/libs/ntl/ntl_ZZ_pContext.pxd index d60cab91d55..6862e7701a3 100644 --- a/src/sage/libs/ntl/ntl_ZZ_pContext.pxd +++ b/src/sage/libs/ntl/ntl_ZZ_pContext.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from sage.libs.ntl.types cimport ZZ_pContext_c from sage.libs.ntl.ntl_ZZ cimport ntl_ZZ from sage.libs.ntl.types cimport ZZ_c diff --git a/src/sage/libs/ntl/ntl_ZZ_pContext.pyx b/src/sage/libs/ntl/ntl_ZZ_pContext.pyx index 52c04e277cd..266d4c819f4 100644 --- a/src/sage/libs/ntl/ntl_ZZ_pContext.pyx +++ b/src/sage/libs/ntl/ntl_ZZ_pContext.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: libraries = NTL_LIBRARIES gmp m # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/libs/ntl/ntl_ZZ_pE.pxd b/src/sage/libs/ntl/ntl_ZZ_pE.pxd index b2a1aa70293..9cd7fd659cf 100644 --- a/src/sage/libs/ntl/ntl_ZZ_pE.pxd +++ b/src/sage/libs/ntl/ntl_ZZ_pE.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from sage.libs.ntl.types cimport ZZ_pE_c from sage.libs.ntl.ntl_ZZ_pEContext cimport ntl_ZZ_pEContext_class from sage.libs.ntl.ntl_ZZ_pX cimport ntl_ZZ_pX diff --git a/src/sage/libs/ntl/ntl_ZZ_pE.pyx b/src/sage/libs/ntl/ntl_ZZ_pE.pyx index b0882217e86..87d4309c28f 100644 --- a/src/sage/libs/ntl/ntl_ZZ_pE.pyx +++ b/src/sage/libs/ntl/ntl_ZZ_pE.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: libraries = NTL_LIBRARIES gmp m # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/libs/ntl/ntl_ZZ_pEContext.pxd b/src/sage/libs/ntl/ntl_ZZ_pEContext.pxd index 70041817a63..8db9e1e8741 100644 --- a/src/sage/libs/ntl/ntl_ZZ_pEContext.pxd +++ b/src/sage/libs/ntl/ntl_ZZ_pEContext.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from sage.libs.ntl.types cimport ZZ_pContext_c, ZZ_pEContext_c from sage.libs.ntl.ntl_ZZ_pContext cimport ntl_ZZ_pContext_class from sage.libs.ntl.ntl_ZZ_pX cimport ntl_ZZ_pX diff --git a/src/sage/libs/ntl/ntl_ZZ_pEContext.pyx b/src/sage/libs/ntl/ntl_ZZ_pEContext.pyx index 03ff00f21d4..01a5260fe5e 100644 --- a/src/sage/libs/ntl/ntl_ZZ_pEContext.pyx +++ b/src/sage/libs/ntl/ntl_ZZ_pEContext.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: libraries = NTL_LIBRARIES gmp m # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/libs/ntl/ntl_ZZ_pEX.pxd b/src/sage/libs/ntl/ntl_ZZ_pEX.pxd index 26ef2baf302..075cab078a3 100644 --- a/src/sage/libs/ntl/ntl_ZZ_pEX.pxd +++ b/src/sage/libs/ntl/ntl_ZZ_pEX.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from sage.libs.ntl.types cimport ZZ_pEX_c from sage.libs.ntl.ntl_ZZ_pEContext cimport ntl_ZZ_pEContext_class diff --git a/src/sage/libs/ntl/ntl_ZZ_pEX.pyx b/src/sage/libs/ntl/ntl_ZZ_pEX.pyx index 6ebde955aa3..edd70969080 100644 --- a/src/sage/libs/ntl/ntl_ZZ_pEX.pyx +++ b/src/sage/libs/ntl/ntl_ZZ_pEX.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: libraries = NTL_LIBRARIES gmp m # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/libs/ntl/ntl_ZZ_pEX_linkage.pxi b/src/sage/libs/ntl/ntl_ZZ_pEX_linkage.pxi index 36c87c75efa..97bfbac9ee0 100644 --- a/src/sage/libs/ntl/ntl_ZZ_pEX_linkage.pxi +++ b/src/sage/libs/ntl/ntl_ZZ_pEX_linkage.pxi @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl r""" Linkage for arithmetic with NTL's ZZ_pEX elements. diff --git a/src/sage/libs/ntl/ntl_ZZ_pX.pxd b/src/sage/libs/ntl/ntl_ZZ_pX.pxd index 38792bca2d1..07edb48406d 100644 --- a/src/sage/libs/ntl/ntl_ZZ_pX.pxd +++ b/src/sage/libs/ntl/ntl_ZZ_pX.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from sage.libs.ntl.ZZ_pX cimport * from sage.libs.ntl.ntl_ZZ_pContext cimport ntl_ZZ_pContext_class diff --git a/src/sage/libs/ntl/ntl_ZZ_pX.pyx b/src/sage/libs/ntl/ntl_ZZ_pX.pyx index 3422239aaac..fed655dffe8 100644 --- a/src/sage/libs/ntl/ntl_ZZ_pX.pyx +++ b/src/sage/libs/ntl/ntl_ZZ_pX.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: libraries = NTL_LIBRARIES gmp m # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/libs/ntl/ntl_lzz_p.pxd b/src/sage/libs/ntl/ntl_lzz_p.pxd index 6b4a6b8d3f0..85228b20c79 100644 --- a/src/sage/libs/ntl/ntl_lzz_p.pxd +++ b/src/sage/libs/ntl/ntl_lzz_p.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from sage.libs.ntl.lzz_p cimport * from sage.libs.ntl.ntl_lzz_pContext cimport ntl_zz_pContext_class diff --git a/src/sage/libs/ntl/ntl_lzz_p.pyx b/src/sage/libs/ntl/ntl_lzz_p.pyx index 0f7fd8fd5e3..d9ea533b2ae 100644 --- a/src/sage/libs/ntl/ntl_lzz_p.pyx +++ b/src/sage/libs/ntl/ntl_lzz_p.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: libraries = NTL_LIBRARIES gmp m # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/libs/ntl/ntl_lzz_pContext.pxd b/src/sage/libs/ntl/ntl_lzz_pContext.pxd index 3fd7452197d..075f7dfbfdf 100644 --- a/src/sage/libs/ntl/ntl_lzz_pContext.pxd +++ b/src/sage/libs/ntl/ntl_lzz_pContext.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from sage.libs.ntl.types cimport zz_pContext_c cdef class ntl_zz_pContext_class(): diff --git a/src/sage/libs/ntl/ntl_lzz_pContext.pyx b/src/sage/libs/ntl/ntl_lzz_pContext.pyx index 2c1c941b9e8..97751af9741 100644 --- a/src/sage/libs/ntl/ntl_lzz_pContext.pyx +++ b/src/sage/libs/ntl/ntl_lzz_pContext.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: libraries = NTL_LIBRARIES gmp m # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/libs/ntl/ntl_lzz_pX.pxd b/src/sage/libs/ntl/ntl_lzz_pX.pxd index 2cc09419fe5..d59e092bc5d 100644 --- a/src/sage/libs/ntl/ntl_lzz_pX.pxd +++ b/src/sage/libs/ntl/ntl_lzz_pX.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from sage.libs.ntl.lzz_p cimport * from sage.libs.ntl.lzz_pX cimport * diff --git a/src/sage/libs/ntl/ntl_lzz_pX.pyx b/src/sage/libs/ntl/ntl_lzz_pX.pyx index bbcd9f14dec..9b87ff22843 100644 --- a/src/sage/libs/ntl/ntl_lzz_pX.pyx +++ b/src/sage/libs/ntl/ntl_lzz_pX.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: libraries = NTL_LIBRARIES gmp m # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/libs/ntl/ntl_mat_GF2.pxd b/src/sage/libs/ntl/ntl_mat_GF2.pxd index 4041f9f8f14..619baec72a9 100644 --- a/src/sage/libs/ntl/ntl_mat_GF2.pxd +++ b/src/sage/libs/ntl/ntl_mat_GF2.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from sage.libs.ntl.types cimport mat_GF2_c from sage.libs.ntl.ntl_GF2 cimport ntl_GF2 diff --git a/src/sage/libs/ntl/ntl_mat_GF2.pyx b/src/sage/libs/ntl/ntl_mat_GF2.pyx index 71d4f8b7491..1ec23831cb0 100644 --- a/src/sage/libs/ntl/ntl_mat_GF2.pyx +++ b/src/sage/libs/ntl/ntl_mat_GF2.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: libraries = NTL_LIBRARIES gmp m # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/libs/ntl/ntl_mat_GF2E.pxd b/src/sage/libs/ntl/ntl_mat_GF2E.pxd index 15415965c66..3124765f505 100644 --- a/src/sage/libs/ntl/ntl_mat_GF2E.pxd +++ b/src/sage/libs/ntl/ntl_mat_GF2E.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from sage.libs.ntl.types cimport mat_GF2E_c from sage.libs.ntl.ntl_GF2EContext cimport ntl_GF2EContext_class from sage.libs.ntl.ntl_GF2E cimport ntl_GF2E diff --git a/src/sage/libs/ntl/ntl_mat_GF2E.pyx b/src/sage/libs/ntl/ntl_mat_GF2E.pyx index 0588eaaa7a3..6ff93d47b6e 100644 --- a/src/sage/libs/ntl/ntl_mat_GF2E.pyx +++ b/src/sage/libs/ntl/ntl_mat_GF2E.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: libraries = NTL_LIBRARIES gmp m # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/libs/ntl/ntl_mat_ZZ.pxd b/src/sage/libs/ntl/ntl_mat_ZZ.pxd index 472ef698704..bb51160564a 100644 --- a/src/sage/libs/ntl/ntl_mat_ZZ.pxd +++ b/src/sage/libs/ntl/ntl_mat_ZZ.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from sage.libs.ntl.types cimport mat_ZZ_c cdef class ntl_mat_ZZ(): diff --git a/src/sage/libs/ntl/ntl_mat_ZZ.pyx b/src/sage/libs/ntl/ntl_mat_ZZ.pyx index 349055dc182..d75e513e185 100644 --- a/src/sage/libs/ntl/ntl_mat_ZZ.pyx +++ b/src/sage/libs/ntl/ntl_mat_ZZ.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: libraries = NTL_LIBRARIES gmp m # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/libs/ntl/ntl_tools.pxd b/src/sage/libs/ntl/ntl_tools.pxd index 3cb8c0567f2..ae88c987f42 100644 --- a/src/sage/libs/ntl/ntl_tools.pxd +++ b/src/sage/libs/ntl/ntl_tools.pxd @@ -1,2 +1,3 @@ +# sage_setup: distribution = sagemath-ntl cdef extern from "NTL/tools.h" namespace "NTL": void (*ErrorMsgCallback)(const char *) except * diff --git a/src/sage/libs/ntl/types.pxd b/src/sage/libs/ntl/types.pxd index 22e16968943..ed7f61beddb 100644 --- a/src/sage/libs/ntl/types.pxd +++ b/src/sage/libs/ntl/types.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: depends = NTL/ZZ.h cdef extern from "ntlwrap.h": diff --git a/src/sage/libs/ntl/vec_GF2.pxd b/src/sage/libs/ntl/vec_GF2.pxd index 81a3736b49f..38d1751410d 100644 --- a/src/sage/libs/ntl/vec_GF2.pxd +++ b/src/sage/libs/ntl/vec_GF2.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from sage.libs.ntl.types cimport vec_GF2_c, GF2_c diff --git a/src/sage/libs/ntl/vec_GF2E.pxd b/src/sage/libs/ntl/vec_GF2E.pxd index 8e53bad0517..2d0d6436d51 100644 --- a/src/sage/libs/ntl/vec_GF2E.pxd +++ b/src/sage/libs/ntl/vec_GF2E.pxd @@ -1 +1,2 @@ +# sage_setup: distribution = sagemath-ntl from sage.libs.ntl.types cimport vec_GF2E_c diff --git a/src/sage/libs/pari/__init__.py b/src/sage/libs/pari/__init__.py index 44d159ef3c1..9ece55f0ba3 100644 --- a/src/sage/libs/pari/__init__.py +++ b/src/sage/libs/pari/__init__.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari # sage.doctest: needs sage.rings.real_mpfr """ Interface between Sage and PARI diff --git a/src/sage/libs/pari/all.py b/src/sage/libs/pari/all.py index 8bcf5d827df..6203991d297 100644 --- a/src/sage/libs/pari/all.py +++ b/src/sage/libs/pari/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari from cypari2.gen import Gen as pari_gen from cypari2 import PariError from . import pari diff --git a/src/sage/libs/pari/convert_flint.pxd b/src/sage/libs/pari/convert_flint.pxd index 3d6003f56bd..c11730fc79f 100644 --- a/src/sage/libs/pari/convert_flint.pxd +++ b/src/sage/libs/pari/convert_flint.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint from cypari2.types cimport GEN from cypari2.gen cimport Gen from sage.libs.flint.types cimport fmpz_t, fmpz_mat_t, fmpq_t, fmpq_mat_t diff --git a/src/sage/libs/pari/convert_flint.pyx b/src/sage/libs/pari/convert_flint.pyx index c8e1ddb00cf..ec09a86683e 100644 --- a/src/sage/libs/pari/convert_flint.pyx +++ b/src/sage/libs/pari/convert_flint.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint """ Convert PARI objects to/from Flint objects diff --git a/src/sage/libs/pari/convert_gmp.pxd b/src/sage/libs/pari/convert_gmp.pxd index b745a823ab5..0dc97a2405f 100644 --- a/src/sage/libs/pari/convert_gmp.pxd +++ b/src/sage/libs/pari/convert_gmp.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari from cypari2.types cimport GEN from cypari2.gen cimport Gen from sage.libs.gmp.types cimport mpz_t, mpq_t, mpz_ptr, mpq_ptr diff --git a/src/sage/libs/pari/convert_gmp.pyx b/src/sage/libs/pari/convert_gmp.pyx index 8be1dad5cb9..9cea72ac0cf 100644 --- a/src/sage/libs/pari/convert_gmp.pyx +++ b/src/sage/libs/pari/convert_gmp.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari """ Convert PARI objects to/from GMP objects diff --git a/src/sage/libs/pari/convert_sage.pxd b/src/sage/libs/pari/convert_sage.pxd index ffa9c0ef6c0..0e4173103dd 100644 --- a/src/sage/libs/pari/convert_sage.pxd +++ b/src/sage/libs/pari/convert_sage.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari from cypari2.gen cimport Gen from sage.rings.integer cimport Integer from sage.rings.rational cimport Rational diff --git a/src/sage/libs/pari/convert_sage.pyx b/src/sage/libs/pari/convert_sage.pyx index 3f21ae46ab4..68341ae819b 100644 --- a/src/sage/libs/pari/convert_sage.pyx +++ b/src/sage/libs/pari/convert_sage.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari r""" Convert PARI objects to Sage types """ diff --git a/src/sage/libs/pari/convert_sage_complex_double.pxd b/src/sage/libs/pari/convert_sage_complex_double.pxd index 803892b274a..1980c2e4bd2 100644 --- a/src/sage/libs/pari/convert_sage_complex_double.pxd +++ b/src/sage/libs/pari/convert_sage_complex_double.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari from cypari2.gen cimport Gen from sage.rings.complex_double cimport ComplexDoubleElement diff --git a/src/sage/libs/pari/convert_sage_complex_double.pyx b/src/sage/libs/pari/convert_sage_complex_double.pyx index b97c3831c75..ab889b84cc2 100644 --- a/src/sage/libs/pari/convert_sage_complex_double.pyx +++ b/src/sage/libs/pari/convert_sage_complex_double.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari # sage.doctest: needs sage.rings.complex_double from cysignals.signals cimport sig_on, sig_off diff --git a/src/sage/libs/pari/convert_sage_matrix.pyx b/src/sage/libs/pari/convert_sage_matrix.pyx index 9900e26dd64..dd14eb17abf 100644 --- a/src/sage/libs/pari/convert_sage_matrix.pyx +++ b/src/sage/libs/pari/convert_sage_matrix.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari # sage.doctest: needs sage.modules from cypari2.gen cimport Gen diff --git a/src/sage/libs/pari/convert_sage_real_double.pxd b/src/sage/libs/pari/convert_sage_real_double.pxd index df2119d0370..75f726e76a5 100644 --- a/src/sage/libs/pari/convert_sage_real_double.pxd +++ b/src/sage/libs/pari/convert_sage_real_double.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari from cypari2.gen cimport Gen from sage.rings.real_double cimport RealDoubleElement diff --git a/src/sage/libs/pari/convert_sage_real_double.pyx b/src/sage/libs/pari/convert_sage_real_double.pyx index ee7eba3f4a8..d13d38057eb 100644 --- a/src/sage/libs/pari/convert_sage_real_double.pyx +++ b/src/sage/libs/pari/convert_sage_real_double.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari from cypari2.convert cimport new_gen_from_double cpdef Gen new_gen_from_real_double_element(RealDoubleElement self) noexcept: diff --git a/src/sage/libs/pari/convert_sage_real_mpfr.pxd b/src/sage/libs/pari/convert_sage_real_mpfr.pxd index a7674309255..d3e08a7ba96 100644 --- a/src/sage/libs/pari/convert_sage_real_mpfr.pxd +++ b/src/sage/libs/pari/convert_sage_real_mpfr.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari from cypari2.gen cimport Gen from sage.rings.real_mpfr cimport RealNumber diff --git a/src/sage/libs/pari/convert_sage_real_mpfr.pyx b/src/sage/libs/pari/convert_sage_real_mpfr.pyx index 119944a5209..e480077caef 100644 --- a/src/sage/libs/pari/convert_sage_real_mpfr.pyx +++ b/src/sage/libs/pari/convert_sage_real_mpfr.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari # sage.doctest: needs sage.rings.real_mpfr from cypari2.stack cimport new_gen diff --git a/src/sage/libs/pari/misc.pxd b/src/sage/libs/pari/misc.pxd index da162742f1d..a82de140e50 100644 --- a/src/sage/libs/pari/misc.pxd +++ b/src/sage/libs/pari/misc.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari from cypari2.gen cimport Gen cdef Gen new_t_POL_from_int_star(int* vals, unsigned long length, long varnum) noexcept diff --git a/src/sage/libs/pari/misc.pyx b/src/sage/libs/pari/misc.pyx index 02fd8403b8e..250c305d61c 100644 --- a/src/sage/libs/pari/misc.pyx +++ b/src/sage/libs/pari/misc.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari from cysignals.signals cimport sig_on from cypari2.paridecl cimport * from cypari2.stack cimport new_gen diff --git a/src/sage/libs/pari/tests.py b/src/sage/libs/pari/tests.py index 5605d232d9e..72eb12c93e2 100644 --- a/src/sage/libs/pari/tests.py +++ b/src/sage/libs/pari/tests.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari r""" Tests for the Sage <-> PARI interface diff --git a/src/sage/libs/polybori/__init__.pxd b/src/sage/libs/polybori/__init__.pxd index 361d7520c13..bc6ce2d1ff6 100644 --- a/src/sage/libs/polybori/__init__.pxd +++ b/src/sage/libs/polybori/__init__.pxd @@ -1 +1,2 @@ +# sage_setup: distribution = sagemath-brial # Insert a comment here to prevent repo corruption. diff --git a/src/sage/libs/polybori/decl.pxd b/src/sage/libs/polybori/decl.pxd index dd6a3aaf0b6..b516710851c 100644 --- a/src/sage/libs/polybori/decl.pxd +++ b/src/sage/libs/polybori/decl.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-brial # distutils: language = c++ # distutils: extra_compile_args = -std=c++11 diff --git a/src/sage/libs/pynac/__init__.py b/src/sage/libs/pynac/__init__.py index e69de29bb2d..332eaf1cdb6 100644 --- a/src/sage/libs/pynac/__init__.py +++ b/src/sage/libs/pynac/__init__.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-symbolics diff --git a/src/sage/libs/pynac/pynac.py b/src/sage/libs/pynac/pynac.py index ae39f63c4c2..dbc8660b51c 100644 --- a/src/sage/libs/pynac/pynac.py +++ b/src/sage/libs/pynac/pynac.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Interface to the pynac library (deprecated module) diff --git a/src/sage/libs/singular/__init__.py b/src/sage/libs/singular/__init__.py index e69de29bb2d..84ec2b51067 100644 --- a/src/sage/libs/singular/__init__.py +++ b/src/sage/libs/singular/__init__.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-singular diff --git a/src/sage/libs/singular/decl.pxd b/src/sage/libs/singular/decl.pxd index e36216d6395..27ddad438fc 100644 --- a/src/sage/libs/singular/decl.pxd +++ b/src/sage/libs/singular/decl.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-singular # distutils: include_dirs = SINGULAR_INCDIR # distutils: extra_compile_args = SINGULAR_CFLAGS # distutils: libraries = SINGULAR_LIBRARIES diff --git a/src/sage/libs/singular/function.pxd b/src/sage/libs/singular/function.pxd index 29748c039c6..7d35241de45 100644 --- a/src/sage/libs/singular/function.pxd +++ b/src/sage/libs/singular/function.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-singular """ Direct Access to Singular's Functions via libSingular diff --git a/src/sage/libs/singular/function.pyx b/src/sage/libs/singular/function.pyx index ac4bde0c20b..2a6192aff47 100644 --- a/src/sage/libs/singular/function.pyx +++ b/src/sage/libs/singular/function.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-singular """ libSingular: Functions diff --git a/src/sage/libs/singular/function_factory.py b/src/sage/libs/singular/function_factory.py index c4b0b52372f..09d45a85e97 100644 --- a/src/sage/libs/singular/function_factory.py +++ b/src/sage/libs/singular/function_factory.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-singular """ libSingular: Function Factory diff --git a/src/sage/libs/singular/groebner_strategy.pxd b/src/sage/libs/singular/groebner_strategy.pxd index 391f11aee97..09947fe4543 100644 --- a/src/sage/libs/singular/groebner_strategy.pxd +++ b/src/sage/libs/singular/groebner_strategy.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-singular from sage.libs.singular.decl cimport skStrategy, ring from sage.rings.polynomial.multi_polynomial_libsingular cimport \ diff --git a/src/sage/libs/singular/groebner_strategy.pyx b/src/sage/libs/singular/groebner_strategy.pyx index 40a0a0f939d..28032720598 100644 --- a/src/sage/libs/singular/groebner_strategy.pyx +++ b/src/sage/libs/singular/groebner_strategy.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-singular """ Singular's Groebner Strategy Objects diff --git a/src/sage/libs/singular/option.pyx b/src/sage/libs/singular/option.pyx index d35415c2864..a21bf28a668 100644 --- a/src/sage/libs/singular/option.pyx +++ b/src/sage/libs/singular/option.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-singular """ libSingular: Options diff --git a/src/sage/libs/singular/polynomial.pxd b/src/sage/libs/singular/polynomial.pxd index df27179da54..139119c7b19 100644 --- a/src/sage/libs/singular/polynomial.pxd +++ b/src/sage/libs/singular/polynomial.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-singular """ Wrapper for Singular's Polynomial Arithmetic diff --git a/src/sage/libs/singular/polynomial.pyx b/src/sage/libs/singular/polynomial.pyx index d208aa9a37c..bffcbab7dd2 100644 --- a/src/sage/libs/singular/polynomial.pyx +++ b/src/sage/libs/singular/polynomial.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-singular """ Wrapper for Singular's Polynomial Arithmetic diff --git a/src/sage/libs/singular/ring.pxd b/src/sage/libs/singular/ring.pxd index 70ff788f21c..3801b867da4 100644 --- a/src/sage/libs/singular/ring.pxd +++ b/src/sage/libs/singular/ring.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-singular """ Wrapper for Singular's Rings diff --git a/src/sage/libs/singular/ring.pyx b/src/sage/libs/singular/ring.pyx index 494fd2c0caf..a6a42433cb7 100644 --- a/src/sage/libs/singular/ring.pyx +++ b/src/sage/libs/singular/ring.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-singular """ Wrapper for Singular's Rings diff --git a/src/sage/libs/singular/singular.pxd b/src/sage/libs/singular/singular.pxd index d943a1018a2..e718b8c3e9e 100644 --- a/src/sage/libs/singular/singular.pxd +++ b/src/sage/libs/singular/singular.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-singular from sage.libs.singular.decl cimport ring, poly, number, intvec from sage.libs.singular.function cimport Resolution diff --git a/src/sage/libs/singular/singular.pyx b/src/sage/libs/singular/singular.pyx index cf0124e0a35..84cf2c0f8e0 100644 --- a/src/sage/libs/singular/singular.pyx +++ b/src/sage/libs/singular/singular.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-singular """ libSingular: Conversion Routines and Initialisation diff --git a/src/sage/libs/singular/standard_options.py b/src/sage/libs/singular/standard_options.py index 5d74da3ce3a..5a45260345b 100644 --- a/src/sage/libs/singular/standard_options.py +++ b/src/sage/libs/singular/standard_options.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-singular """ Highlevel functions for managing options of the libSingular interface diff --git a/src/sage/libs/symmetrica/__init__.py b/src/sage/libs/symmetrica/__init__.py index e69de29bb2d..28c48d66b20 100644 --- a/src/sage/libs/symmetrica/__init__.py +++ b/src/sage/libs/symmetrica/__init__.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-combinat diff --git a/src/sage/libs/symmetrica/all.py b/src/sage/libs/symmetrica/all.py index 7c5215f6444..1676e81c1dc 100644 --- a/src/sage/libs/symmetrica/all.py +++ b/src/sage/libs/symmetrica/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat #from symmetrica import * from .symmetrica import start diff --git a/src/sage/libs/symmetrica/kostka.pxi b/src/sage/libs/symmetrica/kostka.pxi index 690e5d5a096..76409a73383 100644 --- a/src/sage/libs/symmetrica/kostka.pxi +++ b/src/sage/libs/symmetrica/kostka.pxi @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat from cpython.object cimport * from cysignals.signals cimport sig_on, sig_off diff --git a/src/sage/libs/symmetrica/part.pxi b/src/sage/libs/symmetrica/part.pxi index 37a3c0ff8f0..28e49fd261c 100644 --- a/src/sage/libs/symmetrica/part.pxi +++ b/src/sage/libs/symmetrica/part.pxi @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat cdef extern from 'symmetrica/def.h': INT strict_to_odd_part(OP s, OP o) INT odd_to_strict_part(OP o, OP s) diff --git a/src/sage/libs/symmetrica/plet.pxi b/src/sage/libs/symmetrica/plet.pxi index b1f8450c621..a1c4a4cf785 100644 --- a/src/sage/libs/symmetrica/plet.pxi +++ b/src/sage/libs/symmetrica/plet.pxi @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat cdef extern from 'symmetrica/def.h': INT plethysm(OP s1, OP s2, OP res) INT schur_schur_plet(OP p1, OP p2, OP res) diff --git a/src/sage/libs/symmetrica/sab.pxi b/src/sage/libs/symmetrica/sab.pxi index de2838e7ed5..3750d9263d9 100644 --- a/src/sage/libs/symmetrica/sab.pxi +++ b/src/sage/libs/symmetrica/sab.pxi @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat cdef extern from 'symmetrica/def.h': INT dimension_symmetrization(OP n, OP part, OP a) INT bdg(OP part, OP perm, OP D) diff --git a/src/sage/libs/symmetrica/sb.pxi b/src/sage/libs/symmetrica/sb.pxi index 31faf7e3d96..b3204d4a7ac 100644 --- a/src/sage/libs/symmetrica/sb.pxi +++ b/src/sage/libs/symmetrica/sb.pxi @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat cdef extern from 'symmetrica/def.h': INT mult_schubert_schubert(OP a, OP b, OP result) INT m_perm_sch(OP a, OP b) diff --git a/src/sage/libs/symmetrica/sc.pxi b/src/sage/libs/symmetrica/sc.pxi index 4d9fa4f009d..f1a20b359e0 100644 --- a/src/sage/libs/symmetrica/sc.pxi +++ b/src/sage/libs/symmetrica/sc.pxi @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat cdef extern from 'symmetrica/def.h': INT chartafel(OP degree, OP result) INT charvalue(OP irred, OP cls, OP result, OP table) diff --git a/src/sage/libs/symmetrica/schur.pxi b/src/sage/libs/symmetrica/schur.pxi index 501acf5b7e0..9e8ca73cd80 100644 --- a/src/sage/libs/symmetrica/schur.pxi +++ b/src/sage/libs/symmetrica/schur.pxi @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat cdef extern from 'symmetrica/def.h': INT outerproduct_schur(OP parta, OP partb, OP result) INT dimension_schur(OP a, OP result) diff --git a/src/sage/libs/symmetrica/symmetrica.pxi b/src/sage/libs/symmetrica/symmetrica.pxi index 60c3ec23070..4edac26b7ad 100644 --- a/src/sage/libs/symmetrica/symmetrica.pxi +++ b/src/sage/libs/symmetrica/symmetrica.pxi @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # We put all definitions together, whether they appear in def.h or # macro.h cdef extern from 'symmetrica/def.h': diff --git a/src/sage/libs/symmetrica/symmetrica.pyx b/src/sage/libs/symmetrica/symmetrica.pyx index 7ca41fbc82b..56e3ede0bf3 100644 --- a/src/sage/libs/symmetrica/symmetrica.pyx +++ b/src/sage/libs/symmetrica/symmetrica.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # distutils: libraries = symmetrica """ Symmetrica library diff --git a/src/sage/manifolds/all.py b/src/sage/manifolds/all.py index 68a489d08d0..52f4a2e4b7c 100644 --- a/src/sage/manifolds/all.py +++ b/src/sage/manifolds/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics from sage.misc.lazy_import import lazy_import lazy_import('sage.manifolds.manifold', 'Manifold') lazy_import('sage.manifolds.differentiable.examples.real_line', ('OpenInterval', 'RealLine'), diff --git a/src/sage/manifolds/calculus_method.py b/src/sage/manifolds/calculus_method.py index ddbad8a11ef..57dea6677a4 100644 --- a/src/sage/manifolds/calculus_method.py +++ b/src/sage/manifolds/calculus_method.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Coordinate calculus methods diff --git a/src/sage/manifolds/catalog.py b/src/sage/manifolds/catalog.py index bb09ed8885d..9cad91acc65 100644 --- a/src/sage/manifolds/catalog.py +++ b/src/sage/manifolds/catalog.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Manifolds Catalog diff --git a/src/sage/manifolds/chart.py b/src/sage/manifolds/chart.py index e625299a6cc..9a3087f1cc3 100644 --- a/src/sage/manifolds/chart.py +++ b/src/sage/manifolds/chart.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Coordinate Charts diff --git a/src/sage/manifolds/chart_func.py b/src/sage/manifolds/chart_func.py index 6363ed61841..42a9c5ced84 100644 --- a/src/sage/manifolds/chart_func.py +++ b/src/sage/manifolds/chart_func.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Chart Functions diff --git a/src/sage/manifolds/continuous_map.py b/src/sage/manifolds/continuous_map.py index b6404a9bd94..51ad8ad90ec 100644 --- a/src/sage/manifolds/continuous_map.py +++ b/src/sage/manifolds/continuous_map.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Continuous Maps Between Topological Manifolds diff --git a/src/sage/manifolds/continuous_map_image.py b/src/sage/manifolds/continuous_map_image.py index 303117f7978..eebd214dbb6 100644 --- a/src/sage/manifolds/continuous_map_image.py +++ b/src/sage/manifolds/continuous_map_image.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Images of Manifold Subsets under Continuous Maps as Subsets of the Codomain diff --git a/src/sage/manifolds/differentiable/affine_connection.py b/src/sage/manifolds/differentiable/affine_connection.py index 1a45b219872..e29e8e1f984 100644 --- a/src/sage/manifolds/differentiable/affine_connection.py +++ b/src/sage/manifolds/differentiable/affine_connection.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Affine Connections diff --git a/src/sage/manifolds/differentiable/all.py b/src/sage/manifolds/differentiable/all.py index e69de29bb2d..332eaf1cdb6 100644 --- a/src/sage/manifolds/differentiable/all.py +++ b/src/sage/manifolds/differentiable/all.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-symbolics diff --git a/src/sage/manifolds/differentiable/automorphismfield.py b/src/sage/manifolds/differentiable/automorphismfield.py index 911ee84aa4d..ea36f794eea 100644 --- a/src/sage/manifolds/differentiable/automorphismfield.py +++ b/src/sage/manifolds/differentiable/automorphismfield.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Tangent-Space Automorphism Fields diff --git a/src/sage/manifolds/differentiable/automorphismfield_group.py b/src/sage/manifolds/differentiable/automorphismfield_group.py index c0e782798aa..8293a71e31b 100644 --- a/src/sage/manifolds/differentiable/automorphismfield_group.py +++ b/src/sage/manifolds/differentiable/automorphismfield_group.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Group of Tangent-Space Automorphism Fields diff --git a/src/sage/manifolds/differentiable/bundle_connection.py b/src/sage/manifolds/differentiable/bundle_connection.py index a3353b820cb..e16a3485b05 100644 --- a/src/sage/manifolds/differentiable/bundle_connection.py +++ b/src/sage/manifolds/differentiable/bundle_connection.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Bundle Connections diff --git a/src/sage/manifolds/differentiable/characteristic_cohomology_class.py b/src/sage/manifolds/differentiable/characteristic_cohomology_class.py index 91ebbf00ccc..fa8642eadaa 100644 --- a/src/sage/manifolds/differentiable/characteristic_cohomology_class.py +++ b/src/sage/manifolds/differentiable/characteristic_cohomology_class.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Characteristic cohomology classes diff --git a/src/sage/manifolds/differentiable/chart.py b/src/sage/manifolds/differentiable/chart.py index a40ebb8e5b2..83be8302afd 100644 --- a/src/sage/manifolds/differentiable/chart.py +++ b/src/sage/manifolds/differentiable/chart.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Coordinate Charts on Differentiable Manifolds diff --git a/src/sage/manifolds/differentiable/curve.py b/src/sage/manifolds/differentiable/curve.py index 7ea264565ae..44f621f8b83 100644 --- a/src/sage/manifolds/differentiable/curve.py +++ b/src/sage/manifolds/differentiable/curve.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Curves in Manifolds diff --git a/src/sage/manifolds/differentiable/de_rham_cohomology.py b/src/sage/manifolds/differentiable/de_rham_cohomology.py index 403f9f37f00..845a6225625 100644 --- a/src/sage/manifolds/differentiable/de_rham_cohomology.py +++ b/src/sage/manifolds/differentiable/de_rham_cohomology.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" De Rham Cohomology diff --git a/src/sage/manifolds/differentiable/degenerate.py b/src/sage/manifolds/differentiable/degenerate.py index 82de8c39d74..34a146454bc 100644 --- a/src/sage/manifolds/differentiable/degenerate.py +++ b/src/sage/manifolds/differentiable/degenerate.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Degenerate manifolds """ diff --git a/src/sage/manifolds/differentiable/degenerate_submanifold.py b/src/sage/manifolds/differentiable/degenerate_submanifold.py index 581162b88f5..ee2ef289a89 100644 --- a/src/sage/manifolds/differentiable/degenerate_submanifold.py +++ b/src/sage/manifolds/differentiable/degenerate_submanifold.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Degenerate submanifolds diff --git a/src/sage/manifolds/differentiable/diff_form.py b/src/sage/manifolds/differentiable/diff_form.py index d5d817ab404..1e5136986ee 100644 --- a/src/sage/manifolds/differentiable/diff_form.py +++ b/src/sage/manifolds/differentiable/diff_form.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Differential Forms diff --git a/src/sage/manifolds/differentiable/diff_form_module.py b/src/sage/manifolds/differentiable/diff_form_module.py index e11a32d2131..43d39206f72 100644 --- a/src/sage/manifolds/differentiable/diff_form_module.py +++ b/src/sage/manifolds/differentiable/diff_form_module.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Differential Form Modules diff --git a/src/sage/manifolds/differentiable/diff_map.py b/src/sage/manifolds/differentiable/diff_map.py index a6f960c76f8..8343cda20bb 100644 --- a/src/sage/manifolds/differentiable/diff_map.py +++ b/src/sage/manifolds/differentiable/diff_map.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Differentiable Maps between Differentiable Manifolds diff --git a/src/sage/manifolds/differentiable/differentiable_submanifold.py b/src/sage/manifolds/differentiable/differentiable_submanifold.py index 7387ea3a44e..46624e8fc70 100644 --- a/src/sage/manifolds/differentiable/differentiable_submanifold.py +++ b/src/sage/manifolds/differentiable/differentiable_submanifold.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Submanifolds of differentiable manifolds diff --git a/src/sage/manifolds/differentiable/examples/all.py b/src/sage/manifolds/differentiable/examples/all.py index e69de29bb2d..332eaf1cdb6 100644 --- a/src/sage/manifolds/differentiable/examples/all.py +++ b/src/sage/manifolds/differentiable/examples/all.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-symbolics diff --git a/src/sage/manifolds/differentiable/examples/euclidean.py b/src/sage/manifolds/differentiable/examples/euclidean.py index eb96b6da587..494c01849e4 100644 --- a/src/sage/manifolds/differentiable/examples/euclidean.py +++ b/src/sage/manifolds/differentiable/examples/euclidean.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Euclidean Spaces diff --git a/src/sage/manifolds/differentiable/examples/real_line.py b/src/sage/manifolds/differentiable/examples/real_line.py index 10a44c7e149..9967dc10625 100644 --- a/src/sage/manifolds/differentiable/examples/real_line.py +++ b/src/sage/manifolds/differentiable/examples/real_line.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" The Real Line and Open Intervals diff --git a/src/sage/manifolds/differentiable/examples/sphere.py b/src/sage/manifolds/differentiable/examples/sphere.py index 4ccc6f7440b..41cb847cc3a 100644 --- a/src/sage/manifolds/differentiable/examples/sphere.py +++ b/src/sage/manifolds/differentiable/examples/sphere.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Spheres smoothly embedded in Euclidean Space diff --git a/src/sage/manifolds/differentiable/examples/symplectic_space.py b/src/sage/manifolds/differentiable/examples/symplectic_space.py index 623979ed7f3..e92e29d9ab4 100644 --- a/src/sage/manifolds/differentiable/examples/symplectic_space.py +++ b/src/sage/manifolds/differentiable/examples/symplectic_space.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Symplectic vector spaces diff --git a/src/sage/manifolds/differentiable/examples/symplectic_space_test.py b/src/sage/manifolds/differentiable/examples/symplectic_space_test.py index 0372470bd73..01e19bcb351 100644 --- a/src/sage/manifolds/differentiable/examples/symplectic_space_test.py +++ b/src/sage/manifolds/differentiable/examples/symplectic_space_test.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics import sage.all from sage.manifolds.differentiable.symplectic_form import SymplecticForm from sage.manifolds.differentiable.examples.symplectic_space import ( diff --git a/src/sage/manifolds/differentiable/integrated_curve.py b/src/sage/manifolds/differentiable/integrated_curve.py index fe2a6dcb3cc..d83a78a76a6 100644 --- a/src/sage/manifolds/differentiable/integrated_curve.py +++ b/src/sage/manifolds/differentiable/integrated_curve.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics # -*- coding: utf-8 -*- r""" Integrated Curves and Geodesics in Manifolds diff --git a/src/sage/manifolds/differentiable/levi_civita_connection.py b/src/sage/manifolds/differentiable/levi_civita_connection.py index 00ebf69b47f..929ea1bde6a 100644 --- a/src/sage/manifolds/differentiable/levi_civita_connection.py +++ b/src/sage/manifolds/differentiable/levi_civita_connection.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics # -*- coding: utf-8 -*- r""" Levi-Civita Connections diff --git a/src/sage/manifolds/differentiable/manifold.py b/src/sage/manifolds/differentiable/manifold.py index 4b5a793f762..f2b11e66f71 100644 --- a/src/sage/manifolds/differentiable/manifold.py +++ b/src/sage/manifolds/differentiable/manifold.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics # -*- coding: utf-8 -*- r""" Differentiable Manifolds diff --git a/src/sage/manifolds/differentiable/manifold_homset.py b/src/sage/manifolds/differentiable/manifold_homset.py index 20660a01652..1475161de7c 100644 --- a/src/sage/manifolds/differentiable/manifold_homset.py +++ b/src/sage/manifolds/differentiable/manifold_homset.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Sets of Morphisms between Differentiable Manifolds diff --git a/src/sage/manifolds/differentiable/metric.py b/src/sage/manifolds/differentiable/metric.py index 74fdd076e45..87278c3e9ff 100644 --- a/src/sage/manifolds/differentiable/metric.py +++ b/src/sage/manifolds/differentiable/metric.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Pseudo-Riemannian Metrics and Degenerate Metrics diff --git a/src/sage/manifolds/differentiable/mixed_form.py b/src/sage/manifolds/differentiable/mixed_form.py index 7c6872c594b..860e8408b68 100644 --- a/src/sage/manifolds/differentiable/mixed_form.py +++ b/src/sage/manifolds/differentiable/mixed_form.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Mixed Differential Forms diff --git a/src/sage/manifolds/differentiable/mixed_form_algebra.py b/src/sage/manifolds/differentiable/mixed_form_algebra.py index 15bd856c476..762b73fa0a7 100644 --- a/src/sage/manifolds/differentiable/mixed_form_algebra.py +++ b/src/sage/manifolds/differentiable/mixed_form_algebra.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Graded Algebra of Mixed Differential Forms diff --git a/src/sage/manifolds/differentiable/multivector_module.py b/src/sage/manifolds/differentiable/multivector_module.py index 83c741fa8af..92f2a3cbfa1 100644 --- a/src/sage/manifolds/differentiable/multivector_module.py +++ b/src/sage/manifolds/differentiable/multivector_module.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Multivector Field Modules diff --git a/src/sage/manifolds/differentiable/multivectorfield.py b/src/sage/manifolds/differentiable/multivectorfield.py index 87f68f8b1f0..3169252e3f3 100644 --- a/src/sage/manifolds/differentiable/multivectorfield.py +++ b/src/sage/manifolds/differentiable/multivectorfield.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Multivector Fields diff --git a/src/sage/manifolds/differentiable/poisson_tensor.py b/src/sage/manifolds/differentiable/poisson_tensor.py index 41f178dff5c..86c00eb79fe 100644 --- a/src/sage/manifolds/differentiable/poisson_tensor.py +++ b/src/sage/manifolds/differentiable/poisson_tensor.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Poisson tensors diff --git a/src/sage/manifolds/differentiable/pseudo_riemannian.py b/src/sage/manifolds/differentiable/pseudo_riemannian.py index 3b811883cd6..d9028905e97 100644 --- a/src/sage/manifolds/differentiable/pseudo_riemannian.py +++ b/src/sage/manifolds/differentiable/pseudo_riemannian.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Pseudo-Riemannian Manifolds diff --git a/src/sage/manifolds/differentiable/pseudo_riemannian_submanifold.py b/src/sage/manifolds/differentiable/pseudo_riemannian_submanifold.py index b41b8ba4ba8..fb4522b04d8 100644 --- a/src/sage/manifolds/differentiable/pseudo_riemannian_submanifold.py +++ b/src/sage/manifolds/differentiable/pseudo_riemannian_submanifold.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Pseudo-Riemannian submanifolds diff --git a/src/sage/manifolds/differentiable/scalarfield.py b/src/sage/manifolds/differentiable/scalarfield.py index ba5c5d70f2c..08b0e5da099 100644 --- a/src/sage/manifolds/differentiable/scalarfield.py +++ b/src/sage/manifolds/differentiable/scalarfield.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Differentiable Scalar Fields diff --git a/src/sage/manifolds/differentiable/scalarfield_algebra.py b/src/sage/manifolds/differentiable/scalarfield_algebra.py index 44e6e16bff4..a640ce829b0 100644 --- a/src/sage/manifolds/differentiable/scalarfield_algebra.py +++ b/src/sage/manifolds/differentiable/scalarfield_algebra.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Algebra of Differentiable Scalar Fields diff --git a/src/sage/manifolds/differentiable/symplectic_form.py b/src/sage/manifolds/differentiable/symplectic_form.py index 381fab1e72c..e3c3a99d805 100644 --- a/src/sage/manifolds/differentiable/symplectic_form.py +++ b/src/sage/manifolds/differentiable/symplectic_form.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Symplectic structures diff --git a/src/sage/manifolds/differentiable/symplectic_form_test.py b/src/sage/manifolds/differentiable/symplectic_form_test.py index 5bc519af6d3..5b25b439e66 100644 --- a/src/sage/manifolds/differentiable/symplectic_form_test.py +++ b/src/sage/manifolds/differentiable/symplectic_form_test.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics # pylint: disable=missing-function-docstring from _pytest.fixtures import FixtureRequest import pytest diff --git a/src/sage/manifolds/differentiable/tangent_space.py b/src/sage/manifolds/differentiable/tangent_space.py index 98a60cede2a..7a95ad1a09e 100644 --- a/src/sage/manifolds/differentiable/tangent_space.py +++ b/src/sage/manifolds/differentiable/tangent_space.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Tangent Spaces diff --git a/src/sage/manifolds/differentiable/tangent_vector.py b/src/sage/manifolds/differentiable/tangent_vector.py index 97abcea54e1..2d6a848965d 100644 --- a/src/sage/manifolds/differentiable/tangent_vector.py +++ b/src/sage/manifolds/differentiable/tangent_vector.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Tangent Vectors diff --git a/src/sage/manifolds/differentiable/tensorfield.py b/src/sage/manifolds/differentiable/tensorfield.py index a47bd364436..4591f24fa29 100644 --- a/src/sage/manifolds/differentiable/tensorfield.py +++ b/src/sage/manifolds/differentiable/tensorfield.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Tensor Fields diff --git a/src/sage/manifolds/differentiable/tensorfield_module.py b/src/sage/manifolds/differentiable/tensorfield_module.py index 8d31d670137..f3849336a6d 100644 --- a/src/sage/manifolds/differentiable/tensorfield_module.py +++ b/src/sage/manifolds/differentiable/tensorfield_module.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Tensor Field Modules diff --git a/src/sage/manifolds/differentiable/tensorfield_paral.py b/src/sage/manifolds/differentiable/tensorfield_paral.py index 7cf7c40896c..f8832b0a602 100644 --- a/src/sage/manifolds/differentiable/tensorfield_paral.py +++ b/src/sage/manifolds/differentiable/tensorfield_paral.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Tensor Fields with Values on a Parallelizable Manifold diff --git a/src/sage/manifolds/differentiable/tensorfield_paral_test.py b/src/sage/manifolds/differentiable/tensorfield_paral_test.py index 7eda28c5c49..a71a5571fd9 100644 --- a/src/sage/manifolds/differentiable/tensorfield_paral_test.py +++ b/src/sage/manifolds/differentiable/tensorfield_paral_test.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics # pylint: disable=missing-function-docstring,missing-class-docstring import pytest diff --git a/src/sage/manifolds/differentiable/vector_bundle.py b/src/sage/manifolds/differentiable/vector_bundle.py index 18d1169064d..d0497025c07 100644 --- a/src/sage/manifolds/differentiable/vector_bundle.py +++ b/src/sage/manifolds/differentiable/vector_bundle.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Differentiable Vector Bundles diff --git a/src/sage/manifolds/differentiable/vectorfield.py b/src/sage/manifolds/differentiable/vectorfield.py index 04018ba9916..480aa7e5b60 100644 --- a/src/sage/manifolds/differentiable/vectorfield.py +++ b/src/sage/manifolds/differentiable/vectorfield.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Vector Fields diff --git a/src/sage/manifolds/differentiable/vectorfield_module.py b/src/sage/manifolds/differentiable/vectorfield_module.py index ea7307f810d..cf31b332ce1 100644 --- a/src/sage/manifolds/differentiable/vectorfield_module.py +++ b/src/sage/manifolds/differentiable/vectorfield_module.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Vector Field Modules diff --git a/src/sage/manifolds/differentiable/vectorframe.py b/src/sage/manifolds/differentiable/vectorframe.py index a02d69da5d0..98533dfebf6 100644 --- a/src/sage/manifolds/differentiable/vectorframe.py +++ b/src/sage/manifolds/differentiable/vectorframe.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Vector Frames diff --git a/src/sage/manifolds/family.py b/src/sage/manifolds/family.py index 61c74f54469..7fe5c67d396 100644 --- a/src/sage/manifolds/family.py +++ b/src/sage/manifolds/family.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Families of Manifold Objects diff --git a/src/sage/manifolds/local_frame.py b/src/sage/manifolds/local_frame.py index fffe607efda..1cc02af1a0f 100644 --- a/src/sage/manifolds/local_frame.py +++ b/src/sage/manifolds/local_frame.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Local Frames diff --git a/src/sage/manifolds/manifold.py b/src/sage/manifolds/manifold.py index 0e09530ad54..2da8c991fb2 100644 --- a/src/sage/manifolds/manifold.py +++ b/src/sage/manifolds/manifold.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Topological Manifolds diff --git a/src/sage/manifolds/manifold_homset.py b/src/sage/manifolds/manifold_homset.py index 492e460ab47..dae49400068 100644 --- a/src/sage/manifolds/manifold_homset.py +++ b/src/sage/manifolds/manifold_homset.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Sets of Morphisms between Topological Manifolds diff --git a/src/sage/manifolds/operators.py b/src/sage/manifolds/operators.py index dae39bdcad2..1982ca9c0d3 100644 --- a/src/sage/manifolds/operators.py +++ b/src/sage/manifolds/operators.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Operators for vector calculus diff --git a/src/sage/manifolds/point.py b/src/sage/manifolds/point.py index ff0009db15b..7191edb1fd1 100644 --- a/src/sage/manifolds/point.py +++ b/src/sage/manifolds/point.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Points of Topological Manifolds diff --git a/src/sage/manifolds/scalarfield.py b/src/sage/manifolds/scalarfield.py index 102de8caf3c..7efa52499fe 100644 --- a/src/sage/manifolds/scalarfield.py +++ b/src/sage/manifolds/scalarfield.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Scalar Fields diff --git a/src/sage/manifolds/scalarfield_algebra.py b/src/sage/manifolds/scalarfield_algebra.py index d7941fad08c..7830fb4eaef 100644 --- a/src/sage/manifolds/scalarfield_algebra.py +++ b/src/sage/manifolds/scalarfield_algebra.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Algebra of Scalar Fields diff --git a/src/sage/manifolds/section.py b/src/sage/manifolds/section.py index e48b2b5ee29..76bf19fc34e 100644 --- a/src/sage/manifolds/section.py +++ b/src/sage/manifolds/section.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Sections diff --git a/src/sage/manifolds/section_module.py b/src/sage/manifolds/section_module.py index 975113ca2c9..3b14460be58 100644 --- a/src/sage/manifolds/section_module.py +++ b/src/sage/manifolds/section_module.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics # -*- coding: utf-8 -*- r""" Section Modules diff --git a/src/sage/manifolds/structure.py b/src/sage/manifolds/structure.py index dd9fc2a3f8a..8fae887fa7d 100644 --- a/src/sage/manifolds/structure.py +++ b/src/sage/manifolds/structure.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Manifold Structures diff --git a/src/sage/manifolds/subset.py b/src/sage/manifolds/subset.py index cd98b143037..9aaab597f92 100644 --- a/src/sage/manifolds/subset.py +++ b/src/sage/manifolds/subset.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics # -*- coding: utf-8 -*- r""" Subsets of Topological Manifolds diff --git a/src/sage/manifolds/subsets/all.py b/src/sage/manifolds/subsets/all.py index e69de29bb2d..332eaf1cdb6 100644 --- a/src/sage/manifolds/subsets/all.py +++ b/src/sage/manifolds/subsets/all.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-symbolics diff --git a/src/sage/manifolds/subsets/closure.py b/src/sage/manifolds/subsets/closure.py index 4a5c056ef68..965cc576b2f 100644 --- a/src/sage/manifolds/subsets/closure.py +++ b/src/sage/manifolds/subsets/closure.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Topological Closures of Manifold Subsets diff --git a/src/sage/manifolds/subsets/pullback.py b/src/sage/manifolds/subsets/pullback.py index 452b6a2e008..33f0d9b9ec9 100644 --- a/src/sage/manifolds/subsets/pullback.py +++ b/src/sage/manifolds/subsets/pullback.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Manifold Subsets Defined as Pullbacks of Subsets under Continuous Maps """ diff --git a/src/sage/manifolds/topological_submanifold.py b/src/sage/manifolds/topological_submanifold.py index 9b722907152..b2685c77f5e 100644 --- a/src/sage/manifolds/topological_submanifold.py +++ b/src/sage/manifolds/topological_submanifold.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Submanifolds of topological manifolds diff --git a/src/sage/manifolds/trivialization.py b/src/sage/manifolds/trivialization.py index ed3a8b4ed9f..3246eee3fdc 100644 --- a/src/sage/manifolds/trivialization.py +++ b/src/sage/manifolds/trivialization.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Trivializations diff --git a/src/sage/manifolds/utilities.py b/src/sage/manifolds/utilities.py index c15a98ebbce..96327dbb681 100644 --- a/src/sage/manifolds/utilities.py +++ b/src/sage/manifolds/utilities.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Utilities for Calculus diff --git a/src/sage/manifolds/vector_bundle.py b/src/sage/manifolds/vector_bundle.py index b851fa64fe7..1ed23c60140 100644 --- a/src/sage/manifolds/vector_bundle.py +++ b/src/sage/manifolds/vector_bundle.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics # -*- coding: utf-8 -*- r""" Topological Vector Bundle diff --git a/src/sage/manifolds/vector_bundle_fiber.py b/src/sage/manifolds/vector_bundle_fiber.py index 90a59e97169..0e3feb4a9b8 100644 --- a/src/sage/manifolds/vector_bundle_fiber.py +++ b/src/sage/manifolds/vector_bundle_fiber.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Vector Bundle Fibers diff --git a/src/sage/manifolds/vector_bundle_fiber_element.py b/src/sage/manifolds/vector_bundle_fiber_element.py index 048275a8495..010846ec488 100644 --- a/src/sage/manifolds/vector_bundle_fiber_element.py +++ b/src/sage/manifolds/vector_bundle_fiber_element.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Vector Bundle Fiber Elements diff --git a/src/sage/matrix/action.pxd b/src/sage/matrix/action.pxd index d50965dc8f5..befbb54c2d1 100644 --- a/src/sage/matrix/action.pxd +++ b/src/sage/matrix/action.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.structure.element cimport Element, Matrix, Vector from sage.structure.parent cimport Parent from sage.categories.action cimport Action diff --git a/src/sage/matrix/action.pyx b/src/sage/matrix/action.pyx index 11e70f977bb..90e53b56740 100644 --- a/src/sage/matrix/action.pyx +++ b/src/sage/matrix/action.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Actions used by the coercion model for matrix and vector multiplications diff --git a/src/sage/matrix/all.py b/src/sage/matrix/all.py index 041624f3853..ff5d216ed93 100644 --- a/src/sage/matrix/all.py +++ b/src/sage/matrix/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.misc.lazy_import import lazy_import from .matrix_space import MatrixSpace from .constructor import (matrix, Matrix, column_matrix, random_matrix, diff --git a/src/sage/matrix/all__sagemath_meataxe.py b/src/sage/matrix/all__sagemath_meataxe.py index e69de29bb2d..fd1e327ee2f 100644 --- a/src/sage/matrix/all__sagemath_meataxe.py +++ b/src/sage/matrix/all__sagemath_meataxe.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-meataxe diff --git a/src/sage/matrix/args.pxd b/src/sage/matrix/args.pxd index fc26bc35914..691ff2a3c2c 100644 --- a/src/sage/matrix/args.pxd +++ b/src/sage/matrix/args.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from cpython.object cimport PyObject from sage.structure.element cimport Element, Matrix from sage.structure.parent cimport Parent diff --git a/src/sage/matrix/args.pyx b/src/sage/matrix/args.pyx index b69db0fb5a6..6219e11b143 100644 --- a/src/sage/matrix/args.pyx +++ b/src/sage/matrix/args.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # cython: wraparound=False # cython: boundscheck=False """ diff --git a/src/sage/matrix/benchmark.py b/src/sage/matrix/benchmark.py index 5e29a19f48c..fd316cdc532 100644 --- a/src/sage/matrix/benchmark.py +++ b/src/sage/matrix/benchmark.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.flint """ Benchmarks for matrices diff --git a/src/sage/matrix/berlekamp_massey.py b/src/sage/matrix/berlekamp_massey.py index a6fe70c50e6..d84969d556c 100644 --- a/src/sage/matrix/berlekamp_massey.py +++ b/src/sage/matrix/berlekamp_massey.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Minimal Polynomials of Linear Recurrence Sequences diff --git a/src/sage/matrix/change_ring.pyx b/src/sage/matrix/change_ring.pyx index f942b753275..7a26f2a0efa 100644 --- a/src/sage/matrix/change_ring.pyx +++ b/src/sage/matrix/change_ring.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-linbox """ Functions for changing the base ring of matrices quickly """ diff --git a/src/sage/matrix/compute_J_ideal.py b/src/sage/matrix/compute_J_ideal.py index 1983e16c0f5..89b12c9bd58 100644 --- a/src/sage/matrix/compute_J_ideal.py +++ b/src/sage/matrix/compute_J_ideal.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.libs.pari (for charpoly, minimal_polynomial in __init__) r""" `J`-ideals of matrices diff --git a/src/sage/matrix/constructor.pyx b/src/sage/matrix/constructor.pyx index 073b815d6ae..e340c42ab82 100644 --- a/src/sage/matrix/constructor.pyx +++ b/src/sage/matrix/constructor.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # cython: binding=True """ General matrix Constructor and display options diff --git a/src/sage/matrix/docs.py b/src/sage/matrix/docs.py index 6a76d6fb331..8667e053d1f 100644 --- a/src/sage/matrix/docs.py +++ b/src/sage/matrix/docs.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Matrices over an arbitrary ring diff --git a/src/sage/matrix/echelon_matrix.pyx b/src/sage/matrix/echelon_matrix.pyx index 7f5457a7f7b..b544211f8b2 100644 --- a/src/sage/matrix/echelon_matrix.pyx +++ b/src/sage/matrix/echelon_matrix.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Echelon matrices over finite fields. """ diff --git a/src/sage/matrix/matrix.pxd b/src/sage/matrix/matrix.pxd index b67ed5b4969..7899379dc45 100644 --- a/src/sage/matrix/matrix.pxd +++ b/src/sage/matrix/matrix.pxd @@ -1 +1,2 @@ +# sage_setup: distribution = sagemath-modules from sage.matrix.matrix2 cimport Matrix diff --git a/src/sage/matrix/matrix0.pxd b/src/sage/matrix/matrix0.pxd index d2276ef486d..c84bf936a80 100644 --- a/src/sage/matrix/matrix0.pxd +++ b/src/sage/matrix/matrix0.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Generic matrices """ diff --git a/src/sage/matrix/matrix0.pyx b/src/sage/matrix/matrix0.pyx index eb015dac31e..94dba1fe460 100644 --- a/src/sage/matrix/matrix0.pyx +++ b/src/sage/matrix/matrix0.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # -*- coding: utf-8 -*- """ Base class for matrices, part 0 diff --git a/src/sage/matrix/matrix1.pxd b/src/sage/matrix/matrix1.pxd index e3585f9caab..b2b34cb815d 100644 --- a/src/sage/matrix/matrix1.pxd +++ b/src/sage/matrix/matrix1.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.matrix.matrix0 cimport Matrix as Matrix0 cdef class Matrix(Matrix0): diff --git a/src/sage/matrix/matrix1.pyx b/src/sage/matrix/matrix1.pyx index 1193b0a6ca0..1bb8864859c 100644 --- a/src/sage/matrix/matrix1.pyx +++ b/src/sage/matrix/matrix1.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Base class for matrices, part 1 diff --git a/src/sage/matrix/matrix2.pxd b/src/sage/matrix/matrix2.pxd index 1fd85c5f082..da82cf10dd8 100644 --- a/src/sage/matrix/matrix2.pxd +++ b/src/sage/matrix/matrix2.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Generic matrices """ diff --git a/src/sage/matrix/matrix2.pyx b/src/sage/matrix/matrix2.pyx index 0c2aa9eda4b..a2686c5efc7 100644 --- a/src/sage/matrix/matrix2.pyx +++ b/src/sage/matrix/matrix2.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Base class for matrices, part 2 diff --git a/src/sage/matrix/matrix_cdv.pxd b/src/sage/matrix/matrix_cdv.pxd index 2deb72f25a2..c583a3ceb29 100644 --- a/src/sage/matrix/matrix_cdv.pxd +++ b/src/sage/matrix/matrix_cdv.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.matrix.matrix_generic_dense cimport Matrix_generic_dense cpdef hessenbergize_cdvf(Matrix_generic_dense) noexcept diff --git a/src/sage/matrix/matrix_cdv.pyx b/src/sage/matrix/matrix_cdv.pyx index 73ae9d3552d..83d79078671 100644 --- a/src/sage/matrix/matrix_cdv.pyx +++ b/src/sage/matrix/matrix_cdv.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Special methods for matrices over discrete valuation rings/fields. """ diff --git a/src/sage/matrix/matrix_complex_ball_dense.pxd b/src/sage/matrix/matrix_complex_ball_dense.pxd index 9a17089a1c7..d4ff34d886f 100644 --- a/src/sage/matrix/matrix_complex_ball_dense.pxd +++ b/src/sage/matrix/matrix_complex_ball_dense.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint from sage.libs.arb.types cimport acb_mat_t from sage.matrix.matrix_dense cimport Matrix_dense from sage.matrix.matrix_generic_dense cimport Matrix_generic_dense diff --git a/src/sage/matrix/matrix_complex_ball_dense.pyx b/src/sage/matrix/matrix_complex_ball_dense.pyx index 2f0131f4064..ab7e3375aca 100644 --- a/src/sage/matrix/matrix_complex_ball_dense.pyx +++ b/src/sage/matrix/matrix_complex_ball_dense.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = flint r""" Arbitrary precision complex ball matrices using Arb diff --git a/src/sage/matrix/matrix_complex_double_dense.pxd b/src/sage/matrix/matrix_complex_double_dense.pxd index a9041564e43..1626912bb9d 100644 --- a/src/sage/matrix/matrix_complex_double_dense.pxd +++ b/src/sage/matrix/matrix_complex_double_dense.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.matrix.matrix_double_dense cimport Matrix_double_dense cdef class Matrix_complex_double_dense(Matrix_double_dense): diff --git a/src/sage/matrix/matrix_complex_double_dense.pyx b/src/sage/matrix/matrix_complex_double_dense.pyx index b86516fd121..e499dd9fa97 100644 --- a/src/sage/matrix/matrix_complex_double_dense.pyx +++ b/src/sage/matrix/matrix_complex_double_dense.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: optional - numpy """ Dense matrices over the Complex Double Field using NumPy diff --git a/src/sage/matrix/matrix_cyclo_dense.pxd b/src/sage/matrix/matrix_cyclo_dense.pxd index d6c8711f862..7e6a380bbdc 100644 --- a/src/sage/matrix/matrix_cyclo_dense.pxd +++ b/src/sage/matrix/matrix_cyclo_dense.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-linbox from sage.libs.gmp.types cimport mpz_t from sage.matrix.matrix_dense cimport Matrix_dense from sage.matrix.matrix_rational_dense cimport Matrix_rational_dense diff --git a/src/sage/matrix/matrix_cyclo_dense.pyx b/src/sage/matrix/matrix_cyclo_dense.pyx index cb83823c576..99540cf21fb 100644 --- a/src/sage/matrix/matrix_cyclo_dense.pyx +++ b/src/sage/matrix/matrix_cyclo_dense.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-linbox # distutils: language = c++ # distutils: libraries = NTL_LIBRARIES # distutils: extra_compile_args = NTL_CFLAGS diff --git a/src/sage/matrix/matrix_dense.pxd b/src/sage/matrix/matrix_dense.pxd index 30c3effe02a..f8da138b44c 100644 --- a/src/sage/matrix/matrix_dense.pxd +++ b/src/sage/matrix/matrix_dense.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.matrix.matrix cimport Matrix cdef class Matrix_dense(Matrix): diff --git a/src/sage/matrix/matrix_dense.pyx b/src/sage/matrix/matrix_dense.pyx index 29b6f4faae2..34180800c83 100644 --- a/src/sage/matrix/matrix_dense.pyx +++ b/src/sage/matrix/matrix_dense.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Base class for dense matrices diff --git a/src/sage/matrix/matrix_domain_dense.pxd b/src/sage/matrix/matrix_domain_dense.pxd index 8a6e487c493..f924ac01457 100644 --- a/src/sage/matrix/matrix_domain_dense.pxd +++ b/src/sage/matrix/matrix_domain_dense.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.matrix.matrix cimport Matrix cdef class Matrix_domain_dense(Matrix): diff --git a/src/sage/matrix/matrix_domain_sparse.pxd b/src/sage/matrix/matrix_domain_sparse.pxd index c5882238632..2c95dd4f418 100644 --- a/src/sage/matrix/matrix_domain_sparse.pxd +++ b/src/sage/matrix/matrix_domain_sparse.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.matrix.matrix cimport Matrix cdef class Matrix_domain_sparse(Matrix): diff --git a/src/sage/matrix/matrix_double_dense.pxd b/src/sage/matrix/matrix_double_dense.pxd index 3f2cb525b10..ac4ee7ce6b7 100644 --- a/src/sage/matrix/matrix_double_dense.pxd +++ b/src/sage/matrix/matrix_double_dense.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.matrix.matrix_numpy_dense cimport Matrix_numpy_dense diff --git a/src/sage/matrix/matrix_double_dense.pyx b/src/sage/matrix/matrix_double_dense.pyx index 5d19067f2ed..4569886b8ed 100644 --- a/src/sage/matrix/matrix_double_dense.pyx +++ b/src/sage/matrix/matrix_double_dense.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: optional - numpy """ Dense matrices using a NumPy backend diff --git a/src/sage/matrix/matrix_double_sparse.pxd b/src/sage/matrix/matrix_double_sparse.pxd index 0a292404338..ce2502bdc53 100644 --- a/src/sage/matrix/matrix_double_sparse.pxd +++ b/src/sage/matrix/matrix_double_sparse.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.matrix.matrix_generic_sparse cimport Matrix_generic_sparse diff --git a/src/sage/matrix/matrix_double_sparse.pyx b/src/sage/matrix/matrix_double_sparse.pyx index cac826d7777..f1ffd1bb8fb 100644 --- a/src/sage/matrix/matrix_double_sparse.pyx +++ b/src/sage/matrix/matrix_double_sparse.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.matrix.matrix2 cimport Matrix from sage.matrix.matrix_generic_sparse cimport Matrix_generic_sparse diff --git a/src/sage/matrix/matrix_gap.pxd b/src/sage/matrix/matrix_gap.pxd index da8fe7e1277..e8a19dad57f 100644 --- a/src/sage/matrix/matrix_gap.pxd +++ b/src/sage/matrix/matrix_gap.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap from sage.matrix.matrix_dense cimport Matrix_dense from sage.libs.gap.element cimport GapElement diff --git a/src/sage/matrix/matrix_gap.pyx b/src/sage/matrix/matrix_gap.pyx index 9e1d1066a48..0dd0213b1d8 100644 --- a/src/sage/matrix/matrix_gap.pyx +++ b/src/sage/matrix/matrix_gap.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap r""" Wrappers on GAP matrices """ diff --git a/src/sage/matrix/matrix_generic_dense.pxd b/src/sage/matrix/matrix_generic_dense.pxd index 839efd22159..aec64ff5e15 100644 --- a/src/sage/matrix/matrix_generic_dense.pxd +++ b/src/sage/matrix/matrix_generic_dense.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.matrix.matrix_dense cimport Matrix_dense diff --git a/src/sage/matrix/matrix_generic_dense.pyx b/src/sage/matrix/matrix_generic_dense.pyx index a4d0615971d..9bd5e9366f4 100644 --- a/src/sage/matrix/matrix_generic_dense.pyx +++ b/src/sage/matrix/matrix_generic_dense.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Dense Matrices over a general ring """ diff --git a/src/sage/matrix/matrix_generic_sparse.pxd b/src/sage/matrix/matrix_generic_sparse.pxd index 461fb38e18b..f674a3b3a56 100644 --- a/src/sage/matrix/matrix_generic_sparse.pxd +++ b/src/sage/matrix/matrix_generic_sparse.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.matrix.matrix_sparse cimport Matrix_sparse diff --git a/src/sage/matrix/matrix_generic_sparse.pyx b/src/sage/matrix/matrix_generic_sparse.pyx index bd1f860c167..c7fb7c609ce 100644 --- a/src/sage/matrix/matrix_generic_sparse.pyx +++ b/src/sage/matrix/matrix_generic_sparse.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Sparse Matrices over a general ring diff --git a/src/sage/matrix/matrix_gf2e_dense.pxd b/src/sage/matrix/matrix_gf2e_dense.pxd index 485266e517b..9b6019de7b6 100644 --- a/src/sage/matrix/matrix_gf2e_dense.pxd +++ b/src/sage/matrix/matrix_gf2e_dense.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-linbox from sage.libs.m4rie cimport mzed_t from sage.libs.m4ri cimport m4ri_word from sage.matrix.matrix_dense cimport Matrix_dense diff --git a/src/sage/matrix/matrix_gf2e_dense.pyx b/src/sage/matrix/matrix_gf2e_dense.pyx index c1c3ee3a0c4..4dc64dd9b26 100644 --- a/src/sage/matrix/matrix_gf2e_dense.pyx +++ b/src/sage/matrix/matrix_gf2e_dense.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-linbox # -*- coding: utf-8 -*- # distutils: libraries = m4rie M4RI_LIBRARIES m # distutils: library_dirs = M4RI_LIBDIR diff --git a/src/sage/matrix/matrix_integer_dense.pxd b/src/sage/matrix/matrix_integer_dense.pxd index dcc69db5d72..f2cfb72efba 100644 --- a/src/sage/matrix/matrix_integer_dense.pxd +++ b/src/sage/matrix/matrix_integer_dense.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint from sage.libs.gmp.types cimport * from sage.libs.flint.types cimport fmpz_mat_t diff --git a/src/sage/matrix/matrix_integer_dense.pyx b/src/sage/matrix/matrix_integer_dense.pyx index 5488177dae1..815e3aa0a96 100644 --- a/src/sage/matrix/matrix_integer_dense.pyx +++ b/src/sage/matrix/matrix_integer_dense.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-linbox # -*- coding: utf-8 -*- # distutils: extra_compile_args = NTL_CFLAGS M4RI_CFLAGS # distutils: libraries = iml NTL_LIBRARIES gmp m CBLAS_LIBRARIES diff --git a/src/sage/matrix/matrix_integer_dense_hnf.py b/src/sage/matrix/matrix_integer_dense_hnf.py index 30db173966f..829746c0e00 100644 --- a/src/sage/matrix/matrix_integer_dense_hnf.py +++ b/src/sage/matrix/matrix_integer_dense_hnf.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-linbox """ Modular algorithm to compute Hermite normal forms of integer matrices diff --git a/src/sage/matrix/matrix_integer_dense_saturation.py b/src/sage/matrix/matrix_integer_dense_saturation.py index 66f56608def..bbdfd224f3d 100644 --- a/src/sage/matrix/matrix_integer_dense_saturation.py +++ b/src/sage/matrix/matrix_integer_dense_saturation.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-linbox """ Saturation over ZZ """ diff --git a/src/sage/matrix/matrix_integer_sparse.pxd b/src/sage/matrix/matrix_integer_sparse.pxd index fa130f9e680..098654cf1bc 100644 --- a/src/sage/matrix/matrix_integer_sparse.pxd +++ b/src/sage/matrix/matrix_integer_sparse.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint from sage.modules.vector_integer_sparse cimport mpz_vector from sage.ext.mod_int cimport mod_int from sage.matrix.matrix_sparse cimport Matrix_sparse diff --git a/src/sage/matrix/matrix_integer_sparse.pyx b/src/sage/matrix/matrix_integer_sparse.pyx index 6c5c20dbc6b..efc40846a74 100644 --- a/src/sage/matrix/matrix_integer_sparse.pyx +++ b/src/sage/matrix/matrix_integer_sparse.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-linbox # -*- coding: utf-8 -*- r""" Sparse integer matrices diff --git a/src/sage/matrix/matrix_laurent_mpolynomial_dense.pxd b/src/sage/matrix/matrix_laurent_mpolynomial_dense.pxd index 2a1170d0bc5..5edd4f07346 100644 --- a/src/sage/matrix/matrix_laurent_mpolynomial_dense.pxd +++ b/src/sage/matrix/matrix_laurent_mpolynomial_dense.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.matrix.matrix_generic_dense cimport Matrix_generic_dense cdef class Matrix_Laurent_mpolynomial_dense(Matrix_generic_dense): diff --git a/src/sage/matrix/matrix_laurent_mpolynomial_dense.pyx b/src/sage/matrix/matrix_laurent_mpolynomial_dense.pyx index 1f345a68ba6..d7877f812da 100644 --- a/src/sage/matrix/matrix_laurent_mpolynomial_dense.pyx +++ b/src/sage/matrix/matrix_laurent_mpolynomial_dense.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Dense matrices over multivariate polynomials over fields. diff --git a/src/sage/matrix/matrix_misc.py b/src/sage/matrix/matrix_misc.py index 84ddd3819c7..9b464fa65c2 100644 --- a/src/sage/matrix/matrix_misc.py +++ b/src/sage/matrix/matrix_misc.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Miscellaneous matrix functions diff --git a/src/sage/matrix/matrix_mod2_dense.pxd b/src/sage/matrix/matrix_mod2_dense.pxd index 82df8116a5c..da14d151222 100644 --- a/src/sage/matrix/matrix_mod2_dense.pxd +++ b/src/sage/matrix/matrix_mod2_dense.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-linbox from .matrix_dense cimport Matrix_dense from sage.libs.m4ri cimport * diff --git a/src/sage/matrix/matrix_mod2_dense.pyx b/src/sage/matrix/matrix_mod2_dense.pyx index 1db7e22aa1a..7b3303a3dca 100644 --- a/src/sage/matrix/matrix_mod2_dense.pyx +++ b/src/sage/matrix/matrix_mod2_dense.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-linbox # -*- coding: utf-8 -*- # distutils: libraries = M4RI_LIBRARIES GDLIB_LIBRARIES LIBPNG_LIBRARIES ZLIB_LIBRARIES # distutils: library_dirs = M4RI_LIBDIR GDLIB_LIBDIR LIBPNG_LIBDIR ZLIB_LIBDIR diff --git a/src/sage/matrix/matrix_modn_dense_double.pxd b/src/sage/matrix/matrix_modn_dense_double.pxd index 8cea9f2993b..33e60ee9660 100644 --- a/src/sage/matrix/matrix_modn_dense_double.pxd +++ b/src/sage/matrix/matrix_modn_dense_double.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl ctypedef double celement include "matrix_modn_dense_template_header.pxi" diff --git a/src/sage/matrix/matrix_modn_dense_double.pyx b/src/sage/matrix/matrix_modn_dense_double.pyx index 858c3fcb887..335d0b8e209 100644 --- a/src/sage/matrix/matrix_modn_dense_double.pyx +++ b/src/sage/matrix/matrix_modn_dense_double.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-linbox # distutils: language = c++ # distutils: libraries = CBLAS_LIBRARIES # distutils: library_dirs = CBLAS_LIBDIR diff --git a/src/sage/matrix/matrix_modn_dense_float.pxd b/src/sage/matrix/matrix_modn_dense_float.pxd index 697e1e79e57..99d9e4ed1ca 100644 --- a/src/sage/matrix/matrix_modn_dense_float.pxd +++ b/src/sage/matrix/matrix_modn_dense_float.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl ctypedef float celement include "matrix_modn_dense_template_header.pxi" diff --git a/src/sage/matrix/matrix_modn_dense_float.pyx b/src/sage/matrix/matrix_modn_dense_float.pyx index 325e492f5fb..52b94843461 100644 --- a/src/sage/matrix/matrix_modn_dense_float.pyx +++ b/src/sage/matrix/matrix_modn_dense_float.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-linbox # distutils: language = c++ # distutils: libraries = CBLAS_LIBRARIES # distutils: library_dirs = CBLAS_LIBDIR diff --git a/src/sage/matrix/matrix_modn_dense_template.pxi b/src/sage/matrix/matrix_modn_dense_template.pxi index 14df7a38884..b32d412eee0 100644 --- a/src/sage/matrix/matrix_modn_dense_template.pxi +++ b/src/sage/matrix/matrix_modn_dense_template.pxi @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl r""" Dense matrices over `\ZZ/n\ZZ` for `n` small using the LinBox library (FFLAS/FFPACK) diff --git a/src/sage/matrix/matrix_modn_dense_template_header.pxi b/src/sage/matrix/matrix_modn_dense_template_header.pxi index 18e149fb5de..5f32b0cad78 100644 --- a/src/sage/matrix/matrix_modn_dense_template_header.pxi +++ b/src/sage/matrix/matrix_modn_dense_template_header.pxi @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl """ Dense Matrix Template for C/C++ Library Interfaces """ diff --git a/src/sage/matrix/matrix_modn_sparse.pxd b/src/sage/matrix/matrix_modn_sparse.pxd index 37dd99bf5f3..5799d8b0be8 100644 --- a/src/sage/matrix/matrix_modn_sparse.pxd +++ b/src/sage/matrix/matrix_modn_sparse.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from sage.matrix.matrix_sparse cimport Matrix_sparse from sage.modules.vector_modn_sparse cimport * diff --git a/src/sage/matrix/matrix_modn_sparse.pyx b/src/sage/matrix/matrix_modn_sparse.pyx index 2a399790ca3..df55030a942 100644 --- a/src/sage/matrix/matrix_modn_sparse.pyx +++ b/src/sage/matrix/matrix_modn_sparse.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-linbox r""" Sparse matrices over `\ZZ/n\ZZ` for `n` small diff --git a/src/sage/matrix/matrix_mpolynomial_dense.pxd b/src/sage/matrix/matrix_mpolynomial_dense.pxd index e4d70ba9dd0..0a4891f5e18 100644 --- a/src/sage/matrix/matrix_mpolynomial_dense.pxd +++ b/src/sage/matrix/matrix_mpolynomial_dense.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-singular from sage.matrix.matrix_generic_dense cimport Matrix_generic_dense from sage.libs.singular.decl cimport ideal diff --git a/src/sage/matrix/matrix_mpolynomial_dense.pyx b/src/sage/matrix/matrix_mpolynomial_dense.pyx index e3de9bbdb57..9dbde1ea7fe 100644 --- a/src/sage/matrix/matrix_mpolynomial_dense.pyx +++ b/src/sage/matrix/matrix_mpolynomial_dense.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-singular """ Dense matrices over multivariate polynomials over fields diff --git a/src/sage/matrix/matrix_numpy_dense.pxd b/src/sage/matrix/matrix_numpy_dense.pxd index 150f9d59551..bdcdd4abcff 100644 --- a/src/sage/matrix/matrix_numpy_dense.pxd +++ b/src/sage/matrix/matrix_numpy_dense.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules cimport numpy as cnumpy from sage.matrix.matrix_dense cimport Matrix_dense diff --git a/src/sage/matrix/matrix_numpy_dense.pyx b/src/sage/matrix/matrix_numpy_dense.pyx index 78cf21022f3..e390c02eeff 100644 --- a/src/sage/matrix/matrix_numpy_dense.pyx +++ b/src/sage/matrix/matrix_numpy_dense.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: optional - numpy """ Dense matrices using a NumPy backend diff --git a/src/sage/matrix/matrix_numpy_integer_dense.pxd b/src/sage/matrix/matrix_numpy_integer_dense.pxd index 3116f89d8e2..6d63f9808e4 100644 --- a/src/sage/matrix/matrix_numpy_integer_dense.pxd +++ b/src/sage/matrix/matrix_numpy_integer_dense.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.matrix.matrix_numpy_dense cimport Matrix_numpy_dense diff --git a/src/sage/matrix/matrix_numpy_integer_dense.pyx b/src/sage/matrix/matrix_numpy_integer_dense.pyx index 8c449a86abf..d09f354195a 100644 --- a/src/sage/matrix/matrix_numpy_integer_dense.pyx +++ b/src/sage/matrix/matrix_numpy_integer_dense.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: optional - numpy r""" Dense integer matrices using a NumPy backend diff --git a/src/sage/matrix/matrix_polynomial_dense.pxd b/src/sage/matrix/matrix_polynomial_dense.pxd index 14caadea50c..1ed11b24e3c 100644 --- a/src/sage/matrix/matrix_polynomial_dense.pxd +++ b/src/sage/matrix/matrix_polynomial_dense.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.matrix.matrix_generic_dense cimport Matrix_generic_dense cdef class Matrix_polynomial_dense(Matrix_generic_dense): diff --git a/src/sage/matrix/matrix_polynomial_dense.pyx b/src/sage/matrix/matrix_polynomial_dense.pyx index 31a13cd83d6..a013cd33ddb 100644 --- a/src/sage/matrix/matrix_polynomial_dense.pyx +++ b/src/sage/matrix/matrix_polynomial_dense.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Dense matrices over univariate polynomials over fields diff --git a/src/sage/matrix/matrix_rational_dense.pxd b/src/sage/matrix/matrix_rational_dense.pxd index 6a6347f4926..6fc9cc9b9b9 100644 --- a/src/sage/matrix/matrix_rational_dense.pxd +++ b/src/sage/matrix/matrix_rational_dense.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint from sage.libs.flint.types cimport fmpz_t, fmpq_mat_t from sage.matrix.matrix_dense cimport Matrix_dense diff --git a/src/sage/matrix/matrix_rational_dense.pyx b/src/sage/matrix/matrix_rational_dense.pyx index 8b72c9c56f2..2be2cff176d 100644 --- a/src/sage/matrix/matrix_rational_dense.pyx +++ b/src/sage/matrix/matrix_rational_dense.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-linbox # distutils: extra_compile_args = -D_XPG6 NTL_CFLAGS M4RI_CFLAGS # distutils: extra_link_args = NTL_LIBEXTRA # distutils: libraries = iml NTL_LIBRARIES m CBLAS_LIBRARIES diff --git a/src/sage/matrix/matrix_rational_sparse.pxd b/src/sage/matrix/matrix_rational_sparse.pxd index c754850bee9..e6753ac0f4d 100644 --- a/src/sage/matrix/matrix_rational_sparse.pxd +++ b/src/sage/matrix/matrix_rational_sparse.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint from sage.libs.gmp.types cimport mpz_t from sage.modules.vector_rational_sparse cimport mpq_vector from sage.matrix.matrix_sparse cimport Matrix_sparse diff --git a/src/sage/matrix/matrix_rational_sparse.pyx b/src/sage/matrix/matrix_rational_sparse.pyx index fcdc75b43d1..b762d85b1c7 100644 --- a/src/sage/matrix/matrix_rational_sparse.pyx +++ b/src/sage/matrix/matrix_rational_sparse.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-linbox """ Sparse rational matrices diff --git a/src/sage/matrix/matrix_real_double_dense.pxd b/src/sage/matrix/matrix_real_double_dense.pxd index d0badf48240..cb4baccb006 100644 --- a/src/sage/matrix/matrix_real_double_dense.pxd +++ b/src/sage/matrix/matrix_real_double_dense.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.matrix.matrix_double_dense cimport Matrix_double_dense diff --git a/src/sage/matrix/matrix_real_double_dense.pyx b/src/sage/matrix/matrix_real_double_dense.pyx index 1337641bb24..5afa971cc1d 100644 --- a/src/sage/matrix/matrix_real_double_dense.pyx +++ b/src/sage/matrix/matrix_real_double_dense.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: optional - numpy """ Dense matrices over the Real Double Field using NumPy diff --git a/src/sage/matrix/matrix_space.py b/src/sage/matrix/matrix_space.py index 940358b2c81..a5ae7b36f4f 100644 --- a/src/sage/matrix/matrix_space.py +++ b/src/sage/matrix/matrix_space.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Matrix Spaces diff --git a/src/sage/matrix/matrix_sparse.pxd b/src/sage/matrix/matrix_sparse.pxd index 7546645a6c9..46b4f668b26 100644 --- a/src/sage/matrix/matrix_sparse.pxd +++ b/src/sage/matrix/matrix_sparse.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from .matrix cimport Matrix cdef class Matrix_sparse(Matrix): diff --git a/src/sage/matrix/matrix_sparse.pyx b/src/sage/matrix/matrix_sparse.pyx index ef707ebe3f8..5d4b9c69172 100644 --- a/src/sage/matrix/matrix_sparse.pyx +++ b/src/sage/matrix/matrix_sparse.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Base class for sparse matrices """ diff --git a/src/sage/matrix/matrix_symbolic_dense.pxd b/src/sage/matrix/matrix_symbolic_dense.pxd index aa85e4c6a21..13d37e45f43 100644 --- a/src/sage/matrix/matrix_symbolic_dense.pxd +++ b/src/sage/matrix/matrix_symbolic_dense.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics from sage.matrix.matrix_generic_dense cimport Matrix_generic_dense diff --git a/src/sage/matrix/matrix_symbolic_dense.pyx b/src/sage/matrix/matrix_symbolic_dense.pyx index e69d977a117..25d92edfb59 100644 --- a/src/sage/matrix/matrix_symbolic_dense.pyx +++ b/src/sage/matrix/matrix_symbolic_dense.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics """ Symbolic dense matrices diff --git a/src/sage/matrix/matrix_symbolic_sparse.pxd b/src/sage/matrix/matrix_symbolic_sparse.pxd index c90e0161119..6837cad281d 100644 --- a/src/sage/matrix/matrix_symbolic_sparse.pxd +++ b/src/sage/matrix/matrix_symbolic_sparse.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics from sage.matrix.matrix_generic_sparse cimport Matrix_generic_sparse diff --git a/src/sage/matrix/matrix_symbolic_sparse.pyx b/src/sage/matrix/matrix_symbolic_sparse.pyx index 69c36e764fb..c9e5ed9cd2b 100644 --- a/src/sage/matrix/matrix_symbolic_sparse.pyx +++ b/src/sage/matrix/matrix_symbolic_sparse.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics """ Symbolic sparse matrices diff --git a/src/sage/matrix/matrix_window.pxd b/src/sage/matrix/matrix_window.pxd index c33d5d16806..ba230b19060 100644 --- a/src/sage/matrix/matrix_window.pxd +++ b/src/sage/matrix/matrix_window.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.matrix.matrix cimport Matrix diff --git a/src/sage/matrix/matrix_window.pyx b/src/sage/matrix/matrix_window.pyx index 671eee0a845..428e1946fff 100644 --- a/src/sage/matrix/matrix_window.pyx +++ b/src/sage/matrix/matrix_window.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Matrix windows """ diff --git a/src/sage/matrix/misc.pyx b/src/sage/matrix/misc.pyx index 9a51efc1038..9ddaf79f737 100644 --- a/src/sage/matrix/misc.pyx +++ b/src/sage/matrix/misc.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-linbox """ Misc matrix algorithms """ diff --git a/src/sage/matrix/misc_flint.pyx b/src/sage/matrix/misc_flint.pyx index d5ca017f73a..69c2add9c51 100644 --- a/src/sage/matrix/misc_flint.pyx +++ b/src/sage/matrix/misc_flint.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint r""" Misc matrix algorithms using FLINT """ diff --git a/src/sage/matrix/misc_mpfr.pyx b/src/sage/matrix/misc_mpfr.pyx index 91613b16492..9e9905c6b47 100644 --- a/src/sage/matrix/misc_mpfr.pyx +++ b/src/sage/matrix/misc_mpfr.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Misc matrix algorithms using MPFR """ diff --git a/src/sage/matrix/operation_table.py b/src/sage/matrix/operation_table.py index 50fe4f257dd..a73d2bf92b8 100644 --- a/src/sage/matrix/operation_table.py +++ b/src/sage/matrix/operation_table.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Operation Tables diff --git a/src/sage/matrix/special.py b/src/sage/matrix/special.py index 7233892ce2f..50d753486ea 100644 --- a/src/sage/matrix/special.py +++ b/src/sage/matrix/special.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # -*- coding: utf-8 -*- """ Constructors for special matrices diff --git a/src/sage/matrix/strassen.pyx b/src/sage/matrix/strassen.pyx index 3d083fa6859..13fccf66814 100644 --- a/src/sage/matrix/strassen.pyx +++ b/src/sage/matrix/strassen.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Generic Asymptotically Fast Strassen Algorithms diff --git a/src/sage/matrix/symplectic_basis.py b/src/sage/matrix/symplectic_basis.py index 66dc1883a12..f2efe29b971 100644 --- a/src/sage/matrix/symplectic_basis.py +++ b/src/sage/matrix/symplectic_basis.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Calculate symplectic bases for matrices over fields and the integers. diff --git a/src/sage/matrix/template.pxd b/src/sage/matrix/template.pxd index 69123a38f2d..4db874af5d2 100644 --- a/src/sage/matrix/template.pxd +++ b/src/sage/matrix/template.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.matrix.matrix_dense cimport Matrix_dense diff --git a/src/sage/matrix/tests.py b/src/sage/matrix/tests.py index b4747bff5c9..ef893bc931b 100644 --- a/src/sage/matrix/tests.py +++ b/src/sage/matrix/tests.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ TESTS: diff --git a/src/sage/matroids/advanced.py b/src/sage/matroids/advanced.py index b38075bb39c..6549657dddf 100644 --- a/src/sage/matroids/advanced.py +++ b/src/sage/matroids/advanced.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Advanced matroid functionality. diff --git a/src/sage/matroids/all.py b/src/sage/matroids/all.py index e647629c988..4c28705144b 100644 --- a/src/sage/matroids/all.py +++ b/src/sage/matroids/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Matroids """ diff --git a/src/sage/matroids/basis_exchange_matroid.pxd b/src/sage/matroids/basis_exchange_matroid.pxd index 5877f62fc09..524786a1471 100644 --- a/src/sage/matroids/basis_exchange_matroid.pxd +++ b/src/sage/matroids/basis_exchange_matroid.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.data_structures.bitset cimport * from sage.data_structures.bitset_base cimport bitset_t, bitset_s diff --git a/src/sage/matroids/basis_exchange_matroid.pyx b/src/sage/matroids/basis_exchange_matroid.pyx index e5c18e0185b..7d7873d63ed 100644 --- a/src/sage/matroids/basis_exchange_matroid.pyx +++ b/src/sage/matroids/basis_exchange_matroid.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Basis exchange matroids diff --git a/src/sage/matroids/basis_matroid.pxd b/src/sage/matroids/basis_matroid.pxd index aeb59fdb66f..c23efdc41b7 100644 --- a/src/sage/matroids/basis_matroid.pxd +++ b/src/sage/matroids/basis_matroid.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.data_structures.bitset cimport bitset_t from sage.matroids.matroid cimport Matroid from sage.matroids.basis_exchange_matroid cimport BasisExchangeMatroid diff --git a/src/sage/matroids/basis_matroid.pyx b/src/sage/matroids/basis_matroid.pyx index 0610c9a1149..80618b91b3f 100644 --- a/src/sage/matroids/basis_matroid.pyx +++ b/src/sage/matroids/basis_matroid.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Basis matroids diff --git a/src/sage/matroids/catalog.py b/src/sage/matroids/catalog.py index 949f7367b40..75919119110 100644 --- a/src/sage/matroids/catalog.py +++ b/src/sage/matroids/catalog.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Documentation for the matroids in the catalog diff --git a/src/sage/matroids/circuit_closures_matroid.pxd b/src/sage/matroids/circuit_closures_matroid.pxd index 5f4edf109b7..5fed2f09e04 100644 --- a/src/sage/matroids/circuit_closures_matroid.pxd +++ b/src/sage/matroids/circuit_closures_matroid.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.matroids.matroid cimport Matroid diff --git a/src/sage/matroids/circuit_closures_matroid.pyx b/src/sage/matroids/circuit_closures_matroid.pyx index 0a25aee80cb..e26d2ad7f6d 100644 --- a/src/sage/matroids/circuit_closures_matroid.pyx +++ b/src/sage/matroids/circuit_closures_matroid.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Circuit closures matroids diff --git a/src/sage/matroids/constructor.py b/src/sage/matroids/constructor.py index acbc4c03d00..bfe51026757 100644 --- a/src/sage/matroids/constructor.py +++ b/src/sage/matroids/constructor.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Matroid construction diff --git a/src/sage/matroids/dual_matroid.py b/src/sage/matroids/dual_matroid.py index da6639827e4..c845d351e1f 100644 --- a/src/sage/matroids/dual_matroid.py +++ b/src/sage/matroids/dual_matroid.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Dual matroids diff --git a/src/sage/matroids/extension.pxd b/src/sage/matroids/extension.pxd index 6b6d7949794..41d89ba8783 100644 --- a/src/sage/matroids/extension.pxd +++ b/src/sage/matroids/extension.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.data_structures.bitset cimport bitset_t from sage.matroids.basis_matroid cimport BasisMatroid diff --git a/src/sage/matroids/extension.pyx b/src/sage/matroids/extension.pyx index 553869fcf66..e7e2c7fcbe7 100644 --- a/src/sage/matroids/extension.pyx +++ b/src/sage/matroids/extension.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Iterators for linear subclasses diff --git a/src/sage/matroids/graphic_matroid.py b/src/sage/matroids/graphic_matroid.py index c841bc7d9d1..364d5a5a170 100644 --- a/src/sage/matroids/graphic_matroid.py +++ b/src/sage/matroids/graphic_matroid.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: optional - sage.graphs r""" Graphic Matroids diff --git a/src/sage/matroids/lean_matrix.pxd b/src/sage/matroids/lean_matrix.pxd index f71e22f63ee..18ec8cb2b2e 100644 --- a/src/sage/matroids/lean_matrix.pxd +++ b/src/sage/matroids/lean_matrix.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.data_structures.bitset cimport bitset_t from sage.libs.gmp.types cimport mpq_t diff --git a/src/sage/matroids/lean_matrix.pyx b/src/sage/matroids/lean_matrix.pyx index fa1d95c9bf6..d663bf7aa45 100644 --- a/src/sage/matroids/lean_matrix.pyx +++ b/src/sage/matroids/lean_matrix.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: optional - sage.rings.finite_rings """ Lean matrices diff --git a/src/sage/matroids/linear_matroid.pxd b/src/sage/matroids/linear_matroid.pxd index c7e6a402494..fae67d6aa1b 100644 --- a/src/sage/matroids/linear_matroid.pxd +++ b/src/sage/matroids/linear_matroid.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.data_structures.bitset cimport bitset_t from sage.matroids.matroid cimport Matroid diff --git a/src/sage/matroids/linear_matroid.pyx b/src/sage/matroids/linear_matroid.pyx index 81a9f9e5a89..e601a30791f 100644 --- a/src/sage/matroids/linear_matroid.pyx +++ b/src/sage/matroids/linear_matroid.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Linear matroids diff --git a/src/sage/matroids/matroid.pxd b/src/sage/matroids/matroid.pxd index 6c385f10e32..77b8de2ca69 100644 --- a/src/sage/matroids/matroid.pxd +++ b/src/sage/matroids/matroid.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.structure.sage_object cimport SageObject cdef class Matroid(SageObject): diff --git a/src/sage/matroids/matroid.pyx b/src/sage/matroids/matroid.pyx index ed971cb8349..a1efdc872d4 100644 --- a/src/sage/matroids/matroid.pyx +++ b/src/sage/matroids/matroid.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # -*- coding: utf-8 -*- r""" The abstract Matroid class diff --git a/src/sage/matroids/matroids_catalog.py b/src/sage/matroids/matroids_catalog.py index 1fc55a58cf2..0a379d38b58 100644 --- a/src/sage/matroids/matroids_catalog.py +++ b/src/sage/matroids/matroids_catalog.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Catalog of matroids diff --git a/src/sage/matroids/matroids_plot_helpers.py b/src/sage/matroids/matroids_plot_helpers.py index 0740a938f11..54a022f5bc7 100644 --- a/src/sage/matroids/matroids_plot_helpers.py +++ b/src/sage/matroids/matroids_plot_helpers.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: optional - scipy r""" Helper functions for plotting the geometric representation of matroids diff --git a/src/sage/matroids/minor_matroid.py b/src/sage/matroids/minor_matroid.py index ff27affc665..4ff1ffa3af2 100644 --- a/src/sage/matroids/minor_matroid.py +++ b/src/sage/matroids/minor_matroid.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Minors of matroids diff --git a/src/sage/matroids/named_matroids.py b/src/sage/matroids/named_matroids.py index 887dcb4172c..105b24e6964 100644 --- a/src/sage/matroids/named_matroids.py +++ b/src/sage/matroids/named_matroids.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Named matroids diff --git a/src/sage/matroids/rank_matroid.py b/src/sage/matroids/rank_matroid.py index 6c4e9470ada..ce1c3f442f8 100644 --- a/src/sage/matroids/rank_matroid.py +++ b/src/sage/matroids/rank_matroid.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Rank function matroids diff --git a/src/sage/matroids/set_system.pxd b/src/sage/matroids/set_system.pxd index 69a4bc8443c..c32b3f232ed 100644 --- a/src/sage/matroids/set_system.pxd +++ b/src/sage/matroids/set_system.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.data_structures.bitset cimport bitset_t cdef class SetSystem: diff --git a/src/sage/matroids/set_system.pyx b/src/sage/matroids/set_system.pyx index ad24e104925..4c5c92929a7 100644 --- a/src/sage/matroids/set_system.pyx +++ b/src/sage/matroids/set_system.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Set systems diff --git a/src/sage/matroids/union_matroid.pxd b/src/sage/matroids/union_matroid.pxd index a378cfe910d..b217733dd4f 100644 --- a/src/sage/matroids/union_matroid.pxd +++ b/src/sage/matroids/union_matroid.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.matroids.matroid cimport Matroid diff --git a/src/sage/matroids/union_matroid.pyx b/src/sage/matroids/union_matroid.pyx index bb3dd03a082..5ba6629be45 100644 --- a/src/sage/matroids/union_matroid.pyx +++ b/src/sage/matroids/union_matroid.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.matroids.matroid cimport Matroid diff --git a/src/sage/matroids/unpickling.pyx b/src/sage/matroids/unpickling.pyx index 77b3f12265c..3ad16a9bea2 100644 --- a/src/sage/matroids/unpickling.pyx +++ b/src/sage/matroids/unpickling.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Unpickling methods diff --git a/src/sage/matroids/utilities.py b/src/sage/matroids/utilities.py index 211c435c5ee..031382fdb7e 100644 --- a/src/sage/matroids/utilities.py +++ b/src/sage/matroids/utilities.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Some useful functions for the matroid class. diff --git a/src/sage/misc/abstract_method.py b/src/sage/misc/abstract_method.py index ec0c720a97f..3160c89344b 100644 --- a/src/sage/misc/abstract_method.py +++ b/src/sage/misc/abstract_method.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects """ Abstract methods """ diff --git a/src/sage/misc/all__sagemath_environment.py b/src/sage/misc/all__sagemath_environment.py index 9ebcc85870b..2f09e9c4d56 100644 --- a/src/sage/misc/all__sagemath_environment.py +++ b/src/sage/misc/all__sagemath_environment.py @@ -1 +1,2 @@ +# sage_setup: distribution = sagemath-environment from sage.misc.temporary_file import tmp_dir, tmp_filename diff --git a/src/sage/misc/all__sagemath_objects.py b/src/sage/misc/all__sagemath_objects.py index 30a76f38fab..00f1fddbb68 100644 --- a/src/sage/misc/all__sagemath_objects.py +++ b/src/sage/misc/all__sagemath_objects.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects # Subset of sage.misc.all that is made available by the sage-objects distribution import sage.structure.all # to break a cyclic import diff --git a/src/sage/misc/all__sagemath_repl.py b/src/sage/misc/all__sagemath_repl.py index c7acba4ab07..9631c49d0bd 100644 --- a/src/sage/misc/all__sagemath_repl.py +++ b/src/sage/misc/all__sagemath_repl.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl from sage.misc.sage_eval import sage_eval, sageobj from sage.misc.sage_input import sage_input diff --git a/src/sage/misc/allocator.pxd b/src/sage/misc/allocator.pxd index ba4321cf71c..09530a2ea8b 100644 --- a/src/sage/misc/allocator.pxd +++ b/src/sage/misc/allocator.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories from cpython.object cimport * cdef hook_tp_functions_type(object t, newfunc tp_new, destructor tp_dealloc, bint useGC) noexcept diff --git a/src/sage/misc/allocator.pyx b/src/sage/misc/allocator.pyx index b6d865b00e6..216b0b04cdb 100644 --- a/src/sage/misc/allocator.pyx +++ b/src/sage/misc/allocator.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories from cpython.ref cimport Py_INCREF cdef _hook_tp_functions_type(PyTypeObject *t, newfunc tp_new, destructor tp_dealloc, bint useGC) noexcept: diff --git a/src/sage/misc/banner.py b/src/sage/misc/banner.py index 9d231926705..0ecac1d75b9 100644 --- a/src/sage/misc/banner.py +++ b/src/sage/misc/banner.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl r""" SageMath version and banner info """ diff --git a/src/sage/misc/binary_tree.pxd b/src/sage/misc/binary_tree.pxd index 4e54f74a71a..4b0c1213363 100644 --- a/src/sage/misc/binary_tree.pxd +++ b/src/sage/misc/binary_tree.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories cdef struct binary_tree_node: int key binary_tree_node *left diff --git a/src/sage/misc/binary_tree.pyx b/src/sage/misc/binary_tree.pyx index 6287753a335..67ba616d518 100644 --- a/src/sage/misc/binary_tree.pyx +++ b/src/sage/misc/binary_tree.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Binary trees diff --git a/src/sage/misc/bindable_class.py b/src/sage/misc/bindable_class.py index 9213db6008e..32b7ab755f5 100644 --- a/src/sage/misc/bindable_class.py +++ b/src/sage/misc/bindable_class.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects """ Bindable classes """ diff --git a/src/sage/misc/c3.pyx b/src/sage/misc/c3.pyx index 47fed790dfe..6df1af81ee4 100644 --- a/src/sage/misc/c3.pyx +++ b/src/sage/misc/c3.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ The C3 algorithm diff --git a/src/sage/misc/c3_controlled.pxd b/src/sage/misc/c3_controlled.pxd index 7383b0cf999..2c68711ffba 100644 --- a/src/sage/misc/c3_controlled.pxd +++ b/src/sage/misc/c3_controlled.pxd @@ -1 +1,2 @@ +# sage_setup: distribution = sagemath-objects cpdef tuple C3_sorted_merge(list lists, key=?) noexcept diff --git a/src/sage/misc/c3_controlled.pyx b/src/sage/misc/c3_controlled.pyx index b32d493659f..367b47d7c47 100644 --- a/src/sage/misc/c3_controlled.pyx +++ b/src/sage/misc/c3_controlled.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects """ The C3 algorithm, under control of a total order diff --git a/src/sage/misc/cachefunc.pxd b/src/sage/misc/cachefunc.pxd index 5590c41f4d3..2367201e385 100644 --- a/src/sage/misc/cachefunc.pxd +++ b/src/sage/misc/cachefunc.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects from sage.misc.function_mangling cimport ArgumentFixer cpdef dict_key(o) noexcept diff --git a/src/sage/misc/cachefunc.pyx b/src/sage/misc/cachefunc.pyx index 20b3b5acbe4..de2ea40dfa9 100644 --- a/src/sage/misc/cachefunc.pyx +++ b/src/sage/misc/cachefunc.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects r""" Cached Functions and Methods diff --git a/src/sage/misc/call.py b/src/sage/misc/call.py index 979497b43f9..add735d7c4b 100644 --- a/src/sage/misc/call.py +++ b/src/sage/misc/call.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects """ Attribute and method calling """ diff --git a/src/sage/misc/callable_dict.pyx b/src/sage/misc/callable_dict.pyx index 9b5ca3d78eb..ff413883c3d 100644 --- a/src/sage/misc/callable_dict.pyx +++ b/src/sage/misc/callable_dict.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # -*- coding: utf-8 -*- """ Callable dictionaries diff --git a/src/sage/misc/classcall_metaclass.pxd b/src/sage/misc/classcall_metaclass.pxd index 85ea3bd5eef..1ae792f074b 100644 --- a/src/sage/misc/classcall_metaclass.pxd +++ b/src/sage/misc/classcall_metaclass.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects #***************************************************************************** # Copyright (C) 2012 Florent Hivert # diff --git a/src/sage/misc/classcall_metaclass.pyx b/src/sage/misc/classcall_metaclass.pyx index 65351cb2756..691f7fec01e 100644 --- a/src/sage/misc/classcall_metaclass.pyx +++ b/src/sage/misc/classcall_metaclass.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects r""" Special Methods for Classes diff --git a/src/sage/misc/compat.py b/src/sage/misc/compat.py index e374cf97aac..6bbe90e810e 100644 --- a/src/sage/misc/compat.py +++ b/src/sage/misc/compat.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """Cross-platform compatibility routines and wrappers.""" #***************************************************************************** diff --git a/src/sage/misc/constant_function.pyx b/src/sage/misc/constant_function.pyx index e94f36da403..4eb58d7599a 100644 --- a/src/sage/misc/constant_function.pyx +++ b/src/sage/misc/constant_function.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects r""" Constant functions """ diff --git a/src/sage/misc/converting_dict.py b/src/sage/misc/converting_dict.py index 0cd7a47916e..2ae4bf1f47e 100644 --- a/src/sage/misc/converting_dict.py +++ b/src/sage/misc/converting_dict.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Converting Dictionary diff --git a/src/sage/misc/cython.py b/src/sage/misc/cython.py index 781e02b3191..67aa0dae2d7 100644 --- a/src/sage/misc/cython.py +++ b/src/sage/misc/cython.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl # sage.doctest: needs sage.misc.cython """ Cython support functions diff --git a/src/sage/misc/decorators.py b/src/sage/misc/decorators.py index a13f1523c74..9103bdc0e97 100644 --- a/src/sage/misc/decorators.py +++ b/src/sage/misc/decorators.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects """ Decorators diff --git a/src/sage/misc/defaults.py b/src/sage/misc/defaults.py index 3d75021d198..fb1bc4779da 100644 --- a/src/sage/misc/defaults.py +++ b/src/sage/misc/defaults.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Default Settings diff --git a/src/sage/misc/derivative.pyx b/src/sage/misc/derivative.pyx index 9788e82e06e..8196074a492 100644 --- a/src/sage/misc/derivative.pyx +++ b/src/sage/misc/derivative.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories #***************************************************************************** # Copyright (C) 2008 William Stein # diff --git a/src/sage/misc/dev_tools.py b/src/sage/misc/dev_tools.py index 3ece7db2894..235d17abe45 100644 --- a/src/sage/misc/dev_tools.py +++ b/src/sage/misc/dev_tools.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl r""" Some tools for developers diff --git a/src/sage/misc/edit_module.py b/src/sage/misc/edit_module.py index 82496752609..86872ece029 100644 --- a/src/sage/misc/edit_module.py +++ b/src/sage/misc/edit_module.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl """ Edit the source code of Sage interactively diff --git a/src/sage/misc/element_with_label.py b/src/sage/misc/element_with_label.py index e7ae38264be..3fca93b08a3 100644 --- a/src/sage/misc/element_with_label.py +++ b/src/sage/misc/element_with_label.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Elements with labels. diff --git a/src/sage/misc/explain_pickle.py b/src/sage/misc/explain_pickle.py index a0c6323270c..5171927aa91 100644 --- a/src/sage/misc/explain_pickle.py +++ b/src/sage/misc/explain_pickle.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl """ A tool for inspecting Python pickles diff --git a/src/sage/misc/fast_methods.pxd b/src/sage/misc/fast_methods.pxd index 4df34feab62..8a1070a263b 100644 --- a/src/sage/misc/fast_methods.pxd +++ b/src/sage/misc/fast_methods.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects cdef extern from "Python.h": cdef size_t SIZEOF_VOID_P diff --git a/src/sage/misc/fast_methods.pyx b/src/sage/misc/fast_methods.pyx index 370cefc46a0..59ec2399536 100644 --- a/src/sage/misc/fast_methods.pyx +++ b/src/sage/misc/fast_methods.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects """ Fast methods via Cython diff --git a/src/sage/misc/flatten.py b/src/sage/misc/flatten.py index 5ebc8c2ceaa..3b857fcb3d8 100644 --- a/src/sage/misc/flatten.py +++ b/src/sage/misc/flatten.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects "Flatten nested lists" import sys diff --git a/src/sage/misc/fpickle.pyx b/src/sage/misc/fpickle.pyx index 37c26e431ba..b233b9cd7ae 100644 --- a/src/sage/misc/fpickle.pyx +++ b/src/sage/misc/fpickle.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects # cython: old_style_globals=True # cython: binding=True """ diff --git a/src/sage/misc/func_persist.py b/src/sage/misc/func_persist.py index 65b6d536d79..8e157af0d94 100644 --- a/src/sage/misc/func_persist.py +++ b/src/sage/misc/func_persist.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Support for persistent functions in .sage files diff --git a/src/sage/misc/function_mangling.pxd b/src/sage/misc/function_mangling.pxd index 74f1a6e2282..f26c814a02c 100644 --- a/src/sage/misc/function_mangling.pxd +++ b/src/sage/misc/function_mangling.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects cdef class ArgumentFixer: cdef public object f cdef public int _ndefault diff --git a/src/sage/misc/function_mangling.pyx b/src/sage/misc/function_mangling.pyx index c614f97e9df..31c87135fe7 100644 --- a/src/sage/misc/function_mangling.pyx +++ b/src/sage/misc/function_mangling.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects # Copyright (c) 2009, Tom Boothby # All rights reserved. # diff --git a/src/sage/misc/functional.py b/src/sage/misc/functional.py index 7a2bb8c0803..ff0efefdf1d 100644 --- a/src/sage/misc/functional.py +++ b/src/sage/misc/functional.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Functional notation diff --git a/src/sage/misc/html.py b/src/sage/misc/html.py index 0c7524674bc..e6bd805bae5 100644 --- a/src/sage/misc/html.py +++ b/src/sage/misc/html.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ HTML Fragments diff --git a/src/sage/misc/inherit_comparison.pxd b/src/sage/misc/inherit_comparison.pxd index 28a29270a25..86207223782 100644 --- a/src/sage/misc/inherit_comparison.pxd +++ b/src/sage/misc/inherit_comparison.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects cimport sage.cpython.cython_metaclass cdef class InheritComparisonMetaclass(type): diff --git a/src/sage/misc/inherit_comparison.pyx b/src/sage/misc/inherit_comparison.pyx index aa97f664496..1a9ee95273f 100644 --- a/src/sage/misc/inherit_comparison.pyx +++ b/src/sage/misc/inherit_comparison.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects """ Metaclass for inheriting comparison functions diff --git a/src/sage/misc/inline_fortran.py b/src/sage/misc/inline_fortran.py index 82da6982bec..2c131f77cc6 100644 --- a/src/sage/misc/inline_fortran.py +++ b/src/sage/misc/inline_fortran.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl """ Fortran compiler """ diff --git a/src/sage/misc/instancedoc.pyx b/src/sage/misc/instancedoc.pyx index 44ee70f64ba..852cde57220 100644 --- a/src/sage/misc/instancedoc.pyx +++ b/src/sage/misc/instancedoc.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects r""" Dynamic documentation for instances of classes diff --git a/src/sage/misc/latex.py b/src/sage/misc/latex.py index f409dacbddc..33775196877 100644 --- a/src/sage/misc/latex.py +++ b/src/sage/misc/latex.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ LaTeX printing support diff --git a/src/sage/misc/latex_macros.py b/src/sage/misc/latex_macros.py index 93fb11fbf48..f2109e8cc9d 100644 --- a/src/sage/misc/latex_macros.py +++ b/src/sage/misc/latex_macros.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" LaTeX macros diff --git a/src/sage/misc/latex_standalone.py b/src/sage/misc/latex_standalone.py index c24b076d805..fac76c14ab9 100644 --- a/src/sage/misc/latex_standalone.py +++ b/src/sage/misc/latex_standalone.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Standalone LaTeX Document class and TikzPicture diff --git a/src/sage/misc/lazy_attribute.pyx b/src/sage/misc/lazy_attribute.pyx index 02cd80244bc..d878121a281 100644 --- a/src/sage/misc/lazy_attribute.pyx +++ b/src/sage/misc/lazy_attribute.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects """ Lazy attributes diff --git a/src/sage/misc/lazy_format.py b/src/sage/misc/lazy_format.py index b58ea155862..d5e411ff005 100644 --- a/src/sage/misc/lazy_format.py +++ b/src/sage/misc/lazy_format.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects """ Lazy format strings """ diff --git a/src/sage/misc/lazy_import.pyx b/src/sage/misc/lazy_import.pyx index c9b09dc1ef5..d20366f338a 100644 --- a/src/sage/misc/lazy_import.pyx +++ b/src/sage/misc/lazy_import.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects r""" Lazy imports diff --git a/src/sage/misc/lazy_import_cache.py b/src/sage/misc/lazy_import_cache.py index 191a2058e2b..5e8c3034814 100644 --- a/src/sage/misc/lazy_import_cache.py +++ b/src/sage/misc/lazy_import_cache.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects """ Lazy import cache diff --git a/src/sage/misc/lazy_list.pxd b/src/sage/misc/lazy_list.pxd index d512cfb69f4..6727726983f 100644 --- a/src/sage/misc/lazy_list.pxd +++ b/src/sage/misc/lazy_list.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects cdef class lazy_list_generic(): cdef list cache # the cache cdef lazy_list_generic master # a reference if self is a slice diff --git a/src/sage/misc/lazy_list.pyx b/src/sage/misc/lazy_list.pyx index 71847e566ad..d0f86d9b28b 100644 --- a/src/sage/misc/lazy_list.pyx +++ b/src/sage/misc/lazy_list.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects r""" Lazy lists diff --git a/src/sage/misc/lazy_string.pxd b/src/sage/misc/lazy_string.pxd index d74a18763a2..8d8b7485096 100644 --- a/src/sage/misc/lazy_string.pxd +++ b/src/sage/misc/lazy_string.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects cdef class _LazyString(): cdef func cdef args diff --git a/src/sage/misc/lazy_string.pyx b/src/sage/misc/lazy_string.pyx index 4777c44a7a2..4d59d98775c 100644 --- a/src/sage/misc/lazy_string.pyx +++ b/src/sage/misc/lazy_string.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects # -*- coding: utf-8 -*- """ Lazy strings diff --git a/src/sage/misc/map_threaded.py b/src/sage/misc/map_threaded.py index db525e0ef6f..8c2a9db5ed4 100644 --- a/src/sage/misc/map_threaded.py +++ b/src/sage/misc/map_threaded.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Threaded map function """ diff --git a/src/sage/misc/mathml.py b/src/sage/misc/mathml.py index bdb0e6fffe0..5b0a047c7cd 100644 --- a/src/sage/misc/mathml.py +++ b/src/sage/misc/mathml.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ MathML output support diff --git a/src/sage/misc/method_decorator.py b/src/sage/misc/method_decorator.py index 2e7cf206da2..48cc2f64faf 100644 --- a/src/sage/misc/method_decorator.py +++ b/src/sage/misc/method_decorator.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Base Class to Support Method Decorators diff --git a/src/sage/misc/misc.py b/src/sage/misc/misc.py index 4f60a11b780..5afb4d1e848 100644 --- a/src/sage/misc/misc.py +++ b/src/sage/misc/misc.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects """ Miscellaneous functions diff --git a/src/sage/misc/misc_c.pxd b/src/sage/misc/misc_c.pxd index 17ef467911a..81cc6a0b2d0 100644 --- a/src/sage/misc/misc_c.pxd +++ b/src/sage/misc/misc_c.pxd @@ -1,2 +1,3 @@ +# sage_setup: distribution = sagemath-objects cpdef list normalize_index(object key, int size) noexcept diff --git a/src/sage/misc/misc_c.pyx b/src/sage/misc/misc_c.pyx index b60794c32d0..36473817e15 100644 --- a/src/sage/misc/misc_c.pyx +++ b/src/sage/misc/misc_c.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects """ Miscellaneous functions (Cython) diff --git a/src/sage/misc/mrange.py b/src/sage/misc/mrange.py index 1c93c811b2e..961f214077b 100644 --- a/src/sage/misc/mrange.py +++ b/src/sage/misc/mrange.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Multidimensional enumeration diff --git a/src/sage/misc/multireplace.py b/src/sage/misc/multireplace.py index 3b70d60e50c..debdd5d56b7 100644 --- a/src/sage/misc/multireplace.py +++ b/src/sage/misc/multireplace.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories "multi_replace" ########################################################################## diff --git a/src/sage/misc/namespace_package.py b/src/sage/misc/namespace_package.py index eaa05bdfd71..61ba9e25727 100644 --- a/src/sage/misc/namespace_package.py +++ b/src/sage/misc/namespace_package.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects """ Utility functions for namespace packages in Sage """ diff --git a/src/sage/misc/nested_class.pxd b/src/sage/misc/nested_class.pxd index ac64c28422e..ce96f44df8e 100644 --- a/src/sage/misc/nested_class.pxd +++ b/src/sage/misc/nested_class.pxd @@ -1,2 +1,3 @@ +# sage_setup: distribution = sagemath-objects cdef class NestedClassMetaclass(type): pass diff --git a/src/sage/misc/nested_class.pyx b/src/sage/misc/nested_class.pyx index e397b356c22..09f12fe6023 100644 --- a/src/sage/misc/nested_class.pyx +++ b/src/sage/misc/nested_class.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects """ Fixing pickle for nested classes diff --git a/src/sage/misc/object_multiplexer.py b/src/sage/misc/object_multiplexer.py index 00fd89d6652..202310f41f2 100644 --- a/src/sage/misc/object_multiplexer.py +++ b/src/sage/misc/object_multiplexer.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Multiplex calls to one object to calls to many objects diff --git a/src/sage/misc/package.py b/src/sage/misc/package.py index d64c53ac3e8..cb48064b840 100644 --- a/src/sage/misc/package.py +++ b/src/sage/misc/package.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-environment r""" Listing Sage packages diff --git a/src/sage/misc/pager.py b/src/sage/misc/pager.py index 84833d6135a..2e5cd592676 100644 --- a/src/sage/misc/pager.py +++ b/src/sage/misc/pager.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl """ Pager for showing strings diff --git a/src/sage/misc/parser.pyx b/src/sage/misc/parser.pyx index ef0219d5a80..a3bfa0991f1 100644 --- a/src/sage/misc/parser.pyx +++ b/src/sage/misc/parser.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # -*- coding: utf-8 -*- """ A parser for symbolic equations and expressions diff --git a/src/sage/misc/persist.pyx b/src/sage/misc/persist.pyx index ade86328454..b4d4f13cc3c 100644 --- a/src/sage/misc/persist.pyx +++ b/src/sage/misc/persist.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects # cython: old_style_globals=True # The old_style_globals directive is important for load() to work correctly. # However, this should be removed in favor of user_globals; see diff --git a/src/sage/misc/pickle_old.pyx b/src/sage/misc/pickle_old.pyx index ede0c6abe06..58e9a02d0c1 100644 --- a/src/sage/misc/pickle_old.pyx +++ b/src/sage/misc/pickle_old.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.misc.superseded import deprecation_cython as deprecation import sage.rings.fraction_field_element diff --git a/src/sage/misc/prandom.py b/src/sage/misc/prandom.py index 800ed60aedd..e49bf2af7ea 100644 --- a/src/sage/misc/prandom.py +++ b/src/sage/misc/prandom.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects r""" Random Numbers with Python API diff --git a/src/sage/misc/profiler.py b/src/sage/misc/profiler.py index a8e3592d935..1f0592ede6c 100644 --- a/src/sage/misc/profiler.py +++ b/src/sage/misc/profiler.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl r""" Simple profiling tool diff --git a/src/sage/misc/proof.py b/src/sage/misc/proof.py index 12a14869fd5..d4197bc7419 100644 --- a/src/sage/misc/proof.py +++ b/src/sage/misc/proof.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Whether or not computations are provably correct by default """ diff --git a/src/sage/misc/random_testing.py b/src/sage/misc/random_testing.py index 9dfb866bbc4..f371642bb13 100644 --- a/src/sage/misc/random_testing.py +++ b/src/sage/misc/random_testing.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Random testing diff --git a/src/sage/misc/randstate.pxd b/src/sage/misc/randstate.pxd index c83873a7c99..5fe093ee723 100644 --- a/src/sage/misc/randstate.pxd +++ b/src/sage/misc/randstate.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects from sage.libs.gmp.types cimport gmp_randstate_t # The c_random() method on randstate objects gives a value diff --git a/src/sage/misc/randstate.pyx b/src/sage/misc/randstate.pyx index 5c883c928b4..f2e4fab2374 100644 --- a/src/sage/misc/randstate.pyx +++ b/src/sage/misc/randstate.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects # sage.doctest: needs sage.groups sage.libs.gap sage.libs.ntl sage.libs.pari r""" Random Number States diff --git a/src/sage/misc/replace_dot_all.py b/src/sage/misc/replace_dot_all.py index 4f872f2691b..231f7d8a6c6 100644 --- a/src/sage/misc/replace_dot_all.py +++ b/src/sage/misc/replace_dot_all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Implementation of the command ``sage --fiximports``. diff --git a/src/sage/misc/repr.py b/src/sage/misc/repr.py index ae873edea95..6c22f6053aa 100644 --- a/src/sage/misc/repr.py +++ b/src/sage/misc/repr.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects """ Repr formatting support """ diff --git a/src/sage/misc/reset.pyx b/src/sage/misc/reset.pyx index 23cad11fb77..1dc55f23165 100644 --- a/src/sage/misc/reset.pyx +++ b/src/sage/misc/reset.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects # cython: old_style_globals=True """ Interpreter reset diff --git a/src/sage/misc/rest_index_of_methods.py b/src/sage/misc/rest_index_of_methods.py index d1b102829c9..0dfc461d92b 100644 --- a/src/sage/misc/rest_index_of_methods.py +++ b/src/sage/misc/rest_index_of_methods.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" ReST index of functions diff --git a/src/sage/misc/sage_eval.py b/src/sage/misc/sage_eval.py index ec6d94543f9..3f0a62931d6 100644 --- a/src/sage/misc/sage_eval.py +++ b/src/sage/misc/sage_eval.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl r""" Evaluating a String in Sage """ diff --git a/src/sage/misc/sage_input.py b/src/sage/misc/sage_input.py index be38a27d683..a71a9d98c63 100644 --- a/src/sage/misc/sage_input.py +++ b/src/sage/misc/sage_input.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl r""" Sage Input Formatting diff --git a/src/sage/misc/sage_ostools.pyx b/src/sage/misc/sage_ostools.pyx index 64e9c42809b..e1cb249bfd1 100644 --- a/src/sage/misc/sage_ostools.pyx +++ b/src/sage/misc/sage_ostools.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects """ Miscellaneous operating system functions """ diff --git a/src/sage/misc/sage_timeit.py b/src/sage/misc/sage_timeit.py index 89c813e563b..b1591b944fb 100644 --- a/src/sage/misc/sage_timeit.py +++ b/src/sage/misc/sage_timeit.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects """ Accurate timing information for Sage commands diff --git a/src/sage/misc/sage_timeit_class.pyx b/src/sage/misc/sage_timeit_class.pyx index f568886574f..06afeb391ad 100644 --- a/src/sage/misc/sage_timeit_class.pyx +++ b/src/sage/misc/sage_timeit_class.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects # This is here in Cython so we can access the interpreter globals # cython: old_style_globals=True """ diff --git a/src/sage/misc/sage_unittest.py b/src/sage/misc/sage_unittest.py index da99c3ea92d..e7b8c41b444 100644 --- a/src/sage/misc/sage_unittest.py +++ b/src/sage/misc/sage_unittest.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects r""" Unit testing for Sage objects """ diff --git a/src/sage/misc/sagedoc.py b/src/sage/misc/sagedoc.py index 2632d0c4359..e1160d66066 100644 --- a/src/sage/misc/sagedoc.py +++ b/src/sage/misc/sagedoc.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl r""" Format Sage documentation for viewing with IPython and the notebook diff --git a/src/sage/misc/sagedoc_conf.py b/src/sage/misc/sagedoc_conf.py index 2cacfcf8327..723898b01c8 100644 --- a/src/sage/misc/sagedoc_conf.py +++ b/src/sage/misc/sagedoc_conf.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Sphinx configuration shared by sage.misc.sphinxify and sage_docbuild """ diff --git a/src/sage/misc/sageinspect.py b/src/sage/misc/sageinspect.py index cc8dfd24f83..501a182e070 100644 --- a/src/sage/misc/sageinspect.py +++ b/src/sage/misc/sageinspect.py @@ -26,7 +26,7 @@ 'Rational Numbers...' sage: sage_getsource(sage.rings.rational) - '# sage_setup: distribution = ...# distutils: ...Rational Numbers...' + '# sage_setup: distribution = sagemath-objects...# distutils: ...Rational Numbers...' Python modules:: diff --git a/src/sage/misc/search.pxd b/src/sage/misc/search.pxd index 0986f27c51d..851cce551ee 100644 --- a/src/sage/misc/search.pxd +++ b/src/sage/misc/search.pxd @@ -1 +1,2 @@ -cpdef search(object v, object x) noexcept \ No newline at end of file +# sage_setup: distribution = sagemath-categories +cpdef search(object v, object x) noexcept diff --git a/src/sage/misc/search.pyx b/src/sage/misc/search.pyx index 3991bbc8f3e..f1c47d7e2bb 100644 --- a/src/sage/misc/search.pyx +++ b/src/sage/misc/search.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Searching a sorted list diff --git a/src/sage/misc/session.pyx b/src/sage/misc/session.pyx index 31454dac993..2bea5f56bea 100644 --- a/src/sage/misc/session.pyx +++ b/src/sage/misc/session.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects r""" Loading and saving sessions and listing all variables diff --git a/src/sage/misc/sphinxify.py b/src/sage/misc/sphinxify.py index 2fb6e95395c..e89137113f0 100644 --- a/src/sage/misc/sphinxify.py +++ b/src/sage/misc/sphinxify.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: optional - sphinx r""" Process docstrings with Sphinx diff --git a/src/sage/misc/stopgap.pyx b/src/sage/misc/stopgap.pyx index 0ca72e9fe1a..9aedd5ef1b1 100644 --- a/src/sage/misc/stopgap.pyx +++ b/src/sage/misc/stopgap.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Stopgaps """ diff --git a/src/sage/misc/superseded.py b/src/sage/misc/superseded.py index 87352e4f361..f86d17a379e 100644 --- a/src/sage/misc/superseded.py +++ b/src/sage/misc/superseded.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects """ Handling Superseded Functionality diff --git a/src/sage/misc/table.py b/src/sage/misc/table.py index b682bbbd440..276a6d01f66 100644 --- a/src/sage/misc/table.py +++ b/src/sage/misc/table.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Tables diff --git a/src/sage/misc/temporary_file.py b/src/sage/misc/temporary_file.py index 308867afe69..317855b4c4d 100644 --- a/src/sage/misc/temporary_file.py +++ b/src/sage/misc/temporary_file.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-environment """ Temporary file handling diff --git a/src/sage/misc/test_class_pickling.py b/src/sage/misc/test_class_pickling.py index f9c8003fa4a..c4af34f2132 100644 --- a/src/sage/misc/test_class_pickling.py +++ b/src/sage/misc/test_class_pickling.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules import copyreg diff --git a/src/sage/misc/test_nested_class.py b/src/sage/misc/test_nested_class.py index 40712bfc9fb..747eecab5e4 100644 --- a/src/sage/misc/test_nested_class.py +++ b/src/sage/misc/test_nested_class.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects """ Test for nested class Parent diff --git a/src/sage/misc/timing.py b/src/sage/misc/timing.py index 5e5c49b9594..5d82fa5f538 100644 --- a/src/sage/misc/timing.py +++ b/src/sage/misc/timing.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects r""" Timing functions """ diff --git a/src/sage/misc/trace.py b/src/sage/misc/trace.py index 6807cfb1940..f1d25a21259 100644 --- a/src/sage/misc/trace.py +++ b/src/sage/misc/trace.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl """ Interactively tracing execution of a command """ diff --git a/src/sage/misc/unknown.py b/src/sage/misc/unknown.py index b87a3e67506..7c4e71a5f18 100644 --- a/src/sage/misc/unknown.py +++ b/src/sage/misc/unknown.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects """ The Unknown truth value diff --git a/src/sage/misc/verbose.py b/src/sage/misc/verbose.py index 184f8d10053..2c186b445aa 100644 --- a/src/sage/misc/verbose.py +++ b/src/sage/misc/verbose.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects r""" Verbosity System and Logging in SageMath diff --git a/src/sage/misc/viewer.py b/src/sage/misc/viewer.py index 85ff09aa341..caca6647acf 100644 --- a/src/sage/misc/viewer.py +++ b/src/sage/misc/viewer.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-environment r""" Determination of programs for viewing web pages, etc. diff --git a/src/sage/misc/weak_dict.pxd b/src/sage/misc/weak_dict.pxd index f1e85012be7..7be392b79f3 100644 --- a/src/sage/misc/weak_dict.pxd +++ b/src/sage/misc/weak_dict.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects cdef class WeakValueDictionary(dict): cdef __weakref__ cdef callback diff --git a/src/sage/misc/weak_dict.pyx b/src/sage/misc/weak_dict.pyx index 1d4e9f24093..4e221de0ebf 100644 --- a/src/sage/misc/weak_dict.pyx +++ b/src/sage/misc/weak_dict.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects """ Fast and safe weak value dictionary diff --git a/src/sage/modular/abvar/abvar.py b/src/sage/modular/abvar/abvar.py index f47e1fc7448..ea1c0f6c5d1 100644 --- a/src/sage/modular/abvar/abvar.py +++ b/src/sage/modular/abvar/abvar.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.flint sage.libs.pari """ Base class for modular abelian varieties diff --git a/src/sage/modular/abvar/abvar_ambient_jacobian.py b/src/sage/modular/abvar/abvar_ambient_jacobian.py index 32a006b3729..bb5d66cb327 100644 --- a/src/sage/modular/abvar/abvar_ambient_jacobian.py +++ b/src/sage/modular/abvar/abvar_ambient_jacobian.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes """ Ambient Jacobian abelian variety diff --git a/src/sage/modular/abvar/abvar_newform.py b/src/sage/modular/abvar/abvar_newform.py index 5d4976d5d54..af2be64c305 100644 --- a/src/sage/modular/abvar/abvar_newform.py +++ b/src/sage/modular/abvar/abvar_newform.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.pari """ Abelian varieties attached to newforms diff --git a/src/sage/modular/abvar/all.py b/src/sage/modular/abvar/all.py index f0971bc0b42..5eb929e818e 100644 --- a/src/sage/modular/abvar/all.py +++ b/src/sage/modular/abvar/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes ########################################################################### # Copyright (C) 2007 William Stein # # Distributed under the terms of the GNU General Public License (GPL) # diff --git a/src/sage/modular/abvar/constructor.py b/src/sage/modular/abvar/constructor.py index 5dd6a77b4ca..0155acf27c9 100644 --- a/src/sage/modular/abvar/constructor.py +++ b/src/sage/modular/abvar/constructor.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes """ Constructors for certain modular abelian varieties diff --git a/src/sage/modular/abvar/cuspidal_subgroup.py b/src/sage/modular/abvar/cuspidal_subgroup.py index 82e373ad716..efacd8d21c5 100644 --- a/src/sage/modular/abvar/cuspidal_subgroup.py +++ b/src/sage/modular/abvar/cuspidal_subgroup.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes """ Cuspidal subgroups of modular abelian varieties diff --git a/src/sage/modular/abvar/finite_subgroup.py b/src/sage/modular/abvar/finite_subgroup.py index 2725e11a387..8df71f0fc0e 100644 --- a/src/sage/modular/abvar/finite_subgroup.py +++ b/src/sage/modular/abvar/finite_subgroup.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.pari r""" Finite subgroups of modular abelian varieties diff --git a/src/sage/modular/abvar/homology.py b/src/sage/modular/abvar/homology.py index 59cc17a77e7..cc31fb5c36c 100644 --- a/src/sage/modular/abvar/homology.py +++ b/src/sage/modular/abvar/homology.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.flint sage.libs.pari r""" Homology of modular abelian varieties diff --git a/src/sage/modular/abvar/homspace.py b/src/sage/modular/abvar/homspace.py index 86780fabdd6..7e5e8a86423 100644 --- a/src/sage/modular/abvar/homspace.py +++ b/src/sage/modular/abvar/homspace.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.flint sage.libs.pari """ Spaces of homomorphisms between modular abelian varieties diff --git a/src/sage/modular/abvar/lseries.py b/src/sage/modular/abvar/lseries.py index 4d67f7b2dfd..a27812b222b 100644 --- a/src/sage/modular/abvar/lseries.py +++ b/src/sage/modular/abvar/lseries.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.flint """ `L`-series of modular abelian varieties diff --git a/src/sage/modular/abvar/morphism.py b/src/sage/modular/abvar/morphism.py index cc7e5a22ab2..b85cc670df9 100644 --- a/src/sage/modular/abvar/morphism.py +++ b/src/sage/modular/abvar/morphism.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.flint r""" Hecke operators and morphisms between modular abelian varieties diff --git a/src/sage/modular/abvar/torsion_point.py b/src/sage/modular/abvar/torsion_point.py index 6702a231cbb..849b9451f30 100644 --- a/src/sage/modular/abvar/torsion_point.py +++ b/src/sage/modular/abvar/torsion_point.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.rings.number_field """ Torsion points on modular abelian varieties diff --git a/src/sage/modular/abvar/torsion_subgroup.py b/src/sage/modular/abvar/torsion_subgroup.py index 5993a611355..25cd48ada24 100644 --- a/src/sage/modular/abvar/torsion_subgroup.py +++ b/src/sage/modular/abvar/torsion_subgroup.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.flint sage.libs.pari """ Torsion subgroups of modular abelian varieties diff --git a/src/sage/modular/all.py b/src/sage/modular/all.py index cfccb18e65f..0cf2e519b51 100644 --- a/src/sage/modular/all.py +++ b/src/sage/modular/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes from sage.misc.lazy_import import lazy_import from .quatalg.all import * diff --git a/src/sage/modular/arithgroup/all.py b/src/sage/modular/arithgroup/all.py index d4fb241d1f9..57a099c8e72 100644 --- a/src/sage/modular/arithgroup/all.py +++ b/src/sage/modular/arithgroup/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # Note: the is_xxx functions are imported to here, but not from here up to sage.modular.all, so # they are invisible to the user but easy to import all in one go by other code that needs them. diff --git a/src/sage/modular/arithgroup/arithgroup_element.pyx b/src/sage/modular/arithgroup/arithgroup_element.pyx index 86f2e550d18..afbc27b077e 100644 --- a/src/sage/modular/arithgroup/arithgroup_element.pyx +++ b/src/sage/modular/arithgroup/arithgroup_element.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes """ Elements of arithmetic subgroups """ diff --git a/src/sage/modular/arithgroup/arithgroup_generic.py b/src/sage/modular/arithgroup/arithgroup_generic.py index 0547901b1f1..26a13d068d9 100644 --- a/src/sage/modular/arithgroup/arithgroup_generic.py +++ b/src/sage/modular/arithgroup/arithgroup_generic.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.pari r""" Arithmetic subgroups, finite index subgroups of `\SL_2(\ZZ)` diff --git a/src/sage/modular/arithgroup/arithgroup_perm.py b/src/sage/modular/arithgroup/arithgroup_perm.py index 8204995e1d1..f3c48c42260 100644 --- a/src/sage/modular/arithgroup/arithgroup_perm.py +++ b/src/sage/modular/arithgroup/arithgroup_perm.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.groups r""" Arithmetic subgroups defined by permutations of cosets diff --git a/src/sage/modular/arithgroup/congroup.pyx b/src/sage/modular/arithgroup/congroup.pyx index 002e3bb02da..90a4b113392 100644 --- a/src/sage/modular/arithgroup/congroup.pyx +++ b/src/sage/modular/arithgroup/congroup.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes r""" Helper functions for congruence subgroups diff --git a/src/sage/modular/arithgroup/congroup_gamma.py b/src/sage/modular/arithgroup/congroup_gamma.py index 47d5390b8f4..5687042301d 100644 --- a/src/sage/modular/arithgroup/congroup_gamma.py +++ b/src/sage/modular/arithgroup/congroup_gamma.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes r""" Congruence subgroup `\Gamma(N)` """ diff --git a/src/sage/modular/arithgroup/congroup_gamma0.py b/src/sage/modular/arithgroup/congroup_gamma0.py index aecf1582f98..21231c5fab1 100644 --- a/src/sage/modular/arithgroup/congroup_gamma0.py +++ b/src/sage/modular/arithgroup/congroup_gamma0.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.pari r""" Congruence subgroup `\Gamma_0(N)` diff --git a/src/sage/modular/arithgroup/congroup_gamma1.py b/src/sage/modular/arithgroup/congroup_gamma1.py index c8bc6fb0320..0fabea5126b 100644 --- a/src/sage/modular/arithgroup/congroup_gamma1.py +++ b/src/sage/modular/arithgroup/congroup_gamma1.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.pari r""" Congruence subgroup `\Gamma_1(N)` diff --git a/src/sage/modular/arithgroup/congroup_gammaH.py b/src/sage/modular/arithgroup/congroup_gammaH.py index 9310ecae804..2a204542ab3 100644 --- a/src/sage/modular/arithgroup/congroup_gammaH.py +++ b/src/sage/modular/arithgroup/congroup_gammaH.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.pari r""" Congruence subgroup `\Gamma_H(N)` diff --git a/src/sage/modular/arithgroup/congroup_generic.py b/src/sage/modular/arithgroup/congroup_generic.py index 3fd60c06165..7cabf15d855 100644 --- a/src/sage/modular/arithgroup/congroup_generic.py +++ b/src/sage/modular/arithgroup/congroup_generic.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.flint sage.libs.gap sage.libs.pari r""" Congruence arithmetic subgroups of `\SL_2(\ZZ)` diff --git a/src/sage/modular/arithgroup/congroup_sl2z.py b/src/sage/modular/arithgroup/congroup_sl2z.py index e0bc3abe12e..6cf5f82ba43 100644 --- a/src/sage/modular/arithgroup/congroup_sl2z.py +++ b/src/sage/modular/arithgroup/congroup_sl2z.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes r""" The modular group `\SL_2(\ZZ)` diff --git a/src/sage/modular/arithgroup/farey_symbol.pyx b/src/sage/modular/arithgroup/farey_symbol.pyx index 27cbeafd9fc..2d7cd8dd5cc 100644 --- a/src/sage/modular/arithgroup/farey_symbol.pyx +++ b/src/sage/modular/arithgroup/farey_symbol.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # distutils: sources = sage/modular/arithgroup/sl2z.cpp sage/modular/arithgroup/farey.cpp # sage.doctest: needs sage.libs.pari r""" diff --git a/src/sage/modular/arithgroup/tests.py b/src/sage/modular/arithgroup/tests.py index d30ead3ac4c..080067913e6 100644 --- a/src/sage/modular/arithgroup/tests.py +++ b/src/sage/modular/arithgroup/tests.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.groups r""" Testing arithmetic subgroup diff --git a/src/sage/modular/btquotients/all.py b/src/sage/modular/btquotients/all.py index 3807442da70..d392bdec649 100644 --- a/src/sage/modular/btquotients/all.py +++ b/src/sage/modular/btquotients/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes from .btquotient import BruhatTitsQuotient #from pautomorphicform import pAdicAutomorphicForms #from pautomorphicform import BruhatTitsHarmonicCocycles diff --git a/src/sage/modular/btquotients/btquotient.py b/src/sage/modular/btquotients/btquotient.py index acb47da55e7..57cc8c8b3b5 100644 --- a/src/sage/modular/btquotients/btquotient.py +++ b/src/sage/modular/btquotients/btquotient.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.pari r""" Quotients of the Bruhat-Tits tree diff --git a/src/sage/modular/btquotients/pautomorphicform.py b/src/sage/modular/btquotients/pautomorphicform.py index 656c1f42d89..3272f72023b 100644 --- a/src/sage/modular/btquotients/pautomorphicform.py +++ b/src/sage/modular/btquotients/pautomorphicform.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.pari ######################################################################### # Copyright (C) 2011 Cameron Franc and Marc Masdeu diff --git a/src/sage/modular/buzzard.py b/src/sage/modular/buzzard.py index 72e72e745cc..06583f1a435 100644 --- a/src/sage/modular/buzzard.py +++ b/src/sage/modular/buzzard.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.pari """ Conjectural slopes of Hecke polynomials diff --git a/src/sage/modular/congroup.py b/src/sage/modular/congroup.py index 23a6679fdcc..57ae81ec647 100644 --- a/src/sage/modular/congroup.py +++ b/src/sage/modular/congroup.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes ########################################################### # Re-bindings for unpickling # diff --git a/src/sage/modular/congroup_element.py b/src/sage/modular/congroup_element.py index 61ae5071e46..f599fcf9c64 100644 --- a/src/sage/modular/congroup_element.py +++ b/src/sage/modular/congroup_element.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes ########################################################### # Re-bindings for unpickling # diff --git a/src/sage/modular/cusps.py b/src/sage/modular/cusps.py index 39d72a71209..2ac4035ceee 100644 --- a/src/sage/modular/cusps.py +++ b/src/sage/modular/cusps.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes r""" The set `\mathbb{P}^1(\QQ)` of cusps diff --git a/src/sage/modular/cusps_nf.py b/src/sage/modular/cusps_nf.py index 8d8b580a74e..73f020879ad 100644 --- a/src/sage/modular/cusps_nf.py +++ b/src/sage/modular/cusps_nf.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.rings.number_field r""" The set `\mathbb{P}^1(K)` of cusps of a number field `K` diff --git a/src/sage/modular/dims.py b/src/sage/modular/dims.py index ab1f9cbc268..e62cca1530f 100644 --- a/src/sage/modular/dims.py +++ b/src/sage/modular/dims.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.pari r""" Dimensions of spaces of modular forms diff --git a/src/sage/modular/dirichlet.py b/src/sage/modular/dirichlet.py index 568e7c678f0..689dcab5e65 100644 --- a/src/sage/modular/dirichlet.py +++ b/src/sage/modular/dirichlet.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.pari r""" Dirichlet characters diff --git a/src/sage/modular/etaproducts.py b/src/sage/modular/etaproducts.py index 27b2edd39a3..76e1a07dbe2 100644 --- a/src/sage/modular/etaproducts.py +++ b/src/sage/modular/etaproducts.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes r""" Eta-products on modular curves `X_0(N)` diff --git a/src/sage/modular/hecke/algebra.py b/src/sage/modular/hecke/algebra.py index e0f539a507b..4524dd7b3e0 100644 --- a/src/sage/modular/hecke/algebra.py +++ b/src/sage/modular/hecke/algebra.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.flint sage.libs.pari """ Hecke algebras diff --git a/src/sage/modular/hecke/all.py b/src/sage/modular/hecke/all.py index 0aaa2232773..af2b0b5015f 100644 --- a/src/sage/modular/hecke/all.py +++ b/src/sage/modular/hecke/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes from .homspace import HeckeModuleHomspace, is_HeckeModuleHomspace from .module import HeckeModule_free_module, HeckeModule_generic, is_HeckeModule diff --git a/src/sage/modular/hecke/ambient_module.py b/src/sage/modular/hecke/ambient_module.py index 4d0b4c583ea..01ba5641b36 100644 --- a/src/sage/modular/hecke/ambient_module.py +++ b/src/sage/modular/hecke/ambient_module.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.flint sage.libs.pari """ Ambient Hecke modules diff --git a/src/sage/modular/hecke/degenmap.py b/src/sage/modular/hecke/degenmap.py index 887506e7559..1590a691f19 100644 --- a/src/sage/modular/hecke/degenmap.py +++ b/src/sage/modular/hecke/degenmap.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.flint """ Degeneracy maps diff --git a/src/sage/modular/hecke/element.py b/src/sage/modular/hecke/element.py index d4ecd4b380a..9adb99579fe 100644 --- a/src/sage/modular/hecke/element.py +++ b/src/sage/modular/hecke/element.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.flint sage.libs.pari """ Elements of Hecke modules diff --git a/src/sage/modular/hecke/hecke_operator.py b/src/sage/modular/hecke/hecke_operator.py index a6b3faf2ffc..78290a95caa 100644 --- a/src/sage/modular/hecke/hecke_operator.py +++ b/src/sage/modular/hecke/hecke_operator.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.flint sage.libs.pari """ Hecke operators diff --git a/src/sage/modular/hecke/homspace.py b/src/sage/modular/hecke/homspace.py index 1e6f55e0838..6c33f233926 100644 --- a/src/sage/modular/hecke/homspace.py +++ b/src/sage/modular/hecke/homspace.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.pari r""" Hom spaces between Hecke modules diff --git a/src/sage/modular/hecke/module.py b/src/sage/modular/hecke/module.py index d0d8d5e49d7..3a34f87c129 100644 --- a/src/sage/modular/hecke/module.py +++ b/src/sage/modular/hecke/module.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.flint sage.libs.pari """ Hecke modules diff --git a/src/sage/modular/hecke/morphism.py b/src/sage/modular/hecke/morphism.py index ac9cfbf4e84..b3f105807e2 100644 --- a/src/sage/modular/hecke/morphism.py +++ b/src/sage/modular/hecke/morphism.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.flint """ Morphisms of Hecke modules diff --git a/src/sage/modular/hecke/submodule.py b/src/sage/modular/hecke/submodule.py index 379daa00f7a..0534722192f 100644 --- a/src/sage/modular/hecke/submodule.py +++ b/src/sage/modular/hecke/submodule.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.flint sage.libs.pari """ Submodules of Hecke modules diff --git a/src/sage/modular/hypergeometric_misc.pxd b/src/sage/modular/hypergeometric_misc.pxd index 4198ca8848b..5a3a40fcadd 100644 --- a/src/sage/modular/hypergeometric_misc.pxd +++ b/src/sage/modular/hypergeometric_misc.pxd @@ -1,2 +1,3 @@ +# sage_setup: distribution = sagemath-schemes cpdef hgm_coeffs(long long p, int f, int prec, gamma, m, int D, gtable, int gtable_prec, bint use_longs) noexcept diff --git a/src/sage/modular/hypergeometric_misc.pyx b/src/sage/modular/hypergeometric_misc.pyx index a930d2414bf..d48dcdec40d 100644 --- a/src/sage/modular/hypergeometric_misc.pyx +++ b/src/sage/modular/hypergeometric_misc.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes """ Some utility routines for the hypergeometric motives package that benefit significantly from Cythonization. diff --git a/src/sage/modular/hypergeometric_motive.py b/src/sage/modular/hypergeometric_motive.py index 8dbec096831..ac0f528f111 100644 --- a/src/sage/modular/hypergeometric_motive.py +++ b/src/sage/modular/hypergeometric_motive.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes """ Hypergeometric motives diff --git a/src/sage/modular/local_comp/all.py b/src/sage/modular/local_comp/all.py index 1df1ec59fd6..b7ec47b1b85 100644 --- a/src/sage/modular/local_comp/all.py +++ b/src/sage/modular/local_comp/all.py @@ -1 +1,2 @@ +# sage_setup: distribution = sagemath-schemes from .local_comp import LocalComponent diff --git a/src/sage/modular/local_comp/liftings.py b/src/sage/modular/local_comp/liftings.py index dcb901cc3a1..fa5ef7d369a 100644 --- a/src/sage/modular/local_comp/liftings.py +++ b/src/sage/modular/local_comp/liftings.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes r""" Helper functions for local components diff --git a/src/sage/modular/local_comp/local_comp.py b/src/sage/modular/local_comp/local_comp.py index 0fb990c17de..21f62500928 100644 --- a/src/sage/modular/local_comp/local_comp.py +++ b/src/sage/modular/local_comp/local_comp.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.pari r""" Local components of modular forms diff --git a/src/sage/modular/local_comp/smoothchar.py b/src/sage/modular/local_comp/smoothchar.py index 333b609aef6..f5359884d0a 100644 --- a/src/sage/modular/local_comp/smoothchar.py +++ b/src/sage/modular/local_comp/smoothchar.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.pari sage.rings.number_field r""" Smooth characters of `p`-adic fields diff --git a/src/sage/modular/local_comp/type_space.py b/src/sage/modular/local_comp/type_space.py index e3bf9c3bf1b..68e5766e4f7 100644 --- a/src/sage/modular/local_comp/type_space.py +++ b/src/sage/modular/local_comp/type_space.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.pari r""" Type spaces of newforms diff --git a/src/sage/modular/modform/all.py b/src/sage/modular/modform/all.py index feb1521d3ca..9aa7296441a 100644 --- a/src/sage/modular/modform/all.py +++ b/src/sage/modular/modform/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes ######################################################################### # Copyright (C) 2004--2006 William Stein # diff --git a/src/sage/modular/modform/ambient.py b/src/sage/modular/modform/ambient.py index 825b572688d..4e3804eb0f2 100644 --- a/src/sage/modular/modform/ambient.py +++ b/src/sage/modular/modform/ambient.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.pari r""" Ambient spaces of modular forms diff --git a/src/sage/modular/modform/ambient_R.py b/src/sage/modular/modform/ambient_R.py index 64188bb3892..eaf216bd23d 100644 --- a/src/sage/modular/modform/ambient_R.py +++ b/src/sage/modular/modform/ambient_R.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.pari """ Modular forms over a non-minimal base ring diff --git a/src/sage/modular/modform/ambient_eps.py b/src/sage/modular/modform/ambient_eps.py index 57bad5752eb..0fe07aef281 100644 --- a/src/sage/modular/modform/ambient_eps.py +++ b/src/sage/modular/modform/ambient_eps.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.pari sage.rings.number_field r""" Modular forms with character diff --git a/src/sage/modular/modform/ambient_g0.py b/src/sage/modular/modform/ambient_g0.py index 0b2ffb8fb83..17186291d89 100644 --- a/src/sage/modular/modform/ambient_g0.py +++ b/src/sage/modular/modform/ambient_g0.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.pari r""" Modular forms for `\Gamma_0(N)` over `\QQ` diff --git a/src/sage/modular/modform/ambient_g1.py b/src/sage/modular/modform/ambient_g1.py index 8c10c861cc0..55761e39668 100644 --- a/src/sage/modular/modform/ambient_g1.py +++ b/src/sage/modular/modform/ambient_g1.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes r""" Modular forms for `\Gamma_1(N)` and `\Gamma_H(N)` over `\QQ` diff --git a/src/sage/modular/modform/constructor.py b/src/sage/modular/modform/constructor.py index 2adde8bafc3..49bee50d8ed 100644 --- a/src/sage/modular/modform/constructor.py +++ b/src/sage/modular/modform/constructor.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.pari """ Creating spaces of modular forms diff --git a/src/sage/modular/modform/cuspidal_submodule.py b/src/sage/modular/modform/cuspidal_submodule.py index 19cb7c65d9d..c28171a9cd2 100644 --- a/src/sage/modular/modform/cuspidal_submodule.py +++ b/src/sage/modular/modform/cuspidal_submodule.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.pari """ The cuspidal subspace diff --git a/src/sage/modular/modform/defaults.py b/src/sage/modular/modform/defaults.py index e818030eebf..4a7d07edb69 100644 --- a/src/sage/modular/modform/defaults.py +++ b/src/sage/modular/modform/defaults.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes ######################################################################### # Copyright (C) 2004--2006 William Stein # diff --git a/src/sage/modular/modform/eis_series.py b/src/sage/modular/modform/eis_series.py index 19bf574dec8..177d15036f5 100644 --- a/src/sage/modular/modform/eis_series.py +++ b/src/sage/modular/modform/eis_series.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.flint sage.libs.pari """ Eisenstein series diff --git a/src/sage/modular/modform/eisenstein_submodule.py b/src/sage/modular/modform/eisenstein_submodule.py index 66e3dcca72f..0cabd7ab6b6 100644 --- a/src/sage/modular/modform/eisenstein_submodule.py +++ b/src/sage/modular/modform/eisenstein_submodule.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.pari """ The Eisenstein subspace diff --git a/src/sage/modular/modform/element.py b/src/sage/modular/modform/element.py index f3cab3dcfe4..e865b25d304 100644 --- a/src/sage/modular/modform/element.py +++ b/src/sage/modular/modform/element.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.flint sage.libs.pari """ Elements of modular forms spaces diff --git a/src/sage/modular/modform/find_generators.py b/src/sage/modular/modform/find_generators.py index 72080237d56..66e01cd12b5 100644 --- a/src/sage/modular/modform/find_generators.py +++ b/src/sage/modular/modform/find_generators.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.flint r""" This module is now called ``ring.py`` (see :trac:`31559`). Do not import from here as diff --git a/src/sage/modular/modform/half_integral.py b/src/sage/modular/modform/half_integral.py index eda22b15916..115a108c6ed 100644 --- a/src/sage/modular/modform/half_integral.py +++ b/src/sage/modular/modform/half_integral.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes r""" Compute spaces of half-integral weight modular forms diff --git a/src/sage/modular/modform/hecke_operator_on_qexp.py b/src/sage/modular/modform/hecke_operator_on_qexp.py index 52de2f5c54b..43289b868b1 100644 --- a/src/sage/modular/modform/hecke_operator_on_qexp.py +++ b/src/sage/modular/modform/hecke_operator_on_qexp.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.flint """ Hecke operators on `q`-expansions diff --git a/src/sage/modular/modform/j_invariant.py b/src/sage/modular/modform/j_invariant.py index 48b7c91fcb0..3297b0509e7 100644 --- a/src/sage/modular/modform/j_invariant.py +++ b/src/sage/modular/modform/j_invariant.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.flint r""" `q`-expansion of `j`-invariant diff --git a/src/sage/modular/modform/l_series_gross_zagier.py b/src/sage/modular/modform/l_series_gross_zagier.py index 28acdeeb978..39728eb87b9 100644 --- a/src/sage/modular/modform/l_series_gross_zagier.py +++ b/src/sage/modular/modform/l_series_gross_zagier.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes from sage.rings.integer import Integer from sage.structure.sage_object import SageObject from sage.lfunctions.dokchitser import Dokchitser diff --git a/src/sage/modular/modform/l_series_gross_zagier_coeffs.pyx b/src/sage/modular/modform/l_series_gross_zagier_coeffs.pyx index ffebe813c92..b6f4fd5370a 100644 --- a/src/sage/modular/modform/l_series_gross_zagier_coeffs.pyx +++ b/src/sage/modular/modform/l_series_gross_zagier_coeffs.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes from cysignals.memory cimport check_allocarray, check_calloc, sig_free from cysignals.signals cimport sig_check, sig_on, sig_off diff --git a/src/sage/modular/modform/notes.py b/src/sage/modular/modform/notes.py index 833bb017bfd..61064b6f40b 100644 --- a/src/sage/modular/modform/notes.py +++ b/src/sage/modular/modform/notes.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes r""" Design notes diff --git a/src/sage/modular/modform/numerical.py b/src/sage/modular/modform/numerical.py index e5444b25c22..874a4f554cf 100644 --- a/src/sage/modular/modform/numerical.py +++ b/src/sage/modular/modform/numerical.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.flint """ Numerical computation of newforms diff --git a/src/sage/modular/modform/periods.py b/src/sage/modular/modform/periods.py index d1b3dd72245..8c6fce42899 100644 --- a/src/sage/modular/modform/periods.py +++ b/src/sage/modular/modform/periods.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes """ Periods of modular forms """ diff --git a/src/sage/modular/modform/ring.py b/src/sage/modular/modform/ring.py index d7008429b5f..35145cae54e 100644 --- a/src/sage/modular/modform/ring.py +++ b/src/sage/modular/modform/ring.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.flint sage.libs.pari """ Graded rings of modular forms diff --git a/src/sage/modular/modform/space.py b/src/sage/modular/modform/space.py index de2b0e74cda..6e749ccb951 100644 --- a/src/sage/modular/modform/space.py +++ b/src/sage/modular/modform/space.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.pari r""" Generic spaces of modular forms diff --git a/src/sage/modular/modform/submodule.py b/src/sage/modular/modform/submodule.py index f2bc33f5782..3fe00bbee78 100644 --- a/src/sage/modular/modform/submodule.py +++ b/src/sage/modular/modform/submodule.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.pari """ Submodules of spaces of modular forms diff --git a/src/sage/modular/modform/tests.py b/src/sage/modular/modform/tests.py index ec831dcc84e..f47aead7639 100644 --- a/src/sage/modular/modform/tests.py +++ b/src/sage/modular/modform/tests.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.pari """ TESTS: diff --git a/src/sage/modular/modform/theta.py b/src/sage/modular/modform/theta.py index ea0a88c81ba..d2e247c5e61 100644 --- a/src/sage/modular/modform/theta.py +++ b/src/sage/modular/modform/theta.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes """ `q`-expansions of theta series diff --git a/src/sage/modular/modform/vm_basis.py b/src/sage/modular/modform/vm_basis.py index e79408d6f93..425764a7f85 100644 --- a/src/sage/modular/modform/vm_basis.py +++ b/src/sage/modular/modform/vm_basis.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.flint r""" The Victor Miller basis diff --git a/src/sage/modular/modform/weight1.py b/src/sage/modular/modform/weight1.py index c2ce006decb..b9c5eb31d5e 100644 --- a/src/sage/modular/modform/weight1.py +++ b/src/sage/modular/modform/weight1.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.pari r""" Weight 1 modular forms diff --git a/src/sage/modular/modform_hecketriangle/abstract_ring.py b/src/sage/modular/modform_hecketriangle/abstract_ring.py index 3b68a6e505c..4342a229740 100644 --- a/src/sage/modular/modform_hecketriangle/abstract_ring.py +++ b/src/sage/modular/modform_hecketriangle/abstract_ring.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes r""" Graded rings of modular forms for Hecke triangle groups diff --git a/src/sage/modular/modform_hecketriangle/abstract_space.py b/src/sage/modular/modform_hecketriangle/abstract_space.py index 47bd1e6c766..b6652b51412 100644 --- a/src/sage/modular/modform_hecketriangle/abstract_space.py +++ b/src/sage/modular/modform_hecketriangle/abstract_space.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.combinat sage.graphs r""" Modular forms for Hecke triangle groups diff --git a/src/sage/modular/modform_hecketriangle/all.py b/src/sage/modular/modform_hecketriangle/all.py index cd236efc334..7bf8f22bba5 100644 --- a/src/sage/modular/modform_hecketriangle/all.py +++ b/src/sage/modular/modform_hecketriangle/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes r""" AUTHORS: diff --git a/src/sage/modular/modform_hecketriangle/analytic_type.py b/src/sage/modular/modform_hecketriangle/analytic_type.py index e5fc53abb25..33a8a3bb15d 100644 --- a/src/sage/modular/modform_hecketriangle/analytic_type.py +++ b/src/sage/modular/modform_hecketriangle/analytic_type.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.graphs r""" Analytic types of modular forms diff --git a/src/sage/modular/modform_hecketriangle/constructor.py b/src/sage/modular/modform_hecketriangle/constructor.py index 040aa01add7..835ce412ef6 100644 --- a/src/sage/modular/modform_hecketriangle/constructor.py +++ b/src/sage/modular/modform_hecketriangle/constructor.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.combinat sage.graphs r""" Constructor for spaces of modular forms for Hecke triangle groups based on a type diff --git a/src/sage/modular/modform_hecketriangle/element.py b/src/sage/modular/modform_hecketriangle/element.py index 4f58baafff5..ae7855e47eb 100644 --- a/src/sage/modular/modform_hecketriangle/element.py +++ b/src/sage/modular/modform_hecketriangle/element.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.combinat sage.graphs r""" Elements of Hecke modular forms spaces diff --git a/src/sage/modular/modform_hecketriangle/functors.py b/src/sage/modular/modform_hecketriangle/functors.py index 3ba9c865231..332afdff963 100644 --- a/src/sage/modular/modform_hecketriangle/functors.py +++ b/src/sage/modular/modform_hecketriangle/functors.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.combinat sage.graphs r""" Functor construction for all spaces diff --git a/src/sage/modular/modform_hecketriangle/graded_ring.py b/src/sage/modular/modform_hecketriangle/graded_ring.py index 877f6562235..df2fca9cf93 100644 --- a/src/sage/modular/modform_hecketriangle/graded_ring.py +++ b/src/sage/modular/modform_hecketriangle/graded_ring.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.combinat sage.graphs r""" Graded rings of modular forms for Hecke triangle groups diff --git a/src/sage/modular/modform_hecketriangle/graded_ring_element.py b/src/sage/modular/modform_hecketriangle/graded_ring_element.py index 0de1562677b..63974cfc322 100644 --- a/src/sage/modular/modform_hecketriangle/graded_ring_element.py +++ b/src/sage/modular/modform_hecketriangle/graded_ring_element.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.combinat sage.graphs r""" Elements of graded rings of modular forms for Hecke triangle groups diff --git a/src/sage/modular/modform_hecketriangle/hecke_triangle_group_element.py b/src/sage/modular/modform_hecketriangle/hecke_triangle_group_element.py index bab9b856ae1..8e825e53c81 100644 --- a/src/sage/modular/modform_hecketriangle/hecke_triangle_group_element.py +++ b/src/sage/modular/modform_hecketriangle/hecke_triangle_group_element.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.gap r""" Hecke triangle group elements diff --git a/src/sage/modular/modform_hecketriangle/hecke_triangle_groups.py b/src/sage/modular/modform_hecketriangle/hecke_triangle_groups.py index 4189a07ffee..5cc0b3e525d 100644 --- a/src/sage/modular/modform_hecketriangle/hecke_triangle_groups.py +++ b/src/sage/modular/modform_hecketriangle/hecke_triangle_groups.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.gap r""" Hecke triangle groups diff --git a/src/sage/modular/modform_hecketriangle/readme.py b/src/sage/modular/modform_hecketriangle/readme.py index ff8a725c15c..107b24305ef 100644 --- a/src/sage/modular/modform_hecketriangle/readme.py +++ b/src/sage/modular/modform_hecketriangle/readme.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.gap r""" Overview of Hecke triangle groups and modular forms for Hecke triangle groups diff --git a/src/sage/modular/modform_hecketriangle/series_constructor.py b/src/sage/modular/modform_hecketriangle/series_constructor.py index b44f41a09a0..61fb99edd69 100644 --- a/src/sage/modular/modform_hecketriangle/series_constructor.py +++ b/src/sage/modular/modform_hecketriangle/series_constructor.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.gap r""" Series constructor for modular forms for Hecke triangle groups diff --git a/src/sage/modular/modform_hecketriangle/space.py b/src/sage/modular/modform_hecketriangle/space.py index e897808ef23..a6b152e39a1 100644 --- a/src/sage/modular/modform_hecketriangle/space.py +++ b/src/sage/modular/modform_hecketriangle/space.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.combinat sage.graphs r""" Modular forms for Hecke triangle groups diff --git a/src/sage/modular/modform_hecketriangle/subspace.py b/src/sage/modular/modform_hecketriangle/subspace.py index 504c5fc1936..7a896bf7165 100644 --- a/src/sage/modular/modform_hecketriangle/subspace.py +++ b/src/sage/modular/modform_hecketriangle/subspace.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.combinat sage.graphs r""" Subspaces of modular forms for Hecke triangle groups diff --git a/src/sage/modular/modsym/all.py b/src/sage/modular/modsym/all.py index 798a4a7d55f..b836d148ef8 100644 --- a/src/sage/modular/modsym/all.py +++ b/src/sage/modular/modsym/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes from sage.misc.lazy_import import lazy_import from .element import set_modsym_print_mode diff --git a/src/sage/modular/modsym/ambient.py b/src/sage/modular/modsym/ambient.py index 89ba2741eac..3ac64ef6c9e 100644 --- a/src/sage/modular/modsym/ambient.py +++ b/src/sage/modular/modsym/ambient.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.flint sage.libs.pari r""" Ambient spaces of modular symbols diff --git a/src/sage/modular/modsym/boundary.py b/src/sage/modular/modsym/boundary.py index 903c57e9b96..615614ed15c 100644 --- a/src/sage/modular/modsym/boundary.py +++ b/src/sage/modular/modsym/boundary.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.flint sage.libs.pari r""" Space of boundary modular symbols diff --git a/src/sage/modular/modsym/element.py b/src/sage/modular/modsym/element.py index 80ccb3c4242..8f4fa1feb84 100644 --- a/src/sage/modular/modsym/element.py +++ b/src/sage/modular/modsym/element.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.flint """ A single element of an ambient space of modular symbols diff --git a/src/sage/modular/modsym/g1list.py b/src/sage/modular/modsym/g1list.py index 4485a52814a..857e43b7944 100644 --- a/src/sage/modular/modsym/g1list.py +++ b/src/sage/modular/modsym/g1list.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes r""" List of coset representatives for `\Gamma_1(N)` in `\SL_2(\ZZ)` """ diff --git a/src/sage/modular/modsym/ghlist.py b/src/sage/modular/modsym/ghlist.py index 2e74217f851..84031ac281c 100644 --- a/src/sage/modular/modsym/ghlist.py +++ b/src/sage/modular/modsym/ghlist.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.pari r""" List of coset representatives for `\Gamma_H(N)` in `\SL_2(\ZZ)` diff --git a/src/sage/modular/modsym/hecke_operator.py b/src/sage/modular/modsym/hecke_operator.py index 43e34b57a49..3a3d9ea7c1a 100644 --- a/src/sage/modular/modsym/hecke_operator.py +++ b/src/sage/modular/modsym/hecke_operator.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.flint """ Sparse action of Hecke operators diff --git a/src/sage/modular/modsym/manin_symbol.pxd b/src/sage/modular/modsym/manin_symbol.pxd index d7f6c7adeae..014fd3b7fd8 100644 --- a/src/sage/modular/modsym/manin_symbol.pxd +++ b/src/sage/modular/modsym/manin_symbol.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes from sage.structure.element cimport Element cdef class ManinSymbol(Element): diff --git a/src/sage/modular/modsym/manin_symbol.pyx b/src/sage/modular/modsym/manin_symbol.pyx index a71533e1b73..c4d51a2f2cc 100644 --- a/src/sage/modular/modsym/manin_symbol.pyx +++ b/src/sage/modular/modsym/manin_symbol.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.flint r""" Manin symbols diff --git a/src/sage/modular/modsym/manin_symbol_list.py b/src/sage/modular/modsym/manin_symbol_list.py index 6375cc0dbe7..cc55354a51f 100644 --- a/src/sage/modular/modsym/manin_symbol_list.py +++ b/src/sage/modular/modsym/manin_symbol_list.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes """ Manin symbol lists diff --git a/src/sage/modular/modsym/modsym.py b/src/sage/modular/modsym/modsym.py index 962e3c168ed..c8848c06093 100644 --- a/src/sage/modular/modsym/modsym.py +++ b/src/sage/modular/modsym/modsym.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.flint sage.libs.pari r""" Creation of modular symbols spaces diff --git a/src/sage/modular/modsym/modular_symbols.py b/src/sage/modular/modsym/modular_symbols.py index 57dc8f23a2b..adc91cd8644 100644 --- a/src/sage/modular/modsym/modular_symbols.py +++ b/src/sage/modular/modsym/modular_symbols.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.flint r""" Modular symbols `\{\alpha`, `\beta\}` diff --git a/src/sage/modular/modsym/p1list.pxd b/src/sage/modular/modsym/p1list.pxd index 17254d4a8fb..bab5ce83aff 100644 --- a/src/sage/modular/modsym/p1list.pxd +++ b/src/sage/modular/modsym/p1list.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes cdef class export: diff --git a/src/sage/modular/modsym/p1list.pyx b/src/sage/modular/modsym/p1list.pyx index 0427ae068a3..ace1675a18f 100644 --- a/src/sage/modular/modsym/p1list.pyx +++ b/src/sage/modular/modsym/p1list.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # distutils: libraries = gmp # distutils: extra_compile_args = -D_XPG6 diff --git a/src/sage/modular/modsym/p1list_nf.py b/src/sage/modular/modsym/p1list_nf.py index 25c68137e0c..d238da98811 100644 --- a/src/sage/modular/modsym/p1list_nf.py +++ b/src/sage/modular/modsym/p1list_nf.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.rings.number_field r""" Lists of Manin symbols over number fields, elements of `\mathbb{P}^1(R/N)` diff --git a/src/sage/modular/modsym/relation_matrix.py b/src/sage/modular/modsym/relation_matrix.py index 0533ea36f09..12c5c1e2191 100644 --- a/src/sage/modular/modsym/relation_matrix.py +++ b/src/sage/modular/modsym/relation_matrix.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.flint """ Relation matrices for ambient modular symbols spaces diff --git a/src/sage/modular/modsym/relation_matrix_pyx.pyx b/src/sage/modular/modsym/relation_matrix_pyx.pyx index 46d8d716e62..328dc2177d5 100644 --- a/src/sage/modular/modsym/relation_matrix_pyx.pyx +++ b/src/sage/modular/modsym/relation_matrix_pyx.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes """ Optimized computing of relation matrices in certain cases """ diff --git a/src/sage/modular/modsym/space.py b/src/sage/modular/modsym/space.py index b8b7197bced..b54981e6c7d 100644 --- a/src/sage/modular/modsym/space.py +++ b/src/sage/modular/modsym/space.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.flint sage.libs.pari """ Base class of the space of modular symbols diff --git a/src/sage/modular/modsym/subspace.py b/src/sage/modular/modsym/subspace.py index fdc69b18b9a..95b15921db4 100644 --- a/src/sage/modular/modsym/subspace.py +++ b/src/sage/modular/modsym/subspace.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.flint """ Subspace of ambient spaces of modular symbols diff --git a/src/sage/modular/modsym/tests.py b/src/sage/modular/modsym/tests.py index 3af2ffb1d87..b710d716956 100644 --- a/src/sage/modular/modsym/tests.py +++ b/src/sage/modular/modsym/tests.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.flint sage.libs.pari """ Testing modular symbols spaces diff --git a/src/sage/modular/multiple_zeta.py b/src/sage/modular/multiple_zeta.py index cefcb3b3c65..eccd06277ca 100644 --- a/src/sage/modular/multiple_zeta.py +++ b/src/sage/modular/multiple_zeta.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.combinat r""" Algebra of motivic multiple zeta values diff --git a/src/sage/modular/multiple_zeta_F_algebra.py b/src/sage/modular/multiple_zeta_F_algebra.py index 863a369940c..25bee87d69c 100644 --- a/src/sage/modular/multiple_zeta_F_algebra.py +++ b/src/sage/modular/multiple_zeta_F_algebra.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.combinat r""" F-algebra for motivic multiple zeta values. diff --git a/src/sage/modular/overconvergent/all.py b/src/sage/modular/overconvergent/all.py index 11e23071854..6e49f3133fc 100644 --- a/src/sage/modular/overconvergent/all.py +++ b/src/sage/modular/overconvergent/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes from .weightspace import WeightSpace_constructor as pAdicWeightSpace from .genus0 import OverconvergentModularForms diff --git a/src/sage/modular/overconvergent/genus0.py b/src/sage/modular/overconvergent/genus0.py index 9cfbcb3a39b..0b075eea50f 100644 --- a/src/sage/modular/overconvergent/genus0.py +++ b/src/sage/modular/overconvergent/genus0.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.pari sage.rings.padics r""" Overconvergent `p`-adic modular forms for small primes diff --git a/src/sage/modular/overconvergent/hecke_series.py b/src/sage/modular/overconvergent/hecke_series.py index 1e10c6386a9..8311cfd8ced 100644 --- a/src/sage/modular/overconvergent/hecke_series.py +++ b/src/sage/modular/overconvergent/hecke_series.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.flint sage.libs.pari r""" Atkin/Hecke series for overconvergent modular forms diff --git a/src/sage/modular/overconvergent/weightspace.py b/src/sage/modular/overconvergent/weightspace.py index e9478c40a90..bc6ea3ef7e4 100644 --- a/src/sage/modular/overconvergent/weightspace.py +++ b/src/sage/modular/overconvergent/weightspace.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.rings.padics r""" The space of `p`-adic weights diff --git a/src/sage/modular/pollack_stevens/all.py b/src/sage/modular/pollack_stevens/all.py index a51787d6fd2..64204439d8c 100644 --- a/src/sage/modular/pollack_stevens/all.py +++ b/src/sage/modular/pollack_stevens/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes from .space import PollackStevensModularSymbols from .distributions import Symk from .distributions import OverconvergentDistributions diff --git a/src/sage/modular/pollack_stevens/distributions.py b/src/sage/modular/pollack_stevens/distributions.py index a83121db4fa..c10499a667a 100644 --- a/src/sage/modular/pollack_stevens/distributions.py +++ b/src/sage/modular/pollack_stevens/distributions.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.rings.padics r""" Spaces of distributions for Pollack-Stevens modular symbols diff --git a/src/sage/modular/pollack_stevens/fund_domain.py b/src/sage/modular/pollack_stevens/fund_domain.py index ef067853f4a..ac47db96c3f 100644 --- a/src/sage/modular/pollack_stevens/fund_domain.py +++ b/src/sage/modular/pollack_stevens/fund_domain.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes r""" Manin relations for overconvergent modular symbols diff --git a/src/sage/modular/pollack_stevens/manin_map.py b/src/sage/modular/pollack_stevens/manin_map.py index 06aa3496e10..70255a42b20 100644 --- a/src/sage/modular/pollack_stevens/manin_map.py +++ b/src/sage/modular/pollack_stevens/manin_map.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.rings.padics r""" Manin map diff --git a/src/sage/modular/pollack_stevens/modsym.py b/src/sage/modular/pollack_stevens/modsym.py index 63b3264615a..31274e7ab3d 100644 --- a/src/sage/modular/pollack_stevens/modsym.py +++ b/src/sage/modular/pollack_stevens/modsym.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes r""" Element class for Pollack-Stevens' modular symbols diff --git a/src/sage/modular/pollack_stevens/padic_lseries.py b/src/sage/modular/pollack_stevens/padic_lseries.py index 748b5dc9993..ee69a93a7cf 100644 --- a/src/sage/modular/pollack_stevens/padic_lseries.py +++ b/src/sage/modular/pollack_stevens/padic_lseries.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.ring.padics r""" `p`-adic `L`-series attached to overconvergent eigensymbols diff --git a/src/sage/modular/pollack_stevens/sigma0.py b/src/sage/modular/pollack_stevens/sigma0.py index ce52830f070..24b9ff99393 100644 --- a/src/sage/modular/pollack_stevens/sigma0.py +++ b/src/sage/modular/pollack_stevens/sigma0.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes r""" The matrix monoid `\Sigma_0(N)`. diff --git a/src/sage/modular/pollack_stevens/space.py b/src/sage/modular/pollack_stevens/space.py index 6fe7c12b95b..efa7a181483 100644 --- a/src/sage/modular/pollack_stevens/space.py +++ b/src/sage/modular/pollack_stevens/space.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.rings.padics r""" Pollack-Stevens' modular symbols spaces diff --git a/src/sage/modular/quasimodform/all.py b/src/sage/modular/quasimodform/all.py index 114783b2e37..00224f46010 100644 --- a/src/sage/modular/quasimodform/all.py +++ b/src/sage/modular/quasimodform/all.py @@ -1,2 +1,3 @@ +# sage_setup: distribution = sagemath-schemes # Quasimodular forms rings from .ring import QuasiModularForms diff --git a/src/sage/modular/quasimodform/element.py b/src/sage/modular/quasimodform/element.py index c096973fadc..ba3be02b844 100644 --- a/src/sage/modular/quasimodform/element.py +++ b/src/sage/modular/quasimodform/element.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.flint """ Elements of quasimodular forms rings diff --git a/src/sage/modular/quasimodform/ring.py b/src/sage/modular/quasimodform/ring.py index ee939a182df..20e5acf25a6 100644 --- a/src/sage/modular/quasimodform/ring.py +++ b/src/sage/modular/quasimodform/ring.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes r""" Graded quasimodular forms ring diff --git a/src/sage/modular/quatalg/all.py b/src/sage/modular/quatalg/all.py index e554527d96c..f949f40a427 100644 --- a/src/sage/modular/quatalg/all.py +++ b/src/sage/modular/quatalg/all.py @@ -1,2 +1,3 @@ +# sage_setup: distribution = sagemath-schemes from .brandt import BrandtModule diff --git a/src/sage/modular/quatalg/brandt.py b/src/sage/modular/quatalg/brandt.py index 1c74d953f6d..30d1b023878 100644 --- a/src/sage/modular/quatalg/brandt.py +++ b/src/sage/modular/quatalg/brandt.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes r""" Brandt modules diff --git a/src/sage/modular/ssmod/all.py b/src/sage/modular/ssmod/all.py index 1257c107a99..7228c4e8a52 100644 --- a/src/sage/modular/ssmod/all.py +++ b/src/sage/modular/ssmod/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes from sage.misc.lazy_import import lazy_import lazy_import("sage.modular.ssmod.ssmod", ['dimension_supersingular_module', diff --git a/src/sage/modular/ssmod/ssmod.py b/src/sage/modular/ssmod/ssmod.py index 13b6d11fbb6..3e01185f5d2 100644 --- a/src/sage/modular/ssmod/ssmod.py +++ b/src/sage/modular/ssmod/ssmod.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.pari """ Module of supersingular points diff --git a/src/sage/modules/all.py b/src/sage/modules/all.py index 660f1ef3807..03de3653107 100644 --- a/src/sage/modules/all.py +++ b/src/sage/modules/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # ***************************************************************************** # Copyright (C) 2005 William Stein # diff --git a/src/sage/modules/complex_double_vector.py b/src/sage/modules/complex_double_vector.py index 728d862e8fc..fad12406262 100644 --- a/src/sage/modules/complex_double_vector.py +++ b/src/sage/modules/complex_double_vector.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Pickling for the old CDF vector class diff --git a/src/sage/modules/diamond_cutting.py b/src/sage/modules/diamond_cutting.py index 786a783fabf..d3dd973e6cd 100644 --- a/src/sage/modules/diamond_cutting.py +++ b/src/sage/modules/diamond_cutting.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.geometry.polyhedron """ Diamond cutting implementation diff --git a/src/sage/modules/fg_pid/all.py b/src/sage/modules/fg_pid/all.py index e69de29bb2d..6f6ab52d0f2 100644 --- a/src/sage/modules/fg_pid/all.py +++ b/src/sage/modules/fg_pid/all.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-modules diff --git a/src/sage/modules/fg_pid/fgp_element.py b/src/sage/modules/fg_pid/fgp_element.py index dbb13dadbad..5fcbe06d90b 100644 --- a/src/sage/modules/fg_pid/fgp_element.py +++ b/src/sage/modules/fg_pid/fgp_element.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Elements of finitely generated modules over a PID diff --git a/src/sage/modules/fg_pid/fgp_module.py b/src/sage/modules/fg_pid/fgp_module.py index 7c1292334ef..62e987ade3a 100644 --- a/src/sage/modules/fg_pid/fgp_module.py +++ b/src/sage/modules/fg_pid/fgp_module.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Finitely generated modules over a PID diff --git a/src/sage/modules/fg_pid/fgp_morphism.py b/src/sage/modules/fg_pid/fgp_morphism.py index d1c8b221994..57f3590994f 100644 --- a/src/sage/modules/fg_pid/fgp_morphism.py +++ b/src/sage/modules/fg_pid/fgp_morphism.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Morphisms between finitely generated modules over a PID diff --git a/src/sage/modules/filtered_vector_space.py b/src/sage/modules/filtered_vector_space.py index d6a1d6237a6..dbc84e76d88 100644 --- a/src/sage/modules/filtered_vector_space.py +++ b/src/sage/modules/filtered_vector_space.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" `\ZZ`-filtered vector spaces diff --git a/src/sage/modules/finite_submodule_iter.pxd b/src/sage/modules/finite_submodule_iter.pxd index 900f041e3a0..a4a39efa349 100644 --- a/src/sage/modules/finite_submodule_iter.pxd +++ b/src/sage/modules/finite_submodule_iter.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.structure.element cimport ModuleElement cdef class FiniteZZsubmodule_iterator: diff --git a/src/sage/modules/finite_submodule_iter.pyx b/src/sage/modules/finite_submodule_iter.pyx index 4f0fbbdca3b..6041f85a20b 100644 --- a/src/sage/modules/finite_submodule_iter.pyx +++ b/src/sage/modules/finite_submodule_iter.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.rings.finite_rings r""" Iterators over finite submodules of a `\ZZ`-module diff --git a/src/sage/modules/free_module.py b/src/sage/modules/free_module.py index 6e01cccc82f..b76a6864b77 100644 --- a/src/sage/modules/free_module.py +++ b/src/sage/modules/free_module.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Free modules diff --git a/src/sage/modules/free_module_element.pxd b/src/sage/modules/free_module_element.pxd index e524a458474..8175633409d 100644 --- a/src/sage/modules/free_module_element.pxd +++ b/src/sage/modules/free_module_element.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.structure.element cimport Vector cdef class FreeModuleElement(Vector): diff --git a/src/sage/modules/free_module_element.pyx b/src/sage/modules/free_module_element.pyx index 3492dbf2eb1..29ad139b573 100644 --- a/src/sage/modules/free_module_element.pyx +++ b/src/sage/modules/free_module_element.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Elements of free modules diff --git a/src/sage/modules/free_module_homspace.py b/src/sage/modules/free_module_homspace.py index 79c2b226436..2539b7b1b37 100644 --- a/src/sage/modules/free_module_homspace.py +++ b/src/sage/modules/free_module_homspace.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Homspaces between free modules diff --git a/src/sage/modules/free_module_integer.py b/src/sage/modules/free_module_integer.py index c45a0b5c485..2ea93fefb37 100644 --- a/src/sage/modules/free_module_integer.py +++ b/src/sage/modules/free_module_integer.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Discrete subgroups of `\\ZZ^n` diff --git a/src/sage/modules/free_module_morphism.py b/src/sage/modules/free_module_morphism.py index 6cf1add1f75..1bd33082324 100644 --- a/src/sage/modules/free_module_morphism.py +++ b/src/sage/modules/free_module_morphism.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Morphisms of free modules diff --git a/src/sage/modules/free_quadratic_module.py b/src/sage/modules/free_quadratic_module.py index fa0b61e0af3..4b779cc362c 100644 --- a/src/sage/modules/free_quadratic_module.py +++ b/src/sage/modules/free_quadratic_module.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Free quadratic modules diff --git a/src/sage/modules/free_quadratic_module_integer_symmetric.py b/src/sage/modules/free_quadratic_module_integer_symmetric.py index 60f3cc131f6..a6d1ec49d62 100644 --- a/src/sage/modules/free_quadratic_module_integer_symmetric.py +++ b/src/sage/modules/free_quadratic_module_integer_symmetric.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Integral lattices diff --git a/src/sage/modules/matrix_morphism.py b/src/sage/modules/matrix_morphism.py index 868da6f88a5..1e2ea5e44f8 100644 --- a/src/sage/modules/matrix_morphism.py +++ b/src/sage/modules/matrix_morphism.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Morphisms defined by a matrix diff --git a/src/sage/modules/misc.py b/src/sage/modules/misc.py index ac3994edb08..a365f61cb8a 100644 --- a/src/sage/modules/misc.py +++ b/src/sage/modules/misc.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Miscellaneous module-related functions diff --git a/src/sage/modules/module.pxd b/src/sage/modules/module.pxd index 032cce6d69e..31eb027b970 100644 --- a/src/sage/modules/module.pxd +++ b/src/sage/modules/module.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects from sage.structure.parent cimport Parent cdef class Module(Parent): diff --git a/src/sage/modules/module.pyx b/src/sage/modules/module.pyx index ae0dc162520..0a5e43045e4 100644 --- a/src/sage/modules/module.pyx +++ b/src/sage/modules/module.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects """ Abstract base class for modules diff --git a/src/sage/modules/module_functors.py b/src/sage/modules/module_functors.py index c3977183c56..00da40a67f5 100644 --- a/src/sage/modules/module_functors.py +++ b/src/sage/modules/module_functors.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Module Functors diff --git a/src/sage/modules/multi_filtered_vector_space.py b/src/sage/modules/multi_filtered_vector_space.py index beb46762361..ddde8b80bcc 100644 --- a/src/sage/modules/multi_filtered_vector_space.py +++ b/src/sage/modules/multi_filtered_vector_space.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Multiple `\ZZ`-graded filtrations of a single vector space diff --git a/src/sage/modules/quotient_module.py b/src/sage/modules/quotient_module.py index 09c8b313c91..2c3adc2a396 100644 --- a/src/sage/modules/quotient_module.py +++ b/src/sage/modules/quotient_module.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Quotients of free modules diff --git a/src/sage/modules/real_double_vector.py b/src/sage/modules/real_double_vector.py index 5430e175f11..69bd0c28bdc 100644 --- a/src/sage/modules/real_double_vector.py +++ b/src/sage/modules/real_double_vector.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Pickling for the old RDF vector class diff --git a/src/sage/modules/submodule.py b/src/sage/modules/submodule.py index 8d00d4f4553..7e8f53ac309 100644 --- a/src/sage/modules/submodule.py +++ b/src/sage/modules/submodule.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Submodules and subquotients of free modules diff --git a/src/sage/modules/tensor_operations.py b/src/sage/modules/tensor_operations.py index 8d341541dbe..b65de2ae26e 100644 --- a/src/sage/modules/tensor_operations.py +++ b/src/sage/modules/tensor_operations.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Helper classes to implement tensor operations diff --git a/src/sage/modules/torsion_quadratic_module.py b/src/sage/modules/torsion_quadratic_module.py index 9192c65be92..4e790cff503 100644 --- a/src/sage/modules/torsion_quadratic_module.py +++ b/src/sage/modules/torsion_quadratic_module.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Finite `\ZZ`-modules with bilinear and quadratic forms diff --git a/src/sage/modules/tutorial_free_modules.py b/src/sage/modules/tutorial_free_modules.py index 8fe8cd8c7df..dc1b10524bb 100644 --- a/src/sage/modules/tutorial_free_modules.py +++ b/src/sage/modules/tutorial_free_modules.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Tutorial: Using free modules and vector spaces diff --git a/src/sage/modules/vector_callable_symbolic_dense.py b/src/sage/modules/vector_callable_symbolic_dense.py index 70b05d98b66..270e3351986 100644 --- a/src/sage/modules/vector_callable_symbolic_dense.py +++ b/src/sage/modules/vector_callable_symbolic_dense.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics """ Vectors over callable symbolic rings diff --git a/src/sage/modules/vector_complex_double_dense.pxd b/src/sage/modules/vector_complex_double_dense.pxd index 955c0a414d2..194f26f3d69 100644 --- a/src/sage/modules/vector_complex_double_dense.pxd +++ b/src/sage/modules/vector_complex_double_dense.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.modules.vector_double_dense cimport Vector_double_dense diff --git a/src/sage/modules/vector_complex_double_dense.pyx b/src/sage/modules/vector_complex_double_dense.pyx index d9715fbdc82..bbadf19359b 100644 --- a/src/sage/modules/vector_complex_double_dense.pyx +++ b/src/sage/modules/vector_complex_double_dense.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: optional - numpy r""" Dense complex double vectors using a NumPy backend diff --git a/src/sage/modules/vector_double_dense.pxd b/src/sage/modules/vector_double_dense.pxd index f4f1f47cbce..e6111cb8a08 100644 --- a/src/sage/modules/vector_double_dense.pxd +++ b/src/sage/modules/vector_double_dense.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.modules.vector_numpy_dense cimport Vector_numpy_dense diff --git a/src/sage/modules/vector_double_dense.pyx b/src/sage/modules/vector_double_dense.pyx index 74c73270ffc..e475b5c672b 100644 --- a/src/sage/modules/vector_double_dense.pyx +++ b/src/sage/modules/vector_double_dense.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: optional - numpy r""" Dense vectors using a NumPy backend diff --git a/src/sage/modules/vector_integer_dense.pxd b/src/sage/modules/vector_integer_dense.pxd index 0db4808be63..788f8bdf042 100644 --- a/src/sage/modules/vector_integer_dense.pxd +++ b/src/sage/modules/vector_integer_dense.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.libs.gmp.types cimport mpz_t from sage.modules.free_module_element cimport FreeModuleElement from sage.structure.parent cimport Parent diff --git a/src/sage/modules/vector_integer_dense.pyx b/src/sage/modules/vector_integer_dense.pyx index 52e0bbd4064..7e204d55432 100644 --- a/src/sage/modules/vector_integer_dense.pyx +++ b/src/sage/modules/vector_integer_dense.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Vectors with integer entries diff --git a/src/sage/modules/vector_integer_sparse.pxd b/src/sage/modules/vector_integer_sparse.pxd index 4791b778497..76e1342d7f9 100644 --- a/src/sage/modules/vector_integer_sparse.pxd +++ b/src/sage/modules/vector_integer_sparse.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules ############################################################# # # Sparse Vector over mpz_t (the GMP integers) diff --git a/src/sage/modules/vector_integer_sparse.pyx b/src/sage/modules/vector_integer_sparse.pyx index d5f2958ea59..5795284ad86 100644 --- a/src/sage/modules/vector_integer_sparse.pyx +++ b/src/sage/modules/vector_integer_sparse.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules ############################################################# # # Sparse Vector over mpz_t (the GMP integers) diff --git a/src/sage/modules/vector_mod2_dense.pxd b/src/sage/modules/vector_mod2_dense.pxd index 1292762a76e..e04a2c8db3b 100644 --- a/src/sage/modules/vector_mod2_dense.pxd +++ b/src/sage/modules/vector_mod2_dense.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-linbox from sage.modules.free_module_element cimport FreeModuleElement from sage.libs.m4ri cimport mzd_t diff --git a/src/sage/modules/vector_mod2_dense.pyx b/src/sage/modules/vector_mod2_dense.pyx index 4137b594eec..3f780f0ae4e 100644 --- a/src/sage/modules/vector_mod2_dense.pyx +++ b/src/sage/modules/vector_mod2_dense.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-linbox # distutils: libraries = M4RI_LIBRARIES GDLIB_LIBRARIES LIBPNG_LIBRARIES # distutils: library_dirs = M4RI_LIBDIR GDLIB_LIBDIR LIBPNG_LIBDIR # distutils: include_dirs = M4RI_INCDIR GDLIB_INCDIR LIBPNG_INCDIR diff --git a/src/sage/modules/vector_modn_dense.pxd b/src/sage/modules/vector_modn_dense.pxd index 6e726651ea1..8f36025f95f 100644 --- a/src/sage/modules/vector_modn_dense.pxd +++ b/src/sage/modules/vector_modn_dense.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.ext.mod_int cimport mod_int from sage.modules.free_module_element cimport FreeModuleElement diff --git a/src/sage/modules/vector_modn_dense.pyx b/src/sage/modules/vector_modn_dense.pyx index 57103bd48c4..e365cfcba4c 100644 --- a/src/sage/modules/vector_modn_dense.pyx +++ b/src/sage/modules/vector_modn_dense.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Vectors with integer mod `n` entries, with small `n` diff --git a/src/sage/modules/vector_modn_sparse.pxd b/src/sage/modules/vector_modn_sparse.pxd index d345ecd1e12..c96fa45a4e0 100644 --- a/src/sage/modules/vector_modn_sparse.pxd +++ b/src/sage/modules/vector_modn_sparse.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.rings.finite_rings.stdint cimport * cdef struct c_vector_modint: diff --git a/src/sage/modules/vector_modn_sparse.pyx b/src/sage/modules/vector_modn_sparse.pyx index 0cde9644380..96dbe4c6cdb 100644 --- a/src/sage/modules/vector_modn_sparse.pyx +++ b/src/sage/modules/vector_modn_sparse.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules ############################################################################# # Copyright (C) 2004, 2007 William Stein # Distributed under the terms of the GNU General Public License (GPL) diff --git a/src/sage/modules/vector_numpy_dense.pxd b/src/sage/modules/vector_numpy_dense.pxd index 0cb384222c2..6d90485d1d8 100644 --- a/src/sage/modules/vector_numpy_dense.pxd +++ b/src/sage/modules/vector_numpy_dense.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules cimport numpy from sage.modules.free_module_element cimport FreeModuleElement diff --git a/src/sage/modules/vector_numpy_dense.pyx b/src/sage/modules/vector_numpy_dense.pyx index 433f77b11d3..5fbf2e97db4 100644 --- a/src/sage/modules/vector_numpy_dense.pyx +++ b/src/sage/modules/vector_numpy_dense.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: optional - numpy r""" Dense vectors using a NumPy backend. diff --git a/src/sage/modules/vector_numpy_integer_dense.pxd b/src/sage/modules/vector_numpy_integer_dense.pxd index 31bc1cf8f6b..2c1f640bcd0 100644 --- a/src/sage/modules/vector_numpy_integer_dense.pxd +++ b/src/sage/modules/vector_numpy_integer_dense.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.modules.vector_numpy_dense cimport Vector_numpy_dense diff --git a/src/sage/modules/vector_numpy_integer_dense.pyx b/src/sage/modules/vector_numpy_integer_dense.pyx index ba3537436d5..4ff577e1004 100644 --- a/src/sage/modules/vector_numpy_integer_dense.pyx +++ b/src/sage/modules/vector_numpy_integer_dense.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: optional - numpy r""" Dense integer vectors using a NumPy backend. diff --git a/src/sage/modules/vector_rational_dense.pxd b/src/sage/modules/vector_rational_dense.pxd index 4820936580a..bb0ac2d919e 100644 --- a/src/sage/modules/vector_rational_dense.pxd +++ b/src/sage/modules/vector_rational_dense.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.libs.gmp.types cimport mpq_t from sage.modules.free_module_element cimport FreeModuleElement from sage.structure.parent cimport Parent diff --git a/src/sage/modules/vector_rational_dense.pyx b/src/sage/modules/vector_rational_dense.pyx index bca39f51f5a..454ecf9cb4d 100644 --- a/src/sage/modules/vector_rational_dense.pyx +++ b/src/sage/modules/vector_rational_dense.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Vectors with rational entries diff --git a/src/sage/modules/vector_rational_sparse.pxd b/src/sage/modules/vector_rational_sparse.pxd index b738ad18edb..1954fb5a5a5 100644 --- a/src/sage/modules/vector_rational_sparse.pxd +++ b/src/sage/modules/vector_rational_sparse.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules ############################################################# # # Sparse Vector over mpq_t (the GMP rationals) diff --git a/src/sage/modules/vector_rational_sparse.pyx b/src/sage/modules/vector_rational_sparse.pyx index 58100ac033f..840fac7006d 100644 --- a/src/sage/modules/vector_rational_sparse.pyx +++ b/src/sage/modules/vector_rational_sparse.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules ############################################################# # # Sparse Vector over mpq_t (the GMP rationals) diff --git a/src/sage/modules/vector_real_double_dense.pxd b/src/sage/modules/vector_real_double_dense.pxd index 4dd3b43ab25..efd4a7833fe 100644 --- a/src/sage/modules/vector_real_double_dense.pxd +++ b/src/sage/modules/vector_real_double_dense.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.modules.vector_double_dense cimport Vector_double_dense diff --git a/src/sage/modules/vector_real_double_dense.pyx b/src/sage/modules/vector_real_double_dense.pyx index e05895f0011..5637bea9350 100644 --- a/src/sage/modules/vector_real_double_dense.pyx +++ b/src/sage/modules/vector_real_double_dense.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: optional - numpy r""" Dense real double vectors using a NumPy backend diff --git a/src/sage/modules/vector_space_homspace.py b/src/sage/modules/vector_space_homspace.py index b815051171a..743163acb62 100644 --- a/src/sage/modules/vector_space_homspace.py +++ b/src/sage/modules/vector_space_homspace.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Space of morphisms of vector spaces (linear transformations) diff --git a/src/sage/modules/vector_space_morphism.py b/src/sage/modules/vector_space_morphism.py index 1102d15968e..c60ae9bb272 100644 --- a/src/sage/modules/vector_space_morphism.py +++ b/src/sage/modules/vector_space_morphism.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Morphisms of vector spaces (linear transformations) diff --git a/src/sage/modules/vector_symbolic_dense.py b/src/sage/modules/vector_symbolic_dense.py index 46ea21be585..22fd66db291 100644 --- a/src/sage/modules/vector_symbolic_dense.py +++ b/src/sage/modules/vector_symbolic_dense.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics """ Dense vectors over the symbolic ring diff --git a/src/sage/modules/vector_symbolic_sparse.py b/src/sage/modules/vector_symbolic_sparse.py index ff53995021c..51a7fa8af09 100644 --- a/src/sage/modules/vector_symbolic_sparse.py +++ b/src/sage/modules/vector_symbolic_sparse.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics """ Sparse vectors over the symbolic ring diff --git a/src/sage/modules/with_basis/all.py b/src/sage/modules/with_basis/all.py index 1f352bcc768..056d4314dc2 100644 --- a/src/sage/modules/with_basis/all.py +++ b/src/sage/modules/with_basis/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Concrete classes related to modules with a distinguished basis diff --git a/src/sage/modules/with_basis/cell_module.py b/src/sage/modules/with_basis/cell_module.py index 25e6509dde7..a7d5496632d 100644 --- a/src/sage/modules/with_basis/cell_module.py +++ b/src/sage/modules/with_basis/cell_module.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.combinat r""" Cell modules diff --git a/src/sage/modules/with_basis/indexed_element.pxd b/src/sage/modules/with_basis/indexed_element.pxd index 06fec702dcf..1a0a382aac9 100644 --- a/src/sage/modules/with_basis/indexed_element.pxd +++ b/src/sage/modules/with_basis/indexed_element.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.structure.element cimport Element, ModuleElement cdef class IndexedFreeModuleElement(ModuleElement): diff --git a/src/sage/modules/with_basis/indexed_element.pyx b/src/sage/modules/with_basis/indexed_element.pyx index f366fe1bdf1..f74c28db3b4 100644 --- a/src/sage/modules/with_basis/indexed_element.pyx +++ b/src/sage/modules/with_basis/indexed_element.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # -*- coding: utf-8 -*- r""" An element in an indexed free module diff --git a/src/sage/modules/with_basis/invariant.py b/src/sage/modules/with_basis/invariant.py index 3408e8abf0b..a06fa36b47d 100644 --- a/src/sage/modules/with_basis/invariant.py +++ b/src/sage/modules/with_basis/invariant.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.groups r""" Invariant modules diff --git a/src/sage/modules/with_basis/morphism.py b/src/sage/modules/with_basis/morphism.py index 81f453f8b1a..d90aa14baa7 100644 --- a/src/sage/modules/with_basis/morphism.py +++ b/src/sage/modules/with_basis/morphism.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Morphisms of modules with a basis diff --git a/src/sage/modules/with_basis/representation.py b/src/sage/modules/with_basis/representation.py index a781fc39ec3..3816692dfb7 100644 --- a/src/sage/modules/with_basis/representation.py +++ b/src/sage/modules/with_basis/representation.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.groups """ Representations of a semigroup diff --git a/src/sage/modules/with_basis/subquotient.py b/src/sage/modules/with_basis/subquotient.py index 0918c5a8b19..f15cadf2412 100644 --- a/src/sage/modules/with_basis/subquotient.py +++ b/src/sage/modules/with_basis/subquotient.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Quotients of modules with basis """ diff --git a/src/sage/monoids/all.py b/src/sage/monoids/all.py index cd2812c89f1..c4a384b8d52 100644 --- a/src/sage/monoids/all.py +++ b/src/sage/monoids/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat from .free_monoid import FreeMonoid from .string_monoid import (BinaryStrings, OctalStrings, HexadecimalStrings, diff --git a/src/sage/monoids/automatic_semigroup.py b/src/sage/monoids/automatic_semigroup.py index 2604f0f2533..27178a165cf 100644 --- a/src/sage/monoids/automatic_semigroup.py +++ b/src/sage/monoids/automatic_semigroup.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # -*- coding: utf-8 -*- """ Automatic Semigroups diff --git a/src/sage/monoids/free_abelian_monoid.py b/src/sage/monoids/free_abelian_monoid.py index 6d1b69b59bb..0c1b817e7e3 100644 --- a/src/sage/monoids/free_abelian_monoid.py +++ b/src/sage/monoids/free_abelian_monoid.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Free abelian monoids diff --git a/src/sage/monoids/free_abelian_monoid_element.pxd b/src/sage/monoids/free_abelian_monoid_element.pxd index fe65af79711..f2c761c5a24 100644 --- a/src/sage/monoids/free_abelian_monoid_element.pxd +++ b/src/sage/monoids/free_abelian_monoid_element.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat from sage.structure.element cimport MonoidElement from sage.libs.gmp.types cimport mpz_t from sage.structure.parent cimport Parent diff --git a/src/sage/monoids/free_abelian_monoid_element.pyx b/src/sage/monoids/free_abelian_monoid_element.pyx index 66bd3a15ed5..89ebf193caa 100644 --- a/src/sage/monoids/free_abelian_monoid_element.pyx +++ b/src/sage/monoids/free_abelian_monoid_element.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat """ Abelian Monoid Elements diff --git a/src/sage/monoids/free_monoid.py b/src/sage/monoids/free_monoid.py index 12688312b9c..4c034b958ae 100644 --- a/src/sage/monoids/free_monoid.py +++ b/src/sage/monoids/free_monoid.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Free Monoids diff --git a/src/sage/monoids/free_monoid_element.py b/src/sage/monoids/free_monoid_element.py index 341a88a9ebe..2d7de49b198 100644 --- a/src/sage/monoids/free_monoid_element.py +++ b/src/sage/monoids/free_monoid_element.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat """ Elements of Free Monoids diff --git a/src/sage/monoids/hecke_monoid.py b/src/sage/monoids/hecke_monoid.py index 98f41dc4552..720bae19bf0 100644 --- a/src/sage/monoids/hecke_monoid.py +++ b/src/sage/monoids/hecke_monoid.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # -*- coding: utf-8 -*- """ Hecke Monoids diff --git a/src/sage/monoids/indexed_free_monoid.py b/src/sage/monoids/indexed_free_monoid.py index 58910533a9a..e6296955ab8 100644 --- a/src/sage/monoids/indexed_free_monoid.py +++ b/src/sage/monoids/indexed_free_monoid.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat """ Indexed Monoids diff --git a/src/sage/monoids/monoid.py b/src/sage/monoids/monoid.py index 31e6c219f89..dabfd37df2b 100644 --- a/src/sage/monoids/monoid.py +++ b/src/sage/monoids/monoid.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Monoids """ diff --git a/src/sage/monoids/string_monoid.py b/src/sage/monoids/string_monoid.py index 55045fd7f14..1dd08f33cf6 100644 --- a/src/sage/monoids/string_monoid.py +++ b/src/sage/monoids/string_monoid.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Free String Monoids diff --git a/src/sage/monoids/string_monoid_element.py b/src/sage/monoids/string_monoid_element.py index 185aa901a07..0464b9831e7 100644 --- a/src/sage/monoids/string_monoid_element.py +++ b/src/sage/monoids/string_monoid_element.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat """ String Monoid Elements diff --git a/src/sage/monoids/string_ops.py b/src/sage/monoids/string_ops.py index 8f822f98cc8..c774eeaeec3 100644 --- a/src/sage/monoids/string_ops.py +++ b/src/sage/monoids/string_ops.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat "Utility functions on strings" #***************************************************************************** diff --git a/src/sage/monoids/trace_monoid.py b/src/sage/monoids/trace_monoid.py index f8176a1e1f2..62be46446ff 100644 --- a/src/sage/monoids/trace_monoid.py +++ b/src/sage/monoids/trace_monoid.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Module of trace monoids (free partially commutative monoids). diff --git a/src/sage/numerical/all.py b/src/sage/numerical/all.py index 8b69da18652..f09916c8dff 100644 --- a/src/sage/numerical/all.py +++ b/src/sage/numerical/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra from sage.misc.lazy_import import lazy_import lazy_import("sage.numerical.optimize", ["find_fit", "find_local_maximum", "find_local_minimum", diff --git a/src/sage/numerical/all__sagemath_polyhedra.py b/src/sage/numerical/all__sagemath_polyhedra.py index 6de2a9af502..8bbae65c00f 100644 --- a/src/sage/numerical/all__sagemath_polyhedra.py +++ b/src/sage/numerical/all__sagemath_polyhedra.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra from sage.misc.lazy_import import lazy_import lazy_import("sage.numerical.mip", ["MixedIntegerLinearProgram"]) diff --git a/src/sage/numerical/backends/all.py b/src/sage/numerical/backends/all.py index e69de29bb2d..ca4c26e905d 100644 --- a/src/sage/numerical/backends/all.py +++ b/src/sage/numerical/backends/all.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-polyhedra diff --git a/src/sage/numerical/backends/all__sagemath_polyhedra.py b/src/sage/numerical/backends/all__sagemath_polyhedra.py index e69de29bb2d..ca4c26e905d 100644 --- a/src/sage/numerical/backends/all__sagemath_polyhedra.py +++ b/src/sage/numerical/backends/all__sagemath_polyhedra.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-polyhedra diff --git a/src/sage/numerical/backends/cvxopt_backend.pyx b/src/sage/numerical/backends/cvxopt_backend.pyx index 045c661b9c8..b834d6a63ac 100644 --- a/src/sage/numerical/backends/cvxopt_backend.pyx +++ b/src/sage/numerical/backends/cvxopt_backend.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra # sage.doctest: needs cvxopt r""" CVXOPT Backend diff --git a/src/sage/numerical/backends/cvxopt_backend_test.py b/src/sage/numerical/backends/cvxopt_backend_test.py index 6029221fda2..d2567569187 100644 --- a/src/sage/numerical/backends/cvxopt_backend_test.py +++ b/src/sage/numerical/backends/cvxopt_backend_test.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra import pytest from sage.structure.sage_object import SageObject diff --git a/src/sage/numerical/backends/cvxopt_sdp_backend.pyx b/src/sage/numerical/backends/cvxopt_sdp_backend.pyx index 7aa91de6158..08d09f38683 100644 --- a/src/sage/numerical/backends/cvxopt_sdp_backend.pyx +++ b/src/sage/numerical/backends/cvxopt_sdp_backend.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra # sage.doctest: needs cvxopt r""" CVXOPT SDP Backend diff --git a/src/sage/numerical/backends/cvxpy_backend.pxd b/src/sage/numerical/backends/cvxpy_backend.pxd index 96dd9c33390..e257f429d30 100644 --- a/src/sage/numerical/backends/cvxpy_backend.pxd +++ b/src/sage/numerical/backends/cvxpy_backend.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra ############################################################################## # Copyright (C) 2010 Nathann Cohen # Copyright (C) 2022 Matthias Koeppe diff --git a/src/sage/numerical/backends/cvxpy_backend.pyx b/src/sage/numerical/backends/cvxpy_backend.pyx index c07d33e5ae7..8d8028ff504 100644 --- a/src/sage/numerical/backends/cvxpy_backend.pyx +++ b/src/sage/numerical/backends/cvxpy_backend.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra # sage.doctest: optional - cvxpy r""" CVXPY Backend diff --git a/src/sage/numerical/backends/cvxpy_backend_test.py b/src/sage/numerical/backends/cvxpy_backend_test.py index 1f5f030248e..4082cc414de 100644 --- a/src/sage/numerical/backends/cvxpy_backend_test.py +++ b/src/sage/numerical/backends/cvxpy_backend_test.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra import pytest from sage.numerical.backends.generic_backend_test import GenericBackendTests from sage.numerical.backends.generic_backend import GenericBackend diff --git a/src/sage/numerical/backends/generic_backend.pxd b/src/sage/numerical/backends/generic_backend.pxd index 60983afc6f2..dceb87e019e 100644 --- a/src/sage/numerical/backends/generic_backend.pxd +++ b/src/sage/numerical/backends/generic_backend.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories ############################################################################## # Copyright (C) 2010 Nathann Cohen # Distributed under the terms of the GNU General Public License (GPL) diff --git a/src/sage/numerical/backends/generic_backend.pyx b/src/sage/numerical/backends/generic_backend.pyx index c5c7dadc4c1..128e15898b4 100644 --- a/src/sage/numerical/backends/generic_backend.pyx +++ b/src/sage/numerical/backends/generic_backend.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Generic Backend for LP solvers diff --git a/src/sage/numerical/backends/generic_backend_test.py b/src/sage/numerical/backends/generic_backend_test.py index 3c5416eb63c..5aa004a23b9 100644 --- a/src/sage/numerical/backends/generic_backend_test.py +++ b/src/sage/numerical/backends/generic_backend_test.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra import pytest from sage.numerical.backends.generic_backend import GenericBackend from sage.structure.sage_object import SageObject diff --git a/src/sage/numerical/backends/generic_sdp_backend.pxd b/src/sage/numerical/backends/generic_sdp_backend.pxd index 446b9ce8c25..6fdcab1e4d7 100644 --- a/src/sage/numerical/backends/generic_sdp_backend.pxd +++ b/src/sage/numerical/backends/generic_sdp_backend.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories #***************************************************************************** # Copyright (C) 2014 Ingolfur Edvardsson # diff --git a/src/sage/numerical/backends/generic_sdp_backend.pyx b/src/sage/numerical/backends/generic_sdp_backend.pyx index 45bfde5f89b..12f9da60cf7 100644 --- a/src/sage/numerical/backends/generic_sdp_backend.pyx +++ b/src/sage/numerical/backends/generic_sdp_backend.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Generic Backend for SDP solvers diff --git a/src/sage/numerical/backends/glpk_backend.pxd b/src/sage/numerical/backends/glpk_backend.pxd index 4ff1d4a8d76..fe435fffbe6 100644 --- a/src/sage/numerical/backends/glpk_backend.pxd +++ b/src/sage/numerical/backends/glpk_backend.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-glpk #***************************************************************************** # Copyright (C) 2010 Nathann Cohen # diff --git a/src/sage/numerical/backends/glpk_backend.pyx b/src/sage/numerical/backends/glpk_backend.pyx index 77cab0ff1b5..f7d47049ccd 100644 --- a/src/sage/numerical/backends/glpk_backend.pyx +++ b/src/sage/numerical/backends/glpk_backend.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-glpk """ GLPK Backend diff --git a/src/sage/numerical/backends/glpk_exact_backend.pxd b/src/sage/numerical/backends/glpk_exact_backend.pxd index 89326bf3604..b08023c25c6 100644 --- a/src/sage/numerical/backends/glpk_exact_backend.pxd +++ b/src/sage/numerical/backends/glpk_exact_backend.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-glpk #***************************************************************************** # Copyright (C) 2016 Matthias Koeppe # diff --git a/src/sage/numerical/backends/glpk_exact_backend.pyx b/src/sage/numerical/backends/glpk_exact_backend.pyx index 3508942f5e4..3391dd7f059 100644 --- a/src/sage/numerical/backends/glpk_exact_backend.pyx +++ b/src/sage/numerical/backends/glpk_exact_backend.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-glpk """ GLPK/exact Backend (simplex method in exact rational arithmetic) diff --git a/src/sage/numerical/backends/glpk_graph_backend.pxd b/src/sage/numerical/backends/glpk_graph_backend.pxd index 926c60134dc..b654d5f1f3e 100644 --- a/src/sage/numerical/backends/glpk_graph_backend.pxd +++ b/src/sage/numerical/backends/glpk_graph_backend.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-glpk #***************************************************************************** # Copyright (C) 2012 Christian Kuper # Copyright (C) 2015 Jeroen Demeyer diff --git a/src/sage/numerical/backends/glpk_graph_backend.pyx b/src/sage/numerical/backends/glpk_graph_backend.pyx index 90431f8a481..1ac91dfc6dd 100644 --- a/src/sage/numerical/backends/glpk_graph_backend.pyx +++ b/src/sage/numerical/backends/glpk_graph_backend.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-glpk # sage.doctest: needs sage.graphs """ GLPK Backend for access to GLPK graph functions diff --git a/src/sage/numerical/backends/interactivelp_backend.pxd b/src/sage/numerical/backends/interactivelp_backend.pxd index f29187632fc..b69f487e9ca 100644 --- a/src/sage/numerical/backends/interactivelp_backend.pxd +++ b/src/sage/numerical/backends/interactivelp_backend.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra ############################################################################## # Copyright (C) 2010 Nathann Cohen # Copyright (C) 2016 Matthias Koeppe diff --git a/src/sage/numerical/backends/interactivelp_backend.pyx b/src/sage/numerical/backends/interactivelp_backend.pyx index 3062a29eb1f..275284b9d49 100644 --- a/src/sage/numerical/backends/interactivelp_backend.pyx +++ b/src/sage/numerical/backends/interactivelp_backend.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra r""" InteractiveLP Backend diff --git a/src/sage/numerical/backends/interactivelp_backend_test.py b/src/sage/numerical/backends/interactivelp_backend_test.py index 0f0af51250d..bb18bb4f4f1 100644 --- a/src/sage/numerical/backends/interactivelp_backend_test.py +++ b/src/sage/numerical/backends/interactivelp_backend_test.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra import pytest from sage.numerical.backends.generic_backend_test import GenericBackendTests from sage.numerical.backends.generic_backend import GenericBackend diff --git a/src/sage/numerical/backends/logging_backend.py b/src/sage/numerical/backends/logging_backend.py index 2efb77eaf08..e85fe353254 100644 --- a/src/sage/numerical/backends/logging_backend.py +++ b/src/sage/numerical/backends/logging_backend.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra r""" Logging Backend diff --git a/src/sage/numerical/backends/matrix_sdp_backend.pxd b/src/sage/numerical/backends/matrix_sdp_backend.pxd index 9038955f83a..ba209f6fb02 100644 --- a/src/sage/numerical/backends/matrix_sdp_backend.pxd +++ b/src/sage/numerical/backends/matrix_sdp_backend.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra from sage.numerical.backends.generic_sdp_backend cimport GenericSDPBackend diff --git a/src/sage/numerical/backends/matrix_sdp_backend.pyx b/src/sage/numerical/backends/matrix_sdp_backend.pyx index 631a7bd6dde..4d4688f632f 100644 --- a/src/sage/numerical/backends/matrix_sdp_backend.pyx +++ b/src/sage/numerical/backends/matrix_sdp_backend.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra r""" Matrix Backend for SDP solvers diff --git a/src/sage/numerical/backends/ppl_backend.pyx b/src/sage/numerical/backends/ppl_backend.pyx index 0de85409c94..9f1887ae1a6 100644 --- a/src/sage/numerical/backends/ppl_backend.pyx +++ b/src/sage/numerical/backends/ppl_backend.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra # sage.doctest: optional - pplpy """ PPL Backend diff --git a/src/sage/numerical/backends/ppl_backend_test.py b/src/sage/numerical/backends/ppl_backend_test.py index 852c3be82c1..d0c9dea1fb3 100644 --- a/src/sage/numerical/backends/ppl_backend_test.py +++ b/src/sage/numerical/backends/ppl_backend_test.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra import pytest from sage.numerical.backends.generic_backend_test import GenericBackendTests diff --git a/src/sage/numerical/backends/scip_backend.pxd b/src/sage/numerical/backends/scip_backend.pxd index 93f1b81ab96..0cb1702db0d 100644 --- a/src/sage/numerical/backends/scip_backend.pxd +++ b/src/sage/numerical/backends/scip_backend.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra #***************************************************************************** # Copyright (C) 2017 Matthias Koeppe # diff --git a/src/sage/numerical/backends/scip_backend.pyx b/src/sage/numerical/backends/scip_backend.pyx index 606b16190a8..2beead36bd7 100644 --- a/src/sage/numerical/backends/scip_backend.pyx +++ b/src/sage/numerical/backends/scip_backend.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra # distutils: language = c++ # sage.doctest: optional - pyscipopt """ diff --git a/src/sage/numerical/backends/scip_backend_test.py b/src/sage/numerical/backends/scip_backend_test.py index 136d3ce914b..3ad30d8a779 100644 --- a/src/sage/numerical/backends/scip_backend_test.py +++ b/src/sage/numerical/backends/scip_backend_test.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra import pytest from sage.numerical.backends.generic_backend_test import GenericBackendTests from sage.numerical.backends.generic_backend import GenericBackend diff --git a/src/sage/numerical/gauss_legendre.pyx b/src/sage/numerical/gauss_legendre.pyx index 81bb5f36af5..ffabecd239f 100644 --- a/src/sage/numerical/gauss_legendre.pyx +++ b/src/sage/numerical/gauss_legendre.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Gauss-Legendre Integration for Vector-Valued Functions diff --git a/src/sage/numerical/interactive_simplex_method.py b/src/sage/numerical/interactive_simplex_method.py index c2a10d6a4f6..6861c304e27 100644 --- a/src/sage/numerical/interactive_simplex_method.py +++ b/src/sage/numerical/interactive_simplex_method.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra r""" Interactive Simplex Method diff --git a/src/sage/numerical/knapsack.py b/src/sage/numerical/knapsack.py index 3f80f517998..fe26317d7a0 100644 --- a/src/sage/numerical/knapsack.py +++ b/src/sage/numerical/knapsack.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra r""" Knapsack Problems diff --git a/src/sage/numerical/linear_functions.pxd b/src/sage/numerical/linear_functions.pxd index 4ad836d8d6d..138b23c8f1d 100644 --- a/src/sage/numerical/linear_functions.pxd +++ b/src/sage/numerical/linear_functions.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra from sage.structure.parent cimport Parent, Parent_richcmp_element_without_coercion from sage.structure.element cimport ModuleElement, RingElement, Element diff --git a/src/sage/numerical/linear_functions.pyx b/src/sage/numerical/linear_functions.pyx index edeed1dfef7..3568cc9d1fb 100644 --- a/src/sage/numerical/linear_functions.pyx +++ b/src/sage/numerical/linear_functions.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra """ Linear Functions and Constraints diff --git a/src/sage/numerical/linear_tensor.py b/src/sage/numerical/linear_tensor.py index 2402845b896..99774536f32 100644 --- a/src/sage/numerical/linear_tensor.py +++ b/src/sage/numerical/linear_tensor.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra """ Matrix/Vector-Valued Linear Functions: Parents diff --git a/src/sage/numerical/linear_tensor_constraints.py b/src/sage/numerical/linear_tensor_constraints.py index 24f94f3b3d6..9cfc62bb323 100644 --- a/src/sage/numerical/linear_tensor_constraints.py +++ b/src/sage/numerical/linear_tensor_constraints.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra """ Constraints on Linear Functions Tensored with a Free Module diff --git a/src/sage/numerical/linear_tensor_element.pxd b/src/sage/numerical/linear_tensor_element.pxd index 528f58b991c..d01fbcd9990 100644 --- a/src/sage/numerical/linear_tensor_element.pxd +++ b/src/sage/numerical/linear_tensor_element.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra from sage.structure.element cimport Element, ModuleElement cdef class LinearTensor(ModuleElement): diff --git a/src/sage/numerical/linear_tensor_element.pyx b/src/sage/numerical/linear_tensor_element.pyx index e2c88619469..58d126f1773 100644 --- a/src/sage/numerical/linear_tensor_element.pyx +++ b/src/sage/numerical/linear_tensor_element.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra """ Matrix/Vector-Valued Linear Functions: Elements diff --git a/src/sage/numerical/mip.pxd b/src/sage/numerical/mip.pxd index e73cc408d09..ba80688dd60 100644 --- a/src/sage/numerical/mip.pxd +++ b/src/sage/numerical/mip.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra cdef extern from *: cdef int BINARY = 1 cdef int REAL = -1 diff --git a/src/sage/numerical/mip.pyx b/src/sage/numerical/mip.pyx index 803724bf29b..5d5dfa072f7 100644 --- a/src/sage/numerical/mip.pyx +++ b/src/sage/numerical/mip.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra r""" Mixed Integer Linear Programming diff --git a/src/sage/numerical/optimize.py b/src/sage/numerical/optimize.py index 708d440a205..b8386cd5433 100644 --- a/src/sage/numerical/optimize.py +++ b/src/sage/numerical/optimize.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: optional - scipy """ Numerical Root Finding and Optimization diff --git a/src/sage/numerical/sdp.pxd b/src/sage/numerical/sdp.pxd index 47964ef1789..621522c8988 100644 --- a/src/sage/numerical/sdp.pxd +++ b/src/sage/numerical/sdp.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra from sage.structure.sage_object cimport SageObject from sage.structure.parent cimport Parent from sage.structure.element cimport Element diff --git a/src/sage/numerical/sdp.pyx b/src/sage/numerical/sdp.pyx index 3f5f8a47cfb..4eb8a07456f 100644 --- a/src/sage/numerical/sdp.pyx +++ b/src/sage/numerical/sdp.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra r""" Semidefinite Programming diff --git a/src/sage/parallel/all.py b/src/sage/parallel/all.py index 85f69c86165..812742f03ac 100644 --- a/src/sage/parallel/all.py +++ b/src/sage/parallel/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories from .decorate import parallel, fork from sage.misc.lazy_import import lazy_import diff --git a/src/sage/parallel/decorate.py b/src/sage/parallel/decorate.py index 5b8572d3f60..c8a5aabc62b 100644 --- a/src/sage/parallel/decorate.py +++ b/src/sage/parallel/decorate.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Decorate interface for parallel computation """ diff --git a/src/sage/parallel/map_reduce.py b/src/sage/parallel/map_reduce.py index 097ac97c1dc..bc42235a23e 100644 --- a/src/sage/parallel/map_reduce.py +++ b/src/sage/parallel/map_reduce.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # -*- coding: utf-8 -*- r""" Parallel computations using RecursivelyEnumeratedSet and Map-Reduce diff --git a/src/sage/parallel/multiprocessing_sage.py b/src/sage/parallel/multiprocessing_sage.py index 2ccab49ac0f..350c833afed 100644 --- a/src/sage/parallel/multiprocessing_sage.py +++ b/src/sage/parallel/multiprocessing_sage.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Parallel Iterator built using Python's multiprocessing module """ diff --git a/src/sage/parallel/ncpus.py b/src/sage/parallel/ncpus.py index dfb6c3c6734..b901982163e 100644 --- a/src/sage/parallel/ncpus.py +++ b/src/sage/parallel/ncpus.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ CPU Detection """ diff --git a/src/sage/parallel/parallelism.py b/src/sage/parallel/parallelism.py index 8aafe232fee..cde870e2604 100644 --- a/src/sage/parallel/parallelism.py +++ b/src/sage/parallel/parallelism.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Parallelization control diff --git a/src/sage/parallel/reference.py b/src/sage/parallel/reference.py index 36dd7a8bb76..ccde2ebfd97 100644 --- a/src/sage/parallel/reference.py +++ b/src/sage/parallel/reference.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Reference Parallel Primitives diff --git a/src/sage/parallel/use_fork.py b/src/sage/parallel/use_fork.py index ce240acf9d8..0c83056924b 100644 --- a/src/sage/parallel/use_fork.py +++ b/src/sage/parallel/use_fork.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Parallel iterator built using the ``fork()`` system call """ diff --git a/src/sage/plot/all.py b/src/sage/plot/all.py index 1f16e2d6789..771b9433a61 100644 --- a/src/sage/plot/all.py +++ b/src/sage/plot/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-plot from .graphics import Graphics from .plot import (plot, graphics_array, multi_graphics, list_plot, parametric_plot, polar_plot, plot_loglog, plot_semilogx, diff --git a/src/sage/plot/animate.py b/src/sage/plot/animate.py index 0ce77981f34..052f985386d 100644 --- a/src/sage/plot/animate.py +++ b/src/sage/plot/animate.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-plot # sage.doctest: needs sage.symbolic r""" Animated plots diff --git a/src/sage/plot/arc.py b/src/sage/plot/arc.py index 8da333ee12b..f27d2538361 100644 --- a/src/sage/plot/arc.py +++ b/src/sage/plot/arc.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-plot """ Arcs of circles and ellipses """ diff --git a/src/sage/plot/arrow.py b/src/sage/plot/arrow.py index 324a87bd17b..ad95f94ccba 100644 --- a/src/sage/plot/arrow.py +++ b/src/sage/plot/arrow.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-plot """ Arrows """ diff --git a/src/sage/plot/bar_chart.py b/src/sage/plot/bar_chart.py index 34ed242af4c..2f1dc0f27c9 100644 --- a/src/sage/plot/bar_chart.py +++ b/src/sage/plot/bar_chart.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-plot """ Bar charts """ diff --git a/src/sage/plot/bezier_path.py b/src/sage/plot/bezier_path.py index a8bffed51ba..8d82fec3e09 100644 --- a/src/sage/plot/bezier_path.py +++ b/src/sage/plot/bezier_path.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-plot r""" Bezier paths """ diff --git a/src/sage/plot/circle.py b/src/sage/plot/circle.py index c7fd3d9dfc0..f2543a7331d 100644 --- a/src/sage/plot/circle.py +++ b/src/sage/plot/circle.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-plot """ Circles """ diff --git a/src/sage/plot/colors.py b/src/sage/plot/colors.py index 5eeddc373fd..b127c30209f 100644 --- a/src/sage/plot/colors.py +++ b/src/sage/plot/colors.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-plot # sage.doctest: needs sage.plot r""" Colors diff --git a/src/sage/plot/complex_plot.pyx b/src/sage/plot/complex_plot.pyx index 01d8060ea01..7f18e3c29aa 100644 --- a/src/sage/plot/complex_plot.pyx +++ b/src/sage/plot/complex_plot.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-plot """ Complex plots diff --git a/src/sage/plot/contour_plot.py b/src/sage/plot/contour_plot.py index fd175d5eceb..a5e50bbfadb 100644 --- a/src/sage/plot/contour_plot.py +++ b/src/sage/plot/contour_plot.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-plot # sage.doctest: needs sage.symbolic """ Contour plots diff --git a/src/sage/plot/density_plot.py b/src/sage/plot/density_plot.py index e2ffbb6d453..8103879cae6 100644 --- a/src/sage/plot/density_plot.py +++ b/src/sage/plot/density_plot.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-plot # sage.doctest: needs sage.symbolic """ Density plots diff --git a/src/sage/plot/disk.py b/src/sage/plot/disk.py index 3b2c72051b9..7869623152c 100644 --- a/src/sage/plot/disk.py +++ b/src/sage/plot/disk.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-plot """ Disks """ diff --git a/src/sage/plot/ellipse.py b/src/sage/plot/ellipse.py index 788db0fd76b..135bbeee8f6 100644 --- a/src/sage/plot/ellipse.py +++ b/src/sage/plot/ellipse.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-plot """ Ellipses """ diff --git a/src/sage/plot/graphics.py b/src/sage/plot/graphics.py index b6465b8f9a9..8f0e329de95 100644 --- a/src/sage/plot/graphics.py +++ b/src/sage/plot/graphics.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-plot # -*- encoding: utf-8 -*- r""" Graphics objects diff --git a/src/sage/plot/histogram.py b/src/sage/plot/histogram.py index e10229417fc..e8de0f7262f 100644 --- a/src/sage/plot/histogram.py +++ b/src/sage/plot/histogram.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-plot """ Histograms """ diff --git a/src/sage/plot/hyperbolic_arc.py b/src/sage/plot/hyperbolic_arc.py index 4e7fda8350d..17fdaf90c04 100644 --- a/src/sage/plot/hyperbolic_arc.py +++ b/src/sage/plot/hyperbolic_arc.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-plot # sage.doctest: needs sage.symbolic r""" Arcs in hyperbolic geometry diff --git a/src/sage/plot/hyperbolic_polygon.py b/src/sage/plot/hyperbolic_polygon.py index efe39697829..446f66f9404 100644 --- a/src/sage/plot/hyperbolic_polygon.py +++ b/src/sage/plot/hyperbolic_polygon.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-plot # sage.doctest: needs sage.symbolic """ Polygons and triangles in hyperbolic geometry diff --git a/src/sage/plot/hyperbolic_regular_polygon.py b/src/sage/plot/hyperbolic_regular_polygon.py index 9be2169ab63..a48ba7200ca 100644 --- a/src/sage/plot/hyperbolic_regular_polygon.py +++ b/src/sage/plot/hyperbolic_regular_polygon.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-plot # sage.doctest: needs sage.symbolic """ Regular polygons in the upper half model for hyperbolic plane diff --git a/src/sage/plot/line.py b/src/sage/plot/line.py index 8e9cb97891f..c5c7c42c783 100644 --- a/src/sage/plot/line.py +++ b/src/sage/plot/line.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-plot """ Line plots """ diff --git a/src/sage/plot/matrix_plot.py b/src/sage/plot/matrix_plot.py index abaeb3e6fc4..6e3e89a4a9f 100644 --- a/src/sage/plot/matrix_plot.py +++ b/src/sage/plot/matrix_plot.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-plot """ Matrix plots """ diff --git a/src/sage/plot/misc.py b/src/sage/plot/misc.py index fa06484c4cf..f6255dd9ae4 100644 --- a/src/sage/plot/misc.py +++ b/src/sage/plot/misc.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-plot # sage.doctest: needs sage.symbolic """ Plotting utilities diff --git a/src/sage/plot/multigraphics.py b/src/sage/plot/multigraphics.py index f22febca152..48e6bdb2e2e 100644 --- a/src/sage/plot/multigraphics.py +++ b/src/sage/plot/multigraphics.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-plot # sage.doctest: needs sage.symbolic r""" Graphics arrays and insets diff --git a/src/sage/plot/plot.py b/src/sage/plot/plot.py index b25ba785326..a8ed633914d 100644 --- a/src/sage/plot/plot.py +++ b/src/sage/plot/plot.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-plot # sage.doctest: needs sage.symbolic r""" 2D plotting diff --git a/src/sage/plot/plot3d/all.py b/src/sage/plot/plot3d/all.py index 16c647c6b50..58634e350b8 100644 --- a/src/sage/plot/plot3d/all.py +++ b/src/sage/plot/plot3d/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-plot from .plot3d import plot3d, cylindrical_plot3d, spherical_plot3d, Spherical, SphericalElevation, Cylindrical from .parametric_plot3d import parametric_plot3d diff --git a/src/sage/plot/plot3d/base.pxd b/src/sage/plot/plot3d/base.pxd index 0b7619ddd44..49c0f9b3d82 100644 --- a/src/sage/plot/plot3d/base.pxd +++ b/src/sage/plot/plot3d/base.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-plot from sage.structure.sage_object cimport SageObject diff --git a/src/sage/plot/plot3d/base.pyx b/src/sage/plot/plot3d/base.pyx index b9dc7b310ca..429700fc73b 100644 --- a/src/sage/plot/plot3d/base.pyx +++ b/src/sage/plot/plot3d/base.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-plot r""" Base classes for 3D graphics objects and plotting diff --git a/src/sage/plot/plot3d/implicit_plot3d.py b/src/sage/plot/plot3d/implicit_plot3d.py index 60a51a3dcbe..fb8be6cd751 100644 --- a/src/sage/plot/plot3d/implicit_plot3d.py +++ b/src/sage/plot/plot3d/implicit_plot3d.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-plot # sage.doctest: needs sage.symbolic """ Implicit plots diff --git a/src/sage/plot/plot3d/implicit_surface.pyx b/src/sage/plot/plot3d/implicit_surface.pyx index f5773a63d08..e9cbc72ef83 100644 --- a/src/sage/plot/plot3d/implicit_surface.pyx +++ b/src/sage/plot/plot3d/implicit_surface.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-plot # sage.doctest: needs sage.symbolic r""" Graphics 3D object for representing and triangulating isosurfaces diff --git a/src/sage/plot/plot3d/index_face_set.pxd b/src/sage/plot/plot3d/index_face_set.pxd index 5a81bd32de1..e020fc3c265 100644 --- a/src/sage/plot/plot3d/index_face_set.pxd +++ b/src/sage/plot/plot3d/index_face_set.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-plot from sage.plot.plot3d.base cimport PrimitiveObject from sage.plot.plot3d.transform cimport point_c, face_c, color_c diff --git a/src/sage/plot/plot3d/index_face_set.pyx b/src/sage/plot/plot3d/index_face_set.pyx index 265bfc01513..1bbfafe34da 100644 --- a/src/sage/plot/plot3d/index_face_set.pyx +++ b/src/sage/plot/plot3d/index_face_set.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-plot """ Indexed face sets diff --git a/src/sage/plot/plot3d/introduction.py b/src/sage/plot/plot3d/introduction.py index b297fdd180a..4424bcb2195 100644 --- a/src/sage/plot/plot3d/introduction.py +++ b/src/sage/plot/plot3d/introduction.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-plot r""" Introduction diff --git a/src/sage/plot/plot3d/list_plot3d.py b/src/sage/plot/plot3d/list_plot3d.py index 825c140f8ea..068864dde5b 100644 --- a/src/sage/plot/plot3d/list_plot3d.py +++ b/src/sage/plot/plot3d/list_plot3d.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-plot """ List plots """ diff --git a/src/sage/plot/plot3d/parametric_plot3d.py b/src/sage/plot/plot3d/parametric_plot3d.py index afb2d6fa129..15c38cb2153 100644 --- a/src/sage/plot/plot3d/parametric_plot3d.py +++ b/src/sage/plot/plot3d/parametric_plot3d.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-plot # sage.doctest: needs sage.symbolic """ Parametric plots diff --git a/src/sage/plot/plot3d/parametric_surface.pxd b/src/sage/plot/plot3d/parametric_surface.pxd index 82ac1164f8a..a018fc00c27 100644 --- a/src/sage/plot/plot3d/parametric_surface.pxd +++ b/src/sage/plot/plot3d/parametric_surface.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-plot from sage.plot.plot3d.index_face_set cimport IndexFaceSet from sage.plot.plot3d.transform cimport point_c diff --git a/src/sage/plot/plot3d/parametric_surface.pyx b/src/sage/plot/plot3d/parametric_surface.pyx index 7399314961d..7ded9faea9f 100644 --- a/src/sage/plot/plot3d/parametric_surface.pyx +++ b/src/sage/plot/plot3d/parametric_surface.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-plot # sage.doctest: needs sage.symbolic r""" Parametric surface diff --git a/src/sage/plot/plot3d/platonic.py b/src/sage/plot/plot3d/platonic.py index 94d15ab16ad..ef6b6b11e0c 100644 --- a/src/sage/plot/plot3d/platonic.py +++ b/src/sage/plot/plot3d/platonic.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-plot r""" Platonic solids diff --git a/src/sage/plot/plot3d/plot3d.py b/src/sage/plot/plot3d/plot3d.py index fe8d4896426..6cf52f4b661 100644 --- a/src/sage/plot/plot3d/plot3d.py +++ b/src/sage/plot/plot3d/plot3d.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-plot # sage.doctest: needs sage.symbolic r""" Plotting functions diff --git a/src/sage/plot/plot3d/plot_field3d.py b/src/sage/plot/plot3d/plot_field3d.py index a2c04f137a3..2e922743cb2 100644 --- a/src/sage/plot/plot3d/plot_field3d.py +++ b/src/sage/plot/plot3d/plot_field3d.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-plot # sage.doctest: needs sage.symbolic """ Plotting 3D fields diff --git a/src/sage/plot/plot3d/point_c.pxi b/src/sage/plot/plot3d/point_c.pxi index ba9561ab18c..d8e8cb47f73 100644 --- a/src/sage/plot/plot3d/point_c.pxi +++ b/src/sage/plot/plot3d/point_c.pxi @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-plot # **************************************************************************** # Copyright (C) 2007 Robert Bradshaw # diff --git a/src/sage/plot/plot3d/revolution_plot3d.py b/src/sage/plot/plot3d/revolution_plot3d.py index f3220dcd1a3..65d2d4820d7 100644 --- a/src/sage/plot/plot3d/revolution_plot3d.py +++ b/src/sage/plot/plot3d/revolution_plot3d.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-plot # sage.doctest: needs sage.plot sage.symbolic """ Surfaces of revolution diff --git a/src/sage/plot/plot3d/shapes.pxd b/src/sage/plot/plot3d/shapes.pxd index d01e2a7460d..aa385217dd3 100644 --- a/src/sage/plot/plot3d/shapes.pxd +++ b/src/sage/plot/plot3d/shapes.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-plot from sage.plot.plot3d.parametric_surface cimport ParametricSurface diff --git a/src/sage/plot/plot3d/shapes.pyx b/src/sage/plot/plot3d/shapes.pyx index e184075b23b..fed6197b145 100644 --- a/src/sage/plot/plot3d/shapes.pyx +++ b/src/sage/plot/plot3d/shapes.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-plot """ Basic objects such as Sphere, Box, Cone, etc. diff --git a/src/sage/plot/plot3d/shapes2.py b/src/sage/plot/plot3d/shapes2.py index 18e37bbfefe..4a7661b4188 100644 --- a/src/sage/plot/plot3d/shapes2.py +++ b/src/sage/plot/plot3d/shapes2.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-plot r""" Classes for Lines, Frames, Rulers, Spheres, Points, Dots, and Text diff --git a/src/sage/plot/plot3d/tachyon.py b/src/sage/plot/plot3d/tachyon.py index 9c5719f894e..5eff073b07a 100644 --- a/src/sage/plot/plot3d/tachyon.py +++ b/src/sage/plot/plot3d/tachyon.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-plot r""" The Tachyon 3D Ray Tracer diff --git a/src/sage/plot/plot3d/texture.py b/src/sage/plot/plot3d/texture.py index c4dee5d3ad5..5e0b1708594 100644 --- a/src/sage/plot/plot3d/texture.py +++ b/src/sage/plot/plot3d/texture.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-plot r""" Texture support diff --git a/src/sage/plot/plot3d/transform.pxd b/src/sage/plot/plot3d/transform.pxd index 87695fc3d87..fddc154cf63 100644 --- a/src/sage/plot/plot3d/transform.pxd +++ b/src/sage/plot/plot3d/transform.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-plot cdef struct point_c: double x, y, z diff --git a/src/sage/plot/plot3d/transform.pyx b/src/sage/plot/plot3d/transform.pyx index b6d8a2f643b..e00c64a387d 100644 --- a/src/sage/plot/plot3d/transform.pyx +++ b/src/sage/plot/plot3d/transform.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-plot """ Transformations """ diff --git a/src/sage/plot/plot3d/tri_plot.py b/src/sage/plot/plot3d/tri_plot.py index 256b0d348c3..3b2e506d854 100644 --- a/src/sage/plot/plot3d/tri_plot.py +++ b/src/sage/plot/plot3d/tri_plot.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-plot r""" Adaptive refinement code for 3d surface plotting diff --git a/src/sage/plot/plot_field.py b/src/sage/plot/plot_field.py index 9b2746c5a27..6a9e8438369 100644 --- a/src/sage/plot/plot_field.py +++ b/src/sage/plot/plot_field.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-plot # sage.doctest: needs sage.symbolic """ Plotting fields diff --git a/src/sage/plot/point.py b/src/sage/plot/point.py index 7e880ca3c1c..7cf12a940dc 100644 --- a/src/sage/plot/point.py +++ b/src/sage/plot/point.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-plot # -*- coding: utf-8 -*- r""" Points diff --git a/src/sage/plot/polygon.py b/src/sage/plot/polygon.py index a2159fcfb56..a49477805e0 100644 --- a/src/sage/plot/polygon.py +++ b/src/sage/plot/polygon.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-plot """ Polygons """ diff --git a/src/sage/plot/primitive.py b/src/sage/plot/primitive.py index 20c2987142f..01e1bf67b86 100644 --- a/src/sage/plot/primitive.py +++ b/src/sage/plot/primitive.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-plot """ Plotting primitives """ diff --git a/src/sage/plot/scatter_plot.py b/src/sage/plot/scatter_plot.py index c78b33a5258..e523c3320da 100644 --- a/src/sage/plot/scatter_plot.py +++ b/src/sage/plot/scatter_plot.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-plot """ Scatter plots """ diff --git a/src/sage/plot/step.py b/src/sage/plot/step.py index 4023686f9bd..81e3dc56870 100644 --- a/src/sage/plot/step.py +++ b/src/sage/plot/step.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-plot # sage.doctest: needs sage.symbolic """ Step function plots diff --git a/src/sage/plot/streamline_plot.py b/src/sage/plot/streamline_plot.py index 663d3aee70b..8d32bedb449 100644 --- a/src/sage/plot/streamline_plot.py +++ b/src/sage/plot/streamline_plot.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-plot # sage.doctest: needs sage.symbolic """ Streamline plots diff --git a/src/sage/plot/text.py b/src/sage/plot/text.py index 602cdfebddf..133f34bade6 100644 --- a/src/sage/plot/text.py +++ b/src/sage/plot/text.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-plot """ Text in plots """ diff --git a/src/sage/probability/all.py b/src/sage/probability/all.py index 689ee7a7934..fcb12b05813 100644 --- a/src/sage/probability/all.py +++ b/src/sage/probability/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from .random_variable import ( DiscreteRandomVariable, diff --git a/src/sage/probability/probability_distribution.pyx b/src/sage/probability/probability_distribution.pyx index 1f120cd6089..24acc8a570e 100644 --- a/src/sage/probability/probability_distribution.pyx +++ b/src/sage/probability/probability_distribution.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Probability Distributions diff --git a/src/sage/probability/random_variable.py b/src/sage/probability/random_variable.py index 4a385e55150..5950633e03f 100644 --- a/src/sage/probability/random_variable.py +++ b/src/sage/probability/random_variable.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Random variables and probability spaces diff --git a/src/sage/quadratic_forms/all.py b/src/sage/quadratic_forms/all.py index 81d395f375c..f27191559b8 100644 --- a/src/sage/quadratic_forms/all.py +++ b/src/sage/quadratic_forms/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from .binary_qf import BinaryQF, BinaryQF_reduced_representatives from .bqf_class_group import BQFClassGroup diff --git a/src/sage/quadratic_forms/binary_qf.py b/src/sage/quadratic_forms/binary_qf.py index 555fe01b3ef..43612795abe 100755 --- a/src/sage/quadratic_forms/binary_qf.py +++ b/src/sage/quadratic_forms/binary_qf.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Binary quadratic forms with integer coefficients diff --git a/src/sage/quadratic_forms/bqf_class_group.py b/src/sage/quadratic_forms/bqf_class_group.py index 30c9bd7782a..3194bbea3cf 100644 --- a/src/sage/quadratic_forms/bqf_class_group.py +++ b/src/sage/quadratic_forms/bqf_class_group.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Class groups of binary quadratic forms diff --git a/src/sage/quadratic_forms/constructions.py b/src/sage/quadratic_forms/constructions.py index 2fe117d2e29..f24148f6d31 100644 --- a/src/sage/quadratic_forms/constructions.py +++ b/src/sage/quadratic_forms/constructions.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Constructions of quadratic forms """ diff --git a/src/sage/quadratic_forms/count_local_2.pyx b/src/sage/quadratic_forms/count_local_2.pyx index 9b7d3e15178..4327aecf278 100644 --- a/src/sage/quadratic_forms/count_local_2.pyx +++ b/src/sage/quadratic_forms/count_local_2.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Optimized counting of congruence solutions """ diff --git a/src/sage/quadratic_forms/extras.py b/src/sage/quadratic_forms/extras.py index 7bdba23c32e..e0ef56a2625 100644 --- a/src/sage/quadratic_forms/extras.py +++ b/src/sage/quadratic_forms/extras.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Extra functions for quadratic forms """ diff --git a/src/sage/quadratic_forms/genera/all.py b/src/sage/quadratic_forms/genera/all.py index b1f48b5b8f6..6bd6f50146e 100644 --- a/src/sage/quadratic_forms/genera/all.py +++ b/src/sage/quadratic_forms/genera/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari # **************************************************************************** # Copyright (C) 2007 David Kohel # diff --git a/src/sage/quadratic_forms/genera/genus.py b/src/sage/quadratic_forms/genera/genus.py index 8946683a988..02888a9ac60 100644 --- a/src/sage/quadratic_forms/genera/genus.py +++ b/src/sage/quadratic_forms/genera/genus.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari # sage.doctest: needs sage.libs.pari r""" Genus diff --git a/src/sage/quadratic_forms/genera/normal_form.py b/src/sage/quadratic_forms/genera/normal_form.py index 829b4783226..237caa0ac62 100644 --- a/src/sage/quadratic_forms/genera/normal_form.py +++ b/src/sage/quadratic_forms/genera/normal_form.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari # sage.doctest: needs sage.libs.pari sage.rings.padics r""" Normal forms for `p`-adic quadratic and bilinear forms diff --git a/src/sage/quadratic_forms/genera/spinor_genus.py b/src/sage/quadratic_forms/genera/spinor_genus.py index f049496965d..5590a9cac71 100644 --- a/src/sage/quadratic_forms/genera/spinor_genus.py +++ b/src/sage/quadratic_forms/genera/spinor_genus.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari # sage.doctest: needs sage.groups r""" Spinor genus computations. diff --git a/src/sage/quadratic_forms/qfsolve.py b/src/sage/quadratic_forms/qfsolve.py index ff91830874c..3ddf87326dd 100644 --- a/src/sage/quadratic_forms/qfsolve.py +++ b/src/sage/quadratic_forms/qfsolve.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari # sage.doctest: needs sage.libs.pari """ Solving quadratic equations diff --git a/src/sage/quadratic_forms/quadratic_form.py b/src/sage/quadratic_forms/quadratic_form.py index c78e7badeb4..be72f1aef98 100644 --- a/src/sage/quadratic_forms/quadratic_form.py +++ b/src/sage/quadratic_forms/quadratic_form.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Quadratic forms overview diff --git a/src/sage/quadratic_forms/quadratic_form__automorphisms.py b/src/sage/quadratic_forms/quadratic_form__automorphisms.py index 4b6e3594f83..4972cacee14 100644 --- a/src/sage/quadratic_forms/quadratic_form__automorphisms.py +++ b/src/sage/quadratic_forms/quadratic_form__automorphisms.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari # sage.doctest: needs sage.libs.pari """ Automorphisms of Quadratic Forms diff --git a/src/sage/quadratic_forms/quadratic_form__count_local_2.py b/src/sage/quadratic_forms/quadratic_form__count_local_2.py index b125d8d6840..c98d2f4271e 100644 --- a/src/sage/quadratic_forms/quadratic_form__count_local_2.py +++ b/src/sage/quadratic_forms/quadratic_form__count_local_2.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Counting Congruence Solutions diff --git a/src/sage/quadratic_forms/quadratic_form__equivalence_testing.py b/src/sage/quadratic_forms/quadratic_form__equivalence_testing.py index 2bd4df8f890..10ea968aa5e 100644 --- a/src/sage/quadratic_forms/quadratic_form__equivalence_testing.py +++ b/src/sage/quadratic_forms/quadratic_form__equivalence_testing.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Equivalence Testing diff --git a/src/sage/quadratic_forms/quadratic_form__evaluate.pyx b/src/sage/quadratic_forms/quadratic_form__evaluate.pyx index 8a5aeafd831..c2dd29b04b5 100644 --- a/src/sage/quadratic_forms/quadratic_form__evaluate.pyx +++ b/src/sage/quadratic_forms/quadratic_form__evaluate.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules "Evaluation" diff --git a/src/sage/quadratic_forms/quadratic_form__genus.py b/src/sage/quadratic_forms/quadratic_form__genus.py index 52468e9889a..7ff275be265 100644 --- a/src/sage/quadratic_forms/quadratic_form__genus.py +++ b/src/sage/quadratic_forms/quadratic_form__genus.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari # sage.doctest: needs sage.libs.pari """ Local and Global Genus Symbols diff --git a/src/sage/quadratic_forms/quadratic_form__local_density_congruence.py b/src/sage/quadratic_forms/quadratic_form__local_density_congruence.py index a39637df8f0..f02d5aca212 100644 --- a/src/sage/quadratic_forms/quadratic_form__local_density_congruence.py +++ b/src/sage/quadratic_forms/quadratic_form__local_density_congruence.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Local Density Congruence """ diff --git a/src/sage/quadratic_forms/quadratic_form__local_density_interfaces.py b/src/sage/quadratic_forms/quadratic_form__local_density_interfaces.py index ec39e489494..dac1793a1be 100644 --- a/src/sage/quadratic_forms/quadratic_form__local_density_interfaces.py +++ b/src/sage/quadratic_forms/quadratic_form__local_density_interfaces.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari """ Local Density Interfaces """ diff --git a/src/sage/quadratic_forms/quadratic_form__local_field_invariants.py b/src/sage/quadratic_forms/quadratic_form__local_field_invariants.py index aff8dad2d62..90341e00ae0 100644 --- a/src/sage/quadratic_forms/quadratic_form__local_field_invariants.py +++ b/src/sage/quadratic_forms/quadratic_form__local_field_invariants.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Local Field Invariants diff --git a/src/sage/quadratic_forms/quadratic_form__local_normal_form.py b/src/sage/quadratic_forms/quadratic_form__local_normal_form.py index 5770a3c22f0..fd3cebb8cbd 100644 --- a/src/sage/quadratic_forms/quadratic_form__local_normal_form.py +++ b/src/sage/quadratic_forms/quadratic_form__local_normal_form.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari """ Local Normal Form """ diff --git a/src/sage/quadratic_forms/quadratic_form__local_representation_conditions.py b/src/sage/quadratic_forms/quadratic_form__local_representation_conditions.py index c337d2994a0..e7a1c2607f9 100644 --- a/src/sage/quadratic_forms/quadratic_form__local_representation_conditions.py +++ b/src/sage/quadratic_forms/quadratic_form__local_representation_conditions.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari # sage.doctest: needs sage.libs.pari sage.rings.number_field """ Local Representation Conditions diff --git a/src/sage/quadratic_forms/quadratic_form__mass.py b/src/sage/quadratic_forms/quadratic_form__mass.py index 67bf06d888a..e951d8c1b29 100644 --- a/src/sage/quadratic_forms/quadratic_form__mass.py +++ b/src/sage/quadratic_forms/quadratic_form__mass.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari """ Shimura Mass """ diff --git a/src/sage/quadratic_forms/quadratic_form__mass__Conway_Sloane_masses.py b/src/sage/quadratic_forms/quadratic_form__mass__Conway_Sloane_masses.py index 894ee68cec9..732e31bff96 100644 --- a/src/sage/quadratic_forms/quadratic_form__mass__Conway_Sloane_masses.py +++ b/src/sage/quadratic_forms/quadratic_form__mass__Conway_Sloane_masses.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari """ Conway-Sloane masses """ diff --git a/src/sage/quadratic_forms/quadratic_form__mass__Siegel_densities.py b/src/sage/quadratic_forms/quadratic_form__mass__Siegel_densities.py index 9133a84b76f..a82406bce24 100644 --- a/src/sage/quadratic_forms/quadratic_form__mass__Siegel_densities.py +++ b/src/sage/quadratic_forms/quadratic_form__mass__Siegel_densities.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari """ Local Masses and Siegel Densities """ diff --git a/src/sage/quadratic_forms/quadratic_form__neighbors.py b/src/sage/quadratic_forms/quadratic_form__neighbors.py index ec853cd52ef..4928b82ccba 100644 --- a/src/sage/quadratic_forms/quadratic_form__neighbors.py +++ b/src/sage/quadratic_forms/quadratic_form__neighbors.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Neighbors """ diff --git a/src/sage/quadratic_forms/quadratic_form__reduction_theory.py b/src/sage/quadratic_forms/quadratic_form__reduction_theory.py index 87323962097..1bafe1e2756 100644 --- a/src/sage/quadratic_forms/quadratic_form__reduction_theory.py +++ b/src/sage/quadratic_forms/quadratic_form__reduction_theory.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Reduction Theory """ diff --git a/src/sage/quadratic_forms/quadratic_form__siegel_product.py b/src/sage/quadratic_forms/quadratic_form__siegel_product.py index b481f5ad073..1aebfabb6bf 100644 --- a/src/sage/quadratic_forms/quadratic_form__siegel_product.py +++ b/src/sage/quadratic_forms/quadratic_form__siegel_product.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari # sage.doctest: needs sage.libs.pari """ Siegel Products diff --git a/src/sage/quadratic_forms/quadratic_form__split_local_covering.py b/src/sage/quadratic_forms/quadratic_form__split_local_covering.py index 4db788e5e44..ca265e51056 100644 --- a/src/sage/quadratic_forms/quadratic_form__split_local_covering.py +++ b/src/sage/quadratic_forms/quadratic_form__split_local_covering.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Split Local Covering """ diff --git a/src/sage/quadratic_forms/quadratic_form__ternary_Tornaria.py b/src/sage/quadratic_forms/quadratic_form__ternary_Tornaria.py index cc7a6549312..01fdced1bc1 100644 --- a/src/sage/quadratic_forms/quadratic_form__ternary_Tornaria.py +++ b/src/sage/quadratic_forms/quadratic_form__ternary_Tornaria.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Tornaria methods for computing with quadratic forms """ diff --git a/src/sage/quadratic_forms/quadratic_form__theta.py b/src/sage/quadratic_forms/quadratic_form__theta.py index c4f0606df4c..8320c6ac13a 100644 --- a/src/sage/quadratic_forms/quadratic_form__theta.py +++ b/src/sage/quadratic_forms/quadratic_form__theta.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Theta Series of Quadratic Forms diff --git a/src/sage/quadratic_forms/quadratic_form__variable_substitutions.py b/src/sage/quadratic_forms/quadratic_form__variable_substitutions.py index cbcae91d9de..f47efdbdc8f 100644 --- a/src/sage/quadratic_forms/quadratic_form__variable_substitutions.py +++ b/src/sage/quadratic_forms/quadratic_form__variable_substitutions.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Variable Substitution, Multiplication, Division, Scaling diff --git a/src/sage/quadratic_forms/random_quadraticform.py b/src/sage/quadratic_forms/random_quadraticform.py index aa6a069a8b5..ee010c76287 100644 --- a/src/sage/quadratic_forms/random_quadraticform.py +++ b/src/sage/quadratic_forms/random_quadraticform.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Random quadratic forms diff --git a/src/sage/quadratic_forms/special_values.py b/src/sage/quadratic_forms/special_values.py index 2ee775e053d..74f1882a7cb 100644 --- a/src/sage/quadratic_forms/special_values.py +++ b/src/sage/quadratic_forms/special_values.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari r""" Routines for computing special values of `L`-functions diff --git a/src/sage/quadratic_forms/ternary.pyx b/src/sage/quadratic_forms/ternary.pyx index 6e7c4389083..d5dface0015 100644 --- a/src/sage/quadratic_forms/ternary.pyx +++ b/src/sage/quadratic_forms/ternary.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Helper code for ternary quadratic forms """ diff --git a/src/sage/quadratic_forms/ternary_qf.py b/src/sage/quadratic_forms/ternary_qf.py index 2808c04548f..b45b2a15163 100644 --- a/src/sage/quadratic_forms/ternary_qf.py +++ b/src/sage/quadratic_forms/ternary_qf.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Ternary quadratic form with integer coefficients diff --git a/src/sage/quivers/algebra.py b/src/sage/quivers/algebra.py index fee19eb7e93..be63124520a 100644 --- a/src/sage/quivers/algebra.py +++ b/src/sage/quivers/algebra.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint """ Path Algebras """ diff --git a/src/sage/quivers/algebra_elements.pxd b/src/sage/quivers/algebra_elements.pxd index e47696270da..bbe97ce7cc4 100644 --- a/src/sage/quivers/algebra_elements.pxd +++ b/src/sage/quivers/algebra_elements.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint """ Cython types for elements of path algebras """ diff --git a/src/sage/quivers/algebra_elements.pxi b/src/sage/quivers/algebra_elements.pxi index 7b9a9883f28..f927f7f32c2 100644 --- a/src/sage/quivers/algebra_elements.pxi +++ b/src/sage/quivers/algebra_elements.pxi @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint """ Boilerplate functions for a cython implementation of elements of path algebras diff --git a/src/sage/quivers/algebra_elements.pyx b/src/sage/quivers/algebra_elements.pyx index 54906701d26..e925c45f8b5 100644 --- a/src/sage/quivers/algebra_elements.pyx +++ b/src/sage/quivers/algebra_elements.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint """ Path algebra elements diff --git a/src/sage/quivers/all.py b/src/sage/quivers/all.py index e69de29bb2d..d31bae41036 100644 --- a/src/sage/quivers/all.py +++ b/src/sage/quivers/all.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-flint diff --git a/src/sage/quivers/homspace.py b/src/sage/quivers/homspace.py index 414eafa5a89..36e3eea2eca 100644 --- a/src/sage/quivers/homspace.py +++ b/src/sage/quivers/homspace.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint """ Quiver Homspace """ diff --git a/src/sage/quivers/morphism.py b/src/sage/quivers/morphism.py index 7fcbb501151..0a1e6cf1fff 100644 --- a/src/sage/quivers/morphism.py +++ b/src/sage/quivers/morphism.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint """ Quiver Morphisms """ diff --git a/src/sage/quivers/path_semigroup.py b/src/sage/quivers/path_semigroup.py index 85aea6517d0..8e4e567cad4 100644 --- a/src/sage/quivers/path_semigroup.py +++ b/src/sage/quivers/path_semigroup.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # -*- encoding: utf-8 -*- """ Path Semigroups diff --git a/src/sage/quivers/paths.pxd b/src/sage/quivers/paths.pxd index 88bfe92ca0f..8e943bedc1f 100644 --- a/src/sage/quivers/paths.pxd +++ b/src/sage/quivers/paths.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint from sage.structure.element cimport MonoidElement, Element from sage.data_structures.bounded_integer_sequences cimport biseq_t diff --git a/src/sage/quivers/paths.pyx b/src/sage/quivers/paths.pyx index 38fdc03beba..07f6db5bbe6 100644 --- a/src/sage/quivers/paths.pyx +++ b/src/sage/quivers/paths.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint """ Quiver Paths """ diff --git a/src/sage/quivers/representation.py b/src/sage/quivers/representation.py index 4d8b3cf7321..6e85af5af76 100644 --- a/src/sage/quivers/representation.py +++ b/src/sage/quivers/representation.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint r""" Quiver Representations diff --git a/src/sage/repl/__init__.py b/src/sage/repl/__init__.py index 1357b584ef3..dfa0bd2e536 100644 --- a/src/sage/repl/__init__.py +++ b/src/sage/repl/__init__.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl # IPython calls this when "%load_ext sage.repl" is used. # The Sage application loads it when starting up. def load_ipython_extension(*args): diff --git a/src/sage/repl/all.py b/src/sage/repl/all.py index 96fd6de5f6d..c45fa0aae88 100644 --- a/src/sage/repl/all.py +++ b/src/sage/repl/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl from sage.misc.lazy_import import lazy_import from sage.repl.preparse import preparse, implicit_multiplication diff --git a/src/sage/repl/attach.py b/src/sage/repl/attach.py index 689759d50a8..52f3f12fa62 100644 --- a/src/sage/repl/attach.py +++ b/src/sage/repl/attach.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl r""" Keep track of attached files diff --git a/src/sage/repl/configuration.py b/src/sage/repl/configuration.py index 90df44bdf81..ad0870cca2e 100644 --- a/src/sage/repl/configuration.py +++ b/src/sage/repl/configuration.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl r""" Sage's IPython Configuration diff --git a/src/sage/repl/display/__init__.py b/src/sage/repl/display/__init__.py index e69de29bb2d..62acb4df510 100644 --- a/src/sage/repl/display/__init__.py +++ b/src/sage/repl/display/__init__.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-repl diff --git a/src/sage/repl/display/fancy_repr.py b/src/sage/repl/display/fancy_repr.py index 77949a4b578..4e9bfb291a1 100644 --- a/src/sage/repl/display/fancy_repr.py +++ b/src/sage/repl/display/fancy_repr.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl # -*- coding: utf-8 -*- """ Representations of objects diff --git a/src/sage/repl/display/formatter.py b/src/sage/repl/display/formatter.py index 822a9edfaba..aee972a3ff0 100644 --- a/src/sage/repl/display/formatter.py +++ b/src/sage/repl/display/formatter.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl # -*- coding: utf-8 -*- r""" IPython Displayhook Formatters diff --git a/src/sage/repl/display/jsmol_iframe.py b/src/sage/repl/display/jsmol_iframe.py index f8e69cfcb59..1d1c9c8fb55 100644 --- a/src/sage/repl/display/jsmol_iframe.py +++ b/src/sage/repl/display/jsmol_iframe.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl """ HTML Generator for JSmol diff --git a/src/sage/repl/display/pretty_print.py b/src/sage/repl/display/pretty_print.py index ec2aefbd7ad..4031882c41a 100644 --- a/src/sage/repl/display/pretty_print.py +++ b/src/sage/repl/display/pretty_print.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl # -*- coding: utf-8 -*- """ The Sage pretty printer diff --git a/src/sage/repl/display/util.py b/src/sage/repl/display/util.py index a2033c69f4f..9dc74f2f0e5 100644 --- a/src/sage/repl/display/util.py +++ b/src/sage/repl/display/util.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl # -*- coding: utf-8 -*- """ Utility functions for pretty-printing diff --git a/src/sage/repl/image.py b/src/sage/repl/image.py index 20d1e5efbb6..4a4cbd0e2a4 100644 --- a/src/sage/repl/image.py +++ b/src/sage/repl/image.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl # -*- encoding: utf-8 -*- """ Sage Wrapper for Bitmap Images diff --git a/src/sage/repl/inputhook.py b/src/sage/repl/inputhook.py index d49a7ee9060..647c0bfea04 100644 --- a/src/sage/repl/inputhook.py +++ b/src/sage/repl/inputhook.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl """ The Sage Input Hook diff --git a/src/sage/repl/interface_magic.py b/src/sage/repl/interface_magic.py index b77bc09e972..b60355f5cae 100644 --- a/src/sage/repl/interface_magic.py +++ b/src/sage/repl/interface_magic.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl """ Magics for each of the Sage interfaces diff --git a/src/sage/repl/interpreter.py b/src/sage/repl/interpreter.py index 4ddb8aa94a3..e6f36022b2b 100644 --- a/src/sage/repl/interpreter.py +++ b/src/sage/repl/interpreter.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl r""" Sage's IPython Modifications diff --git a/src/sage/repl/ipython_extension.py b/src/sage/repl/ipython_extension.py index 14c945a8517..bf2a36aec40 100644 --- a/src/sage/repl/ipython_extension.py +++ b/src/sage/repl/ipython_extension.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl r""" Sage's IPython Extension diff --git a/src/sage/repl/ipython_kernel/__init__.py b/src/sage/repl/ipython_kernel/__init__.py index e69de29bb2d..62acb4df510 100644 --- a/src/sage/repl/ipython_kernel/__init__.py +++ b/src/sage/repl/ipython_kernel/__init__.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-repl diff --git a/src/sage/repl/ipython_kernel/__main__.py b/src/sage/repl/ipython_kernel/__main__.py index a1657263bee..8f575facf67 100644 --- a/src/sage/repl/ipython_kernel/__main__.py +++ b/src/sage/repl/ipython_kernel/__main__.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl from ipykernel.kernelapp import IPKernelApp from sage.repl.ipython_kernel.kernel import SageKernel IPKernelApp.launch_instance(kernel_class=SageKernel) diff --git a/src/sage/repl/ipython_kernel/all_jupyter.py b/src/sage/repl/ipython_kernel/all_jupyter.py index 37899e1c080..f38874b8701 100644 --- a/src/sage/repl/ipython_kernel/all_jupyter.py +++ b/src/sage/repl/ipython_kernel/all_jupyter.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl """ All imports for Jupyter """ diff --git a/src/sage/repl/ipython_kernel/install.py b/src/sage/repl/ipython_kernel/install.py index 0adeab04bcd..37687741183 100644 --- a/src/sage/repl/ipython_kernel/install.py +++ b/src/sage/repl/ipython_kernel/install.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl """ Installing the SageMath Jupyter Kernel and Extensions diff --git a/src/sage/repl/ipython_kernel/interact.py b/src/sage/repl/ipython_kernel/interact.py index c9c3d627657..a234ed0bced 100644 --- a/src/sage/repl/ipython_kernel/interact.py +++ b/src/sage/repl/ipython_kernel/interact.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl # -*- coding: utf-8 -*- r""" Interacts for the Sage Jupyter notebook diff --git a/src/sage/repl/ipython_kernel/kernel.py b/src/sage/repl/ipython_kernel/kernel.py index ce5ce6bf65d..5b6b31b0d4c 100644 --- a/src/sage/repl/ipython_kernel/kernel.py +++ b/src/sage/repl/ipython_kernel/kernel.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl # -*- coding: utf-8 -*- """ The Sage ZMQ Kernel diff --git a/src/sage/repl/ipython_kernel/widgets.py b/src/sage/repl/ipython_kernel/widgets.py index 14c879373a5..93498c7e09a 100644 --- a/src/sage/repl/ipython_kernel/widgets.py +++ b/src/sage/repl/ipython_kernel/widgets.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl r""" Widgets to be used for the Sage Jupyter notebook diff --git a/src/sage/repl/ipython_kernel/widgets_sagenb.py b/src/sage/repl/ipython_kernel/widgets_sagenb.py index cedf713248a..140ad2a95a0 100644 --- a/src/sage/repl/ipython_kernel/widgets_sagenb.py +++ b/src/sage/repl/ipython_kernel/widgets_sagenb.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl # -*- coding: utf-8 -*- r""" Functions to construct widgets, based on the old SageNB interface. diff --git a/src/sage/repl/ipython_tests.py b/src/sage/repl/ipython_tests.py index ca568eb903c..603ac582fe9 100644 --- a/src/sage/repl/ipython_tests.py +++ b/src/sage/repl/ipython_tests.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl ''' Tests for the IPython integration diff --git a/src/sage/repl/load.py b/src/sage/repl/load.py index 4b82e3d021e..748735ba105 100644 --- a/src/sage/repl/load.py +++ b/src/sage/repl/load.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl """ Load Python, Sage, Cython, Fortran and Magma files in Sage """ diff --git a/src/sage/repl/preparse.py b/src/sage/repl/preparse.py index 18ab18fdeaa..34b7b31a9af 100644 --- a/src/sage/repl/preparse.py +++ b/src/sage/repl/preparse.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl # -*- coding: utf-8 -*- """ The Sage Preparser diff --git a/src/sage/repl/prompts.py b/src/sage/repl/prompts.py index 4bc2cae68e6..5b1c66bb6f2 100644 --- a/src/sage/repl/prompts.py +++ b/src/sage/repl/prompts.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl r""" Sage Commandline Prompts """ diff --git a/src/sage/repl/rich_output/__init__.py b/src/sage/repl/rich_output/__init__.py index 49e8325ba21..d47af8aee22 100644 --- a/src/sage/repl/rich_output/__init__.py +++ b/src/sage/repl/rich_output/__init__.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl # -*- encoding: utf-8 -*- from .display_manager import get_display_manager diff --git a/src/sage/repl/rich_output/backend_base.py b/src/sage/repl/rich_output/backend_base.py index 9d76fc1ed76..01c830a4322 100644 --- a/src/sage/repl/rich_output/backend_base.py +++ b/src/sage/repl/rich_output/backend_base.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl # -*- encoding: utf-8 -*- r""" Base Class for Backends diff --git a/src/sage/repl/rich_output/backend_doctest.py b/src/sage/repl/rich_output/backend_doctest.py index 69905f7b067..e100e892bc5 100644 --- a/src/sage/repl/rich_output/backend_doctest.py +++ b/src/sage/repl/rich_output/backend_doctest.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl # -*- encoding: utf-8 -*- """ The backend used for doctests diff --git a/src/sage/repl/rich_output/backend_emacs.py b/src/sage/repl/rich_output/backend_emacs.py index 112650270dd..2be4857aa8e 100644 --- a/src/sage/repl/rich_output/backend_emacs.py +++ b/src/sage/repl/rich_output/backend_emacs.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl # -*- encoding: utf-8 -*- r""" Emacs sage-mode Backend for the Sage Rich Output System diff --git a/src/sage/repl/rich_output/backend_ipython.py b/src/sage/repl/rich_output/backend_ipython.py index ba17b9244b4..748e8f1e069 100644 --- a/src/sage/repl/rich_output/backend_ipython.py +++ b/src/sage/repl/rich_output/backend_ipython.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl # -*- coding: utf-8 -*- """ IPython Backend for the Sage Rich Output System diff --git a/src/sage/repl/rich_output/buffer.py b/src/sage/repl/rich_output/buffer.py index 10b861e846e..65f4418c5f7 100644 --- a/src/sage/repl/rich_output/buffer.py +++ b/src/sage/repl/rich_output/buffer.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl # -*- encoding: utf-8 -*- r""" Output Buffer diff --git a/src/sage/repl/rich_output/display_manager.py b/src/sage/repl/rich_output/display_manager.py index f6bec0209e1..43fbaa817ba 100644 --- a/src/sage/repl/rich_output/display_manager.py +++ b/src/sage/repl/rich_output/display_manager.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl # -*- encoding: utf-8 -*- r""" Display Manager diff --git a/src/sage/repl/rich_output/output_basic.py b/src/sage/repl/rich_output/output_basic.py index 03f267896e6..e4f59a6cb5a 100644 --- a/src/sage/repl/rich_output/output_basic.py +++ b/src/sage/repl/rich_output/output_basic.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl # -*- encoding: utf-8 -*- r""" Basic Output Types diff --git a/src/sage/repl/rich_output/output_browser.py b/src/sage/repl/rich_output/output_browser.py index 3d7cda599a1..17e8cc00f7a 100644 --- a/src/sage/repl/rich_output/output_browser.py +++ b/src/sage/repl/rich_output/output_browser.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl # -*- encoding: utf-8 -*- r""" Rich Output for the Browser diff --git a/src/sage/repl/rich_output/output_catalog.py b/src/sage/repl/rich_output/output_catalog.py index 748941c11fc..6592b3980d1 100644 --- a/src/sage/repl/rich_output/output_catalog.py +++ b/src/sage/repl/rich_output/output_catalog.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl # -*- encoding: utf-8 -*- r""" Catalog of all available output container types. diff --git a/src/sage/repl/rich_output/output_graphics.py b/src/sage/repl/rich_output/output_graphics.py index 010ffcb60c8..146867acfcd 100644 --- a/src/sage/repl/rich_output/output_graphics.py +++ b/src/sage/repl/rich_output/output_graphics.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl # -*- encoding: utf-8 -*- r""" Graphics Output Types diff --git a/src/sage/repl/rich_output/output_graphics3d.py b/src/sage/repl/rich_output/output_graphics3d.py index 46ff6d67ad1..4169f1efe92 100644 --- a/src/sage/repl/rich_output/output_graphics3d.py +++ b/src/sage/repl/rich_output/output_graphics3d.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl # -*- encoding: utf-8 -*- r""" Three-Dimensional Graphics Output Types diff --git a/src/sage/repl/rich_output/output_video.py b/src/sage/repl/rich_output/output_video.py index 3a0d718aaab..0bd41825998 100644 --- a/src/sage/repl/rich_output/output_video.py +++ b/src/sage/repl/rich_output/output_video.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl # -*- encoding: utf-8 -*- r""" Video Output Types diff --git a/src/sage/repl/rich_output/preferences.py b/src/sage/repl/rich_output/preferences.py index f26962dc29b..00dd79388e9 100644 --- a/src/sage/repl/rich_output/preferences.py +++ b/src/sage/repl/rich_output/preferences.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl # -*- encoding: utf-8 -*- r""" Display Preferences diff --git a/src/sage/repl/rich_output/pretty_print.py b/src/sage/repl/rich_output/pretty_print.py index 65d72068588..a55d18f29cb 100644 --- a/src/sage/repl/rich_output/pretty_print.py +++ b/src/sage/repl/rich_output/pretty_print.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl # -*- encoding: utf-8 -*- r""" The ``pretty_print`` command diff --git a/src/sage/repl/rich_output/test_backend.py b/src/sage/repl/rich_output/test_backend.py index f0750addb39..788e288777f 100644 --- a/src/sage/repl/rich_output/test_backend.py +++ b/src/sage/repl/rich_output/test_backend.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl # -*- encoding: utf-8 -*- r""" Test Backend diff --git a/src/sage/repl/user_globals.py b/src/sage/repl/user_globals.py index 73c13c44690..9ad70c70162 100644 --- a/src/sage/repl/user_globals.py +++ b/src/sage/repl/user_globals.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl # sage.doctest: needs sage.modules r""" User-interface globals diff --git a/src/sage/rings/abc.pxd b/src/sage/rings/abc.pxd index a2d2e3f0ce4..991773f0359 100644 --- a/src/sage/rings/abc.pxd +++ b/src/sage/rings/abc.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories from sage.rings.ring cimport CommutativeRing, Field cdef class RealField(Field): diff --git a/src/sage/rings/abc.pyx b/src/sage/rings/abc.pyx index 028cade2bba..5a11a17106d 100644 --- a/src/sage/rings/abc.pyx +++ b/src/sage/rings/abc.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Abstract base classes for rings """ diff --git a/src/sage/rings/algebraic_closure_finite_field.py b/src/sage/rings/algebraic_closure_finite_field.py index d7ad457f88c..553e4c7d469 100644 --- a/src/sage/rings/algebraic_closure_finite_field.py +++ b/src/sage/rings/algebraic_closure_finite_field.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.rings.finite_rings r""" Algebraic closures of finite fields diff --git a/src/sage/rings/all__sagemath_categories.py b/src/sage/rings/all__sagemath_categories.py index d03d1c6b483..4c0efe7b507 100644 --- a/src/sage/rings/all__sagemath_categories.py +++ b/src/sage/rings/all__sagemath_categories.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # Ring base classes from sage.rings.ring import Ring # Ideals diff --git a/src/sage/rings/all__sagemath_objects.py b/src/sage/rings/all__sagemath_objects.py index 38e44245ad3..40da49fdd73 100644 --- a/src/sage/rings/all__sagemath_objects.py +++ b/src/sage/rings/all__sagemath_objects.py @@ -1,2 +1,3 @@ +# sage_setup: distribution = sagemath-objects # The presence of this file ensures that sage_setup for sagemath-objects # considers this directory as a namespace package diff --git a/src/sage/rings/bernmm.pyx b/src/sage/rings/bernmm.pyx index fb633e2d6f1..02684bb7ef6 100644 --- a/src/sage/rings/bernmm.pyx +++ b/src/sage/rings/bernmm.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: sources = sage/rings/bernmm/bern_modp.cpp sage/rings/bernmm/bern_modp_util.cpp sage/rings/bernmm/bern_rat.cpp # distutils: libraries = NTL_LIBRARIES pthread gmp # distutils: extra_compile_args = NTL_CFLAGS diff --git a/src/sage/rings/bernoulli_mod_p.pyx b/src/sage/rings/bernoulli_mod_p.pyx index ee73d6ad209..a9dee686d40 100644 --- a/src/sage/rings/bernoulli_mod_p.pyx +++ b/src/sage/rings/bernoulli_mod_p.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: libraries = NTL_LIBRARIES gmp # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/rings/big_oh.py b/src/sage/rings/big_oh.py index 917c81e0a3d..eafb46c83aa 100644 --- a/src/sage/rings/big_oh.py +++ b/src/sage/rings/big_oh.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Big O for various types (power series, p-adics, etc.) diff --git a/src/sage/rings/cc.py b/src/sage/rings/cc.py index 94e3093488b..93ec91d77a2 100644 --- a/src/sage/rings/cc.py +++ b/src/sage/rings/cc.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.rings.complex_mpfr import ComplexField CC = ComplexField() diff --git a/src/sage/rings/cif.py b/src/sage/rings/cif.py index 900c635e87b..98c15bd3d45 100644 --- a/src/sage/rings/cif.py +++ b/src/sage/rings/cif.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint from sage.rings.complex_interval_field import ComplexIntervalField CIF = ComplexIntervalField() diff --git a/src/sage/rings/complex_arb.pxd b/src/sage/rings/complex_arb.pxd index d985745c1f5..7b5056b0ca6 100644 --- a/src/sage/rings/complex_arb.pxd +++ b/src/sage/rings/complex_arb.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint from sage.libs.arb.acb cimport acb_t from sage.rings.complex_interval cimport ComplexIntervalFieldElement from sage.rings.real_arb cimport RealBall diff --git a/src/sage/rings/complex_arb.pyx b/src/sage/rings/complex_arb.pyx index 0786de7fc81..f4d3d79dc62 100644 --- a/src/sage/rings/complex_arb.pyx +++ b/src/sage/rings/complex_arb.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # -*- coding: utf-8 r""" Arbitrary precision complex balls using Arb diff --git a/src/sage/rings/complex_conversion.pxd b/src/sage/rings/complex_conversion.pxd index d6144974f9a..b654fc45811 100644 --- a/src/sage/rings/complex_conversion.pxd +++ b/src/sage/rings/complex_conversion.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.structure.element cimport Element from sage.categories.map cimport Map diff --git a/src/sage/rings/complex_conversion.pyx b/src/sage/rings/complex_conversion.pyx index 39c8b63eb55..e1e2f5530f7 100644 --- a/src/sage/rings/complex_conversion.pyx +++ b/src/sage/rings/complex_conversion.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.rings.complex_double cimport ComplexDoubleElement from sage.rings.complex_mpfr cimport ComplexNumber from sage.libs.mpfr cimport mpfr_get_d, MPFR_RNDN diff --git a/src/sage/rings/complex_double.pxd b/src/sage/rings/complex_double.pxd index 789db2ba3ad..d5382f64343 100644 --- a/src/sage/rings/complex_double.pxd +++ b/src/sage/rings/complex_double.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.libs.gsl.types cimport gsl_complex cimport sage.structure.element diff --git a/src/sage/rings/complex_double.pyx b/src/sage/rings/complex_double.pyx index 096f96c693d..baa0c51cde5 100644 --- a/src/sage/rings/complex_double.pyx +++ b/src/sage/rings/complex_double.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # distutils: extra_compile_args = -D_XPG6 # distutils: libraries = m r""" diff --git a/src/sage/rings/complex_interval.pxd b/src/sage/rings/complex_interval.pxd index 60d8c010cd8..8c379ed05e1 100644 --- a/src/sage/rings/complex_interval.pxd +++ b/src/sage/rings/complex_interval.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint from sage.libs.mpfr.types cimport mpfr_prec_t from sage.libs.mpfi.types cimport mpfi_t diff --git a/src/sage/rings/complex_interval.pyx b/src/sage/rings/complex_interval.pyx index 4b9e7f2aefa..d5a6cf29eb9 100644 --- a/src/sage/rings/complex_interval.pyx +++ b/src/sage/rings/complex_interval.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint """ Arbitrary Precision Complex Intervals diff --git a/src/sage/rings/complex_interval_field.py b/src/sage/rings/complex_interval_field.py index c2524923459..b62d79cbf96 100644 --- a/src/sage/rings/complex_interval_field.py +++ b/src/sage/rings/complex_interval_field.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint r""" Field of Arbitrary Precision Complex Intervals diff --git a/src/sage/rings/complex_mpc.pxd b/src/sage/rings/complex_mpc.pxd index 68fb73f4afa..c8073c603e4 100644 --- a/src/sage/rings/complex_mpc.pxd +++ b/src/sage/rings/complex_mpc.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.libs.mpc.types cimport mpc_t, mpc_rnd_t cimport sage.structure.element diff --git a/src/sage/rings/complex_mpc.pyx b/src/sage/rings/complex_mpc.pyx index c71142a76ab..2aaa77d89ec 100644 --- a/src/sage/rings/complex_mpc.pyx +++ b/src/sage/rings/complex_mpc.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Arbitrary Precision Complex Numbers using GNU MPC diff --git a/src/sage/rings/complex_mpfr.pxd b/src/sage/rings/complex_mpfr.pxd index 95972c52bb5..c674057a7c6 100644 --- a/src/sage/rings/complex_mpfr.pxd +++ b/src/sage/rings/complex_mpfr.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.libs.mpfr.types cimport mpfr_t, mpfr_prec_t cimport sage.structure.element diff --git a/src/sage/rings/complex_mpfr.pyx b/src/sage/rings/complex_mpfr.pyx index 25c4d6519e4..f6af5724ab1 100644 --- a/src/sage/rings/complex_mpfr.pyx +++ b/src/sage/rings/complex_mpfr.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Arbitrary Precision Floating Point Complex Numbers diff --git a/src/sage/rings/continued_fraction.py b/src/sage/rings/continued_fraction.py index 0021dc2745d..762eae87843 100644 --- a/src/sage/rings/continued_fraction.py +++ b/src/sage/rings/continued_fraction.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # -*- coding: utf-8 -*- r""" Continued fractions diff --git a/src/sage/rings/continued_fraction_gosper.py b/src/sage/rings/continued_fraction_gosper.py index 4f86b3d9da6..486f7f505b1 100644 --- a/src/sage/rings/continued_fraction_gosper.py +++ b/src/sage/rings/continued_fraction_gosper.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # -*- encoding: utf-8 -*- """ Gosper iterator for homographic transformations diff --git a/src/sage/rings/convert/all.py b/src/sage/rings/convert/all.py index e69de29bb2d..d31bae41036 100644 --- a/src/sage/rings/convert/all.py +++ b/src/sage/rings/convert/all.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-flint diff --git a/src/sage/rings/convert/mpfi.pxd b/src/sage/rings/convert/mpfi.pxd index ea43d9383f2..4c29da9a896 100644 --- a/src/sage/rings/convert/mpfi.pxd +++ b/src/sage/rings/convert/mpfi.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint from sage.libs.mpfi.types cimport mpfi_ptr cdef int mpfi_set_sage(mpfi_ptr re, mpfi_ptr im, x, field, int base) except -1 diff --git a/src/sage/rings/convert/mpfi.pyx b/src/sage/rings/convert/mpfi.pyx index 0d42927740a..e7e54e54d58 100644 --- a/src/sage/rings/convert/mpfi.pyx +++ b/src/sage/rings/convert/mpfi.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint """ Convert Sage/Python objects to real/complex intervals """ diff --git a/src/sage/rings/derivation.py b/src/sage/rings/derivation.py index d7d4fe6ebdf..75a4439f3b2 100644 --- a/src/sage/rings/derivation.py +++ b/src/sage/rings/derivation.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Derivations diff --git a/src/sage/rings/factorint.pyx b/src/sage/rings/factorint.pyx index e3b0e9f034f..643cb8ccac4 100644 --- a/src/sage/rings/factorint.pyx +++ b/src/sage/rings/factorint.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # -*- coding: utf-8 -*-* r""" Integer factorization functions diff --git a/src/sage/rings/factorint_flint.pyx b/src/sage/rings/factorint_flint.pyx index 7e08edafa97..5f957ef057b 100644 --- a/src/sage/rings/factorint_flint.pyx +++ b/src/sage/rings/factorint_flint.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # sage.doctest: needs sage.libs.flint r""" Integer factorization using FLINT diff --git a/src/sage/rings/factorint_pari.pyx b/src/sage/rings/factorint_pari.pyx index 8e5ed7c619e..862b7baa5b8 100644 --- a/src/sage/rings/factorint_pari.pyx +++ b/src/sage/rings/factorint_pari.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari # sage.doctest: needs sage.libs.pari r""" Integer factorization using PARI diff --git a/src/sage/rings/fast_arith.pxd b/src/sage/rings/fast_arith.pxd index c13e5e36548..316a49f762e 100644 --- a/src/sage/rings/fast_arith.pxd +++ b/src/sage/rings/fast_arith.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories cpdef prime_range(start, stop=*, algorithm=*, bint py_ints=*) noexcept cdef class arith_int: diff --git a/src/sage/rings/fast_arith.pyx b/src/sage/rings/fast_arith.pyx index d3695ebb69f..14a94cade5f 100644 --- a/src/sage/rings/fast_arith.pyx +++ b/src/sage/rings/fast_arith.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.libs.pari """ Basic arithmetic with C integers diff --git a/src/sage/rings/finite_rings/conway_polynomials.py b/src/sage/rings/finite_rings/conway_polynomials.py index 02779f49bca..9e0c9f0e5a8 100644 --- a/src/sage/rings/finite_rings/conway_polynomials.py +++ b/src/sage/rings/finite_rings/conway_polynomials.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Routines for Conway and pseudo-Conway polynomials diff --git a/src/sage/rings/finite_rings/element_base.pxd b/src/sage/rings/finite_rings/element_base.pxd index ec09f9cc769..1e1251172fa 100644 --- a/src/sage/rings/finite_rings/element_base.pxd +++ b/src/sage/rings/finite_rings/element_base.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories from sage.structure.element cimport CommutativeRingElement from sage.structure.sage_object cimport SageObject diff --git a/src/sage/rings/finite_rings/element_base.pyx b/src/sage/rings/finite_rings/element_base.pyx index ab029287ba6..b564514266e 100755 --- a/src/sage/rings/finite_rings/element_base.pyx +++ b/src/sage/rings/finite_rings/element_base.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.rings.finite_rings """ Base class for finite field elements diff --git a/src/sage/rings/finite_rings/element_givaro.pxd b/src/sage/rings/finite_rings/element_givaro.pxd index 1e5c4b46527..a441e5de548 100644 --- a/src/sage/rings/finite_rings/element_givaro.pxd +++ b/src/sage/rings/finite_rings/element_givaro.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-linbox # distutils: extra_compile_args = GIVARO_CFLAGS -std=c++11 # distutils: include_dirs = GIVARO_INCDIR diff --git a/src/sage/rings/finite_rings/element_givaro.pyx b/src/sage/rings/finite_rings/element_givaro.pyx index a4727e3311d..9fcf1930485 100644 --- a/src/sage/rings/finite_rings/element_givaro.pyx +++ b/src/sage/rings/finite_rings/element_givaro.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-linbox # distutils: libraries = givaro gmp m # distutils: language = c++ r""" diff --git a/src/sage/rings/finite_rings/element_ntl_gf2e.pxd b/src/sage/rings/finite_rings/element_ntl_gf2e.pxd index b699f6e3ef6..6c7ff94a205 100644 --- a/src/sage/rings/finite_rings/element_ntl_gf2e.pxd +++ b/src/sage/rings/finite_rings/element_ntl_gf2e.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from sage.libs.ntl.types cimport GF2E_c, GF2EContext_c from sage.rings.finite_rings.finite_field_base cimport FiniteField from sage.rings.finite_rings.element_base cimport FinitePolyExtElement, Cache_base diff --git a/src/sage/rings/finite_rings/element_ntl_gf2e.pyx b/src/sage/rings/finite_rings/element_ntl_gf2e.pyx index bb490c163a8..b52d31611c8 100644 --- a/src/sage/rings/finite_rings/element_ntl_gf2e.pyx +++ b/src/sage/rings/finite_rings/element_ntl_gf2e.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: libraries = NTL_LIBRARIES # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/rings/finite_rings/element_pari_ffelt.pxd b/src/sage/rings/finite_rings/element_pari_ffelt.pxd index f80aeb55532..fa42fdbc16d 100644 --- a/src/sage/rings/finite_rings/element_pari_ffelt.pxd +++ b/src/sage/rings/finite_rings/element_pari_ffelt.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari from cypari2.types cimport GEN from sage.rings.finite_rings.element_base cimport FinitePolyExtElement diff --git a/src/sage/rings/finite_rings/element_pari_ffelt.pyx b/src/sage/rings/finite_rings/element_pari_ffelt.pyx index 4f37f6c3043..8337ec94ca5 100644 --- a/src/sage/rings/finite_rings/element_pari_ffelt.pyx +++ b/src/sage/rings/finite_rings/element_pari_ffelt.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari """ Finite field elements implemented via PARI's FFELT type diff --git a/src/sage/rings/finite_rings/finite_field_base.pxd b/src/sage/rings/finite_rings/finite_field_base.pxd index 776c1f40137..2b66bd916aa 100644 --- a/src/sage/rings/finite_rings/finite_field_base.pxd +++ b/src/sage/rings/finite_rings/finite_field_base.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories from sage.rings.ring cimport Field cdef class FiniteField(Field): diff --git a/src/sage/rings/finite_rings/finite_field_base.pyx b/src/sage/rings/finite_rings/finite_field_base.pyx index dd79b0d90b9..5a58c05edef 100644 --- a/src/sage/rings/finite_rings/finite_field_base.pyx +++ b/src/sage/rings/finite_rings/finite_field_base.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.rings.finite_rings """ Base class for finite fields diff --git a/src/sage/rings/finite_rings/finite_field_constructor.py b/src/sage/rings/finite_rings/finite_field_constructor.py index 2c5dfbc664f..4d7e4b986b1 100644 --- a/src/sage/rings/finite_rings/finite_field_constructor.py +++ b/src/sage/rings/finite_rings/finite_field_constructor.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.rings.finite_rings r""" Finite fields diff --git a/src/sage/rings/finite_rings/finite_field_givaro.py b/src/sage/rings/finite_rings/finite_field_givaro.py index 9f6abdb40b4..096459ddd41 100644 --- a/src/sage/rings/finite_rings/finite_field_givaro.py +++ b/src/sage/rings/finite_rings/finite_field_givaro.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-linbox """ Givaro finite fields diff --git a/src/sage/rings/finite_rings/finite_field_ntl_gf2e.py b/src/sage/rings/finite_rings/finite_field_ntl_gf2e.py index 654f7a2b54b..758c1cedf4b 100644 --- a/src/sage/rings/finite_rings/finite_field_ntl_gf2e.py +++ b/src/sage/rings/finite_rings/finite_field_ntl_gf2e.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl """ Finite fields of characteristic 2 """ diff --git a/src/sage/rings/finite_rings/finite_field_pari_ffelt.py b/src/sage/rings/finite_rings/finite_field_pari_ffelt.py index c60a7a563a7..9c6caca35ca 100644 --- a/src/sage/rings/finite_rings/finite_field_pari_ffelt.py +++ b/src/sage/rings/finite_rings/finite_field_pari_ffelt.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari """ Finite fields implemented via PARI's FFELT type diff --git a/src/sage/rings/finite_rings/finite_field_prime_modn.py b/src/sage/rings/finite_rings/finite_field_prime_modn.py index 2c52681e822..bd4ac27bf41 100644 --- a/src/sage/rings/finite_rings/finite_field_prime_modn.py +++ b/src/sage/rings/finite_rings/finite_field_prime_modn.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Finite prime fields diff --git a/src/sage/rings/finite_rings/galois_group.py b/src/sage/rings/finite_rings/galois_group.py index f11b72bc681..e817e2bad44 100644 --- a/src/sage/rings/finite_rings/galois_group.py +++ b/src/sage/rings/finite_rings/galois_group.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.modules sage.rings.finite_rings r""" Galois groups of Finite Fields diff --git a/src/sage/rings/finite_rings/hom_finite_field.pxd b/src/sage/rings/finite_rings/hom_finite_field.pxd index 64da809024f..2b57d70e12c 100644 --- a/src/sage/rings/finite_rings/hom_finite_field.pxd +++ b/src/sage/rings/finite_rings/hom_finite_field.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories from sage.rings.morphism cimport RingHomomorphism_im_gens, FrobeniusEndomorphism_generic from sage.structure.element cimport Element from sage.categories.map cimport Section diff --git a/src/sage/rings/finite_rings/hom_finite_field.pyx b/src/sage/rings/finite_rings/hom_finite_field.pyx index 85dadd6fb2c..45bf93cfb05 100644 --- a/src/sage/rings/finite_rings/hom_finite_field.pyx +++ b/src/sage/rings/finite_rings/hom_finite_field.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.rings.finite_rings """ Finite field morphisms diff --git a/src/sage/rings/finite_rings/hom_finite_field_givaro.pxd b/src/sage/rings/finite_rings/hom_finite_field_givaro.pxd index f5a70c975f9..f18df07c18c 100644 --- a/src/sage/rings/finite_rings/hom_finite_field_givaro.pxd +++ b/src/sage/rings/finite_rings/hom_finite_field_givaro.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-linbox from sage.rings.finite_rings.hom_finite_field cimport (SectionFiniteFieldHomomorphism_generic, FiniteFieldHomomorphism_generic, FrobeniusEndomorphism_finite_field) diff --git a/src/sage/rings/finite_rings/hom_finite_field_givaro.pyx b/src/sage/rings/finite_rings/hom_finite_field_givaro.pyx index bc685731610..90fb20819ec 100644 --- a/src/sage/rings/finite_rings/hom_finite_field_givaro.pyx +++ b/src/sage/rings/finite_rings/hom_finite_field_givaro.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-linbox # distutils: libraries = givaro NTL_LIBRARIES gmp m # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/rings/finite_rings/hom_prime_finite_field.pxd b/src/sage/rings/finite_rings/hom_prime_finite_field.pxd index b146b0c9169..af571b31f84 100644 --- a/src/sage/rings/finite_rings/hom_prime_finite_field.pxd +++ b/src/sage/rings/finite_rings/hom_prime_finite_field.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories from sage.rings.finite_rings.hom_finite_field cimport (SectionFiniteFieldHomomorphism_generic, FiniteFieldHomomorphism_generic, FrobeniusEndomorphism_finite_field) diff --git a/src/sage/rings/finite_rings/hom_prime_finite_field.pyx b/src/sage/rings/finite_rings/hom_prime_finite_field.pyx index 4fc2c832f90..d31810ad7ff 100644 --- a/src/sage/rings/finite_rings/hom_prime_finite_field.pyx +++ b/src/sage/rings/finite_rings/hom_prime_finite_field.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Finite field morphisms for prime fields diff --git a/src/sage/rings/finite_rings/homset.py b/src/sage/rings/finite_rings/homset.py index f9d523199ec..32a1ef59735 100644 --- a/src/sage/rings/finite_rings/homset.py +++ b/src/sage/rings/finite_rings/homset.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.rings.finite_rings """ Homset for finite fields diff --git a/src/sage/rings/finite_rings/integer_mod.pxd b/src/sage/rings/finite_rings/integer_mod.pxd index 5d16bad880e..c3f2108983d 100644 --- a/src/sage/rings/finite_rings/integer_mod.pxd +++ b/src/sage/rings/finite_rings/integer_mod.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories from sage.libs.gmp.types cimport * from sage.rings.finite_rings.stdint cimport * from sage.rings.finite_rings.element_base cimport FiniteRingElement diff --git a/src/sage/rings/finite_rings/integer_mod.pyx b/src/sage/rings/finite_rings/integer_mod.pyx index d687c4bf50c..63ff0082c70 100644 --- a/src/sage/rings/finite_rings/integer_mod.pyx +++ b/src/sage/rings/finite_rings/integer_mod.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Elements of `\ZZ/n\ZZ` diff --git a/src/sage/rings/finite_rings/integer_mod_ring.py b/src/sage/rings/finite_rings/integer_mod_ring.py index eb35543a20e..d1ce570dbe8 100644 --- a/src/sage/rings/finite_rings/integer_mod_ring.py +++ b/src/sage/rings/finite_rings/integer_mod_ring.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Ring `\ZZ/n\ZZ` of integers modulo `n` diff --git a/src/sage/rings/finite_rings/maps_finite_field.py b/src/sage/rings/finite_rings/maps_finite_field.py index 0ae08a3d25d..55da94bbd5b 100644 --- a/src/sage/rings/finite_rings/maps_finite_field.py +++ b/src/sage/rings/finite_rings/maps_finite_field.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.rings.finite_rings """ Structure maps for finite fields diff --git a/src/sage/rings/finite_rings/residue_field.pxd b/src/sage/rings/finite_rings/residue_field.pxd index 0acb8da0a9a..dc221970bfe 100644 --- a/src/sage/rings/finite_rings/residue_field.pxd +++ b/src/sage/rings/finite_rings/residue_field.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories from sage.rings.morphism cimport RingHomomorphism from sage.structure.element cimport Element from sage.rings.finite_rings.integer_mod cimport NativeIntStruct diff --git a/src/sage/rings/finite_rings/residue_field.pyx b/src/sage/rings/finite_rings/residue_field.pyx index b79416eb1d7..87501221e47 100644 --- a/src/sage/rings/finite_rings/residue_field.pyx +++ b/src/sage/rings/finite_rings/residue_field.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Finite residue fields diff --git a/src/sage/rings/finite_rings/residue_field_givaro.pyx b/src/sage/rings/finite_rings/residue_field_givaro.pyx index 07fd740c044..063504bf05a 100644 --- a/src/sage/rings/finite_rings/residue_field_givaro.pyx +++ b/src/sage/rings/finite_rings/residue_field_givaro.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-linbox r""" Finite residue fields (Givaro implementation) """ diff --git a/src/sage/rings/finite_rings/residue_field_ntl_gf2e.pyx b/src/sage/rings/finite_rings/residue_field_ntl_gf2e.pyx index 5071bc87137..c396ad2e04b 100644 --- a/src/sage/rings/finite_rings/residue_field_ntl_gf2e.pyx +++ b/src/sage/rings/finite_rings/residue_field_ntl_gf2e.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl r""" Finite residue fields (NTL implementation) """ diff --git a/src/sage/rings/finite_rings/residue_field_pari_ffelt.pyx b/src/sage/rings/finite_rings/residue_field_pari_ffelt.pyx index e9962c3ccde..1fcc1fad260 100644 --- a/src/sage/rings/finite_rings/residue_field_pari_ffelt.pyx +++ b/src/sage/rings/finite_rings/residue_field_pari_ffelt.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari r""" Finite residue fields (PARI implementation) """ diff --git a/src/sage/rings/finite_rings/stdint.pxd b/src/sage/rings/finite_rings/stdint.pxd index b2b96a90c39..f82d61698aa 100644 --- a/src/sage/rings/finite_rings/stdint.pxd +++ b/src/sage/rings/finite_rings/stdint.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ C Integer Types Used in Finite Rings """ diff --git a/src/sage/rings/fraction_field.py b/src/sage/rings/fraction_field.py index bfa690cec0e..047b0825950 100644 --- a/src/sage/rings/fraction_field.py +++ b/src/sage/rings/fraction_field.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # -*- coding: utf-8 -*- r""" Fraction Field of Integral Domains diff --git a/src/sage/rings/fraction_field_FpT.pxd b/src/sage/rings/fraction_field_FpT.pxd index a385a3d7742..49bdfb78fd5 100644 --- a/src/sage/rings/fraction_field_FpT.pxd +++ b/src/sage/rings/fraction_field_FpT.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint from sage.libs.flint.types cimport nmod_poly_t from sage.rings.morphism cimport RingHomomorphism diff --git a/src/sage/rings/fraction_field_FpT.pyx b/src/sage/rings/fraction_field_FpT.pyx index 4c99862ca24..82e749ca43e 100644 --- a/src/sage/rings/fraction_field_FpT.pyx +++ b/src/sage/rings/fraction_field_FpT.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = gmp NTL_LIBRARIES # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/rings/fraction_field_element.pyx b/src/sage/rings/fraction_field_element.pyx index 5b6cfa2e29f..6907ae1dd1e 100644 --- a/src/sage/rings/fraction_field_element.pyx +++ b/src/sage/rings/fraction_field_element.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Fraction Field Elements diff --git a/src/sage/rings/function_field/all.py b/src/sage/rings/function_field/all.py index 455fa9fe19e..a19f2079846 100644 --- a/src/sage/rings/function_field/all.py +++ b/src/sage/rings/function_field/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories from .constructor import FunctionField from sage.misc.lazy_import import lazy_import diff --git a/src/sage/rings/function_field/constructor.py b/src/sage/rings/function_field/constructor.py index 071f66ec163..e6bd4b002d8 100644 --- a/src/sage/rings/function_field/constructor.py +++ b/src/sage/rings/function_field/constructor.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Factories to construct function fields diff --git a/src/sage/rings/function_field/derivations.py b/src/sage/rings/function_field/derivations.py index 9a6f0f613a9..d727fa60843 100644 --- a/src/sage/rings/function_field/derivations.py +++ b/src/sage/rings/function_field/derivations.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Derivations of function fields diff --git a/src/sage/rings/function_field/derivations_polymod.py b/src/sage/rings/function_field/derivations_polymod.py index 2e0fe91a968..ffaefac3d00 100644 --- a/src/sage/rings/function_field/derivations_polymod.py +++ b/src/sage/rings/function_field/derivations_polymod.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-singular r""" Derivations of function fields: extension """ diff --git a/src/sage/rings/function_field/derivations_rational.py b/src/sage/rings/function_field/derivations_rational.py index 777f16d3e08..d6358ee9582 100644 --- a/src/sage/rings/function_field/derivations_rational.py +++ b/src/sage/rings/function_field/derivations_rational.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Derivations of function fields: rational """ diff --git a/src/sage/rings/function_field/differential.py b/src/sage/rings/function_field/differential.py index 9b6fec9a72d..9e5ca35474c 100644 --- a/src/sage/rings/function_field/differential.py +++ b/src/sage/rings/function_field/differential.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: optional - sage.modules """ Differentials of function fields diff --git a/src/sage/rings/function_field/divisor.py b/src/sage/rings/function_field/divisor.py index 84c837ffb09..45bb3f0bb2a 100644 --- a/src/sage/rings/function_field/divisor.py +++ b/src/sage/rings/function_field/divisor.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: optional - sage.rings.finite_rings (because all doctests use finite fields) # sage.doctest: optional - sage.rings.function_field (because almost all doctests use function field extensions) """ diff --git a/src/sage/rings/function_field/element.pxd b/src/sage/rings/function_field/element.pxd index 9ffdbd48383..33606d6b571 100644 --- a/src/sage/rings/function_field/element.pxd +++ b/src/sage/rings/function_field/element.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories from sage.structure.element cimport FieldElement diff --git a/src/sage/rings/function_field/element.pyx b/src/sage/rings/function_field/element.pyx index 93a0333a14c..5277896fdaf 100644 --- a/src/sage/rings/function_field/element.pyx +++ b/src/sage/rings/function_field/element.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Elements of function fields diff --git a/src/sage/rings/function_field/element_polymod.pyx b/src/sage/rings/function_field/element_polymod.pyx index c6fdea83b09..a68d5fc73fd 100644 --- a/src/sage/rings/function_field/element_polymod.pyx +++ b/src/sage/rings/function_field/element_polymod.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-singular # sage.doctest: optional - sage.rings.function_field r""" Elements of function fields: extension diff --git a/src/sage/rings/function_field/element_rational.pyx b/src/sage/rings/function_field/element_rational.pyx index 986a46300b8..89db6b1469e 100644 --- a/src/sage/rings/function_field/element_rational.pyx +++ b/src/sage/rings/function_field/element_rational.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Elements of function fields: rational """ diff --git a/src/sage/rings/function_field/extensions.py b/src/sage/rings/function_field/extensions.py index 9e42e5bff6b..24df382b34f 100644 --- a/src/sage/rings/function_field/extensions.py +++ b/src/sage/rings/function_field/extensions.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Special extensions of function fields diff --git a/src/sage/rings/function_field/function_field.py b/src/sage/rings/function_field/function_field.py index af5b6c4d924..e687b957b0a 100644 --- a/src/sage/rings/function_field/function_field.py +++ b/src/sage/rings/function_field/function_field.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Function Fields diff --git a/src/sage/rings/function_field/function_field_polymod.py b/src/sage/rings/function_field/function_field_polymod.py index b740b771bec..f5830045c10 100644 --- a/src/sage/rings/function_field/function_field_polymod.py +++ b/src/sage/rings/function_field/function_field_polymod.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-singular # sage.doctest: optional - sage.rings.function_field r""" Function Fields: extension diff --git a/src/sage/rings/function_field/function_field_rational.py b/src/sage/rings/function_field/function_field_rational.py index 226d87d084c..2b10073cb46 100644 --- a/src/sage/rings/function_field/function_field_rational.py +++ b/src/sage/rings/function_field/function_field_rational.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Function Fields: rational """ diff --git a/src/sage/rings/function_field/hermite_form_polynomial.pyx b/src/sage/rings/function_field/hermite_form_polynomial.pyx index 12881615315..6e5323c7518 100644 --- a/src/sage/rings/function_field/hermite_form_polynomial.pyx +++ b/src/sage/rings/function_field/hermite_form_polynomial.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Hermite form computation for function fields diff --git a/src/sage/rings/function_field/ideal.py b/src/sage/rings/function_field/ideal.py index 22aa15299b1..76b568d349c 100644 --- a/src/sage/rings/function_field/ideal.py +++ b/src/sage/rings/function_field/ideal.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Ideals of function fields diff --git a/src/sage/rings/function_field/ideal_polymod.py b/src/sage/rings/function_field/ideal_polymod.py index 6735dd6a8fa..42df5740704 100644 --- a/src/sage/rings/function_field/ideal_polymod.py +++ b/src/sage/rings/function_field/ideal_polymod.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-singular # sage.doctest: optional - sage.rings.function_field r""" Ideals of function fields: extension diff --git a/src/sage/rings/function_field/ideal_rational.py b/src/sage/rings/function_field/ideal_rational.py index e6abe1ff605..d441d765a6c 100644 --- a/src/sage/rings/function_field/ideal_rational.py +++ b/src/sage/rings/function_field/ideal_rational.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Ideals of function fields: rational """ diff --git a/src/sage/rings/function_field/maps.py b/src/sage/rings/function_field/maps.py index 85377f1c894..d533a42041f 100644 --- a/src/sage/rings/function_field/maps.py +++ b/src/sage/rings/function_field/maps.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Morphisms of function fields diff --git a/src/sage/rings/function_field/order.py b/src/sage/rings/function_field/order.py index 615cbab3690..df2a3400655 100644 --- a/src/sage/rings/function_field/order.py +++ b/src/sage/rings/function_field/order.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Orders of function fields diff --git a/src/sage/rings/function_field/order_basis.py b/src/sage/rings/function_field/order_basis.py index eebaeab97d1..b0a2f51fc07 100644 --- a/src/sage/rings/function_field/order_basis.py +++ b/src/sage/rings/function_field/order_basis.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.modules (because __init__ constructs a vector space) r""" Orders of function fields: basis diff --git a/src/sage/rings/function_field/order_polymod.py b/src/sage/rings/function_field/order_polymod.py index 97f5a625819..558470b3570 100644 --- a/src/sage/rings/function_field/order_polymod.py +++ b/src/sage/rings/function_field/order_polymod.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-singular # sage.doctest: optional - sage.rings.function_field r""" Orders of function fields: extension diff --git a/src/sage/rings/function_field/order_rational.py b/src/sage/rings/function_field/order_rational.py index 99da2af1ebd..e63db9c9015 100644 --- a/src/sage/rings/function_field/order_rational.py +++ b/src/sage/rings/function_field/order_rational.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Orders of function fields: rational """ diff --git a/src/sage/rings/function_field/place.py b/src/sage/rings/function_field/place.py index dbc3ab0e767..73a8d145ceb 100644 --- a/src/sage/rings/function_field/place.py +++ b/src/sage/rings/function_field/place.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Places of function fields diff --git a/src/sage/rings/function_field/place_polymod.py b/src/sage/rings/function_field/place_polymod.py index e11a6c86ab7..504518b8556 100644 --- a/src/sage/rings/function_field/place_polymod.py +++ b/src/sage/rings/function_field/place_polymod.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-singular # sage.doctest: optional - sage.rings.function_field """ Places of function fields: extension diff --git a/src/sage/rings/function_field/place_rational.py b/src/sage/rings/function_field/place_rational.py index 9b98397ba90..181efc08ba5 100644 --- a/src/sage/rings/function_field/place_rational.py +++ b/src/sage/rings/function_field/place_rational.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: optional - sage.rings.finite_rings (because all doctests use finite fields) """ Places of function fields: rational diff --git a/src/sage/rings/function_field/valuation.py b/src/sage/rings/function_field/valuation.py index b7c7536bca9..6f3fe107007 100644 --- a/src/sage/rings/function_field/valuation.py +++ b/src/sage/rings/function_field/valuation.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari r""" Discrete valuations on function fields diff --git a/src/sage/rings/generic.py b/src/sage/rings/generic.py index 99bf690bef6..7fc3f2e8795 100644 --- a/src/sage/rings/generic.py +++ b/src/sage/rings/generic.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Generic data structures and algorithms for rings diff --git a/src/sage/rings/homset.py b/src/sage/rings/homset.py index b2f24a3800a..d9e1b93f395 100644 --- a/src/sage/rings/homset.py +++ b/src/sage/rings/homset.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Space of homomorphisms between two rings """ diff --git a/src/sage/rings/ideal.py b/src/sage/rings/ideal.py index 01c9fa3bf2d..be63228ceb0 100644 --- a/src/sage/rings/ideal.py +++ b/src/sage/rings/ideal.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Ideals of commutative rings diff --git a/src/sage/rings/ideal_monoid.py b/src/sage/rings/ideal_monoid.py index 019348a6afe..438b25b86e6 100644 --- a/src/sage/rings/ideal_monoid.py +++ b/src/sage/rings/ideal_monoid.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Monoid of ideals in a commutative ring diff --git a/src/sage/rings/imaginary_unit.py b/src/sage/rings/imaginary_unit.py index bb29cd32630..13383facb8d 100644 --- a/src/sage/rings/imaginary_unit.py +++ b/src/sage/rings/imaginary_unit.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # coding: utf-8 from sage.rings.number_field.number_field import GaussianField diff --git a/src/sage/rings/infinity.py b/src/sage/rings/infinity.py index 119f48a9f65..f0507f3904e 100644 --- a/src/sage/rings/infinity.py +++ b/src/sage/rings/infinity.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Signed and Unsigned Infinities diff --git a/src/sage/rings/integer.pxd b/src/sage/rings/integer.pxd index 2f81c164943..c8ec6e0437c 100644 --- a/src/sage/rings/integer.pxd +++ b/src/sage/rings/integer.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories from sage.libs.gmp.types cimport __mpz_struct, mpz_t, mpz_ptr from sage.libs.gmp.mpz cimport mpz_set diff --git a/src/sage/rings/integer.pyx b/src/sage/rings/integer.pyx index 415b0ff7d80..e2ffd80e5f3 100644 --- a/src/sage/rings/integer.pyx +++ b/src/sage/rings/integer.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Elements of the ring `\ZZ` of integers diff --git a/src/sage/rings/integer_fake.pxd b/src/sage/rings/integer_fake.pxd index 2bd7a91142e..73e9d802462 100644 --- a/src/sage/rings/integer_fake.pxd +++ b/src/sage/rings/integer_fake.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects """ Fake Integer interface diff --git a/src/sage/rings/integer_ring.pxd b/src/sage/rings/integer_ring.pxd index d0af1bc068f..54b05a9c6e1 100644 --- a/src/sage/rings/integer_ring.pxd +++ b/src/sage/rings/integer_ring.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories from sage.rings.ring cimport PrincipalIdealDomain from sage.rings.integer cimport Integer from sage.libs.gmp.types cimport mpz_t diff --git a/src/sage/rings/integer_ring.pyx b/src/sage/rings/integer_ring.pyx index 1ee45b99a59..bc15b62cf25 100644 --- a/src/sage/rings/integer_ring.pyx +++ b/src/sage/rings/integer_ring.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Ring `\ZZ` of Integers diff --git a/src/sage/rings/invariants/all.py b/src/sage/rings/invariants/all.py index eb0cce3175f..a20b761d560 100644 --- a/src/sage/rings/invariants/all.py +++ b/src/sage/rings/invariants/all.py @@ -1,2 +1,3 @@ +# sage_setup: distribution = sagemath-modules from sage.misc.lazy_import import lazy_import lazy_import('sage.rings.invariants.invariant_theory', 'invariant_theory') diff --git a/src/sage/rings/invariants/invariant_theory.py b/src/sage/rings/invariants/invariant_theory.py index a2ee2268c6f..2cf3b978e66 100644 --- a/src/sage/rings/invariants/invariant_theory.py +++ b/src/sage/rings/invariants/invariant_theory.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Classical Invariant Theory diff --git a/src/sage/rings/invariants/reconstruction.py b/src/sage/rings/invariants/reconstruction.py index 2fff473d090..128030df092 100644 --- a/src/sage/rings/invariants/reconstruction.py +++ b/src/sage/rings/invariants/reconstruction.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Reconstruction of Algebraic Forms diff --git a/src/sage/rings/laurent_series_ring.py b/src/sage/rings/laurent_series_ring.py index 187ac847522..a7715af1254 100644 --- a/src/sage/rings/laurent_series_ring.py +++ b/src/sage/rings/laurent_series_ring.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Laurent Series Rings diff --git a/src/sage/rings/laurent_series_ring_element.pxd b/src/sage/rings/laurent_series_ring_element.pxd index 2b37b80e3b0..85ebbada43c 100644 --- a/src/sage/rings/laurent_series_ring_element.pxd +++ b/src/sage/rings/laurent_series_ring_element.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories from sage.structure.element cimport AlgebraElement, ModuleElement cdef class LaurentSeries(AlgebraElement): diff --git a/src/sage/rings/laurent_series_ring_element.pyx b/src/sage/rings/laurent_series_ring_element.pyx index cac7acd812c..77844d54c58 100644 --- a/src/sage/rings/laurent_series_ring_element.pyx +++ b/src/sage/rings/laurent_series_ring_element.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Laurent Series diff --git a/src/sage/rings/lazy_series.py b/src/sage/rings/lazy_series.py index 5fdfb64cea4..1093fd5dd16 100644 --- a/src/sage/rings/lazy_series.py +++ b/src/sage/rings/lazy_series.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # -*- coding: utf-8 -*- r""" Lazy Series diff --git a/src/sage/rings/lazy_series_ring.py b/src/sage/rings/lazy_series_ring.py index 07e08938696..b1f13717b55 100644 --- a/src/sage/rings/lazy_series_ring.py +++ b/src/sage/rings/lazy_series_ring.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" Lazy Series Rings diff --git a/src/sage/rings/localization.py b/src/sage/rings/localization.py index ea7534349fa..27c71f0d6f0 100644 --- a/src/sage/rings/localization.py +++ b/src/sage/rings/localization.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Localization diff --git a/src/sage/rings/monomials.py b/src/sage/rings/monomials.py index ed154ab8c06..bfa396d79dc 100644 --- a/src/sage/rings/monomials.py +++ b/src/sage/rings/monomials.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint "Monomials" def _monomials(gens, R, n, i): diff --git a/src/sage/rings/morphism.pxd b/src/sage/rings/morphism.pxd index 4b8e8d052df..b310b5381ef 100644 --- a/src/sage/rings/morphism.pxd +++ b/src/sage/rings/morphism.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories from sage.rings.integer cimport Integer from sage.structure.element cimport Element from sage.structure.parent cimport Parent diff --git a/src/sage/rings/morphism.pyx b/src/sage/rings/morphism.pyx index c65f75a248c..b8c8a35da18 100644 --- a/src/sage/rings/morphism.pyx +++ b/src/sage/rings/morphism.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # -*- coding: utf-8 -*- r""" Homomorphisms of rings diff --git a/src/sage/rings/multi_power_series_ring.py b/src/sage/rings/multi_power_series_ring.py index 8ceaa9c5154..71ec34afaf7 100644 --- a/src/sage/rings/multi_power_series_ring.py +++ b/src/sage/rings/multi_power_series_ring.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Multivariate Power Series Rings diff --git a/src/sage/rings/multi_power_series_ring_element.py b/src/sage/rings/multi_power_series_ring_element.py index 8801d2d279a..070c7c23075 100644 --- a/src/sage/rings/multi_power_series_ring_element.py +++ b/src/sage/rings/multi_power_series_ring_element.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Multivariate Power Series diff --git a/src/sage/rings/noncommutative_ideals.pyx b/src/sage/rings/noncommutative_ideals.pyx index 6965f1c6c61..bc92afa6768 100644 --- a/src/sage/rings/noncommutative_ideals.pyx +++ b/src/sage/rings/noncommutative_ideals.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.modules """ Ideals of non-commutative rings diff --git a/src/sage/rings/number_field/S_unit_solver.py b/src/sage/rings/number_field/S_unit_solver.py index 4b6b201375f..60b8591a7d6 100644 --- a/src/sage/rings/number_field/S_unit_solver.py +++ b/src/sage/rings/number_field/S_unit_solver.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # sage.doctest: needs sage.rings.number_field sage.rings.padics r""" Solver for the `S`-unit equation `x + y = 1` diff --git a/src/sage/rings/number_field/all.py b/src/sage/rings/number_field/all.py index 5c56f8cff58..f106f4d836f 100644 --- a/src/sage/rings/number_field/all.py +++ b/src/sage/rings/number_field/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint from .number_field import (NumberField, NumberFieldTower, CyclotomicField, QuadraticField, is_fundamental_discriminant, is_real_place) diff --git a/src/sage/rings/number_field/bdd_height.py b/src/sage/rings/number_field/bdd_height.py index 2b3d18a6578..93a35245bb7 100644 --- a/src/sage/rings/number_field/bdd_height.py +++ b/src/sage/rings/number_field/bdd_height.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # sage.doctest: needs sage.geometry.polyhedron r""" Elements of bounded height in number fields diff --git a/src/sage/rings/number_field/class_group.py b/src/sage/rings/number_field/class_group.py index d532123c16a..2082d6a60a7 100644 --- a/src/sage/rings/number_field/class_group.py +++ b/src/sage/rings/number_field/class_group.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # -*- coding: utf-8 -*- r""" Class groups of number fields diff --git a/src/sage/rings/number_field/galois_group.py b/src/sage/rings/number_field/galois_group.py index 9ea602dc1aa..6f16ae734fc 100644 --- a/src/sage/rings/number_field/galois_group.py +++ b/src/sage/rings/number_field/galois_group.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # sage.doctest: needs sage.groups sage.rings.number_field """ Galois groups of number fields diff --git a/src/sage/rings/number_field/homset.py b/src/sage/rings/number_field/homset.py index ca5329668c5..220af16532f 100644 --- a/src/sage/rings/number_field/homset.py +++ b/src/sage/rings/number_field/homset.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint """ Sets of homomorphisms between number fields """ diff --git a/src/sage/rings/number_field/maps.py b/src/sage/rings/number_field/maps.py index b14c4ca48f3..ea83eca6e7a 100644 --- a/src/sage/rings/number_field/maps.py +++ b/src/sage/rings/number_field/maps.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint r""" Structure maps for number fields diff --git a/src/sage/rings/number_field/morphism.py b/src/sage/rings/number_field/morphism.py index a16ccd2bbc6..cc639fe183d 100644 --- a/src/sage/rings/number_field/morphism.py +++ b/src/sage/rings/number_field/morphism.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint r""" Morphisms between number fields diff --git a/src/sage/rings/number_field/number_field.py b/src/sage/rings/number_field/number_field.py index 6e6d0fc36e4..70fea701d0e 100644 --- a/src/sage/rings/number_field/number_field.py +++ b/src/sage/rings/number_field/number_field.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # sage.doctest: needs sage.libs.linbox r""" Number fields diff --git a/src/sage/rings/number_field/number_field_base.pxd b/src/sage/rings/number_field/number_field_base.pxd index f34a25d0dcb..2bb091f3908 100644 --- a/src/sage/rings/number_field/number_field_base.pxd +++ b/src/sage/rings/number_field/number_field_base.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories from sage.rings.ring cimport Field cdef class NumberField(Field): diff --git a/src/sage/rings/number_field/number_field_base.pyx b/src/sage/rings/number_field/number_field_base.pyx index 609951cab12..955e10ea111 100644 --- a/src/sage/rings/number_field/number_field_base.pyx +++ b/src/sage/rings/number_field/number_field_base.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.rings.number_field """ Base class of number fields diff --git a/src/sage/rings/number_field/number_field_element.pxd b/src/sage/rings/number_field/number_field_element.pxd index c73d1806fc7..ac34790e5de 100644 --- a/src/sage/rings/number_field/number_field_element.pxd +++ b/src/sage/rings/number_field/number_field_element.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint cimport sage.structure.element from sage.libs.gmp.types cimport mpz_t from sage.rings.integer cimport Integer diff --git a/src/sage/rings/number_field/number_field_element.pyx b/src/sage/rings/number_field/number_field_element.pyx index f362d901eb6..ee31d629870 100644 --- a/src/sage/rings/number_field/number_field_element.pyx +++ b/src/sage/rings/number_field/number_field_element.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = NTL_LIBRARIES # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/rings/number_field/number_field_element_base.pxd b/src/sage/rings/number_field/number_field_element_base.pxd index 060f0c754c4..7575d280a1e 100644 --- a/src/sage/rings/number_field/number_field_element_base.pxd +++ b/src/sage/rings/number_field/number_field_element_base.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories from sage.structure.element cimport FieldElement diff --git a/src/sage/rings/number_field/number_field_element_base.pyx b/src/sage/rings/number_field/number_field_element_base.pyx index 5fee5817cbc..0b2b17b9064 100644 --- a/src/sage/rings/number_field/number_field_element_base.pyx +++ b/src/sage/rings/number_field/number_field_element_base.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Number field elements (abstract base class) """ diff --git a/src/sage/rings/number_field/number_field_element_quadratic.pxd b/src/sage/rings/number_field/number_field_element_quadratic.pxd index b9fbb294a54..a0e9a5b430b 100644 --- a/src/sage/rings/number_field/number_field_element_quadratic.pxd +++ b/src/sage/rings/number_field/number_field_element_quadratic.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint from sage.libs.gmp.types cimport mpz_t from sage.libs.arb.types cimport arb_t from sage.rings.integer cimport Integer diff --git a/src/sage/rings/number_field/number_field_element_quadratic.pyx b/src/sage/rings/number_field/number_field_element_quadratic.pyx index bd6ae7b96bf..cd6ab8309bd 100644 --- a/src/sage/rings/number_field/number_field_element_quadratic.pyx +++ b/src/sage/rings/number_field/number_field_element_quadratic.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = NTL_LIBRARIES # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/rings/number_field/number_field_ideal.py b/src/sage/rings/number_field/number_field_ideal.py index 28105221ac7..8e24987935f 100644 --- a/src/sage/rings/number_field/number_field_ideal.py +++ b/src/sage/rings/number_field/number_field_ideal.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.libs.pari sage.rings.number_field """ Ideals of number fields diff --git a/src/sage/rings/number_field/number_field_ideal_rel.py b/src/sage/rings/number_field/number_field_ideal_rel.py index c9a03fd06e7..f1f3866cc6f 100644 --- a/src/sage/rings/number_field/number_field_ideal_rel.py +++ b/src/sage/rings/number_field/number_field_ideal_rel.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint r""" Ideals of relative number fields diff --git a/src/sage/rings/number_field/number_field_morphisms.pyx b/src/sage/rings/number_field/number_field_morphisms.pyx index 38a8dfd3726..0038e06e962 100644 --- a/src/sage/rings/number_field/number_field_morphisms.pyx +++ b/src/sage/rings/number_field/number_field_morphisms.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # sage.doctest: needs sage.rings.number_field r""" Embeddings into ambient fields diff --git a/src/sage/rings/number_field/number_field_rel.py b/src/sage/rings/number_field/number_field_rel.py index cb4675f2392..a47bc04a68c 100644 --- a/src/sage/rings/number_field/number_field_rel.py +++ b/src/sage/rings/number_field/number_field_rel.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint r""" Relative number fields diff --git a/src/sage/rings/number_field/order.py b/src/sage/rings/number_field/order.py index fac6a4c7eb5..0492571bb55 100644 --- a/src/sage/rings/number_field/order.py +++ b/src/sage/rings/number_field/order.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # sage.doctest: needs sage.libs.linbox """ Orders in number fields diff --git a/src/sage/rings/number_field/selmer_group.py b/src/sage/rings/number_field/selmer_group.py index 37abe43101e..b5362f07ac3 100644 --- a/src/sage/rings/number_field/selmer_group.py +++ b/src/sage/rings/number_field/selmer_group.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # -*- coding: utf-8 -*- r""" `p`-Selmer groups of number fields diff --git a/src/sage/rings/number_field/small_primes_of_degree_one.py b/src/sage/rings/number_field/small_primes_of_degree_one.py index 2ecfccc057a..9da5d6a470f 100644 --- a/src/sage/rings/number_field/small_primes_of_degree_one.py +++ b/src/sage/rings/number_field/small_primes_of_degree_one.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint r""" Small primes of degree one diff --git a/src/sage/rings/number_field/splitting_field.py b/src/sage/rings/number_field/splitting_field.py index bf04391a554..a075ac2280b 100644 --- a/src/sage/rings/number_field/splitting_field.py +++ b/src/sage/rings/number_field/splitting_field.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint """ Splitting fields of polynomials over number fields diff --git a/src/sage/rings/number_field/structure.py b/src/sage/rings/number_field/structure.py index 92be301645b..d092c1fc106 100644 --- a/src/sage/rings/number_field/structure.py +++ b/src/sage/rings/number_field/structure.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # sage.doctest: needs sage.rings.number_field r""" Helper classes for structural embeddings and isomorphisms of number fields diff --git a/src/sage/rings/number_field/totallyreal.pyx b/src/sage/rings/number_field/totallyreal.pyx index 3e591fb1baa..3fa8249a662 100644 --- a/src/sage/rings/number_field/totallyreal.pyx +++ b/src/sage/rings/number_field/totallyreal.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint r""" Enumeration of primitive totally real fields diff --git a/src/sage/rings/number_field/totallyreal_data.pxd b/src/sage/rings/number_field/totallyreal_data.pxd index efa01dbb4b7..5630d03e617 100644 --- a/src/sage/rings/number_field/totallyreal_data.pxd +++ b/src/sage/rings/number_field/totallyreal_data.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint cdef double eval_seq_as_poly(int *f, int n, double x) noexcept cdef double newton(int *f, int *df, int n, double x0, double eps) noexcept cdef void newton_in_intervals(int *f, int *df, int n, double *beta, double eps, double *rts) noexcept diff --git a/src/sage/rings/number_field/totallyreal_data.pyx b/src/sage/rings/number_field/totallyreal_data.pyx index 966d598ee89..04b4b0d9724 100644 --- a/src/sage/rings/number_field/totallyreal_data.pyx +++ b/src/sage/rings/number_field/totallyreal_data.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = gmp """ Enumeration of totally real fields: data diff --git a/src/sage/rings/number_field/totallyreal_phc.py b/src/sage/rings/number_field/totallyreal_phc.py index e564d760320..7ea5b5fc7d5 100644 --- a/src/sage/rings/number_field/totallyreal_phc.py +++ b/src/sage/rings/number_field/totallyreal_phc.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint """ Enumeration of totally real fields: PHC interface diff --git a/src/sage/rings/number_field/totallyreal_rel.py b/src/sage/rings/number_field/totallyreal_rel.py index 9b416d2ad02..210496432a9 100644 --- a/src/sage/rings/number_field/totallyreal_rel.py +++ b/src/sage/rings/number_field/totallyreal_rel.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # sage.doctest: needs sage.geometry.polyhedron sage.libs.linbox sage.modules sage.rings.number_field r""" Enumeration of totally real fields: relative extensions diff --git a/src/sage/rings/number_field/unit_group.py b/src/sage/rings/number_field/unit_group.py index e2c1ebccb9e..375186f330b 100644 --- a/src/sage/rings/number_field/unit_group.py +++ b/src/sage/rings/number_field/unit_group.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint r""" Units and `S`-unit groups of number fields diff --git a/src/sage/rings/padics/CA_template.pxi b/src/sage/rings/padics/CA_template.pxi index f8493fabd44..facbdae0e56 100644 --- a/src/sage/rings/padics/CA_template.pxi +++ b/src/sage/rings/padics/CA_template.pxi @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari r""" Capped absolute template for complete discrete valuation rings diff --git a/src/sage/rings/padics/CA_template_header.pxi b/src/sage/rings/padics/CA_template_header.pxi index 87194617daa..1b01b655858 100644 --- a/src/sage/rings/padics/CA_template_header.pxi +++ b/src/sage/rings/padics/CA_template_header.pxi @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari """ This file provides the declaration for ``CAElement`` and the morphisms to the integers and rationals. diff --git a/src/sage/rings/padics/CR_template.pxi b/src/sage/rings/padics/CR_template.pxi index 14a2f1686c0..d600e245d64 100644 --- a/src/sage/rings/padics/CR_template.pxi +++ b/src/sage/rings/padics/CR_template.pxi @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari """ Capped relative template for complete discrete valuation rings and their fraction fields diff --git a/src/sage/rings/padics/CR_template_header.pxi b/src/sage/rings/padics/CR_template_header.pxi index b969463bc72..6e994295708 100644 --- a/src/sage/rings/padics/CR_template_header.pxi +++ b/src/sage/rings/padics/CR_template_header.pxi @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari """ This file provides the declaration for ``CRElement`` and the morphisms to and from the integers and rationals. diff --git a/src/sage/rings/padics/FM_template.pxi b/src/sage/rings/padics/FM_template.pxi index 3e6abe53a7f..63329054271 100644 --- a/src/sage/rings/padics/FM_template.pxi +++ b/src/sage/rings/padics/FM_template.pxi @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari """ Fixed modulus template for complete discrete valuation rings diff --git a/src/sage/rings/padics/FM_template_header.pxi b/src/sage/rings/padics/FM_template_header.pxi index d9ecc7d0715..7e0ad334b75 100644 --- a/src/sage/rings/padics/FM_template_header.pxi +++ b/src/sage/rings/padics/FM_template_header.pxi @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari """ This file provides the declaration for the ``FMElement`` and the morphisms to and from the integers and rationals. diff --git a/src/sage/rings/padics/FP_template.pxi b/src/sage/rings/padics/FP_template.pxi index 254d627630b..bfbff8a60ed 100644 --- a/src/sage/rings/padics/FP_template.pxi +++ b/src/sage/rings/padics/FP_template.pxi @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari """ Floating point template for complete discrete valuation rings diff --git a/src/sage/rings/padics/FP_template_header.pxi b/src/sage/rings/padics/FP_template_header.pxi index 108d8042850..a36dc48e8bf 100644 --- a/src/sage/rings/padics/FP_template_header.pxi +++ b/src/sage/rings/padics/FP_template_header.pxi @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari """ This file provides the declaration for ``FPElement`` and the morphisms to and from the integers and rationals. diff --git a/src/sage/rings/padics/all.py b/src/sage/rings/padics/all.py index 7014f5622d8..b365727375b 100644 --- a/src/sage/rings/padics/all.py +++ b/src/sage/rings/padics/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint from .factory import Zp, Zq, Zp as pAdicRing, ZpCR, ZpCA, ZpFM, ZpFP, ZpLC, ZpLF, ZqCR, ZqCA, ZqFM, ZqFP, ZpER from .factory import Qp, Qq, Qp as pAdicField, QpCR, QpFP, QpLC, QpLF, QqCR, QqFP, QpER from .factory import pAdicExtension diff --git a/src/sage/rings/padics/common_conversion.pxd b/src/sage/rings/padics/common_conversion.pxd index 4e0edb8f8e6..936b97f105e 100644 --- a/src/sage/rings/padics/common_conversion.pxd +++ b/src/sage/rings/padics/common_conversion.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari from sage.rings.integer cimport Integer from sage.rings.padics.pow_computer cimport PowComputer_class from sage.libs.gmp.mpz cimport mpz_t, mpq_t diff --git a/src/sage/rings/padics/common_conversion.pyx b/src/sage/rings/padics/common_conversion.pyx index 0afddcc30a4..61196c6e4da 100644 --- a/src/sage/rings/padics/common_conversion.pyx +++ b/src/sage/rings/padics/common_conversion.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari r""" The functions in this file are used in creating new p-adic elements. diff --git a/src/sage/rings/padics/eisenstein_extension_generic.py b/src/sage/rings/padics/eisenstein_extension_generic.py index 10e198abfb9..61db8ce062f 100644 --- a/src/sage/rings/padics/eisenstein_extension_generic.py +++ b/src/sage/rings/padics/eisenstein_extension_generic.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari """ Eisenstein Extension Generic diff --git a/src/sage/rings/padics/factory.py b/src/sage/rings/padics/factory.py index ea9681919ea..b2f86615e8c 100644 --- a/src/sage/rings/padics/factory.py +++ b/src/sage/rings/padics/factory.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari r""" Factory diff --git a/src/sage/rings/padics/generic_nodes.py b/src/sage/rings/padics/generic_nodes.py index 3a135548a32..552b75dc119 100644 --- a/src/sage/rings/padics/generic_nodes.py +++ b/src/sage/rings/padics/generic_nodes.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari """ `p`-adic Generic Nodes diff --git a/src/sage/rings/padics/lattice_precision.py b/src/sage/rings/padics/lattice_precision.py index 51a510a4360..01bd1d00df3 100644 --- a/src/sage/rings/padics/lattice_precision.py +++ b/src/sage/rings/padics/lattice_precision.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari r""" Lattice precision for the parents ``ZpLC``/``QpLC`` and ``ZpLF``/``QpLF`` diff --git a/src/sage/rings/padics/local_generic.py b/src/sage/rings/padics/local_generic.py index a88d74f605f..29210a20c06 100644 --- a/src/sage/rings/padics/local_generic.py +++ b/src/sage/rings/padics/local_generic.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.rings.padics r""" Local Generic diff --git a/src/sage/rings/padics/local_generic_element.pxd b/src/sage/rings/padics/local_generic_element.pxd index 9111d2f173c..daf1194956f 100644 --- a/src/sage/rings/padics/local_generic_element.pxd +++ b/src/sage/rings/padics/local_generic_element.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories from sage.structure.element cimport CommutativeRingElement cdef class LocalGenericElement(CommutativeRingElement): diff --git a/src/sage/rings/padics/local_generic_element.pyx b/src/sage/rings/padics/local_generic_element.pyx index df5c454e865..95ccc9b21a7 100644 --- a/src/sage/rings/padics/local_generic_element.pyx +++ b/src/sage/rings/padics/local_generic_element.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.rings.padics """ Local Generic Element diff --git a/src/sage/rings/padics/misc.py b/src/sage/rings/padics/misc.py index 984482bc39c..4e60fe74741 100644 --- a/src/sage/rings/padics/misc.py +++ b/src/sage/rings/padics/misc.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # -*- coding: utf-8 -*- r""" Miscellaneous Functions diff --git a/src/sage/rings/padics/morphism.pxd b/src/sage/rings/padics/morphism.pxd index a904ba14ca0..07efd8dd305 100644 --- a/src/sage/rings/padics/morphism.pxd +++ b/src/sage/rings/padics/morphism.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari from sage.rings.morphism cimport RingHomomorphism from sage.structure.element cimport Element diff --git a/src/sage/rings/padics/morphism.pyx b/src/sage/rings/padics/morphism.pyx index a50c92a06f9..ba62aad72d4 100644 --- a/src/sage/rings/padics/morphism.pyx +++ b/src/sage/rings/padics/morphism.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari # sage.doctest: needs sage.libs.ntl """ Frobenius endomorphisms on p-adic fields diff --git a/src/sage/rings/padics/padic_ZZ_pX_CA_element.pxd b/src/sage/rings/padics/padic_ZZ_pX_CA_element.pxd index 2bcb237be77..ad15181c25b 100644 --- a/src/sage/rings/padics/padic_ZZ_pX_CA_element.pxd +++ b/src/sage/rings/padics/padic_ZZ_pX_CA_element.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from sage.libs.gmp.types cimport mpq_t from sage.rings.padics.padic_ZZ_pX_element cimport pAdicZZpXElement from sage.structure.element cimport RingElement, ModuleElement diff --git a/src/sage/rings/padics/padic_ZZ_pX_CA_element.pyx b/src/sage/rings/padics/padic_ZZ_pX_CA_element.pyx index fb62a0695f9..4c4c40b7c25 100644 --- a/src/sage/rings/padics/padic_ZZ_pX_CA_element.pyx +++ b/src/sage/rings/padics/padic_ZZ_pX_CA_element.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: libraries = NTL_LIBRARIES gmp m # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/rings/padics/padic_ZZ_pX_CR_element.pxd b/src/sage/rings/padics/padic_ZZ_pX_CR_element.pxd index 4d458507ee0..45457b808b7 100644 --- a/src/sage/rings/padics/padic_ZZ_pX_CR_element.pxd +++ b/src/sage/rings/padics/padic_ZZ_pX_CR_element.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from sage.libs.gmp.types cimport mpz_t, mpq_t from sage.rings.padics.padic_ZZ_pX_element cimport pAdicZZpXElement from sage.structure.element cimport RingElement, ModuleElement diff --git a/src/sage/rings/padics/padic_ZZ_pX_CR_element.pyx b/src/sage/rings/padics/padic_ZZ_pX_CR_element.pyx index f4f8bce971f..df3408a7b45 100644 --- a/src/sage/rings/padics/padic_ZZ_pX_CR_element.pyx +++ b/src/sage/rings/padics/padic_ZZ_pX_CR_element.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: libraries = NTL_LIBRARIES gmp m # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/rings/padics/padic_ZZ_pX_FM_element.pxd b/src/sage/rings/padics/padic_ZZ_pX_FM_element.pxd index 33754581e48..e3e0aa0a408 100644 --- a/src/sage/rings/padics/padic_ZZ_pX_FM_element.pxd +++ b/src/sage/rings/padics/padic_ZZ_pX_FM_element.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from sage.libs.ntl.types cimport ZZ_pX_c from sage.rings.padics.padic_ZZ_pX_element cimport pAdicZZpXElement from sage.structure.element cimport RingElement, ModuleElement diff --git a/src/sage/rings/padics/padic_ZZ_pX_FM_element.pyx b/src/sage/rings/padics/padic_ZZ_pX_FM_element.pyx index e3785c4adff..347545245e3 100644 --- a/src/sage/rings/padics/padic_ZZ_pX_FM_element.pyx +++ b/src/sage/rings/padics/padic_ZZ_pX_FM_element.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: libraries = NTL_LIBRARIES gmp m # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/rings/padics/padic_ZZ_pX_element.pxd b/src/sage/rings/padics/padic_ZZ_pX_element.pxd index 1d2f9abcbdb..4fc388fbe36 100644 --- a/src/sage/rings/padics/padic_ZZ_pX_element.pxd +++ b/src/sage/rings/padics/padic_ZZ_pX_element.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from sage.rings.padics.padic_ext_element cimport pAdicExtElement from sage.rings.padics.pow_computer_ext cimport PowComputer_ZZ_pX diff --git a/src/sage/rings/padics/padic_ZZ_pX_element.pyx b/src/sage/rings/padics/padic_ZZ_pX_element.pyx index b3f57329e8f..a4dc75869b6 100644 --- a/src/sage/rings/padics/padic_ZZ_pX_element.pyx +++ b/src/sage/rings/padics/padic_ZZ_pX_element.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: libraries = NTL_LIBRARIES gmp m # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/rings/padics/padic_base_generic.py b/src/sage/rings/padics/padic_base_generic.py index 792e99996c5..f3e2ba82fa0 100644 --- a/src/sage/rings/padics/padic_base_generic.py +++ b/src/sage/rings/padics/padic_base_generic.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari r""" `p`-adic Base Generic diff --git a/src/sage/rings/padics/padic_base_leaves.py b/src/sage/rings/padics/padic_base_leaves.py index 4f48c187efc..e0c9afbc1f8 100644 --- a/src/sage/rings/padics/padic_base_leaves.py +++ b/src/sage/rings/padics/padic_base_leaves.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari r""" `p`-adic Base Leaves diff --git a/src/sage/rings/padics/padic_capped_absolute_element.pxd b/src/sage/rings/padics/padic_capped_absolute_element.pxd index b80b6593bf6..bfe3449cd72 100644 --- a/src/sage/rings/padics/padic_capped_absolute_element.pxd +++ b/src/sage/rings/padics/padic_capped_absolute_element.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari from sage.libs.gmp.types cimport mpz_t from cypari2.gen cimport Gen as pari_gen from sage.rings.padics.padic_capped_relative_element cimport CRElement diff --git a/src/sage/rings/padics/padic_capped_absolute_element.pyx b/src/sage/rings/padics/padic_capped_absolute_element.pyx index d4f76f08efe..837afbb7c83 100644 --- a/src/sage/rings/padics/padic_capped_absolute_element.pyx +++ b/src/sage/rings/padics/padic_capped_absolute_element.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari """ `p`-adic Capped Absolute Elements diff --git a/src/sage/rings/padics/padic_capped_relative_element.pxd b/src/sage/rings/padics/padic_capped_relative_element.pxd index 5c929be226d..59479873fe7 100644 --- a/src/sage/rings/padics/padic_capped_relative_element.pxd +++ b/src/sage/rings/padics/padic_capped_relative_element.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari from sage.libs.gmp.types cimport mpz_t from cypari2.gen cimport Gen as pari_gen diff --git a/src/sage/rings/padics/padic_capped_relative_element.pyx b/src/sage/rings/padics/padic_capped_relative_element.pyx index e2e652798fe..dcf31aa9591 100644 --- a/src/sage/rings/padics/padic_capped_relative_element.pyx +++ b/src/sage/rings/padics/padic_capped_relative_element.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari """ `p`-adic Capped Relative Elements diff --git a/src/sage/rings/padics/padic_ext_element.pxd b/src/sage/rings/padics/padic_ext_element.pxd index e267f0129c7..f49f21fabb9 100644 --- a/src/sage/rings/padics/padic_ext_element.pxd +++ b/src/sage/rings/padics/padic_ext_element.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from sage.rings.padics.padic_generic_element cimport pAdicGenericElement from sage.libs.ntl.types cimport ZZ_pX_c, ZZ_pE_c, ZZ_pEX_c, ZZ_p_c, ZZX_c from sage.libs.ntl.ntl_ZZ_pContext cimport ntl_ZZ_pContext_class diff --git a/src/sage/rings/padics/padic_ext_element.pyx b/src/sage/rings/padics/padic_ext_element.pyx index a79dc1a4a97..2babcbc2d85 100644 --- a/src/sage/rings/padics/padic_ext_element.pyx +++ b/src/sage/rings/padics/padic_ext_element.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: libraries = NTL_LIBRARIES gmp m # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/rings/padics/padic_extension_generic.py b/src/sage/rings/padics/padic_extension_generic.py index accb68ccfc4..0d053a3bd23 100644 --- a/src/sage/rings/padics/padic_extension_generic.py +++ b/src/sage/rings/padics/padic_extension_generic.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari # sage.doctest: needs sage.libs.ntl """ `p`-adic Extension Generic diff --git a/src/sage/rings/padics/padic_extension_leaves.py b/src/sage/rings/padics/padic_extension_leaves.py index d63dc734097..af634d2b3bf 100644 --- a/src/sage/rings/padics/padic_extension_leaves.py +++ b/src/sage/rings/padics/padic_extension_leaves.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari r""" `p`-adic Extension Leaves diff --git a/src/sage/rings/padics/padic_fixed_mod_element.pxd b/src/sage/rings/padics/padic_fixed_mod_element.pxd index 4d9bff415d0..a3589ed8666 100644 --- a/src/sage/rings/padics/padic_fixed_mod_element.pxd +++ b/src/sage/rings/padics/padic_fixed_mod_element.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari from sage.libs.gmp.types cimport mpz_t from cypari2.gen cimport Gen as pari_gen from sage.rings.padics.padic_floating_point_element cimport FPElement diff --git a/src/sage/rings/padics/padic_fixed_mod_element.pyx b/src/sage/rings/padics/padic_fixed_mod_element.pyx index 21cbbded8f4..3103f50e440 100644 --- a/src/sage/rings/padics/padic_fixed_mod_element.pyx +++ b/src/sage/rings/padics/padic_fixed_mod_element.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari """ `p`-adic Fixed-Mod Element diff --git a/src/sage/rings/padics/padic_floating_point_element.pxd b/src/sage/rings/padics/padic_floating_point_element.pxd index 816a9fce705..a5d09ff2970 100644 --- a/src/sage/rings/padics/padic_floating_point_element.pxd +++ b/src/sage/rings/padics/padic_floating_point_element.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari from sage.libs.gmp.types cimport mpz_t from cypari2.gen cimport Gen as pari_gen diff --git a/src/sage/rings/padics/padic_floating_point_element.pyx b/src/sage/rings/padics/padic_floating_point_element.pyx index 22529fffc6f..473646d083b 100644 --- a/src/sage/rings/padics/padic_floating_point_element.pyx +++ b/src/sage/rings/padics/padic_floating_point_element.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari r""" `p`-adic Floating Point Elements diff --git a/src/sage/rings/padics/padic_generic.py b/src/sage/rings/padics/padic_generic.py index 8abc87020fe..49901b8230f 100644 --- a/src/sage/rings/padics/padic_generic.py +++ b/src/sage/rings/padics/padic_generic.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.rings.padics r""" `p`-adic Generic diff --git a/src/sage/rings/padics/padic_generic_element.pxd b/src/sage/rings/padics/padic_generic_element.pxd index 091d56bb912..963fb9a6a6d 100644 --- a/src/sage/rings/padics/padic_generic_element.pxd +++ b/src/sage/rings/padics/padic_generic_element.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari from cpython cimport array cimport sage.structure.element diff --git a/src/sage/rings/padics/padic_generic_element.pyx b/src/sage/rings/padics/padic_generic_element.pyx index ffafe15313c..38b7fc1fd55 100644 --- a/src/sage/rings/padics/padic_generic_element.pyx +++ b/src/sage/rings/padics/padic_generic_element.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari """ `p`-adic Generic Element diff --git a/src/sage/rings/padics/padic_lattice_element.py b/src/sage/rings/padics/padic_lattice_element.py index e2c80855b71..a56c7bffe1e 100644 --- a/src/sage/rings/padics/padic_lattice_element.py +++ b/src/sage/rings/padics/padic_lattice_element.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari r""" `p`-adic Elements with lattice precision. diff --git a/src/sage/rings/padics/padic_printing.pxd b/src/sage/rings/padics/padic_printing.pxd index e0ce12540c6..f90b1e0e0b1 100644 --- a/src/sage/rings/padics/padic_printing.pxd +++ b/src/sage/rings/padics/padic_printing.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari from sage.structure.sage_object cimport SageObject from sage.rings.padics.pow_computer cimport PowComputer_class from sage.rings.padics.padic_generic_element cimport pAdicGenericElement diff --git a/src/sage/rings/padics/padic_printing.pyx b/src/sage/rings/padics/padic_printing.pyx index f92afb51529..2ea3e039108 100644 --- a/src/sage/rings/padics/padic_printing.pyx +++ b/src/sage/rings/padics/padic_printing.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari # distutils: libraries = NTL_LIBRARIES gmp m # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/rings/padics/padic_relaxed_element.pxd b/src/sage/rings/padics/padic_relaxed_element.pxd index 991af951643..d21d4a2a88c 100644 --- a/src/sage/rings/padics/padic_relaxed_element.pxd +++ b/src/sage/rings/padics/padic_relaxed_element.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from sage.libs.flint.types cimport fmpz, fmpz_t, fmpz_poly_t, flint_rand_t ctypedef fmpz_t cdigit diff --git a/src/sage/rings/padics/padic_relaxed_element.pyx b/src/sage/rings/padics/padic_relaxed_element.pyx index 88b5003b0eb..f696dde41e3 100644 --- a/src/sage/rings/padics/padic_relaxed_element.pyx +++ b/src/sage/rings/padics/padic_relaxed_element.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint cdef inline type element_class_zero = pAdicRelaxedElement_zero cdef inline type element_class_one = pAdicRelaxedElement_one cdef inline type element_class_bound = pAdicRelaxedElement_bound diff --git a/src/sage/rings/padics/padic_relaxed_errors.pxd b/src/sage/rings/padics/padic_relaxed_errors.pxd index bfe375b8eee..f0c31369c93 100644 --- a/src/sage/rings/padics/padic_relaxed_errors.pxd +++ b/src/sage/rings/padics/padic_relaxed_errors.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl cdef inline int ERROR_ABANDON cdef inline int ERROR_NOTDEFINED cdef inline int ERROR_PRECISION diff --git a/src/sage/rings/padics/padic_relaxed_errors.pyx b/src/sage/rings/padics/padic_relaxed_errors.pyx index 2157234f62b..dce83aaec65 100644 --- a/src/sage/rings/padics/padic_relaxed_errors.pyx +++ b/src/sage/rings/padics/padic_relaxed_errors.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # **************************************************************************** # Copyright (C) 2021 Xavier Caruso # diff --git a/src/sage/rings/padics/padic_template_element.pxi b/src/sage/rings/padics/padic_template_element.pxi index 7dcb624b666..27bc2e73606 100644 --- a/src/sage/rings/padics/padic_template_element.pxi +++ b/src/sage/rings/padics/padic_template_element.pxi @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari """ This file gives a class from which all the `p`-adic templates inherit. diff --git a/src/sage/rings/padics/padic_template_element_header.pxi b/src/sage/rings/padics/padic_template_element_header.pxi index 4cd07b8c4bd..63e6f928f3d 100644 --- a/src/sage/rings/padics/padic_template_element_header.pxi +++ b/src/sage/rings/padics/padic_template_element_header.pxi @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari """ This file provides the declaration for the pAdicTemplateElement class, which collects common functionality for the different p-adic template diff --git a/src/sage/rings/padics/padic_valuation.py b/src/sage/rings/padics/padic_valuation.py index d1590d0391f..e168436ee64 100644 --- a/src/sage/rings/padics/padic_valuation.py +++ b/src/sage/rings/padics/padic_valuation.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari # -*- coding: utf-8 -*- r""" `p`-adic Valuations on Number Fields and Their Subrings and Completions diff --git a/src/sage/rings/padics/pow_computer.pxd b/src/sage/rings/padics/pow_computer.pxd index b70553b77e0..902b29b851d 100644 --- a/src/sage/rings/padics/pow_computer.pxd +++ b/src/sage/rings/padics/pow_computer.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari from sage.libs.gmp.types cimport mpz_t, mpz_srcptr from sage.structure.sage_object cimport SageObject from sage.rings.integer cimport Integer diff --git a/src/sage/rings/padics/pow_computer.pyx b/src/sage/rings/padics/pow_computer.pyx index 942b2a6323e..16476b3a5f5 100644 --- a/src/sage/rings/padics/pow_computer.pyx +++ b/src/sage/rings/padics/pow_computer.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari # distutils: libraries = NTL_LIBRARIES gmp m # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/rings/padics/pow_computer_ext.pxd b/src/sage/rings/padics/pow_computer_ext.pxd index e4eca660bb3..3bf4ea0095f 100644 --- a/src/sage/rings/padics/pow_computer_ext.pxd +++ b/src/sage/rings/padics/pow_computer_ext.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from sage.rings.padics.pow_computer cimport PowComputer_class from sage.libs.ntl.ntl_ZZ_pContext cimport ntl_ZZ_pContext_class from sage.libs.ntl.types cimport * diff --git a/src/sage/rings/padics/pow_computer_ext.pyx b/src/sage/rings/padics/pow_computer_ext.pyx index 3f6e8eb875b..ae9e11f6794 100644 --- a/src/sage/rings/padics/pow_computer_ext.pyx +++ b/src/sage/rings/padics/pow_computer_ext.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: libraries = NTL_LIBRARIES gmp m # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/rings/padics/pow_computer_flint.pxd b/src/sage/rings/padics/pow_computer_flint.pxd index 83185ec9cc9..4713e67c832 100644 --- a/src/sage/rings/padics/pow_computer_flint.pxd +++ b/src/sage/rings/padics/pow_computer_flint.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint from sage.libs.gmp.mpz cimport mpz_t from sage.libs.flint.types cimport padic_ctx_t, fmpz_t, fmpz_poly_t from sage.rings.padics.pow_computer cimport PowComputer_class diff --git a/src/sage/rings/padics/pow_computer_flint.pyx b/src/sage/rings/padics/pow_computer_flint.pyx index 2ef7ff9e879..dfdd09e1095 100644 --- a/src/sage/rings/padics/pow_computer_flint.pyx +++ b/src/sage/rings/padics/pow_computer_flint.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = gmp NTL_LIBRARIES # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/rings/padics/pow_computer_relative.pxd b/src/sage/rings/padics/pow_computer_relative.pxd index 9bc6f1b487a..12942b33404 100644 --- a/src/sage/rings/padics/pow_computer_relative.pxd +++ b/src/sage/rings/padics/pow_computer_relative.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari # -*- coding: utf-8 -*- from sage.rings.padics.pow_computer cimport PowComputer_class from sage.rings.polynomial.polynomial_element cimport Polynomial_generic_dense diff --git a/src/sage/rings/padics/pow_computer_relative.pyx b/src/sage/rings/padics/pow_computer_relative.pyx index 55c53a12a63..53719ad5ac5 100644 --- a/src/sage/rings/padics/pow_computer_relative.pyx +++ b/src/sage/rings/padics/pow_computer_relative.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari # distutils: libraries = NTL_LIBRARIES gmp m # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/rings/padics/precision_error.py b/src/sage/rings/padics/precision_error.py index a536fa1a104..fa5d577936a 100644 --- a/src/sage/rings/padics/precision_error.py +++ b/src/sage/rings/padics/precision_error.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Precision Error diff --git a/src/sage/rings/padics/qadic_flint_CA.pxd b/src/sage/rings/padics/qadic_flint_CA.pxd index 56cd4dbc03d..95ea3145a31 100644 --- a/src/sage/rings/padics/qadic_flint_CA.pxd +++ b/src/sage/rings/padics/qadic_flint_CA.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint from cypari2.gen cimport Gen as pari_gen from sage.libs.flint.types cimport fmpz_poly_t from sage.rings.padics.pow_computer_flint cimport PowComputer_flint_unram diff --git a/src/sage/rings/padics/qadic_flint_CA.pyx b/src/sage/rings/padics/qadic_flint_CA.pyx index 3e4d01fcad1..4042e822372 100644 --- a/src/sage/rings/padics/qadic_flint_CA.pyx +++ b/src/sage/rings/padics/qadic_flint_CA.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint include "sage/libs/linkages/padics/fmpz_poly_unram.pxi" include "sage/libs/linkages/padics/unram_shared.pxi" include "CA_template.pxi" diff --git a/src/sage/rings/padics/qadic_flint_CR.pxd b/src/sage/rings/padics/qadic_flint_CR.pxd index 1f1765bc61c..b70f7bfe01e 100644 --- a/src/sage/rings/padics/qadic_flint_CR.pxd +++ b/src/sage/rings/padics/qadic_flint_CR.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint from cypari2.gen cimport Gen as pari_gen from sage.libs.flint.types cimport fmpz_poly_t from sage.rings.padics.pow_computer_flint cimport PowComputer_flint_unram diff --git a/src/sage/rings/padics/qadic_flint_CR.pyx b/src/sage/rings/padics/qadic_flint_CR.pyx index c20fa087424..9bf21686309 100644 --- a/src/sage/rings/padics/qadic_flint_CR.pyx +++ b/src/sage/rings/padics/qadic_flint_CR.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint include "sage/libs/linkages/padics/fmpz_poly_unram.pxi" include "sage/libs/linkages/padics/unram_shared.pxi" include "CR_template.pxi" diff --git a/src/sage/rings/padics/qadic_flint_FM.pxd b/src/sage/rings/padics/qadic_flint_FM.pxd index 7c2facd3aaa..ded2ef8b970 100644 --- a/src/sage/rings/padics/qadic_flint_FM.pxd +++ b/src/sage/rings/padics/qadic_flint_FM.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint from cypari2.gen cimport Gen as pari_gen from sage.libs.flint.types cimport fmpz_poly_t from sage.rings.padics.qadic_flint_FP cimport FPElement diff --git a/src/sage/rings/padics/qadic_flint_FM.pyx b/src/sage/rings/padics/qadic_flint_FM.pyx index 0a5e0563101..526873888cf 100644 --- a/src/sage/rings/padics/qadic_flint_FM.pyx +++ b/src/sage/rings/padics/qadic_flint_FM.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint include "sage/libs/linkages/padics/fmpz_poly_unram.pxi" include "sage/libs/linkages/padics/unram_shared.pxi" include "FM_template.pxi" diff --git a/src/sage/rings/padics/qadic_flint_FP.pxd b/src/sage/rings/padics/qadic_flint_FP.pxd index 1a25be2fc08..5526168e40a 100644 --- a/src/sage/rings/padics/qadic_flint_FP.pxd +++ b/src/sage/rings/padics/qadic_flint_FP.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint from cypari2.gen cimport Gen as pari_gen from sage.libs.flint.fmpz_poly cimport fmpz_poly_t from sage.rings.padics.pow_computer_flint cimport PowComputer_flint_unram diff --git a/src/sage/rings/padics/qadic_flint_FP.pyx b/src/sage/rings/padics/qadic_flint_FP.pyx index 36e898c8590..270f6095ee1 100644 --- a/src/sage/rings/padics/qadic_flint_FP.pyx +++ b/src/sage/rings/padics/qadic_flint_FP.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = flint include "sage/libs/linkages/padics/fmpz_poly_unram.pxi" diff --git a/src/sage/rings/padics/relative_extension_leaves.py b/src/sage/rings/padics/relative_extension_leaves.py index 0310f2b21c3..c2ff4c399c2 100644 --- a/src/sage/rings/padics/relative_extension_leaves.py +++ b/src/sage/rings/padics/relative_extension_leaves.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari """ Relative extensions of `p`-adic rings diff --git a/src/sage/rings/padics/relative_ramified_CA.pxd b/src/sage/rings/padics/relative_ramified_CA.pxd index e87d051a24e..794f6305a7d 100644 --- a/src/sage/rings/padics/relative_ramified_CA.pxd +++ b/src/sage/rings/padics/relative_ramified_CA.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari from sage.rings.polynomial.polynomial_element cimport Polynomial_generic_dense_inexact as celement from sage.rings.padics.pow_computer_relative cimport PowComputer_relative_eis as PowComputer_ from sage.rings.padics.relative_ramified_CR cimport CRElement diff --git a/src/sage/rings/padics/relative_ramified_CA.pyx b/src/sage/rings/padics/relative_ramified_CA.pyx index 42337d04979..907110c5196 100644 --- a/src/sage/rings/padics/relative_ramified_CA.pyx +++ b/src/sage/rings/padics/relative_ramified_CA.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari # sage.doctest: needs sage.libs.flint include "sage/libs/linkages/padics/Polynomial_ram.pxi" include "CA_template.pxi" diff --git a/src/sage/rings/padics/relative_ramified_CR.pxd b/src/sage/rings/padics/relative_ramified_CR.pxd index e7c5cdc04ca..10607fa8a19 100644 --- a/src/sage/rings/padics/relative_ramified_CR.pxd +++ b/src/sage/rings/padics/relative_ramified_CR.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari from sage.rings.polynomial.polynomial_element cimport Polynomial_generic_dense_inexact as celement from sage.rings.padics.pow_computer_relative cimport PowComputer_relative_eis as PowComputer_ diff --git a/src/sage/rings/padics/relative_ramified_CR.pyx b/src/sage/rings/padics/relative_ramified_CR.pyx index 5263c190966..633464e9968 100644 --- a/src/sage/rings/padics/relative_ramified_CR.pyx +++ b/src/sage/rings/padics/relative_ramified_CR.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari # sage.doctest: needs sage.libs.ntl include "sage/libs/linkages/padics/Polynomial_ram.pxi" include "CR_template.pxi" diff --git a/src/sage/rings/padics/relative_ramified_FM.pxd b/src/sage/rings/padics/relative_ramified_FM.pxd index cf2e1238463..5e19bfde27a 100644 --- a/src/sage/rings/padics/relative_ramified_FM.pxd +++ b/src/sage/rings/padics/relative_ramified_FM.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari from sage.rings.polynomial.polynomial_element cimport Polynomial_generic_dense_inexact as celement from sage.rings.padics.pow_computer_relative cimport PowComputer_relative_eis as PowComputer_ from sage.rings.padics.relative_ramified_FP cimport FPElement diff --git a/src/sage/rings/padics/relative_ramified_FM.pyx b/src/sage/rings/padics/relative_ramified_FM.pyx index 27d18035ccb..93f734d084c 100644 --- a/src/sage/rings/padics/relative_ramified_FM.pyx +++ b/src/sage/rings/padics/relative_ramified_FM.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari # sage.doctest: needs sage.libs.flint include "sage/libs/linkages/padics/Polynomial_ram.pxi" include "FM_template.pxi" diff --git a/src/sage/rings/padics/relative_ramified_FP.pxd b/src/sage/rings/padics/relative_ramified_FP.pxd index d060fbe1a3a..7528f6802f5 100644 --- a/src/sage/rings/padics/relative_ramified_FP.pxd +++ b/src/sage/rings/padics/relative_ramified_FP.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari from sage.rings.polynomial.polynomial_element cimport Polynomial_generic_dense_inexact as celement from sage.rings.padics.pow_computer_relative cimport PowComputer_relative_eis as PowComputer_ diff --git a/src/sage/rings/padics/relative_ramified_FP.pyx b/src/sage/rings/padics/relative_ramified_FP.pyx index 3cbae5e55d3..38b4e61fe67 100644 --- a/src/sage/rings/padics/relative_ramified_FP.pyx +++ b/src/sage/rings/padics/relative_ramified_FP.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari # sage.doctest: needs sage.libs.flint include "sage/libs/linkages/padics/Polynomial_ram.pxi" include "FP_template.pxi" diff --git a/src/sage/rings/padics/relaxed_template.pxi b/src/sage/rings/padics/relaxed_template.pxi index fe70657acda..eb7f0d822e8 100644 --- a/src/sage/rings/padics/relaxed_template.pxi +++ b/src/sage/rings/padics/relaxed_template.pxi @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari # sage.doctest: needs sage.libs.flint r""" Template for relaxed `p`-adic rings and fields. diff --git a/src/sage/rings/padics/relaxed_template_header.pxi b/src/sage/rings/padics/relaxed_template_header.pxi index 1baa4bfdbe7..8f7e4858314 100644 --- a/src/sage/rings/padics/relaxed_template_header.pxi +++ b/src/sage/rings/padics/relaxed_template_header.pxi @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari """ This file provides the declaration for the RelaxedElement class, which collects common functionality for the different relaxed p-adic diff --git a/src/sage/rings/padics/tests.py b/src/sage/rings/padics/tests.py index 1d0e3f3c5d6..55d786b8701 100644 --- a/src/sage/rings/padics/tests.py +++ b/src/sage/rings/padics/tests.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari """ TESTS:: diff --git a/src/sage/rings/padics/tutorial.py b/src/sage/rings/padics/tutorial.py index 45459711382..b4f502440a9 100644 --- a/src/sage/rings/padics/tutorial.py +++ b/src/sage/rings/padics/tutorial.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari r""" Introduction to the `p`-adics ========================================== diff --git a/src/sage/rings/padics/unramified_extension_generic.py b/src/sage/rings/padics/unramified_extension_generic.py index 3ca4d07b2b0..049253423d4 100644 --- a/src/sage/rings/padics/unramified_extension_generic.py +++ b/src/sage/rings/padics/unramified_extension_generic.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari """ Unramified Extension Generic diff --git a/src/sage/rings/pari_ring.py b/src/sage/rings/pari_ring.py index b44ee143680..d56b0f61198 100644 --- a/src/sage/rings/pari_ring.py +++ b/src/sage/rings/pari_ring.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari """ Ring of pari objects diff --git a/src/sage/rings/polynomial/commutative_polynomial.pxd b/src/sage/rings/polynomial/commutative_polynomial.pxd index c4a8956daa5..ec6d99c1208 100644 --- a/src/sage/rings/polynomial/commutative_polynomial.pxd +++ b/src/sage/rings/polynomial/commutative_polynomial.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories from sage.structure.element cimport CommutativeAlgebraElement diff --git a/src/sage/rings/polynomial/commutative_polynomial.pyx b/src/sage/rings/polynomial/commutative_polynomial.pyx index dc9f2cab8b7..1fb3de6b803 100644 --- a/src/sage/rings/polynomial/commutative_polynomial.pyx +++ b/src/sage/rings/polynomial/commutative_polynomial.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories cdef class CommutativePolynomial(CommutativeAlgebraElement): r""" Abstract base class for commutative polynomials in any number of variables diff --git a/src/sage/rings/polynomial/complex_roots.py b/src/sage/rings/polynomial/complex_roots.py index 4c66eeca40c..82be2204a81 100644 --- a/src/sage/rings/polynomial/complex_roots.py +++ b/src/sage/rings/polynomial/complex_roots.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint """ Isolate Complex Roots of Polynomials diff --git a/src/sage/rings/polynomial/cyclotomic.pyx b/src/sage/rings/polynomial/cyclotomic.pyx index 3a891ec1ae8..9f62079cdd2 100644 --- a/src/sage/rings/polynomial/cyclotomic.pyx +++ b/src/sage/rings/polynomial/cyclotomic.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # -*- coding: utf-8 -*- r""" Fast calculation of cyclotomic polynomials diff --git a/src/sage/rings/polynomial/evaluation_flint.pxd b/src/sage/rings/polynomial/evaluation_flint.pxd index 4504e8af63c..1c04ea596b8 100644 --- a/src/sage/rings/polynomial/evaluation_flint.pxd +++ b/src/sage/rings/polynomial/evaluation_flint.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint from sage.libs.flint.types cimport fmpz_poly_t from sage.libs.mpfr.types cimport mpfr_t from sage.libs.mpfi.types cimport mpfi_t diff --git a/src/sage/rings/polynomial/evaluation_flint.pyx b/src/sage/rings/polynomial/evaluation_flint.pyx index 94204c0556b..61b982a3d4a 100644 --- a/src/sage/rings/polynomial/evaluation_flint.pyx +++ b/src/sage/rings/polynomial/evaluation_flint.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = flint r""" Fast evaluation of polynomials (Horner's rule) diff --git a/src/sage/rings/polynomial/evaluation_ntl.pxd b/src/sage/rings/polynomial/evaluation_ntl.pxd index 4551037ecca..a60633c12e6 100644 --- a/src/sage/rings/polynomial/evaluation_ntl.pxd +++ b/src/sage/rings/polynomial/evaluation_ntl.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from sage.libs.ntl.types cimport ZZX_c from sage.libs.mpfr.types cimport mpfr_t from sage.libs.mpfi.types cimport mpfi_t diff --git a/src/sage/rings/polynomial/evaluation_ntl.pyx b/src/sage/rings/polynomial/evaluation_ntl.pyx index b6ff4732542..23d63b3f6e8 100644 --- a/src/sage/rings/polynomial/evaluation_ntl.pyx +++ b/src/sage/rings/polynomial/evaluation_ntl.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: libraries = NTL_LIBRARIES # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/rings/polynomial/flatten.py b/src/sage/rings/polynomial/flatten.py index 74783285396..4aa1bc217bd 100644 --- a/src/sage/rings/polynomial/flatten.py +++ b/src/sage/rings/polynomial/flatten.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # -*- coding: utf-8 -*- r""" Class to flatten polynomial rings over polynomial ring diff --git a/src/sage/rings/polynomial/hilbert.pyx b/src/sage/rings/polynomial/hilbert.pyx index 975e2f42d9e..6105a72ce03 100644 --- a/src/sage/rings/polynomial/hilbert.pyx +++ b/src/sage/rings/polynomial/hilbert.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # -*- coding: utf-8 -*- r""" Compute Hilbert series of monomial ideals diff --git a/src/sage/rings/polynomial/ideal.py b/src/sage/rings/polynomial/ideal.py index 9719c81ba41..425eb70f5f6 100644 --- a/src/sage/rings/polynomial/ideal.py +++ b/src/sage/rings/polynomial/ideal.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # -*- coding: utf-8 -*- """ Ideals in Univariate Polynomial Rings diff --git a/src/sage/rings/polynomial/infinite_polynomial_element.py b/src/sage/rings/polynomial/infinite_polynomial_element.py index a32c2fb0f7e..e43c7e50737 100644 --- a/src/sage/rings/polynomial/infinite_polynomial_element.py +++ b/src/sage/rings/polynomial/infinite_polynomial_element.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Elements of Infinite Polynomial Rings diff --git a/src/sage/rings/polynomial/infinite_polynomial_ring.py b/src/sage/rings/polynomial/infinite_polynomial_ring.py index f1db4c7d275..9f6bf6c97e5 100644 --- a/src/sage/rings/polynomial/infinite_polynomial_ring.py +++ b/src/sage/rings/polynomial/infinite_polynomial_ring.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Infinite Polynomial Rings diff --git a/src/sage/rings/polynomial/laurent_polynomial.pxd b/src/sage/rings/polynomial/laurent_polynomial.pxd index d99243aaf3d..5980bf22ca4 100644 --- a/src/sage/rings/polynomial/laurent_polynomial.pxd +++ b/src/sage/rings/polynomial/laurent_polynomial.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories from sage.structure.element cimport CommutativeAlgebraElement, ModuleElement, RingElement, Element diff --git a/src/sage/rings/polynomial/laurent_polynomial.pyx b/src/sage/rings/polynomial/laurent_polynomial.pyx index 03de4a1179f..1d8d95dae15 100644 --- a/src/sage/rings/polynomial/laurent_polynomial.pyx +++ b/src/sage/rings/polynomial/laurent_polynomial.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Elements of Laurent polynomial rings """ diff --git a/src/sage/rings/polynomial/laurent_polynomial_ideal.py b/src/sage/rings/polynomial/laurent_polynomial_ideal.py index d569dc06101..5ebd560c0c0 100644 --- a/src/sage/rings/polynomial/laurent_polynomial_ideal.py +++ b/src/sage/rings/polynomial/laurent_polynomial_ideal.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.libs.singular sage.modules (because all doctests need laurent_polynomial_mpair, Groebner bases) r""" Ideals in Laurent polynomial rings. diff --git a/src/sage/rings/polynomial/laurent_polynomial_mpair.pxd b/src/sage/rings/polynomial/laurent_polynomial_mpair.pxd index f71ccb57030..540a2cdb32c 100644 --- a/src/sage/rings/polynomial/laurent_polynomial_mpair.pxd +++ b/src/sage/rings/polynomial/laurent_polynomial_mpair.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.rings.polynomial.laurent_polynomial cimport LaurentPolynomial from sage.rings.polynomial.multi_polynomial cimport MPolynomial from sage.rings.polynomial.polydict cimport ETuple, PolyDict diff --git a/src/sage/rings/polynomial/laurent_polynomial_mpair.pyx b/src/sage/rings/polynomial/laurent_polynomial_mpair.pyx index 7832488a2ef..ede329855e9 100644 --- a/src/sage/rings/polynomial/laurent_polynomial_mpair.pyx +++ b/src/sage/rings/polynomial/laurent_polynomial_mpair.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Elements of multivariate Laurent polynomial rings """ diff --git a/src/sage/rings/polynomial/laurent_polynomial_ring.py b/src/sage/rings/polynomial/laurent_polynomial_ring.py index 812a4b3a351..9fcba0331ac 100644 --- a/src/sage/rings/polynomial/laurent_polynomial_ring.py +++ b/src/sage/rings/polynomial/laurent_polynomial_ring.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Ring of Laurent Polynomials diff --git a/src/sage/rings/polynomial/laurent_polynomial_ring_base.py b/src/sage/rings/polynomial/laurent_polynomial_ring_base.py index bbb6b9e1fc9..31728192e82 100644 --- a/src/sage/rings/polynomial/laurent_polynomial_ring_base.py +++ b/src/sage/rings/polynomial/laurent_polynomial_ring_base.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.modules r""" Ring of Laurent Polynomials (base class) diff --git a/src/sage/rings/polynomial/multi_polynomial.pxd b/src/sage/rings/polynomial/multi_polynomial.pxd index 3f4fe16888c..9ed963ff494 100644 --- a/src/sage/rings/polynomial/multi_polynomial.pxd +++ b/src/sage/rings/polynomial/multi_polynomial.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories from sage.rings.polynomial.commutative_polynomial cimport CommutativePolynomial diff --git a/src/sage/rings/polynomial/multi_polynomial.pyx b/src/sage/rings/polynomial/multi_polynomial.pyx index 6cb9593081b..b37731ebf7b 100644 --- a/src/sage/rings/polynomial/multi_polynomial.pyx +++ b/src/sage/rings/polynomial/multi_polynomial.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Base class for elements of multivariate polynomial rings """ diff --git a/src/sage/rings/polynomial/multi_polynomial_element.py b/src/sage/rings/polynomial/multi_polynomial_element.py index f5c1b0e480c..c170634552e 100644 --- a/src/sage/rings/polynomial/multi_polynomial_element.py +++ b/src/sage/rings/polynomial/multi_polynomial_element.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Generic Multivariate Polynomials diff --git a/src/sage/rings/polynomial/multi_polynomial_ideal.py b/src/sage/rings/polynomial/multi_polynomial_ideal.py index 4b460f244d6..e5c2657f11b 100644 --- a/src/sage/rings/polynomial/multi_polynomial_ideal.py +++ b/src/sage/rings/polynomial/multi_polynomial_ideal.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.libs.singular r""" Ideals in multivariate polynomial rings diff --git a/src/sage/rings/polynomial/multi_polynomial_ideal_libsingular.pxd b/src/sage/rings/polynomial/multi_polynomial_ideal_libsingular.pxd index fefa241523d..e22be726cec 100644 --- a/src/sage/rings/polynomial/multi_polynomial_ideal_libsingular.pxd +++ b/src/sage/rings/polynomial/multi_polynomial_ideal_libsingular.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-singular from sage.libs.singular.decl cimport ideal, ring cdef object singular_ideal_to_sage_sequence(ideal *i, ring *r, object parent) noexcept diff --git a/src/sage/rings/polynomial/multi_polynomial_ideal_libsingular.pyx b/src/sage/rings/polynomial/multi_polynomial_ideal_libsingular.pyx index 38e251d84ce..b5d9c99700c 100644 --- a/src/sage/rings/polynomial/multi_polynomial_ideal_libsingular.pyx +++ b/src/sage/rings/polynomial/multi_polynomial_ideal_libsingular.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-singular """ Direct low-level access to SINGULAR's Groebner basis engine via libSINGULAR diff --git a/src/sage/rings/polynomial/multi_polynomial_libsingular.pxd b/src/sage/rings/polynomial/multi_polynomial_libsingular.pxd index 744774ea231..dfb988431b5 100644 --- a/src/sage/rings/polynomial/multi_polynomial_libsingular.pxd +++ b/src/sage/rings/polynomial/multi_polynomial_libsingular.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-singular from sage.libs.singular.decl cimport poly, ring from sage.rings.polynomial.multi_polynomial cimport MPolynomial_libsingular as MPolynomial_libsingular_base diff --git a/src/sage/rings/polynomial/multi_polynomial_libsingular.pyx b/src/sage/rings/polynomial/multi_polynomial_libsingular.pyx index f519400c3c3..e76111d9041 100644 --- a/src/sage/rings/polynomial/multi_polynomial_libsingular.pyx +++ b/src/sage/rings/polynomial/multi_polynomial_libsingular.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-singular r""" Multivariate Polynomials via libSINGULAR diff --git a/src/sage/rings/polynomial/multi_polynomial_ring.py b/src/sage/rings/polynomial/multi_polynomial_ring.py index f61d3103fa8..5db2ac5afc1 100644 --- a/src/sage/rings/polynomial/multi_polynomial_ring.py +++ b/src/sage/rings/polynomial/multi_polynomial_ring.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Multivariate Polynomial Rings over Generic Rings diff --git a/src/sage/rings/polynomial/multi_polynomial_ring_base.pxd b/src/sage/rings/polynomial/multi_polynomial_ring_base.pxd index a090a15ac34..5f2e3905a57 100644 --- a/src/sage/rings/polynomial/multi_polynomial_ring_base.pxd +++ b/src/sage/rings/polynomial/multi_polynomial_ring_base.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories cimport sage.rings.ring from sage.structure.parent cimport Parent diff --git a/src/sage/rings/polynomial/multi_polynomial_ring_base.pyx b/src/sage/rings/polynomial/multi_polynomial_ring_base.pyx index dc3bfdc2459..873f64fa72e 100644 --- a/src/sage/rings/polynomial/multi_polynomial_ring_base.pyx +++ b/src/sage/rings/polynomial/multi_polynomial_ring_base.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Base class for multivariate polynomial rings """ diff --git a/src/sage/rings/polynomial/multi_polynomial_sequence.py b/src/sage/rings/polynomial/multi_polynomial_sequence.py index 9f0c7712d58..dfde6237d71 100644 --- a/src/sage/rings/polynomial/multi_polynomial_sequence.py +++ b/src/sage/rings/polynomial/multi_polynomial_sequence.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Polynomial Sequences diff --git a/src/sage/rings/polynomial/ore_function_element.py b/src/sage/rings/polynomial/ore_function_element.py index a9574c6d4cb..10894e125c1 100644 --- a/src/sage/rings/polynomial/ore_function_element.py +++ b/src/sage/rings/polynomial/ore_function_element.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Fraction field elements of Ore polynomial rings diff --git a/src/sage/rings/polynomial/ore_function_field.py b/src/sage/rings/polynomial/ore_function_field.py index 6fd7d5ffc5a..197caa98b55 100644 --- a/src/sage/rings/polynomial/ore_function_field.py +++ b/src/sage/rings/polynomial/ore_function_field.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Fraction fields of Ore polynomial rings diff --git a/src/sage/rings/polynomial/ore_polynomial_element.pxd b/src/sage/rings/polynomial/ore_polynomial_element.pxd index 86b14f7d213..a85eecfb183 100644 --- a/src/sage/rings/polynomial/ore_polynomial_element.pxd +++ b/src/sage/rings/polynomial/ore_polynomial_element.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.structure.element cimport AlgebraElement from sage.structure.parent cimport Parent from sage.rings.integer cimport Integer diff --git a/src/sage/rings/polynomial/ore_polynomial_element.pyx b/src/sage/rings/polynomial/ore_polynomial_element.pyx index 637ba30aa0c..8ee67908810 100644 --- a/src/sage/rings/polynomial/ore_polynomial_element.pyx +++ b/src/sage/rings/polynomial/ore_polynomial_element.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.combinat r""" Univariate Ore polynomials diff --git a/src/sage/rings/polynomial/ore_polynomial_ring.py b/src/sage/rings/polynomial/ore_polynomial_ring.py index c5f32f35a1b..c5b732b9cbb 100644 --- a/src/sage/rings/polynomial/ore_polynomial_ring.py +++ b/src/sage/rings/polynomial/ore_polynomial_ring.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.combinat r""" Univariate Ore polynomial rings diff --git a/src/sage/rings/polynomial/padics/all.py b/src/sage/rings/polynomial/padics/all.py index e69de29bb2d..01c9cb07cd5 100644 --- a/src/sage/rings/polynomial/padics/all.py +++ b/src/sage/rings/polynomial/padics/all.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-pari diff --git a/src/sage/rings/polynomial/padics/polynomial_padic.py b/src/sage/rings/polynomial/padics/polynomial_padic.py index f19d6ccefa4..304f26239c5 100644 --- a/src/sage/rings/polynomial/padics/polynomial_padic.py +++ b/src/sage/rings/polynomial/padics/polynomial_padic.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari """ Base class for generic `p`-adic polynomials diff --git a/src/sage/rings/polynomial/padics/polynomial_padic_capped_relative_dense.py b/src/sage/rings/polynomial/padics/polynomial_padic_capped_relative_dense.py index fced8551fcd..2f7d7b41249 100644 --- a/src/sage/rings/polynomial/padics/polynomial_padic_capped_relative_dense.py +++ b/src/sage/rings/polynomial/padics/polynomial_padic_capped_relative_dense.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari # sage.doctest: needs sage.libs.ntl """ p-adic Capped Relative Dense Polynomials diff --git a/src/sage/rings/polynomial/padics/polynomial_padic_flat.py b/src/sage/rings/polynomial/padics/polynomial_padic_flat.py index dc52258a268..94efe58b815 100644 --- a/src/sage/rings/polynomial/padics/polynomial_padic_flat.py +++ b/src/sage/rings/polynomial/padics/polynomial_padic_flat.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari """ p-adic Flat Polynomials """ diff --git a/src/sage/rings/polynomial/pbori/PyPolyBoRi.py b/src/sage/rings/polynomial/pbori/PyPolyBoRi.py index 18ca366fb85..a33da76b252 100644 --- a/src/sage/rings/polynomial/pbori/PyPolyBoRi.py +++ b/src/sage/rings/polynomial/pbori/PyPolyBoRi.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-brial r""" PolyBoRi's interface to libpolybori/BRiAL diff --git a/src/sage/rings/polynomial/pbori/__init__.py b/src/sage/rings/polynomial/pbori/__init__.py index 325ed646516..257a9b7d6a7 100644 --- a/src/sage/rings/polynomial/pbori/__init__.py +++ b/src/sage/rings/polynomial/pbori/__init__.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-brial """The PolyBoRi package implements a framework for computations with Polynomials in Boolean Ring. The core of PolyBoRi is a C++ library, which provides high-level data types for Boolean polynomials and monomials, diff --git a/src/sage/rings/polynomial/pbori/blocks.py b/src/sage/rings/polynomial/pbori/blocks.py index 752e0a14ee8..8dec5ce87a3 100644 --- a/src/sage/rings/polynomial/pbori/blocks.py +++ b/src/sage/rings/polynomial/pbori/blocks.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-brial import sys from itertools import chain, islice diff --git a/src/sage/rings/polynomial/pbori/cnf.py b/src/sage/rings/polynomial/pbori/cnf.py index 9f9e670a4c9..793b27b1755 100644 --- a/src/sage/rings/polynomial/pbori/cnf.py +++ b/src/sage/rings/polynomial/pbori/cnf.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-brial from random import Random from sage.rings.polynomial.pbori.pbori import if_then_else as ite from .PyPolyBoRi import Polynomial diff --git a/src/sage/rings/polynomial/pbori/easy_polynomials.py b/src/sage/rings/polynomial/pbori/easy_polynomials.py index 8641e93afa3..4b13a4c8eb8 100644 --- a/src/sage/rings/polynomial/pbori/easy_polynomials.py +++ b/src/sage/rings/polynomial/pbori/easy_polynomials.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-brial from .interpolate import variety_lex_leading_terms, nf_lex_points from .pbori import easy_linear_factors diff --git a/src/sage/rings/polynomial/pbori/fglm.py b/src/sage/rings/polynomial/pbori/fglm.py index 60559b31b85..f9e0d3a4fe4 100644 --- a/src/sage/rings/polynomial/pbori/fglm.py +++ b/src/sage/rings/polynomial/pbori/fglm.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-brial from .pbori import BooleSet, FGLMStrategy from .PyPolyBoRi import BoolePolynomialVector, Polynomial diff --git a/src/sage/rings/polynomial/pbori/frontend.py b/src/sage/rings/polynomial/pbori/frontend.py index b0072cd5abf..94f03a44490 100644 --- a/src/sage/rings/polynomial/pbori/frontend.py +++ b/src/sage/rings/polynomial/pbori/frontend.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-brial # Import basic functionality r""" This module defines an initial ring, and patches the declare_ring to use diff --git a/src/sage/rings/polynomial/pbori/gbcore.py b/src/sage/rings/polynomial/pbori/gbcore.py index 5880a6811a7..bddab62213c 100644 --- a/src/sage/rings/polynomial/pbori/gbcore.py +++ b/src/sage/rings/polynomial/pbori/gbcore.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-brial from copy import copy from itertools import chain from inspect import getfullargspec as getargspec diff --git a/src/sage/rings/polynomial/pbori/gbrefs.py b/src/sage/rings/polynomial/pbori/gbrefs.py index 70dc795cbab..2f617e3192a 100644 --- a/src/sage/rings/polynomial/pbori/gbrefs.py +++ b/src/sage/rings/polynomial/pbori/gbrefs.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-brial import gzip from io import StringIO import base64 as uu diff --git a/src/sage/rings/polynomial/pbori/heuristics.py b/src/sage/rings/polynomial/pbori/heuristics.py index 5dcfca16f87..053694a7ba2 100644 --- a/src/sage/rings/polynomial/pbori/heuristics.py +++ b/src/sage/rings/polynomial/pbori/heuristics.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-brial from .PyPolyBoRi import Polynomial, gauss_on_polys diff --git a/src/sage/rings/polynomial/pbori/interpolate.py b/src/sage/rings/polynomial/pbori/interpolate.py index 68f25d57bb2..a804ccc8ae7 100644 --- a/src/sage/rings/polynomial/pbori/interpolate.py +++ b/src/sage/rings/polynomial/pbori/interpolate.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-brial # Copyright (c) 2005-2007 by The PolyBoRi Team from time import process_time as clock from random import Random diff --git a/src/sage/rings/polynomial/pbori/interred.py b/src/sage/rings/polynomial/pbori/interred.py index fe59be30896..8d7c3608284 100644 --- a/src/sage/rings/polynomial/pbori/interred.py +++ b/src/sage/rings/polynomial/pbori/interred.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-brial from .pbori import ReductionStrategy from .PyPolyBoRi import Polynomial diff --git a/src/sage/rings/polynomial/pbori/ll.py b/src/sage/rings/polynomial/pbori/ll.py index a48e7e2a84a..e9b9ed31ec3 100644 --- a/src/sage/rings/polynomial/pbori/ll.py +++ b/src/sage/rings/polynomial/pbori/ll.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-brial from .pbori import (top_index, if_then_else, substitute_variables, BooleSet, ll_red_nf_redsb, ll_red_nf_noredsb, diff --git a/src/sage/rings/polynomial/pbori/nf.py b/src/sage/rings/polynomial/pbori/nf.py index ac6e447c525..d35208f814f 100644 --- a/src/sage/rings/polynomial/pbori/nf.py +++ b/src/sage/rings/polynomial/pbori/nf.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-brial from sage.rings.polynomial.pbori.pbori import mod_mon_set from .pbori import (BooleSet, GroebnerStrategy, ReductionStrategy, parallel_reduce, easy_linear_factors) diff --git a/src/sage/rings/polynomial/pbori/parallel.py b/src/sage/rings/polynomial/pbori/parallel.py index be10865dd50..8bd7ca89e8e 100644 --- a/src/sage/rings/polynomial/pbori/parallel.py +++ b/src/sage/rings/polynomial/pbori/parallel.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-brial # coding=utf-8 r""" parallel.py diff --git a/src/sage/rings/polynomial/pbori/pbori.pxd b/src/sage/rings/polynomial/pbori/pbori.pxd index f9083a681a2..fd2583de01a 100644 --- a/src/sage/rings/polynomial/pbori/pbori.pxd +++ b/src/sage/rings/polynomial/pbori/pbori.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-brial from libcpp.memory cimport unique_ptr, shared_ptr, make_shared from sage.rings.polynomial.multi_polynomial_ring_base cimport MPolynomialRing_base, BooleanPolynomialRing_base diff --git a/src/sage/rings/polynomial/pbori/pbori.pyx b/src/sage/rings/polynomial/pbori/pbori.pyx index 8560837f72e..0d8d7bbd987 100644 --- a/src/sage/rings/polynomial/pbori/pbori.pyx +++ b/src/sage/rings/polynomial/pbori/pbori.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-brial # distutils: libraries = brial brial_groebner M4RI_LIBRARIES LIBPNG_LIBRARIES # distutils: library_dirs = M4RI_LIBDIR LIBPNG_LIBDIR # distutils: include_dirs = M4RI_INCDIR LIBPNG_INCDIR diff --git a/src/sage/rings/polynomial/pbori/randompoly.py b/src/sage/rings/polynomial/pbori/randompoly.py index b0327a50062..385cea7ef16 100644 --- a/src/sage/rings/polynomial/pbori/randompoly.py +++ b/src/sage/rings/polynomial/pbori/randompoly.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-brial from random import Random from pprint import pformat diff --git a/src/sage/rings/polynomial/pbori/rank.py b/src/sage/rings/polynomial/pbori/rank.py index bf16e6220ce..ec7160cb73c 100644 --- a/src/sage/rings/polynomial/pbori/rank.py +++ b/src/sage/rings/polynomial/pbori/rank.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-brial def input_signals(p): return list((p + p.lex_lead()).vars_as_monomial().variables()) diff --git a/src/sage/rings/polynomial/pbori/specialsets.py b/src/sage/rings/polynomial/pbori/specialsets.py index 74f56c2faf5..5fbe7ae560f 100644 --- a/src/sage/rings/polynomial/pbori/specialsets.py +++ b/src/sage/rings/polynomial/pbori/specialsets.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-brial from .pbori import (top_index, if_then_else, mod_mon_set, BooleSet, BooleConstant) from .PyPolyBoRi import (Polynomial, Monomial, Variable) diff --git a/src/sage/rings/polynomial/pbori/statistics.py b/src/sage/rings/polynomial/pbori/statistics.py index 93cced307a7..ad6563c6a99 100644 --- a/src/sage/rings/polynomial/pbori/statistics.py +++ b/src/sage/rings/polynomial/pbori/statistics.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-brial from .pbori import top_index, BooleConstant from .PyPolyBoRi import Monomial, Polynomial diff --git a/src/sage/rings/polynomial/plural.pxd b/src/sage/rings/polynomial/plural.pxd index 06b48c737f3..1e6b7dcb6ca 100644 --- a/src/sage/rings/polynomial/plural.pxd +++ b/src/sage/rings/polynomial/plural.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-singular from sage.libs.singular.decl cimport * from sage.rings.ring cimport Ring from sage.structure.element cimport RingElement, Element diff --git a/src/sage/rings/polynomial/plural.pyx b/src/sage/rings/polynomial/plural.pyx index f06b8241e9c..1b793e916a8 100644 --- a/src/sage/rings/polynomial/plural.pyx +++ b/src/sage/rings/polynomial/plural.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-singular r""" Noncommutative polynomials via libSINGULAR/Plural diff --git a/src/sage/rings/polynomial/polydict.pxd b/src/sage/rings/polynomial/polydict.pxd index 432ae7d8c47..9993fc263fd 100644 --- a/src/sage/rings/polynomial/polydict.pxd +++ b/src/sage/rings/polynomial/polydict.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories cdef class PolyDict: cdef dict __repn diff --git a/src/sage/rings/polynomial/polydict.pyx b/src/sage/rings/polynomial/polydict.pyx index d65d5464778..e9b44d2e297 100644 --- a/src/sage/rings/polynomial/polydict.pyx +++ b/src/sage/rings/polynomial/polydict.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Generic data structures for multivariate polynomials diff --git a/src/sage/rings/polynomial/polynomial_compiled.pxd b/src/sage/rings/polynomial/polynomial_compiled.pxd index 3e5c9f4611f..dc510b53f8d 100644 --- a/src/sage/rings/polynomial/polynomial_compiled.pxd +++ b/src/sage/rings/polynomial/polynomial_compiled.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories from sage.misc.binary_tree import BinaryTree from sage.misc.binary_tree cimport BinaryTree diff --git a/src/sage/rings/polynomial/polynomial_compiled.pyx b/src/sage/rings/polynomial/polynomial_compiled.pyx index 1145dfae7ea..4fe1252fc9e 100644 --- a/src/sage/rings/polynomial/polynomial_compiled.pyx +++ b/src/sage/rings/polynomial/polynomial_compiled.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Polynomial Compilers diff --git a/src/sage/rings/polynomial/polynomial_complex_arb.pxd b/src/sage/rings/polynomial/polynomial_complex_arb.pxd index 29e3cc4fd61..4e4eab7f8c8 100644 --- a/src/sage/rings/polynomial/polynomial_complex_arb.pxd +++ b/src/sage/rings/polynomial/polynomial_complex_arb.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint from sage.libs.arb.acb_poly cimport * from sage.rings.polynomial.polynomial_element cimport Polynomial diff --git a/src/sage/rings/polynomial/polynomial_complex_arb.pyx b/src/sage/rings/polynomial/polynomial_complex_arb.pyx index 81e799b7a8d..d51b45c702f 100644 --- a/src/sage/rings/polynomial/polynomial_complex_arb.pyx +++ b/src/sage/rings/polynomial/polynomial_complex_arb.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # -*- coding: utf-8 r""" Univariate polynomials over `\CC` with interval coefficients using Arb. diff --git a/src/sage/rings/polynomial/polynomial_element.pxd b/src/sage/rings/polynomial/polynomial_element.pxd index 9b8bf41fa06..b859b69dd34 100644 --- a/src/sage/rings/polynomial/polynomial_element.pxd +++ b/src/sage/rings/polynomial/polynomial_element.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories from sage.structure.element import Element from sage.structure.element cimport Element, CommutativeAlgebraElement, ModuleElement from sage.structure.parent cimport Parent diff --git a/src/sage/rings/polynomial/polynomial_element.pyx b/src/sage/rings/polynomial/polynomial_element.pyx index de438cb122e..c193658d675 100644 --- a/src/sage/rings/polynomial/polynomial_element.pyx +++ b/src/sage/rings/polynomial/polynomial_element.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # coding: utf-8 """ Univariate polynomial base class diff --git a/src/sage/rings/polynomial/polynomial_element_generic.py b/src/sage/rings/polynomial/polynomial_element_generic.py index 5b99c2aaea8..edd3095a4fc 100644 --- a/src/sage/rings/polynomial/polynomial_element_generic.py +++ b/src/sage/rings/polynomial/polynomial_element_generic.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Univariate Polynomials over domains and fields diff --git a/src/sage/rings/polynomial/polynomial_fateman.py b/src/sage/rings/polynomial/polynomial_fateman.py index 8ccf13eba09..4270fb68c16 100644 --- a/src/sage/rings/polynomial/polynomial_fateman.py +++ b/src/sage/rings/polynomial/polynomial_fateman.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories "Polynomial multiplication by Kronecker substitution" ################################################################################ # Copyright (C) 2007 William Stein diff --git a/src/sage/rings/polynomial/polynomial_gf2x.pxd b/src/sage/rings/polynomial/polynomial_gf2x.pxd index 293715c0379..74ae9d5c08f 100644 --- a/src/sage/rings/polynomial/polynomial_gf2x.pxd +++ b/src/sage/rings/polynomial/polynomial_gf2x.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-linbox from sage.libs.ntl.GF2X cimport GF2X_c ctypedef GF2X_c celement diff --git a/src/sage/rings/polynomial/polynomial_gf2x.pyx b/src/sage/rings/polynomial/polynomial_gf2x.pyx index 51959a7825c..3f510eac2a3 100644 --- a/src/sage/rings/polynomial/polynomial_gf2x.pyx +++ b/src/sage/rings/polynomial/polynomial_gf2x.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-linbox # distutils: libraries = gmp NTL_LIBRARIES # distutils: library_dirs = NTL_LIBDIR # distutils: extra_link_args = NTL_LIBEXTRA diff --git a/src/sage/rings/polynomial/polynomial_integer_dense_flint.pxd b/src/sage/rings/polynomial/polynomial_integer_dense_flint.pxd index b88c2a66a76..b0fb4eb8628 100644 --- a/src/sage/rings/polynomial/polynomial_integer_dense_flint.pxd +++ b/src/sage/rings/polynomial/polynomial_integer_dense_flint.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint from sage.libs.flint.types cimport fmpz_poly_t from sage.rings.polynomial.polynomial_element cimport Polynomial diff --git a/src/sage/rings/polynomial/polynomial_integer_dense_flint.pyx b/src/sage/rings/polynomial/polynomial_integer_dense_flint.pyx index c9d196ff893..e6073f231e8 100644 --- a/src/sage/rings/polynomial/polynomial_integer_dense_flint.pyx +++ b/src/sage/rings/polynomial/polynomial_integer_dense_flint.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = NTL_LIBRARIES gmp # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/rings/polynomial/polynomial_integer_dense_ntl.pxd b/src/sage/rings/polynomial/polynomial_integer_dense_ntl.pxd index 982fafb8ebb..14a5a414bec 100644 --- a/src/sage/rings/polynomial/polynomial_integer_dense_ntl.pxd +++ b/src/sage/rings/polynomial/polynomial_integer_dense_ntl.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from sage.libs.ntl.types cimport ZZX_c from sage.rings.polynomial.polynomial_element cimport Polynomial diff --git a/src/sage/rings/polynomial/polynomial_integer_dense_ntl.pyx b/src/sage/rings/polynomial/polynomial_integer_dense_ntl.pyx index ef695cdc6e2..7d74a213b36 100644 --- a/src/sage/rings/polynomial/polynomial_integer_dense_ntl.pyx +++ b/src/sage/rings/polynomial/polynomial_integer_dense_ntl.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: libraries = NTL_LIBRARIES gmp # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/rings/polynomial/polynomial_modn_dense_ntl.pxd b/src/sage/rings/polynomial/polynomial_modn_dense_ntl.pxd index f476dc782ce..0f69520664e 100644 --- a/src/sage/rings/polynomial/polynomial_modn_dense_ntl.pxd +++ b/src/sage/rings/polynomial/polynomial_modn_dense_ntl.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from sage.structure.element cimport Element, ModuleElement, RingElement from sage.rings.polynomial.polynomial_element cimport Polynomial diff --git a/src/sage/rings/polynomial/polynomial_modn_dense_ntl.pyx b/src/sage/rings/polynomial/polynomial_modn_dense_ntl.pyx index 65bd584d9ea..0871aab766b 100644 --- a/src/sage/rings/polynomial/polynomial_modn_dense_ntl.pyx +++ b/src/sage/rings/polynomial/polynomial_modn_dense_ntl.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: libraries = NTL_LIBRARIES gmp # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/rings/polynomial/polynomial_number_field.pyx b/src/sage/rings/polynomial/polynomial_number_field.pyx index 5bd458e5d12..835e899c76e 100644 --- a/src/sage/rings/polynomial/polynomial_number_field.pyx +++ b/src/sage/rings/polynomial/polynomial_number_field.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint r""" Univariate polynomials over number fields diff --git a/src/sage/rings/polynomial/polynomial_quotient_ring.py b/src/sage/rings/polynomial/polynomial_quotient_ring.py index 0713a334afb..8a4abb9a625 100644 --- a/src/sage/rings/polynomial/polynomial_quotient_ring.py +++ b/src/sage/rings/polynomial/polynomial_quotient_ring.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.libs.pari """ Quotients of Univariate Polynomial Rings diff --git a/src/sage/rings/polynomial/polynomial_quotient_ring_element.py b/src/sage/rings/polynomial/polynomial_quotient_ring_element.py index 57947c345bf..d5de220153d 100644 --- a/src/sage/rings/polynomial/polynomial_quotient_ring_element.py +++ b/src/sage/rings/polynomial/polynomial_quotient_ring_element.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.libs.pari r""" Elements of Quotients of Univariate Polynomial Rings diff --git a/src/sage/rings/polynomial/polynomial_rational_flint.pxd b/src/sage/rings/polynomial/polynomial_rational_flint.pxd index dacca987830..1bdd6c6352d 100644 --- a/src/sage/rings/polynomial/polynomial_rational_flint.pxd +++ b/src/sage/rings/polynomial/polynomial_rational_flint.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint ############################################################################### # Copyright (C) 2010 Sebastian Pancratz # # # diff --git a/src/sage/rings/polynomial/polynomial_rational_flint.pyx b/src/sage/rings/polynomial/polynomial_rational_flint.pyx index 4b752edc8b0..360b5f866d0 100644 --- a/src/sage/rings/polynomial/polynomial_rational_flint.pyx +++ b/src/sage/rings/polynomial/polynomial_rational_flint.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = NTL_LIBRARIES gmp # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/rings/polynomial/polynomial_real_mpfr_dense.pyx b/src/sage/rings/polynomial/polynomial_real_mpfr_dense.pyx index 8bd5bd00a67..c0636b64e58 100644 --- a/src/sage/rings/polynomial/polynomial_real_mpfr_dense.pyx +++ b/src/sage/rings/polynomial/polynomial_real_mpfr_dense.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Dense univariate polynomials over `\RR`, implemented using MPFR diff --git a/src/sage/rings/polynomial/polynomial_ring.py b/src/sage/rings/polynomial/polynomial_ring.py index 858df388caf..948d3cf7eb2 100644 --- a/src/sage/rings/polynomial/polynomial_ring.py +++ b/src/sage/rings/polynomial/polynomial_ring.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # -*- coding: utf-8 -*- """ Univariate Polynomial Rings diff --git a/src/sage/rings/polynomial/polynomial_ring_constructor.py b/src/sage/rings/polynomial/polynomial_ring_constructor.py index ba9b9453e76..0108a876c17 100644 --- a/src/sage/rings/polynomial/polynomial_ring_constructor.py +++ b/src/sage/rings/polynomial/polynomial_ring_constructor.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Constructors for polynomial rings diff --git a/src/sage/rings/polynomial/polynomial_ring_homomorphism.pxd b/src/sage/rings/polynomial/polynomial_ring_homomorphism.pxd index eccb83b1ec2..5d6b14623c3 100644 --- a/src/sage/rings/polynomial/polynomial_ring_homomorphism.pxd +++ b/src/sage/rings/polynomial/polynomial_ring_homomorphism.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories from sage.rings.morphism cimport RingHomomorphism_from_base cdef class PolynomialRingHomomorphism_from_base(RingHomomorphism_from_base): diff --git a/src/sage/rings/polynomial/polynomial_ring_homomorphism.pyx b/src/sage/rings/polynomial/polynomial_ring_homomorphism.pyx index 3be25f829c4..1fdeb90739b 100644 --- a/src/sage/rings/polynomial/polynomial_ring_homomorphism.pyx +++ b/src/sage/rings/polynomial/polynomial_ring_homomorphism.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Ring homomorphisms from a polynomial ring to another ring diff --git a/src/sage/rings/polynomial/polynomial_singular_interface.py b/src/sage/rings/polynomial/polynomial_singular_interface.py index 257eaf4c267..6ef41f73655 100644 --- a/src/sage/rings/polynomial/polynomial_singular_interface.py +++ b/src/sage/rings/polynomial/polynomial_singular_interface.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Polynomial Interfaces to Singular diff --git a/src/sage/rings/polynomial/polynomial_template.pxi b/src/sage/rings/polynomial/polynomial_template.pxi index 7c53f107180..db6b3d469e3 100644 --- a/src/sage/rings/polynomial/polynomial_template.pxi +++ b/src/sage/rings/polynomial/polynomial_template.pxi @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl """ Polynomial Template for C/C++ Library Interfaces """ diff --git a/src/sage/rings/polynomial/polynomial_template_header.pxi b/src/sage/rings/polynomial/polynomial_template_header.pxi index ba7184f6643..3c3d12875bd 100644 --- a/src/sage/rings/polynomial/polynomial_template_header.pxi +++ b/src/sage/rings/polynomial/polynomial_template_header.pxi @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl """ Polynomial Template for C/C++ Library Interfaces """ diff --git a/src/sage/rings/polynomial/polynomial_zmod_flint.pxd b/src/sage/rings/polynomial/polynomial_zmod_flint.pxd index 887f46ea6eb..de5bf78e9e2 100644 --- a/src/sage/rings/polynomial/polynomial_zmod_flint.pxd +++ b/src/sage/rings/polynomial/polynomial_zmod_flint.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint from sage.libs.flint.types cimport nmod_poly_t, nmod_poly_struct, fmpz_poly_t from sage.structure.parent cimport Parent from sage.rings.polynomial.polynomial_integer_dense_flint cimport Polynomial_integer_dense_flint diff --git a/src/sage/rings/polynomial/polynomial_zmod_flint.pyx b/src/sage/rings/polynomial/polynomial_zmod_flint.pyx index 3a66198d568..5c4a0d141e5 100644 --- a/src/sage/rings/polynomial/polynomial_zmod_flint.pyx +++ b/src/sage/rings/polynomial/polynomial_zmod_flint.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # distutils: libraries = gmp NTL_LIBRARIES # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/rings/polynomial/polynomial_zz_pex.pxd b/src/sage/rings/polynomial/polynomial_zz_pex.pxd index ca60398ef68..3107ef76a39 100644 --- a/src/sage/rings/polynomial/polynomial_zz_pex.pxd +++ b/src/sage/rings/polynomial/polynomial_zz_pex.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from sage.libs.ntl.ZZ_pEX cimport ZZ_pEX_c from sage.libs.ntl.ntl_ZZ_pEContext cimport ZZ_pEContext_ptrs diff --git a/src/sage/rings/polynomial/polynomial_zz_pex.pyx b/src/sage/rings/polynomial/polynomial_zz_pex.pyx index 60968b412da..776b9363cce 100644 --- a/src/sage/rings/polynomial/polynomial_zz_pex.pyx +++ b/src/sage/rings/polynomial/polynomial_zz_pex.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # sage.doctest: needs sage.libs.ntl sage.rings.finite_rings # distutils: libraries = NTL_LIBRARIES gmp # distutils: extra_compile_args = NTL_CFLAGS diff --git a/src/sage/rings/polynomial/real_roots.pxd b/src/sage/rings/polynomial/real_roots.pxd index 17b3ef6d8b8..e625d82b2b7 100644 --- a/src/sage/rings/polynomial/real_roots.pxd +++ b/src/sage/rings/polynomial/real_roots.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint from sage.rings.rational cimport Rational from sage.modules.vector_integer_dense cimport Vector_integer_dense from sage.modules.vector_real_double_dense cimport Vector_real_double_dense diff --git a/src/sage/rings/polynomial/real_roots.pyx b/src/sage/rings/polynomial/real_roots.pyx index f52fd1f6e79..8b94687c536 100644 --- a/src/sage/rings/polynomial/real_roots.pyx +++ b/src/sage/rings/polynomial/real_roots.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # sage.doctest: needs numpy sage.libs.linbox """ Isolate Real Roots of Real Polynomials diff --git a/src/sage/rings/polynomial/refine_root.pyx b/src/sage/rings/polynomial/refine_root.pyx index 32a9ce8c8e4..1d5b806abd3 100644 --- a/src/sage/rings/polynomial/refine_root.pyx +++ b/src/sage/rings/polynomial/refine_root.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint """ Refine polynomial roots using Newton--Raphson diff --git a/src/sage/rings/polynomial/skew_polynomial_element.pxd b/src/sage/rings/polynomial/skew_polynomial_element.pxd index d967e898909..76bafa02100 100644 --- a/src/sage/rings/polynomial/skew_polynomial_element.pxd +++ b/src/sage/rings/polynomial/skew_polynomial_element.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.rings.polynomial.ore_polynomial_element cimport OrePolynomial_generic_dense cdef class SkewPolynomial_generic_dense(OrePolynomial_generic_dense): diff --git a/src/sage/rings/polynomial/skew_polynomial_element.pyx b/src/sage/rings/polynomial/skew_polynomial_element.pyx index b103ac37508..46cec6a5edc 100644 --- a/src/sage/rings/polynomial/skew_polynomial_element.pyx +++ b/src/sage/rings/polynomial/skew_polynomial_element.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.combinat r""" Univariate skew polynomials diff --git a/src/sage/rings/polynomial/skew_polynomial_finite_field.pxd b/src/sage/rings/polynomial/skew_polynomial_finite_field.pxd index 1718554cc3a..7a1d619f81b 100644 --- a/src/sage/rings/polynomial/skew_polynomial_finite_field.pxd +++ b/src/sage/rings/polynomial/skew_polynomial_finite_field.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.rings.polynomial.skew_polynomial_finite_order cimport SkewPolynomial_finite_order_dense cdef class SkewPolynomial_finite_field_dense (SkewPolynomial_finite_order_dense): diff --git a/src/sage/rings/polynomial/skew_polynomial_finite_field.pyx b/src/sage/rings/polynomial/skew_polynomial_finite_field.pyx index 1a176288395..4eec39c7669 100644 --- a/src/sage/rings/polynomial/skew_polynomial_finite_field.pyx +++ b/src/sage/rings/polynomial/skew_polynomial_finite_field.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.combinat sage.rings.finite_rings r""" Univariate dense skew polynomials over finite fields diff --git a/src/sage/rings/polynomial/skew_polynomial_finite_order.pxd b/src/sage/rings/polynomial/skew_polynomial_finite_order.pxd index bfaf8d04d14..62d677c803d 100644 --- a/src/sage/rings/polynomial/skew_polynomial_finite_order.pxd +++ b/src/sage/rings/polynomial/skew_polynomial_finite_order.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.rings.polynomial.skew_polynomial_element cimport SkewPolynomial_generic_dense cdef class SkewPolynomial_finite_order_dense (SkewPolynomial_generic_dense): diff --git a/src/sage/rings/polynomial/skew_polynomial_finite_order.pyx b/src/sage/rings/polynomial/skew_polynomial_finite_order.pyx index 367ff8713ba..06f149c7772 100644 --- a/src/sage/rings/polynomial/skew_polynomial_finite_order.pyx +++ b/src/sage/rings/polynomial/skew_polynomial_finite_order.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.combinat sage.rings.finite_rings r""" Univariate dense skew polynomials over a field with a finite order automorphism diff --git a/src/sage/rings/polynomial/skew_polynomial_ring.py b/src/sage/rings/polynomial/skew_polynomial_ring.py index 9d3ea67ee46..be2f76d5fc8 100644 --- a/src/sage/rings/polynomial/skew_polynomial_ring.py +++ b/src/sage/rings/polynomial/skew_polynomial_ring.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.combinat r""" Univariate skew polynomial rings diff --git a/src/sage/rings/polynomial/symmetric_ideal.py b/src/sage/rings/polynomial/symmetric_ideal.py index f9cae63ea4b..6fb78019bf5 100644 --- a/src/sage/rings/polynomial/symmetric_ideal.py +++ b/src/sage/rings/polynomial/symmetric_ideal.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.libs.singular """ Symmetric Ideals of Infinite Polynomial Rings diff --git a/src/sage/rings/polynomial/symmetric_reduction.pxd b/src/sage/rings/polynomial/symmetric_reduction.pxd index 49bd292f995..5b6a616ca54 100644 --- a/src/sage/rings/polynomial/symmetric_reduction.pxd +++ b/src/sage/rings/polynomial/symmetric_reduction.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories cdef class SymmetricReductionStrategy: cdef list _lm cdef list _lengths diff --git a/src/sage/rings/polynomial/symmetric_reduction.pyx b/src/sage/rings/polynomial/symmetric_reduction.pyx index e873fcc5397..ddac28e3431 100644 --- a/src/sage/rings/polynomial/symmetric_reduction.pyx +++ b/src/sage/rings/polynomial/symmetric_reduction.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.libs.singular r""" Symmetric Reduction of Infinite Polynomials diff --git a/src/sage/rings/polynomial/term_order.py b/src/sage/rings/polynomial/term_order.py index 687545c0c39..fac8d37861c 100644 --- a/src/sage/rings/polynomial/term_order.py +++ b/src/sage/rings/polynomial/term_order.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Term orders diff --git a/src/sage/rings/polynomial/toy_buchberger.py b/src/sage/rings/polynomial/toy_buchberger.py index 4edd2491b6d..1e63c1cdc35 100644 --- a/src/sage/rings/polynomial/toy_buchberger.py +++ b/src/sage/rings/polynomial/toy_buchberger.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Educational versions of Groebner basis algorithms diff --git a/src/sage/rings/polynomial/toy_d_basis.py b/src/sage/rings/polynomial/toy_d_basis.py index ec783625140..5a5f79169d4 100644 --- a/src/sage/rings/polynomial/toy_d_basis.py +++ b/src/sage/rings/polynomial/toy_d_basis.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Educational version of the `d`-Groebner basis algorithm over PIDs diff --git a/src/sage/rings/polynomial/toy_variety.py b/src/sage/rings/polynomial/toy_variety.py index 6b0572e6010..8936117d697 100644 --- a/src/sage/rings/polynomial/toy_variety.py +++ b/src/sage/rings/polynomial/toy_variety.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Educational versions of Groebner basis algorithms: triangular factorization diff --git a/src/sage/rings/polynomial/weil/all.py b/src/sage/rings/polynomial/weil/all.py index 6b00c9bee88..18175f2b35a 100644 --- a/src/sage/rings/polynomial/weil/all.py +++ b/src/sage/rings/polynomial/weil/all.py @@ -1,2 +1,3 @@ +# sage_setup: distribution = sagemath-flint from sage.misc.lazy_import import lazy_import lazy_import('sage.rings.polynomial.weil.weil_polynomials', 'WeilPolynomials') diff --git a/src/sage/rings/polynomial/weil/weil_polynomials.pyx b/src/sage/rings/polynomial/weil/weil_polynomials.pyx index 182d0c41e6f..a63bf5c0aee 100755 --- a/src/sage/rings/polynomial/weil/weil_polynomials.pyx +++ b/src/sage/rings/polynomial/weil/weil_polynomials.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint r""" Iterator for Weil polynomials. diff --git a/src/sage/rings/power_series_mpoly.pxd b/src/sage/rings/power_series_mpoly.pxd index d8816e694b7..ad0723ed59c 100644 --- a/src/sage/rings/power_series_mpoly.pxd +++ b/src/sage/rings/power_series_mpoly.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories from sage.structure.element cimport ModuleElement from sage.rings.power_series_ring_element cimport PowerSeries diff --git a/src/sage/rings/power_series_mpoly.pyx b/src/sage/rings/power_series_mpoly.pyx index 2846d563a97..adb9d4e6138 100644 --- a/src/sage/rings/power_series_mpoly.pyx +++ b/src/sage/rings/power_series_mpoly.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # NOT ready to be used -- possibly should be deleted. from sage.rings.power_series_ring_element cimport PowerSeries diff --git a/src/sage/rings/power_series_pari.pxd b/src/sage/rings/power_series_pari.pxd index 35b37929c33..d421ff4eda0 100644 --- a/src/sage/rings/power_series_pari.pxd +++ b/src/sage/rings/power_series_pari.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari from cypari2.gen cimport Gen as pari_gen from sage.rings.power_series_ring_element cimport PowerSeries diff --git a/src/sage/rings/power_series_pari.pyx b/src/sage/rings/power_series_pari.pyx index 5178392c618..bbc78776dac 100644 --- a/src/sage/rings/power_series_pari.pyx +++ b/src/sage/rings/power_series_pari.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari r""" Power series implemented using PARI diff --git a/src/sage/rings/power_series_poly.pxd b/src/sage/rings/power_series_poly.pxd index e37e1fb26cf..e31c8bf6feb 100644 --- a/src/sage/rings/power_series_poly.pxd +++ b/src/sage/rings/power_series_poly.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories from sage.rings.power_series_ring_element cimport PowerSeries from sage.rings.polynomial.polynomial_element cimport Polynomial from sage.categories.action cimport Action diff --git a/src/sage/rings/power_series_poly.pyx b/src/sage/rings/power_series_poly.pyx index 8f2a86efba9..ea4262e8279 100644 --- a/src/sage/rings/power_series_poly.pyx +++ b/src/sage/rings/power_series_poly.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # -*- coding: utf-8 -*- """ Power Series Methods diff --git a/src/sage/rings/power_series_ring.py b/src/sage/rings/power_series_ring.py index 739525a9974..0206273a357 100644 --- a/src/sage/rings/power_series_ring.py +++ b/src/sage/rings/power_series_ring.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Power Series Rings diff --git a/src/sage/rings/power_series_ring_element.pxd b/src/sage/rings/power_series_ring_element.pxd index b8c28103131..1f65720320d 100644 --- a/src/sage/rings/power_series_ring_element.pxd +++ b/src/sage/rings/power_series_ring_element.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories from sage.structure.element cimport AlgebraElement, RingElement cdef class PowerSeries(AlgebraElement): diff --git a/src/sage/rings/power_series_ring_element.pyx b/src/sage/rings/power_series_ring_element.pyx index 31206e347f9..ed1a46bfecb 100644 --- a/src/sage/rings/power_series_ring_element.pyx +++ b/src/sage/rings/power_series_ring_element.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Power Series diff --git a/src/sage/rings/puiseux_series_ring.py b/src/sage/rings/puiseux_series_ring.py index 2f761c51925..e2ceeaeb80d 100644 --- a/src/sage/rings/puiseux_series_ring.py +++ b/src/sage/rings/puiseux_series_ring.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # -*- coding: utf-8 -*- r""" Puiseux Series Ring diff --git a/src/sage/rings/puiseux_series_ring_element.pxd b/src/sage/rings/puiseux_series_ring_element.pxd index 50852a42d33..1719cd3e118 100644 --- a/src/sage/rings/puiseux_series_ring_element.pxd +++ b/src/sage/rings/puiseux_series_ring_element.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories from sage.structure.element cimport AlgebraElement, ModuleElement from sage.rings.laurent_series_ring_element cimport LaurentSeries diff --git a/src/sage/rings/puiseux_series_ring_element.pyx b/src/sage/rings/puiseux_series_ring_element.pyx index 3f50fb45e2e..98849ace4e6 100644 --- a/src/sage/rings/puiseux_series_ring_element.pyx +++ b/src/sage/rings/puiseux_series_ring_element.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # -*- coding: utf-8 -*- r""" Puiseux Series Ring Element diff --git a/src/sage/rings/qqbar.py b/src/sage/rings/qqbar.py index 9c286af01ec..d4d1702debd 100644 --- a/src/sage/rings/qqbar.py +++ b/src/sage/rings/qqbar.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # sage.doctest: needs sage.libs.linbox r""" Algebraic numbers diff --git a/src/sage/rings/qqbar_decorators.py b/src/sage/rings/qqbar_decorators.py index e1e3b908c8c..34fd7331b97 100644 --- a/src/sage/rings/qqbar_decorators.py +++ b/src/sage/rings/qqbar_decorators.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.rings.number_field """ QQbar decorators diff --git a/src/sage/rings/quotient_ring.py b/src/sage/rings/quotient_ring.py index a6a0a8ce7f8..18b15a17dcb 100644 --- a/src/sage/rings/quotient_ring.py +++ b/src/sage/rings/quotient_ring.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Quotient Rings diff --git a/src/sage/rings/quotient_ring_element.py b/src/sage/rings/quotient_ring_element.py index f67c7192f11..b34442fcdb2 100644 --- a/src/sage/rings/quotient_ring_element.py +++ b/src/sage/rings/quotient_ring_element.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Quotient Ring Elements diff --git a/src/sage/rings/rational.pxd b/src/sage/rings/rational.pxd index f80ec22e9a9..f6dea259f61 100644 --- a/src/sage/rings/rational.pxd +++ b/src/sage/rings/rational.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories from sage.libs.gmp.types cimport mpq_t cimport sage.structure.element diff --git a/src/sage/rings/rational.pyx b/src/sage/rings/rational.pyx index b970456ed9f..c999f5b5b10 100644 --- a/src/sage/rings/rational.pyx +++ b/src/sage/rings/rational.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # distutils: libraries = NTL_LIBRARIES # distutils: extra_compile_args = NTL_CFLAGS # distutils: include_dirs = NTL_INCDIR diff --git a/src/sage/rings/rational_field.py b/src/sage/rings/rational_field.py index 8e54c459651..fcd3601a58e 100644 --- a/src/sage/rings/rational_field.py +++ b/src/sage/rings/rational_field.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Field `\QQ` of Rational Numbers diff --git a/src/sage/rings/real_arb.pxd b/src/sage/rings/real_arb.pxd index 0a3a68d1057..7c8747f733b 100644 --- a/src/sage/rings/real_arb.pxd +++ b/src/sage/rings/real_arb.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint from sage.libs.arb.arb cimport arb_t from sage.libs.mpfi.types cimport mpfi_t from sage.rings.real_mpfi cimport RealIntervalField_class, RealIntervalFieldElement diff --git a/src/sage/rings/real_arb.pyx b/src/sage/rings/real_arb.pyx index 8509b19cc66..ea496e66131 100644 --- a/src/sage/rings/real_arb.pyx +++ b/src/sage/rings/real_arb.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # -*- coding: utf-8 r""" Arbitrary precision real balls using Arb diff --git a/src/sage/rings/real_double.pxd b/src/sage/rings/real_double.pxd index e2c657faec2..1a771dfb7ff 100644 --- a/src/sage/rings/real_double.pxd +++ b/src/sage/rings/real_double.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories from sage.structure.element cimport RingElement, ModuleElement, Element, FieldElement from sage.rings.ring cimport Field cimport sage.rings.abc diff --git a/src/sage/rings/real_double.pyx b/src/sage/rings/real_double.pyx index ba0b77150ad..a390cc09cd9 100644 --- a/src/sage/rings/real_double.pyx +++ b/src/sage/rings/real_double.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Double Precision Real Numbers diff --git a/src/sage/rings/real_double_element_gsl.pxd b/src/sage/rings/real_double_element_gsl.pxd index 1762c5f944b..ee894056831 100644 --- a/src/sage/rings/real_double_element_gsl.pxd +++ b/src/sage/rings/real_double_element_gsl.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.rings.real_double cimport RealDoubleElement diff --git a/src/sage/rings/real_double_element_gsl.pyx b/src/sage/rings/real_double_element_gsl.pyx index 05346073d08..d5f8396ef2a 100644 --- a/src/sage/rings/real_double_element_gsl.pyx +++ b/src/sage/rings/real_double_element_gsl.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Double Precision Real Numbers, implementation using GSL """ diff --git a/src/sage/rings/real_field.py b/src/sage/rings/real_field.py index 7b8e17eb5b9..97e039fa20a 100644 --- a/src/sage/rings/real_field.py +++ b/src/sage/rings/real_field.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules def create_RealField(prec=53, type="MPFR", rnd="RNDN", sci_not=0): """ Create a real field with given precision, type, rounding mode and diff --git a/src/sage/rings/real_interval_absolute.pyx b/src/sage/rings/real_interval_absolute.pyx index 5b5e663a5dc..fd2d48e643b 100644 --- a/src/sage/rings/real_interval_absolute.pyx +++ b/src/sage/rings/real_interval_absolute.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint # sage.doctest: # needs sage.symbolic """ Real intervals with a fixed absolute precision diff --git a/src/sage/rings/real_lazy.pxd b/src/sage/rings/real_lazy.pxd index 5619e492e9e..4d64c42a541 100644 --- a/src/sage/rings/real_lazy.pxd +++ b/src/sage/rings/real_lazy.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories from sage.rings.ring cimport Field from sage.structure.element cimport RingElement, ModuleElement, Element, FieldElement diff --git a/src/sage/rings/real_lazy.pyx b/src/sage/rings/real_lazy.pyx index a426a922d6d..46beb2fb57a 100644 --- a/src/sage/rings/real_lazy.pyx +++ b/src/sage/rings/real_lazy.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.rings.real_interval_field sage.rings.real_mpfr """ Lazy real and complex numbers diff --git a/src/sage/rings/real_mpfi.pxd b/src/sage/rings/real_mpfi.pxd index f9fc7a1969c..69c21c1dd1e 100644 --- a/src/sage/rings/real_mpfi.pxd +++ b/src/sage/rings/real_mpfi.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl from sage.libs.mpfr.types cimport mpfr_prec_t from sage.libs.mpfi.types cimport mpfi_t diff --git a/src/sage/rings/real_mpfi.pyx b/src/sage/rings/real_mpfi.pyx index 47c24f7261b..c6d36ddcf7a 100644 --- a/src/sage/rings/real_mpfi.pyx +++ b/src/sage/rings/real_mpfi.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-flint r""" Arbitrary Precision Real Intervals diff --git a/src/sage/rings/real_mpfr.pxd b/src/sage/rings/real_mpfr.pxd index f89ec9557fd..697c613a84b 100644 --- a/src/sage/rings/real_mpfr.pxd +++ b/src/sage/rings/real_mpfr.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.libs.mpfr.types cimport mpfr_rnd_t, mpfr_t, mpfr_prec_t cimport sage.rings.ring diff --git a/src/sage/rings/real_mpfr.pyx b/src/sage/rings/real_mpfr.pyx index a91b58d3268..9c0ea6fe041 100644 --- a/src/sage/rings/real_mpfr.pyx +++ b/src/sage/rings/real_mpfr.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Arbitrary Precision Real Numbers diff --git a/src/sage/rings/ring.pxd b/src/sage/rings/ring.pxd index 1322697688f..4f25a31b7e6 100644 --- a/src/sage/rings/ring.pxd +++ b/src/sage/rings/ring.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories from sage.structure.parent_gens cimport ParentWithGens cpdef bint _is_Field(x) except -2 diff --git a/src/sage/rings/ring.pyx b/src/sage/rings/ring.pyx index 74a192be48b..d5a09bd8425 100644 --- a/src/sage/rings/ring.pyx +++ b/src/sage/rings/ring.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Rings diff --git a/src/sage/rings/ring_extension.pxd b/src/sage/rings/ring_extension.pxd index 995bb23a976..ea353ad7250 100644 --- a/src/sage/rings/ring_extension.pxd +++ b/src/sage/rings/ring_extension.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.categories.map cimport Map from sage.rings.ring cimport CommutativeRing, CommutativeAlgebra diff --git a/src/sage/rings/ring_extension.pyx b/src/sage/rings/ring_extension.pyx index 12892b91287..f6d4b638e1c 100644 --- a/src/sage/rings/ring_extension.pyx +++ b/src/sage/rings/ring_extension.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Extension of rings diff --git a/src/sage/rings/ring_extension_conversion.pxd b/src/sage/rings/ring_extension_conversion.pxd index 74e09e4f356..6f036effdbd 100644 --- a/src/sage/rings/ring_extension_conversion.pxd +++ b/src/sage/rings/ring_extension_conversion.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.rings.ring_extension cimport RingExtension_generic diff --git a/src/sage/rings/ring_extension_conversion.pyx b/src/sage/rings/ring_extension_conversion.pyx index 597320e8af8..9a3cdb87a70 100644 --- a/src/sage/rings/ring_extension_conversion.pyx +++ b/src/sage/rings/ring_extension_conversion.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.rings.finite_rings ############################################################################# diff --git a/src/sage/rings/ring_extension_element.pxd b/src/sage/rings/ring_extension_element.pxd index 32ce1385248..856228cc9ea 100644 --- a/src/sage/rings/ring_extension_element.pxd +++ b/src/sage/rings/ring_extension_element.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.rings.ring cimport CommutativeRing from sage.structure.element cimport Element from sage.structure.element cimport CommutativeAlgebraElement diff --git a/src/sage/rings/ring_extension_element.pyx b/src/sage/rings/ring_extension_element.pyx index cfc6b19cf2b..6feaf6bb4de 100644 --- a/src/sage/rings/ring_extension_element.pyx +++ b/src/sage/rings/ring_extension_element.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Elements lying in extension of rings diff --git a/src/sage/rings/ring_extension_homset.py b/src/sage/rings/ring_extension_homset.py index d2c13a11f0e..df9e3fd149b 100644 --- a/src/sage/rings/ring_extension_homset.py +++ b/src/sage/rings/ring_extension_homset.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.rings.finite_rings r""" Homset between extensions of rings diff --git a/src/sage/rings/ring_extension_morphism.pxd b/src/sage/rings/ring_extension_morphism.pxd index f3d88ec3891..988e410eaea 100644 --- a/src/sage/rings/ring_extension_morphism.pxd +++ b/src/sage/rings/ring_extension_morphism.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.structure.element cimport Element from sage.categories.map cimport Map from sage.rings.morphism cimport RingMap diff --git a/src/sage/rings/ring_extension_morphism.pyx b/src/sage/rings/ring_extension_morphism.pyx index 4d78ee1c5d0..f47d0ea6ba7 100644 --- a/src/sage/rings/ring_extension_morphism.pyx +++ b/src/sage/rings/ring_extension_morphism.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Morphisms between extension of rings diff --git a/src/sage/rings/semirings/all.py b/src/sage/rings/semirings/all.py index b14da38328a..bddd74c5011 100644 --- a/src/sage/rings/semirings/all.py +++ b/src/sage/rings/semirings/all.py @@ -1,2 +1,3 @@ +# sage_setup: distribution = sagemath-categories from .non_negative_integer_semiring import NonNegativeIntegerSemiring, NN from .tropical_semiring import TropicalSemiring diff --git a/src/sage/rings/semirings/non_negative_integer_semiring.py b/src/sage/rings/semirings/non_negative_integer_semiring.py index 1c01fc47eb5..b07e35ee970 100644 --- a/src/sage/rings/semirings/non_negative_integer_semiring.py +++ b/src/sage/rings/semirings/non_negative_integer_semiring.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Non Negative Integer Semiring """ diff --git a/src/sage/rings/semirings/tropical_semiring.pyx b/src/sage/rings/semirings/tropical_semiring.pyx index 3f25fb8af98..19e9117cdb6 100644 --- a/src/sage/rings/semirings/tropical_semiring.pyx +++ b/src/sage/rings/semirings/tropical_semiring.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Tropical Semirings diff --git a/src/sage/rings/sum_of_squares.pxd b/src/sage/rings/sum_of_squares.pxd index d9f2e5ae4fd..a091a030d36 100644 --- a/src/sage/rings/sum_of_squares.pxd +++ b/src/sage/rings/sum_of_squares.pxd @@ -1,2 +1,3 @@ +# sage_setup: distribution = sagemath-categories from libc.stdint cimport uint_fast32_t, uint32_t cdef int two_squares_c(uint_fast32_t n, uint_fast32_t res[2]) noexcept diff --git a/src/sage/rings/sum_of_squares.pyx b/src/sage/rings/sum_of_squares.pyx index 04be29e0fdc..4a90e508310 100644 --- a/src/sage/rings/sum_of_squares.pyx +++ b/src/sage/rings/sum_of_squares.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # distutils: libraries = m r""" Fast decomposition of small integers into sums of squares diff --git a/src/sage/rings/tate_algebra.py b/src/sage/rings/tate_algebra.py index 2905efdb7a8..5b7885f6bbd 100644 --- a/src/sage/rings/tate_algebra.py +++ b/src/sage/rings/tate_algebra.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari r""" Tate algebras diff --git a/src/sage/rings/tate_algebra_element.pxd b/src/sage/rings/tate_algebra_element.pxd index 5c529825e4c..135232fada3 100644 --- a/src/sage/rings/tate_algebra_element.pxd +++ b/src/sage/rings/tate_algebra_element.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari from sage.structure.element cimport Element from sage.structure.element cimport MonoidElement from sage.structure.element cimport CommutativeAlgebraElement diff --git a/src/sage/rings/tate_algebra_element.pyx b/src/sage/rings/tate_algebra_element.pyx index e812a0a7f5f..318a928c869 100644 --- a/src/sage/rings/tate_algebra_element.pyx +++ b/src/sage/rings/tate_algebra_element.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari """ Tate algebra element diff --git a/src/sage/rings/tate_algebra_ideal.pxd b/src/sage/rings/tate_algebra_ideal.pxd index d6c239b9a0c..fac09446627 100644 --- a/src/sage/rings/tate_algebra_ideal.pxd +++ b/src/sage/rings/tate_algebra_ideal.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari from sage.rings.tate_algebra_element cimport TateAlgebraTerm from sage.rings.tate_algebra_element cimport TateAlgebraElement diff --git a/src/sage/rings/tate_algebra_ideal.pyx b/src/sage/rings/tate_algebra_ideal.pyx index 982d9581635..6bedf2e2f9d 100644 --- a/src/sage/rings/tate_algebra_ideal.pyx +++ b/src/sage/rings/tate_algebra_ideal.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari """ Ideals in Tate algebra diff --git a/src/sage/rings/tests.py b/src/sage/rings/tests.py index 3eed7e1aa31..fe3da6de4c7 100644 --- a/src/sage/rings/tests.py +++ b/src/sage/rings/tests.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Tests for rings diff --git a/src/sage/rings/universal_cyclotomic_field.py b/src/sage/rings/universal_cyclotomic_field.py index 87843227295..07054f68773 100644 --- a/src/sage/rings/universal_cyclotomic_field.py +++ b/src/sage/rings/universal_cyclotomic_field.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-gap # sage.doctest: needs sage.libs.gap r""" Universal cyclotomic field diff --git a/src/sage/rings/valuation/all.py b/src/sage/rings/valuation/all.py index 3f90ef9daa0..0c53ec4bf6e 100644 --- a/src/sage/rings/valuation/all.py +++ b/src/sage/rings/valuation/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari from sage.misc.lazy_import import lazy_import lazy_import('sage.rings.valuation.gauss_valuation', 'GaussValuation') diff --git a/src/sage/rings/valuation/augmented_valuation.py b/src/sage/rings/valuation/augmented_valuation.py index 6b23dab9d90..72b85e5a78b 100644 --- a/src/sage/rings/valuation/augmented_valuation.py +++ b/src/sage/rings/valuation/augmented_valuation.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari r""" Augmented valuations on polynomial rings diff --git a/src/sage/rings/valuation/developing_valuation.py b/src/sage/rings/valuation/developing_valuation.py index d7724642415..327bebfdab7 100644 --- a/src/sage/rings/valuation/developing_valuation.py +++ b/src/sage/rings/valuation/developing_valuation.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari # -*- coding: utf-8 -*- r""" Valuations on polynomial rings based on `\phi`-adic expansions diff --git a/src/sage/rings/valuation/gauss_valuation.py b/src/sage/rings/valuation/gauss_valuation.py index a69977ae4b3..a1318aefafd 100644 --- a/src/sage/rings/valuation/gauss_valuation.py +++ b/src/sage/rings/valuation/gauss_valuation.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari # -*- coding: utf-8 -*- """ Gauss valuations on polynomial rings diff --git a/src/sage/rings/valuation/inductive_valuation.py b/src/sage/rings/valuation/inductive_valuation.py index 1e3cb577416..dcb918c03a0 100644 --- a/src/sage/rings/valuation/inductive_valuation.py +++ b/src/sage/rings/valuation/inductive_valuation.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari # -*- coding: utf-8 -*- r""" Inductive valuations on polynomial rings diff --git a/src/sage/rings/valuation/limit_valuation.py b/src/sage/rings/valuation/limit_valuation.py index fa23e2c0a69..b4c8cc04339 100644 --- a/src/sage/rings/valuation/limit_valuation.py +++ b/src/sage/rings/valuation/limit_valuation.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari # -*- coding: utf-8 -*- r""" Valuations which are defined as limits of valuations. diff --git a/src/sage/rings/valuation/mapped_valuation.py b/src/sage/rings/valuation/mapped_valuation.py index 2c4aa42799d..8c257b71dc6 100644 --- a/src/sage/rings/valuation/mapped_valuation.py +++ b/src/sage/rings/valuation/mapped_valuation.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari # -*- coding: utf-8 -*- r""" Valuations which are implemented through a map to another valuation diff --git a/src/sage/rings/valuation/scaled_valuation.py b/src/sage/rings/valuation/scaled_valuation.py index 84249392e3a..9c5fa37517b 100644 --- a/src/sage/rings/valuation/scaled_valuation.py +++ b/src/sage/rings/valuation/scaled_valuation.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari # -*- coding: utf-8 -*- r""" Valuations which are scaled versions of another valuation diff --git a/src/sage/rings/valuation/trivial_valuation.py b/src/sage/rings/valuation/trivial_valuation.py index ddbf9d7e1b7..1a6113d278b 100644 --- a/src/sage/rings/valuation/trivial_valuation.py +++ b/src/sage/rings/valuation/trivial_valuation.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari # -*- coding: utf-8 -*- r""" Trivial valuations diff --git a/src/sage/rings/valuation/valuation.py b/src/sage/rings/valuation/valuation.py index 0121f6a6b25..5a4caf6431b 100644 --- a/src/sage/rings/valuation/valuation.py +++ b/src/sage/rings/valuation/valuation.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari # -*- coding: utf-8 -*- r""" Discrete valuations diff --git a/src/sage/rings/valuation/valuation_space.py b/src/sage/rings/valuation/valuation_space.py index c721fef2df8..ee3574a40c5 100644 --- a/src/sage/rings/valuation/valuation_space.py +++ b/src/sage/rings/valuation/valuation_space.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari # -*- coding: utf-8 -*- r""" Spaces of valuations diff --git a/src/sage/rings/valuation/valuations_catalog.py b/src/sage/rings/valuation/valuations_catalog.py index 64effaf13a6..86227c4cf6b 100644 --- a/src/sage/rings/valuation/valuations_catalog.py +++ b/src/sage/rings/valuation/valuations_catalog.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari from sage.misc.lazy_import import lazy_import lazy_import('sage.rings.padics.padic_valuation', 'pAdicValuation') diff --git a/src/sage/rings/valuation/value_group.py b/src/sage/rings/valuation/value_group.py index b39eec60bdd..5271238f5fd 100644 --- a/src/sage/rings/valuation/value_group.py +++ b/src/sage/rings/valuation/value_group.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-pari # -*- coding: utf-8 -*- r""" Value groups of discrete valuations diff --git a/src/sage/sandpiles/all.py b/src/sage/sandpiles/all.py index 7ddccbf3869..3ebf87805b5 100644 --- a/src/sage/sandpiles/all.py +++ b/src/sage/sandpiles/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs from sage.misc.lazy_import import lazy_import lazy_import('sage.sandpiles.sandpile', 'Sandpile') diff --git a/src/sage/sandpiles/examples.py b/src/sage/sandpiles/examples.py index bd6d409e770..6ae56690969 100644 --- a/src/sage/sandpiles/examples.py +++ b/src/sage/sandpiles/examples.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # -*- coding: utf-8 -*- """ Examples of Sandpile diff --git a/src/sage/sandpiles/sandpile.py b/src/sage/sandpiles/sandpile.py index 430532461f2..caa7d89542a 100644 --- a/src/sage/sandpiles/sandpile.py +++ b/src/sage/sandpiles/sandpile.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs """ Sandpiles diff --git a/src/sage/sat/all.py b/src/sage/sat/all.py index d4beeb2a9a1..dcec3ee75d9 100644 --- a/src/sage/sat/all.py +++ b/src/sage/sat/all.py @@ -1,2 +1,3 @@ +# sage_setup: distribution = sagemath-combinat from sage.misc.lazy_import import lazy_import lazy_import('sage.sat.solvers.satsolver', 'SAT') diff --git a/src/sage/sat/boolean_polynomials.py b/src/sage/sat/boolean_polynomials.py index 32753175384..8562981a080 100644 --- a/src/sage/sat/boolean_polynomials.py +++ b/src/sage/sat/boolean_polynomials.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: optional - pycryptosat, needs sage.modules sage.rings.polynomial.pbori """ SAT Functions for Boolean Polynomials diff --git a/src/sage/sat/converters/__init__.py b/src/sage/sat/converters/__init__.py index bb7b60bbb9c..1a945d09d04 100644 --- a/src/sage/sat/converters/__init__.py +++ b/src/sage/sat/converters/__init__.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat from sage.misc.lazy_import import lazy_import from .anf2cnf import ANF2CNFConverter diff --git a/src/sage/sat/converters/anf2cnf.py b/src/sage/sat/converters/anf2cnf.py index e6dd330feff..220be966e1e 100644 --- a/src/sage/sat/converters/anf2cnf.py +++ b/src/sage/sat/converters/anf2cnf.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat """ Abstract ANF to CNF Converter diff --git a/src/sage/sat/converters/polybori.py b/src/sage/sat/converters/polybori.py index 49da6f1819c..f8e803ecd6d 100644 --- a/src/sage/sat/converters/polybori.py +++ b/src/sage/sat/converters/polybori.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.rings.polynomial.pbori """ An ANF to CNF Converter using a Dense/Sparse Strategy diff --git a/src/sage/sat/solvers/__init__.py b/src/sage/sat/solvers/__init__.py index 27b47db2d51..d3dbc2f9a75 100644 --- a/src/sage/sat/solvers/__init__.py +++ b/src/sage/sat/solvers/__init__.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat from .satsolver import SatSolver from .cryptominisat import CryptoMiniSat diff --git a/src/sage/sat/solvers/cryptominisat.py b/src/sage/sat/solvers/cryptominisat.py index 82f1ffd9086..ecc8281d72f 100644 --- a/src/sage/sat/solvers/cryptominisat.py +++ b/src/sage/sat/solvers/cryptominisat.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" CryptoMiniSat Solver diff --git a/src/sage/sat/solvers/dimacs.py b/src/sage/sat/solvers/dimacs.py index 51e81a925a1..785658ee7c1 100644 --- a/src/sage/sat/solvers/dimacs.py +++ b/src/sage/sat/solvers/dimacs.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat """ SAT-Solvers via DIMACS Files diff --git a/src/sage/sat/solvers/picosat.py b/src/sage/sat/solvers/picosat.py index a88f69da883..01b1997d085 100644 --- a/src/sage/sat/solvers/picosat.py +++ b/src/sage/sat/solvers/picosat.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat r""" PicoSAT Solver diff --git a/src/sage/sat/solvers/sat_lp.py b/src/sage/sat/solvers/sat_lp.py index 9b65b1d241d..e7a50b6aee5 100644 --- a/src/sage/sat/solvers/sat_lp.py +++ b/src/sage/sat/solvers/sat_lp.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat # sage.doctest: needs sage.numerical.mip r""" Solve SAT problems Integer Linear Programming diff --git a/src/sage/sat/solvers/satsolver.pxd b/src/sage/sat/solvers/satsolver.pxd index 7fd0ac7e798..14d8d2cf880 100644 --- a/src/sage/sat/solvers/satsolver.pxd +++ b/src/sage/sat/solvers/satsolver.pxd @@ -1,2 +1,3 @@ +# sage_setup: distribution = sagemath-combinat cdef class SatSolver: pass diff --git a/src/sage/sat/solvers/satsolver.pyx b/src/sage/sat/solvers/satsolver.pyx index 04b9c95f089..20ab53d1cb8 100644 --- a/src/sage/sat/solvers/satsolver.pyx +++ b/src/sage/sat/solvers/satsolver.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-combinat """ Abstract SAT Solver diff --git a/src/sage/schemes/affine/affine_homset.py b/src/sage/schemes/affine/affine_homset.py index b6570bd6f6d..ccba02e4d92 100644 --- a/src/sage/schemes/affine/affine_homset.py +++ b/src/sage/schemes/affine/affine_homset.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Set of homomorphisms between two affine schemes diff --git a/src/sage/schemes/affine/affine_morphism.py b/src/sage/schemes/affine/affine_morphism.py index dd9eb7cf844..b8f41be54bd 100644 --- a/src/sage/schemes/affine/affine_morphism.py +++ b/src/sage/schemes/affine/affine_morphism.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Morphisms on affine schemes diff --git a/src/sage/schemes/affine/affine_point.py b/src/sage/schemes/affine/affine_point.py index dabcaa134f9..9c2fba26b15 100644 --- a/src/sage/schemes/affine/affine_point.py +++ b/src/sage/schemes/affine/affine_point.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Points on affine varieties diff --git a/src/sage/schemes/affine/affine_rational_point.py b/src/sage/schemes/affine/affine_rational_point.py index 4ac17a60d79..8b6837a63ef 100644 --- a/src/sage/schemes/affine/affine_rational_point.py +++ b/src/sage/schemes/affine/affine_rational_point.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Enumeration of rational points on affine schemes diff --git a/src/sage/schemes/affine/affine_space.py b/src/sage/schemes/affine/affine_space.py index fdf38862068..ad0dd003f34 100644 --- a/src/sage/schemes/affine/affine_space.py +++ b/src/sage/schemes/affine/affine_space.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Affine `n` space over a ring """ diff --git a/src/sage/schemes/affine/affine_subscheme.py b/src/sage/schemes/affine/affine_subscheme.py index 6f4b3d786f3..9f4cb723c60 100644 --- a/src/sage/schemes/affine/affine_subscheme.py +++ b/src/sage/schemes/affine/affine_subscheme.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Subschemes of affine space diff --git a/src/sage/schemes/affine/all.py b/src/sage/schemes/affine/all.py index 68a540a9f1f..e44fdd86014 100644 --- a/src/sage/schemes/affine/all.py +++ b/src/sage/schemes/affine/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """nodoctest all.py -- export of affine to Sage """ diff --git a/src/sage/schemes/all.py b/src/sage/schemes/all.py index 23858c6f0c8..9d6bc89eb2b 100644 --- a/src/sage/schemes/all.py +++ b/src/sage/schemes/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes """ all.py -- export of schemes to Sage """ diff --git a/src/sage/schemes/berkovich/all.py b/src/sage/schemes/berkovich/all.py index cc7af01a057..e61c29a4037 100644 --- a/src/sage/schemes/berkovich/all.py +++ b/src/sage/schemes/berkovich/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes """nodoctest all.py -- export of Berkovich spaces to all of Sage """ diff --git a/src/sage/schemes/berkovich/berkovich_cp_element.py b/src/sage/schemes/berkovich/berkovich_cp_element.py index bc8307f29e5..637d30f491d 100644 --- a/src/sage/schemes/berkovich/berkovich_cp_element.py +++ b/src/sage/schemes/berkovich/berkovich_cp_element.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.rings.padics r""" Elements of Berkovich space. diff --git a/src/sage/schemes/berkovich/berkovich_space.py b/src/sage/schemes/berkovich/berkovich_space.py index 100c2807b9d..fb915f6d85b 100644 --- a/src/sage/schemes/berkovich/berkovich_space.py +++ b/src/sage/schemes/berkovich/berkovich_space.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.rings.padics r""" Berkovich Space over `\CC_p` diff --git a/src/sage/schemes/curves/affine_curve.py b/src/sage/schemes/curves/affine_curve.py index d5d97e5e044..95227579a92 100644 --- a/src/sage/schemes/curves/affine_curve.py +++ b/src/sage/schemes/curves/affine_curve.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.singular r""" Affine curves diff --git a/src/sage/schemes/curves/all.py b/src/sage/schemes/curves/all.py index 147c2e1e6fe..b7c889f4aaf 100644 --- a/src/sage/schemes/curves/all.py +++ b/src/sage/schemes/curves/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes """ Plane curves """ diff --git a/src/sage/schemes/curves/closed_point.py b/src/sage/schemes/curves/closed_point.py index 147d60b200a..d7d04b9ae86 100644 --- a/src/sage/schemes/curves/closed_point.py +++ b/src/sage/schemes/curves/closed_point.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes """ Closed points of integral curves diff --git a/src/sage/schemes/curves/constructor.py b/src/sage/schemes/curves/constructor.py index 6fe15a2efc2..d9502d12146 100644 --- a/src/sage/schemes/curves/constructor.py +++ b/src/sage/schemes/curves/constructor.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.singular """ Curve constructor diff --git a/src/sage/schemes/curves/curve.py b/src/sage/schemes/curves/curve.py index 0538db66fee..df0856fb737 100644 --- a/src/sage/schemes/curves/curve.py +++ b/src/sage/schemes/curves/curve.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.singular """ Base class of curves diff --git a/src/sage/schemes/curves/point.py b/src/sage/schemes/curves/point.py index dcc78724497..f4d8c538390 100644 --- a/src/sage/schemes/curves/point.py +++ b/src/sage/schemes/curves/point.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.singular """ Rational points of curves diff --git a/src/sage/schemes/curves/projective_curve.py b/src/sage/schemes/curves/projective_curve.py index 9480d761f61..b6674a1884c 100644 --- a/src/sage/schemes/curves/projective_curve.py +++ b/src/sage/schemes/curves/projective_curve.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.singular r""" Projective curves diff --git a/src/sage/schemes/curves/zariski_vankampen.py b/src/sage/schemes/curves/zariski_vankampen.py index fa30e97085b..21c94214a51 100644 --- a/src/sage/schemes/curves/zariski_vankampen.py +++ b/src/sage/schemes/curves/zariski_vankampen.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.geometry.polyhedron sage.graphs sage.groups sage.rings.number_field r""" Zariski-Van Kampen method implementation diff --git a/src/sage/schemes/cyclic_covers/all.py b/src/sage/schemes/cyclic_covers/all.py index b1fcd806e7a..71bdf43561e 100644 --- a/src/sage/schemes/cyclic_covers/all.py +++ b/src/sage/schemes/cyclic_covers/all.py @@ -1 +1,2 @@ +# sage_setup: distribution = sagemath-schemes from .constructor import CyclicCover diff --git a/src/sage/schemes/cyclic_covers/charpoly_frobenius.py b/src/sage/schemes/cyclic_covers/charpoly_frobenius.py index e28289e1d84..853fb442419 100644 --- a/src/sage/schemes/cyclic_covers/charpoly_frobenius.py +++ b/src/sage/schemes/cyclic_covers/charpoly_frobenius.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.rings.padics r""" Computation of the Frobenius polynomial using Newton's identities diff --git a/src/sage/schemes/cyclic_covers/constructor.py b/src/sage/schemes/cyclic_covers/constructor.py index 99250257121..8e20721651f 100644 --- a/src/sage/schemes/cyclic_covers/constructor.py +++ b/src/sage/schemes/cyclic_covers/constructor.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes """ Cyclic cover curve constructor """ diff --git a/src/sage/schemes/cyclic_covers/cycliccover_finite_field.py b/src/sage/schemes/cyclic_covers/cycliccover_finite_field.py index f2d753baf8f..e4f4020e394 100644 --- a/src/sage/schemes/cyclic_covers/cycliccover_finite_field.py +++ b/src/sage/schemes/cyclic_covers/cycliccover_finite_field.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.rings.finite_rings r""" diff --git a/src/sage/schemes/cyclic_covers/cycliccover_generic.py b/src/sage/schemes/cyclic_covers/cycliccover_generic.py index 9bca8814dad..b8a921ad788 100644 --- a/src/sage/schemes/cyclic_covers/cycliccover_generic.py +++ b/src/sage/schemes/cyclic_covers/cycliccover_generic.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes """ Cyclic covers curves over a general ring diff --git a/src/sage/schemes/elliptic_curves/BSD.py b/src/sage/schemes/elliptic_curves/BSD.py index bf3f302b978..f3f42f17f65 100644 --- a/src/sage/schemes/elliptic_curves/BSD.py +++ b/src/sage/schemes/elliptic_curves/BSD.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes "Birch and Swinnerton-Dyer formulas" from sage.arith.misc import prime_divisors diff --git a/src/sage/schemes/elliptic_curves/Qcurves.py b/src/sage/schemes/elliptic_curves/Qcurves.py index c7d3da73691..3b589d26e1c 100644 --- a/src/sage/schemes/elliptic_curves/Qcurves.py +++ b/src/sage/schemes/elliptic_curves/Qcurves.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes r""" Testing whether elliptic curves over number fields are `\QQ`-curves diff --git a/src/sage/schemes/elliptic_curves/all.py b/src/sage/schemes/elliptic_curves/all.py index f4abce51a62..7a05dd95a86 100644 --- a/src/sage/schemes/elliptic_curves/all.py +++ b/src/sage/schemes/elliptic_curves/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes """ Exported elliptic curves functionality """ diff --git a/src/sage/schemes/elliptic_curves/cardinality.py b/src/sage/schemes/elliptic_curves/cardinality.py index d871355c20a..0e08f6a83e7 100644 --- a/src/sage/schemes/elliptic_curves/cardinality.py +++ b/src/sage/schemes/elliptic_curves/cardinality.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.rings.finite_rings """ Specific algorithms to compute cardinality of elliptic curves over a finite field diff --git a/src/sage/schemes/elliptic_curves/cm.py b/src/sage/schemes/elliptic_curves/cm.py index 58bed0a67a4..8488fd1e4a3 100644 --- a/src/sage/schemes/elliptic_curves/cm.py +++ b/src/sage/schemes/elliptic_curves/cm.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes """ Complex multiplication for elliptic curves diff --git a/src/sage/schemes/elliptic_curves/constructor.py b/src/sage/schemes/elliptic_curves/constructor.py index f6f7828cb8e..dd10208df38 100644 --- a/src/sage/schemes/elliptic_curves/constructor.py +++ b/src/sage/schemes/elliptic_curves/constructor.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes """ Elliptic curve constructor diff --git a/src/sage/schemes/elliptic_curves/ec_database.py b/src/sage/schemes/elliptic_curves/ec_database.py index f66ee2d1d31..c49485f6d58 100644 --- a/src/sage/schemes/elliptic_curves/ec_database.py +++ b/src/sage/schemes/elliptic_curves/ec_database.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes r""" Tables of elliptic curves of given rank diff --git a/src/sage/schemes/elliptic_curves/ell_curve_isogeny.py b/src/sage/schemes/elliptic_curves/ell_curve_isogeny.py index 68e9c3fc79d..e1d2c62a616 100644 --- a/src/sage/schemes/elliptic_curves/ell_curve_isogeny.py +++ b/src/sage/schemes/elliptic_curves/ell_curve_isogeny.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes r""" Isogenies diff --git a/src/sage/schemes/elliptic_curves/ell_egros.py b/src/sage/schemes/elliptic_curves/ell_egros.py index 42c8d0738be..aca2cdca48f 100644 --- a/src/sage/schemes/elliptic_curves/ell_egros.py +++ b/src/sage/schemes/elliptic_curves/ell_egros.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes r""" Elliptic curves with prescribed good reduction diff --git a/src/sage/schemes/elliptic_curves/ell_field.py b/src/sage/schemes/elliptic_curves/ell_field.py index 5b2b23d81eb..cf95867eb88 100644 --- a/src/sage/schemes/elliptic_curves/ell_field.py +++ b/src/sage/schemes/elliptic_curves/ell_field.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes r""" Elliptic curves over a general field diff --git a/src/sage/schemes/elliptic_curves/ell_finite_field.py b/src/sage/schemes/elliptic_curves/ell_finite_field.py index ec2ccf7f9e0..6032cf6cdac 100644 --- a/src/sage/schemes/elliptic_curves/ell_finite_field.py +++ b/src/sage/schemes/elliptic_curves/ell_finite_field.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes """ Elliptic curves over finite fields diff --git a/src/sage/schemes/elliptic_curves/ell_generic.py b/src/sage/schemes/elliptic_curves/ell_generic.py index 57003863b1b..3c023c761cc 100644 --- a/src/sage/schemes/elliptic_curves/ell_generic.py +++ b/src/sage/schemes/elliptic_curves/ell_generic.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes r""" Elliptic curves over a general ring diff --git a/src/sage/schemes/elliptic_curves/ell_local_data.py b/src/sage/schemes/elliptic_curves/ell_local_data.py index a71bc7fd25f..25fe136d235 100644 --- a/src/sage/schemes/elliptic_curves/ell_local_data.py +++ b/src/sage/schemes/elliptic_curves/ell_local_data.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes r""" Local data for elliptic curves over number fields diff --git a/src/sage/schemes/elliptic_curves/ell_modular_symbols.py b/src/sage/schemes/elliptic_curves/ell_modular_symbols.py index 055c7eaec45..68bd95315d5 100644 --- a/src/sage/schemes/elliptic_curves/ell_modular_symbols.py +++ b/src/sage/schemes/elliptic_curves/ell_modular_symbols.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes r""" Modular symbols attached to elliptic curves over `\QQ` diff --git a/src/sage/schemes/elliptic_curves/ell_number_field.py b/src/sage/schemes/elliptic_curves/ell_number_field.py index 5e7a5731ea8..97b79f12748 100644 --- a/src/sage/schemes/elliptic_curves/ell_number_field.py +++ b/src/sage/schemes/elliptic_curves/ell_number_field.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.rings.number_field r""" Elliptic curves over number fields diff --git a/src/sage/schemes/elliptic_curves/ell_padic_field.py b/src/sage/schemes/elliptic_curves/ell_padic_field.py index ba796d1b75b..416c11e291e 100644 --- a/src/sage/schemes/elliptic_curves/ell_padic_field.py +++ b/src/sage/schemes/elliptic_curves/ell_padic_field.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.rings.padics """ Elliptic curves over padic fields diff --git a/src/sage/schemes/elliptic_curves/ell_point.py b/src/sage/schemes/elliptic_curves/ell_point.py index 1bf84e9a766..aca1aff58ed 100644 --- a/src/sage/schemes/elliptic_curves/ell_point.py +++ b/src/sage/schemes/elliptic_curves/ell_point.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes r""" Points on elliptic curves diff --git a/src/sage/schemes/elliptic_curves/ell_rational_field.py b/src/sage/schemes/elliptic_curves/ell_rational_field.py index 130eaec9e37..2714d90b5c9 100644 --- a/src/sage/schemes/elliptic_curves/ell_rational_field.py +++ b/src/sage/schemes/elliptic_curves/ell_rational_field.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes r""" Elliptic curves over the rational numbers diff --git a/src/sage/schemes/elliptic_curves/ell_tate_curve.py b/src/sage/schemes/elliptic_curves/ell_tate_curve.py index 6f8d861db93..389849e4158 100644 --- a/src/sage/schemes/elliptic_curves/ell_tate_curve.py +++ b/src/sage/schemes/elliptic_curves/ell_tate_curve.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes r""" Tate's parametrisation of `p`-adic curves with multiplicative reduction diff --git a/src/sage/schemes/elliptic_curves/ell_torsion.py b/src/sage/schemes/elliptic_curves/ell_torsion.py index 62b75c79fea..13a658e8b3f 100644 --- a/src/sage/schemes/elliptic_curves/ell_torsion.py +++ b/src/sage/schemes/elliptic_curves/ell_torsion.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes r""" Torsion subgroups of elliptic curves over number fields (including `\QQ`) diff --git a/src/sage/schemes/elliptic_curves/ell_wp.py b/src/sage/schemes/elliptic_curves/ell_wp.py index b7dd052a701..e06bc754419 100644 --- a/src/sage/schemes/elliptic_curves/ell_wp.py +++ b/src/sage/schemes/elliptic_curves/ell_wp.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes r""" Weierstrass `\wp`-function for elliptic curves diff --git a/src/sage/schemes/elliptic_curves/formal_group.py b/src/sage/schemes/elliptic_curves/formal_group.py index a7dcb48d36c..56950f6fde8 100644 --- a/src/sage/schemes/elliptic_curves/formal_group.py +++ b/src/sage/schemes/elliptic_curves/formal_group.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes r""" Formal groups of elliptic curves diff --git a/src/sage/schemes/elliptic_curves/gal_reps.py b/src/sage/schemes/elliptic_curves/gal_reps.py index 9543215ee24..b4de9fc06cf 100644 --- a/src/sage/schemes/elliptic_curves/gal_reps.py +++ b/src/sage/schemes/elliptic_curves/gal_reps.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes r""" Galois representations attached to elliptic curves diff --git a/src/sage/schemes/elliptic_curves/gal_reps_number_field.py b/src/sage/schemes/elliptic_curves/gal_reps_number_field.py index 33ada435181..4c6bb0b1991 100644 --- a/src/sage/schemes/elliptic_curves/gal_reps_number_field.py +++ b/src/sage/schemes/elliptic_curves/gal_reps_number_field.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.rings.number_field r""" Galois representations for elliptic curves over number fields diff --git a/src/sage/schemes/elliptic_curves/gp_simon.py b/src/sage/schemes/elliptic_curves/gp_simon.py index 198ceed7218..a18426078a9 100644 --- a/src/sage/schemes/elliptic_curves/gp_simon.py +++ b/src/sage/schemes/elliptic_curves/gp_simon.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.libs.pari """ Denis Simon's PARI scripts diff --git a/src/sage/schemes/elliptic_curves/heegner.py b/src/sage/schemes/elliptic_curves/heegner.py index 1b5536cc515..88c44aa13e6 100644 --- a/src/sage/schemes/elliptic_curves/heegner.py +++ b/src/sage/schemes/elliptic_curves/heegner.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.rings.number_field r""" Heegner points on elliptic curves over the rational numbers diff --git a/src/sage/schemes/elliptic_curves/height.py b/src/sage/schemes/elliptic_curves/height.py index 78736209ee5..a7972f26d48 100644 --- a/src/sage/schemes/elliptic_curves/height.py +++ b/src/sage/schemes/elliptic_curves/height.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes r""" Canonical heights for elliptic curves over number fields diff --git a/src/sage/schemes/elliptic_curves/hom.py b/src/sage/schemes/elliptic_curves/hom.py index fb7855993ea..264e6ec5e09 100644 --- a/src/sage/schemes/elliptic_curves/hom.py +++ b/src/sage/schemes/elliptic_curves/hom.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes """ Elliptic-curve morphisms diff --git a/src/sage/schemes/elliptic_curves/hom_composite.py b/src/sage/schemes/elliptic_curves/hom_composite.py index ed87349bdcd..c4084b8cadd 100644 --- a/src/sage/schemes/elliptic_curves/hom_composite.py +++ b/src/sage/schemes/elliptic_curves/hom_composite.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes r""" Composite morphisms of elliptic curves diff --git a/src/sage/schemes/elliptic_curves/hom_frobenius.py b/src/sage/schemes/elliptic_curves/hom_frobenius.py index 0c1254e15b0..ad0af797540 100644 --- a/src/sage/schemes/elliptic_curves/hom_frobenius.py +++ b/src/sage/schemes/elliptic_curves/hom_frobenius.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.rings.finite_rings r""" Frobenius isogenies of elliptic curves diff --git a/src/sage/schemes/elliptic_curves/hom_scalar.py b/src/sage/schemes/elliptic_curves/hom_scalar.py index 03f042fd830..eefb881af74 100644 --- a/src/sage/schemes/elliptic_curves/hom_scalar.py +++ b/src/sage/schemes/elliptic_curves/hom_scalar.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes r""" Scalar-multiplication morphisms of elliptic curves diff --git a/src/sage/schemes/elliptic_curves/hom_sum.py b/src/sage/schemes/elliptic_curves/hom_sum.py index 6660035634d..2b27ad0ae02 100644 --- a/src/sage/schemes/elliptic_curves/hom_sum.py +++ b/src/sage/schemes/elliptic_curves/hom_sum.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes r""" Sums of morphisms of elliptic curves diff --git a/src/sage/schemes/elliptic_curves/hom_velusqrt.py b/src/sage/schemes/elliptic_curves/hom_velusqrt.py index fbe4887dbae..174308e15ed 100644 --- a/src/sage/schemes/elliptic_curves/hom_velusqrt.py +++ b/src/sage/schemes/elliptic_curves/hom_velusqrt.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes r""" Square‑root Vélu algorithm for elliptic-curve isogenies diff --git a/src/sage/schemes/elliptic_curves/isogeny_class.py b/src/sage/schemes/elliptic_curves/isogeny_class.py index 1109fd9b93b..5a031b44c4b 100644 --- a/src/sage/schemes/elliptic_curves/isogeny_class.py +++ b/src/sage/schemes/elliptic_curves/isogeny_class.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.rings.number_field r""" Isogeny class of elliptic curves over number fields diff --git a/src/sage/schemes/elliptic_curves/isogeny_small_degree.py b/src/sage/schemes/elliptic_curves/isogeny_small_degree.py index ac68ba3d601..efd1ed9f99c 100644 --- a/src/sage/schemes/elliptic_curves/isogeny_small_degree.py +++ b/src/sage/schemes/elliptic_curves/isogeny_small_degree.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes r""" Isogenies of small prime degree diff --git a/src/sage/schemes/elliptic_curves/jacobian.py b/src/sage/schemes/elliptic_curves/jacobian.py index 23151109453..16bdf2d11b4 100644 --- a/src/sage/schemes/elliptic_curves/jacobian.py +++ b/src/sage/schemes/elliptic_curves/jacobian.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes """ Construct elliptic curves as Jacobians diff --git a/src/sage/schemes/elliptic_curves/kodaira_symbol.py b/src/sage/schemes/elliptic_curves/kodaira_symbol.py index b4bbe78b951..05ee28d283a 100644 --- a/src/sage/schemes/elliptic_curves/kodaira_symbol.py +++ b/src/sage/schemes/elliptic_curves/kodaira_symbol.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes r""" Kodaira symbols diff --git a/src/sage/schemes/elliptic_curves/kraus.py b/src/sage/schemes/elliptic_curves/kraus.py index 92a74f4e718..796285d86e7 100644 --- a/src/sage/schemes/elliptic_curves/kraus.py +++ b/src/sage/schemes/elliptic_curves/kraus.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes r""" Global and semi-global minimal models for elliptic curves over number fields diff --git a/src/sage/schemes/elliptic_curves/lseries_ell.py b/src/sage/schemes/elliptic_curves/lseries_ell.py index f3f1533f7d0..3c45836f02d 100644 --- a/src/sage/schemes/elliptic_curves/lseries_ell.py +++ b/src/sage/schemes/elliptic_curves/lseries_ell.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes """ `L`-series for elliptic curves diff --git a/src/sage/schemes/elliptic_curves/mod5family.py b/src/sage/schemes/elliptic_curves/mod5family.py index 64069c342b7..19943d6cf55 100644 --- a/src/sage/schemes/elliptic_curves/mod5family.py +++ b/src/sage/schemes/elliptic_curves/mod5family.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes """ Elliptic curves with congruent mod-5 representation diff --git a/src/sage/schemes/elliptic_curves/mod_poly.py b/src/sage/schemes/elliptic_curves/mod_poly.py index 2482bb0da5a..a2b2d5fef14 100644 --- a/src/sage/schemes/elliptic_curves/mod_poly.py +++ b/src/sage/schemes/elliptic_curves/mod_poly.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes r""" Modular polynomials for elliptic curves diff --git a/src/sage/schemes/elliptic_curves/mod_sym_num.pyx b/src/sage/schemes/elliptic_curves/mod_sym_num.pyx index 7cf14a0028b..21da839c33e 100644 --- a/src/sage/schemes/elliptic_curves/mod_sym_num.pyx +++ b/src/sage/schemes/elliptic_curves/mod_sym_num.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # -*- coding: utf-8 -*- #cdivision=False #cython: cdivision_warnings=False diff --git a/src/sage/schemes/elliptic_curves/modular_parametrization.py b/src/sage/schemes/elliptic_curves/modular_parametrization.py index 2ed663e31cb..0f3e4d4bc04 100644 --- a/src/sage/schemes/elliptic_curves/modular_parametrization.py +++ b/src/sage/schemes/elliptic_curves/modular_parametrization.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes r""" Modular parametrization of elliptic curves over `\QQ` diff --git a/src/sage/schemes/elliptic_curves/padic_lseries.py b/src/sage/schemes/elliptic_curves/padic_lseries.py index 96177ed417c..2f7a9d6ca6b 100644 --- a/src/sage/schemes/elliptic_curves/padic_lseries.py +++ b/src/sage/schemes/elliptic_curves/padic_lseries.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.rings.padics r""" `p`-adic `L`-functions of elliptic curves diff --git a/src/sage/schemes/elliptic_curves/padics.py b/src/sage/schemes/elliptic_curves/padics.py index 6f05c10e6b5..f2ee9ca3da9 100644 --- a/src/sage/schemes/elliptic_curves/padics.py +++ b/src/sage/schemes/elliptic_curves/padics.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.rings.padics # # All these methods are imported in EllipticCurve_rational_field, diff --git a/src/sage/schemes/elliptic_curves/period_lattice.py b/src/sage/schemes/elliptic_curves/period_lattice.py index c12e3f12cbc..4885423eb45 100644 --- a/src/sage/schemes/elliptic_curves/period_lattice.py +++ b/src/sage/schemes/elliptic_curves/period_lattice.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes r""" Period lattices of elliptic curves and related functions diff --git a/src/sage/schemes/elliptic_curves/period_lattice_region.pyx b/src/sage/schemes/elliptic_curves/period_lattice_region.pyx index 06e6525f5c3..09431346a03 100644 --- a/src/sage/schemes/elliptic_curves/period_lattice_region.pyx +++ b/src/sage/schemes/elliptic_curves/period_lattice_region.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.rings.complex_double sage.symbolic r""" Regions in fundamental domains of period lattices diff --git a/src/sage/schemes/elliptic_curves/saturation.py b/src/sage/schemes/elliptic_curves/saturation.py index 5e4c66ad78a..33e277c8f83 100644 --- a/src/sage/schemes/elliptic_curves/saturation.py +++ b/src/sage/schemes/elliptic_curves/saturation.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.rings.finite_rings sage.rings.number_field r""" Saturation of Mordell-Weil groups of elliptic curves over number fields diff --git a/src/sage/schemes/elliptic_curves/sha_tate.py b/src/sage/schemes/elliptic_curves/sha_tate.py index b5a7b48bf0a..d839f496654 100644 --- a/src/sage/schemes/elliptic_curves/sha_tate.py +++ b/src/sage/schemes/elliptic_curves/sha_tate.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes r""" Tate-Shafarevich group diff --git a/src/sage/schemes/elliptic_curves/weierstrass_morphism.py b/src/sage/schemes/elliptic_curves/weierstrass_morphism.py index 952d19ad0a6..b0bba267b81 100644 --- a/src/sage/schemes/elliptic_curves/weierstrass_morphism.py +++ b/src/sage/schemes/elliptic_curves/weierstrass_morphism.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes r""" Isomorphisms between Weierstrass models of elliptic curves diff --git a/src/sage/schemes/elliptic_curves/weierstrass_transform.py b/src/sage/schemes/elliptic_curves/weierstrass_transform.py index 07f897fb315..b5f1aab85fa 100644 --- a/src/sage/schemes/elliptic_curves/weierstrass_transform.py +++ b/src/sage/schemes/elliptic_curves/weierstrass_transform.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes """ Morphism to bring a genus-one curve into Weierstrass form diff --git a/src/sage/schemes/generic/algebraic_scheme.py b/src/sage/schemes/generic/algebraic_scheme.py index 2b3c61b5017..77eb2d2bb1d 100644 --- a/src/sage/schemes/generic/algebraic_scheme.py +++ b/src/sage/schemes/generic/algebraic_scheme.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Algebraic schemes diff --git a/src/sage/schemes/generic/all.py b/src/sage/schemes/generic/all.py index b8ba9585bfa..ae5fbd1e642 100644 --- a/src/sage/schemes/generic/all.py +++ b/src/sage/schemes/generic/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # code exports from .spec import Spec diff --git a/src/sage/schemes/generic/ambient_space.py b/src/sage/schemes/generic/ambient_space.py index 09d26860af0..2cf6a760202 100644 --- a/src/sage/schemes/generic/ambient_space.py +++ b/src/sage/schemes/generic/ambient_space.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Ambient spaces """ diff --git a/src/sage/schemes/generic/divisor.py b/src/sage/schemes/generic/divisor.py index 6a55c3e8ce7..3ee18861c8e 100644 --- a/src/sage/schemes/generic/divisor.py +++ b/src/sage/schemes/generic/divisor.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.schemes """ Divisors on schemes diff --git a/src/sage/schemes/generic/divisor_group.py b/src/sage/schemes/generic/divisor_group.py index 5dfd66a1bb9..775bc38927a 100644 --- a/src/sage/schemes/generic/divisor_group.py +++ b/src/sage/schemes/generic/divisor_group.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Divisor groups diff --git a/src/sage/schemes/generic/glue.py b/src/sage/schemes/generic/glue.py index 76bd9a1ab9e..a9d8d536b42 100644 --- a/src/sage/schemes/generic/glue.py +++ b/src/sage/schemes/generic/glue.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Scheme obtained by gluing two other schemes """ diff --git a/src/sage/schemes/generic/homset.py b/src/sage/schemes/generic/homset.py index a9a0f0735df..89fe522b00a 100644 --- a/src/sage/schemes/generic/homset.py +++ b/src/sage/schemes/generic/homset.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Set of homomorphisms between two schemes diff --git a/src/sage/schemes/generic/hypersurface.py b/src/sage/schemes/generic/hypersurface.py index f4991527c78..07b9683ec66 100644 --- a/src/sage/schemes/generic/hypersurface.py +++ b/src/sage/schemes/generic/hypersurface.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.schemes r""" Hypersurfaces in affine and projective space diff --git a/src/sage/schemes/generic/morphism.py b/src/sage/schemes/generic/morphism.py index 4405268fed6..82fcb7c95aa 100644 --- a/src/sage/schemes/generic/morphism.py +++ b/src/sage/schemes/generic/morphism.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Scheme morphism diff --git a/src/sage/schemes/generic/point.py b/src/sage/schemes/generic/point.py index c65963e3eaa..4ee3ad50448 100644 --- a/src/sage/schemes/generic/point.py +++ b/src/sage/schemes/generic/point.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Points on schemes """ diff --git a/src/sage/schemes/generic/scheme.py b/src/sage/schemes/generic/scheme.py index 88e7e6a61c2..8fa5c7ea2a3 100644 --- a/src/sage/schemes/generic/scheme.py +++ b/src/sage/schemes/generic/scheme.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Schemes diff --git a/src/sage/schemes/generic/spec.py b/src/sage/schemes/generic/spec.py index 92453a86bf4..31479d51a51 100644 --- a/src/sage/schemes/generic/spec.py +++ b/src/sage/schemes/generic/spec.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ The Spec functor diff --git a/src/sage/schemes/hyperelliptic_curves/all.py b/src/sage/schemes/hyperelliptic_curves/all.py index ff4d929e891..67e5ee7b09d 100644 --- a/src/sage/schemes/hyperelliptic_curves/all.py +++ b/src/sage/schemes/hyperelliptic_curves/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes """ Tests for deprecations of imports in global namespace from :trac:`28064`:: diff --git a/src/sage/schemes/hyperelliptic_curves/constructor.py b/src/sage/schemes/hyperelliptic_curves/constructor.py index 776b49f394e..1b24f1d8281 100644 --- a/src/sage/schemes/hyperelliptic_curves/constructor.py +++ b/src/sage/schemes/hyperelliptic_curves/constructor.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes """ Hyperelliptic curve constructor diff --git a/src/sage/schemes/hyperelliptic_curves/hypellfrob.pyx b/src/sage/schemes/hyperelliptic_curves/hypellfrob.pyx index b4144780c1d..093d52e3e25 100644 --- a/src/sage/schemes/hyperelliptic_curves/hypellfrob.pyx +++ b/src/sage/schemes/hyperelliptic_curves/hypellfrob.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-ntl # distutils: language = c++ # distutils: sources = sage/schemes/hyperelliptic_curves/hypellfrob/hypellfrob.cpp sage/schemes/hyperelliptic_curves/hypellfrob/recurrences_ntl.cpp # distutils: depends = sage/schemes/hyperelliptic_curves/hypellfrob/hypellfrob.h sage/schemes/hyperelliptic_curves/hypellfrob/recurrences_ntl.h diff --git a/src/sage/schemes/hyperelliptic_curves/hyperelliptic_finite_field.py b/src/sage/schemes/hyperelliptic_curves/hyperelliptic_finite_field.py index a4cabb5bb93..937f2149484 100644 --- a/src/sage/schemes/hyperelliptic_curves/hyperelliptic_finite_field.py +++ b/src/sage/schemes/hyperelliptic_curves/hyperelliptic_finite_field.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.rings.finite_rings r""" Hyperelliptic curves over a finite field diff --git a/src/sage/schemes/hyperelliptic_curves/hyperelliptic_g2.py b/src/sage/schemes/hyperelliptic_curves/hyperelliptic_g2.py index 7a8fe986448..f51e1a1a3ee 100644 --- a/src/sage/schemes/hyperelliptic_curves/hyperelliptic_g2.py +++ b/src/sage/schemes/hyperelliptic_curves/hyperelliptic_g2.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes """ Hyperelliptic curves of genus 2 over a general ring """ diff --git a/src/sage/schemes/hyperelliptic_curves/hyperelliptic_generic.py b/src/sage/schemes/hyperelliptic_curves/hyperelliptic_generic.py index 8c94e32705a..c0c1c2fc932 100644 --- a/src/sage/schemes/hyperelliptic_curves/hyperelliptic_generic.py +++ b/src/sage/schemes/hyperelliptic_curves/hyperelliptic_generic.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes """ Hyperelliptic curves over a general ring diff --git a/src/sage/schemes/hyperelliptic_curves/hyperelliptic_padic_field.py b/src/sage/schemes/hyperelliptic_curves/hyperelliptic_padic_field.py index 619619dce30..7d0a775c469 100644 --- a/src/sage/schemes/hyperelliptic_curves/hyperelliptic_padic_field.py +++ b/src/sage/schemes/hyperelliptic_curves/hyperelliptic_padic_field.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.rings.padics """ Hyperelliptic curves over a `p`-adic field diff --git a/src/sage/schemes/hyperelliptic_curves/hyperelliptic_rational_field.py b/src/sage/schemes/hyperelliptic_curves/hyperelliptic_rational_field.py index f9337b0fbc0..eccde043014 100644 --- a/src/sage/schemes/hyperelliptic_curves/hyperelliptic_rational_field.py +++ b/src/sage/schemes/hyperelliptic_curves/hyperelliptic_rational_field.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes """ Hyperelliptic curves over the rationals """ diff --git a/src/sage/schemes/hyperelliptic_curves/invariants.py b/src/sage/schemes/hyperelliptic_curves/invariants.py index a0101f60a3c..d5ff5778df0 100644 --- a/src/sage/schemes/hyperelliptic_curves/invariants.py +++ b/src/sage/schemes/hyperelliptic_curves/invariants.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes r""" Compute invariants of quintics and sextics via 'Ueberschiebung' diff --git a/src/sage/schemes/hyperelliptic_curves/jacobian_endomorphism_utils.py b/src/sage/schemes/hyperelliptic_curves/jacobian_endomorphism_utils.py index 2ceb709b646..a073444055c 100644 --- a/src/sage/schemes/hyperelliptic_curves/jacobian_endomorphism_utils.py +++ b/src/sage/schemes/hyperelliptic_curves/jacobian_endomorphism_utils.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes r""" Some functions regarding geometric endomorphism rings of Jacobians of hyperelliptic curves. diff --git a/src/sage/schemes/hyperelliptic_curves/jacobian_g2.py b/src/sage/schemes/hyperelliptic_curves/jacobian_g2.py index b4b4259326e..9b17869dde1 100644 --- a/src/sage/schemes/hyperelliptic_curves/jacobian_g2.py +++ b/src/sage/schemes/hyperelliptic_curves/jacobian_g2.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes """ Jacobian of a hyperelliptic curve of genus 2 """ diff --git a/src/sage/schemes/hyperelliptic_curves/jacobian_generic.py b/src/sage/schemes/hyperelliptic_curves/jacobian_generic.py index 2e91a96e02a..015efdd184d 100644 --- a/src/sage/schemes/hyperelliptic_curves/jacobian_generic.py +++ b/src/sage/schemes/hyperelliptic_curves/jacobian_generic.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes """ Jacobian of a general hyperelliptic curve """ diff --git a/src/sage/schemes/hyperelliptic_curves/jacobian_homset.py b/src/sage/schemes/hyperelliptic_curves/jacobian_homset.py index a5f4f63876c..46cdca7851c 100644 --- a/src/sage/schemes/hyperelliptic_curves/jacobian_homset.py +++ b/src/sage/schemes/hyperelliptic_curves/jacobian_homset.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes """ Rational point sets on a Jacobian diff --git a/src/sage/schemes/hyperelliptic_curves/jacobian_morphism.py b/src/sage/schemes/hyperelliptic_curves/jacobian_morphism.py index 53545229451..05082eccb36 100644 --- a/src/sage/schemes/hyperelliptic_curves/jacobian_morphism.py +++ b/src/sage/schemes/hyperelliptic_curves/jacobian_morphism.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes r""" Jacobian 'morphism' as a class in the Picard group diff --git a/src/sage/schemes/hyperelliptic_curves/kummer_surface.py b/src/sage/schemes/hyperelliptic_curves/kummer_surface.py index dadf1200f01..ead0f84dba6 100644 --- a/src/sage/schemes/hyperelliptic_curves/kummer_surface.py +++ b/src/sage/schemes/hyperelliptic_curves/kummer_surface.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes """ Kummer surfaces over a general ring """ diff --git a/src/sage/schemes/hyperelliptic_curves/mestre.py b/src/sage/schemes/hyperelliptic_curves/mestre.py index 7687cff0916..015dfbc420c 100644 --- a/src/sage/schemes/hyperelliptic_curves/mestre.py +++ b/src/sage/schemes/hyperelliptic_curves/mestre.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes r""" Mestre's algorithm diff --git a/src/sage/schemes/hyperelliptic_curves/monsky_washnitzer.py b/src/sage/schemes/hyperelliptic_curves/monsky_washnitzer.py index fb3b8bd8d4b..f43b61ed238 100644 --- a/src/sage/schemes/hyperelliptic_curves/monsky_washnitzer.py +++ b/src/sage/schemes/hyperelliptic_curves/monsky_washnitzer.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes r""" Computation of Frobenius matrix on Monsky-Washnitzer cohomology diff --git a/src/sage/schemes/jacobians/abstract_jacobian.py b/src/sage/schemes/jacobians/abstract_jacobian.py index 9ab2ef283ae..d5e7c831515 100644 --- a/src/sage/schemes/jacobians/abstract_jacobian.py +++ b/src/sage/schemes/jacobians/abstract_jacobian.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes """ Jacobians of curves diff --git a/src/sage/schemes/jacobians/all.py b/src/sage/schemes/jacobians/all.py index ec769450947..c536ee16605 100644 --- a/src/sage/schemes/jacobians/all.py +++ b/src/sage/schemes/jacobians/all.py @@ -1 +1,2 @@ +# sage_setup: distribution = sagemath-schemes #from abstract_jacobian import is_Jacobian, Jacobian diff --git a/src/sage/schemes/overview.py b/src/sage/schemes/overview.py index bd83daafac0..ed71a5993a1 100644 --- a/src/sage/schemes/overview.py +++ b/src/sage/schemes/overview.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes r""" Scheme implementation overview diff --git a/src/sage/schemes/plane_conics/all.py b/src/sage/schemes/plane_conics/all.py index b0237ba2e7c..8e87131d798 100644 --- a/src/sage/schemes/plane_conics/all.py +++ b/src/sage/schemes/plane_conics/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes """ Plane conics """ diff --git a/src/sage/schemes/plane_conics/con_field.py b/src/sage/schemes/plane_conics/con_field.py index 26bea07db90..b95799506b7 100644 --- a/src/sage/schemes/plane_conics/con_field.py +++ b/src/sage/schemes/plane_conics/con_field.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes r""" Projective plane conics over a field diff --git a/src/sage/schemes/plane_conics/con_finite_field.py b/src/sage/schemes/plane_conics/con_finite_field.py index e62d8db828f..30b2a19357d 100644 --- a/src/sage/schemes/plane_conics/con_finite_field.py +++ b/src/sage/schemes/plane_conics/con_finite_field.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.rings.finite_rings r""" Projective plane conics over finite fields diff --git a/src/sage/schemes/plane_conics/con_number_field.py b/src/sage/schemes/plane_conics/con_number_field.py index af0bdc5f0e0..2cff64566b5 100644 --- a/src/sage/schemes/plane_conics/con_number_field.py +++ b/src/sage/schemes/plane_conics/con_number_field.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs sage.rings.number_field r""" Projective plane conics over a number field diff --git a/src/sage/schemes/plane_conics/con_rational_field.py b/src/sage/schemes/plane_conics/con_rational_field.py index f59468d3b90..51cd9e8248b 100644 --- a/src/sage/schemes/plane_conics/con_rational_field.py +++ b/src/sage/schemes/plane_conics/con_rational_field.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes r""" Projective plane conics over `\QQ` diff --git a/src/sage/schemes/plane_conics/con_rational_function_field.py b/src/sage/schemes/plane_conics/con_rational_function_field.py index a5dcfb9bf1b..aeaec0c9b53 100644 --- a/src/sage/schemes/plane_conics/con_rational_function_field.py +++ b/src/sage/schemes/plane_conics/con_rational_function_field.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes r""" Projective plane conics over a rational function field diff --git a/src/sage/schemes/plane_conics/constructor.py b/src/sage/schemes/plane_conics/constructor.py index 7bb681a4268..a8658637383 100644 --- a/src/sage/schemes/plane_conics/constructor.py +++ b/src/sage/schemes/plane_conics/constructor.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes r""" Plane conic constructor diff --git a/src/sage/schemes/plane_quartics/all.py b/src/sage/schemes/plane_quartics/all.py index 6986f1ec1fa..deabe3c9d04 100644 --- a/src/sage/schemes/plane_quartics/all.py +++ b/src/sage/schemes/plane_quartics/all.py @@ -1 +1,2 @@ +# sage_setup: distribution = sagemath-schemes from .quartic_constructor import QuarticCurve diff --git a/src/sage/schemes/plane_quartics/quartic_constructor.py b/src/sage/schemes/plane_quartics/quartic_constructor.py index 37c06a1f5c9..d091cce9731 100644 --- a/src/sage/schemes/plane_quartics/quartic_constructor.py +++ b/src/sage/schemes/plane_quartics/quartic_constructor.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes """ Quartic curve constructor """ diff --git a/src/sage/schemes/plane_quartics/quartic_generic.py b/src/sage/schemes/plane_quartics/quartic_generic.py index ac2cdd84d82..fcdf38f3abf 100644 --- a/src/sage/schemes/plane_quartics/quartic_generic.py +++ b/src/sage/schemes/plane_quartics/quartic_generic.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes """ Plane quartic curves over a general ring diff --git a/src/sage/schemes/product_projective/all.py b/src/sage/schemes/product_projective/all.py index c9ee0d6b51f..9b75e76f72f 100644 --- a/src/sage/schemes/product_projective/all.py +++ b/src/sage/schemes/product_projective/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories from sage.misc.lazy_import import lazy_import lazy_import('sage.schemes.product_projective.space', 'ProductProjectiveSpaces') diff --git a/src/sage/schemes/product_projective/homset.py b/src/sage/schemes/product_projective/homset.py index 42d463077ee..261e88647d2 100644 --- a/src/sage/schemes/product_projective/homset.py +++ b/src/sage/schemes/product_projective/homset.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Set of homomorphisms diff --git a/src/sage/schemes/product_projective/morphism.py b/src/sage/schemes/product_projective/morphism.py index d5b1974164b..1326f3ea358 100644 --- a/src/sage/schemes/product_projective/morphism.py +++ b/src/sage/schemes/product_projective/morphism.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Polynomial morphisms for products of projective spaces diff --git a/src/sage/schemes/product_projective/point.py b/src/sage/schemes/product_projective/point.py index 6de7cf74d7d..456755d5c03 100644 --- a/src/sage/schemes/product_projective/point.py +++ b/src/sage/schemes/product_projective/point.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Points for products of projective spaces diff --git a/src/sage/schemes/product_projective/rational_point.py b/src/sage/schemes/product_projective/rational_point.py index a4488647063..f4d55e60bbc 100644 --- a/src/sage/schemes/product_projective/rational_point.py +++ b/src/sage/schemes/product_projective/rational_point.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Enumeration of rational points on product projective schemes diff --git a/src/sage/schemes/product_projective/space.py b/src/sage/schemes/product_projective/space.py index 3fee46cc15a..0dea77c2f2f 100644 --- a/src/sage/schemes/product_projective/space.py +++ b/src/sage/schemes/product_projective/space.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Products of projective spaces diff --git a/src/sage/schemes/product_projective/subscheme.py b/src/sage/schemes/product_projective/subscheme.py index 35433ba565b..0627823f6b1 100644 --- a/src/sage/schemes/product_projective/subscheme.py +++ b/src/sage/schemes/product_projective/subscheme.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Subschemes of products of projective spaces diff --git a/src/sage/schemes/projective/all.py b/src/sage/schemes/projective/all.py index 44e92ee5f23..c0814c6841e 100644 --- a/src/sage/schemes/projective/all.py +++ b/src/sage/schemes/projective/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """nodoctest all.py -- export of projective schemes to Sage """ diff --git a/src/sage/schemes/projective/proj_bdd_height.py b/src/sage/schemes/projective/proj_bdd_height.py index 86100cf832a..b1668fe75e6 100644 --- a/src/sage/schemes/projective/proj_bdd_height.py +++ b/src/sage/schemes/projective/proj_bdd_height.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Points of bounded height in projective spaces diff --git a/src/sage/schemes/projective/projective_homset.py b/src/sage/schemes/projective/projective_homset.py index 2a61c1dd17c..1c83ff225a2 100644 --- a/src/sage/schemes/projective/projective_homset.py +++ b/src/sage/schemes/projective/projective_homset.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Set of homomorphisms between two projective schemes diff --git a/src/sage/schemes/projective/projective_morphism.py b/src/sage/schemes/projective/projective_morphism.py index fe408bd1d42..b8be8b2b90c 100644 --- a/src/sage/schemes/projective/projective_morphism.py +++ b/src/sage/schemes/projective/projective_morphism.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Morphisms on projective schemes diff --git a/src/sage/schemes/projective/projective_point.py b/src/sage/schemes/projective/projective_point.py index 55bd5354976..d4140ff2ec1 100644 --- a/src/sage/schemes/projective/projective_point.py +++ b/src/sage/schemes/projective/projective_point.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Points on projective varieties diff --git a/src/sage/schemes/projective/projective_rational_point.py b/src/sage/schemes/projective/projective_rational_point.py index 6e08612f88b..3a42086458b 100644 --- a/src/sage/schemes/projective/projective_rational_point.py +++ b/src/sage/schemes/projective/projective_rational_point.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Enumeration of rational points on projective schemes diff --git a/src/sage/schemes/projective/projective_space.py b/src/sage/schemes/projective/projective_space.py index 5c55a62106e..d4d041550cf 100644 --- a/src/sage/schemes/projective/projective_space.py +++ b/src/sage/schemes/projective/projective_space.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Projective `n` space over a ring diff --git a/src/sage/schemes/projective/projective_subscheme.py b/src/sage/schemes/projective/projective_subscheme.py index df649db61a6..b6043428ac9 100644 --- a/src/sage/schemes/projective/projective_subscheme.py +++ b/src/sage/schemes/projective/projective_subscheme.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Subschemes of projective space diff --git a/src/sage/schemes/riemann_surfaces/all.py b/src/sage/schemes/riemann_surfaces/all.py index e69de29bb2d..c05f67159dc 100644 --- a/src/sage/schemes/riemann_surfaces/all.py +++ b/src/sage/schemes/riemann_surfaces/all.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-schemes diff --git a/src/sage/schemes/riemann_surfaces/riemann_surface.py b/src/sage/schemes/riemann_surfaces/riemann_surface.py index a7760fa7101..3a2583301c4 100644 --- a/src/sage/schemes/riemann_surfaces/riemann_surface.py +++ b/src/sage/schemes/riemann_surfaces/riemann_surface.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-schemes # sage.doctest: needs scipy sage.graphs sage.groups r""" Riemann matrices and endomorphism rings of algebraic Riemann surfaces diff --git a/src/sage/schemes/toric/all.py b/src/sage/schemes/toric/all.py index 71ad52ef5c6..38cebb09a91 100644 --- a/src/sage/schemes/toric/all.py +++ b/src/sage/schemes/toric/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra # sage.doctest: needs sage.geometry.polyhedron sage.graphs from sage.misc.lazy_import import lazy_import diff --git a/src/sage/schemes/toric/chow_group.py b/src/sage/schemes/toric/chow_group.py index 9b612ece0eb..33ea0b23c10 100644 --- a/src/sage/schemes/toric/chow_group.py +++ b/src/sage/schemes/toric/chow_group.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra # sage.doctest: needs sage.geometry.polyhedron sage.graphs r""" The Chow group of a toric variety diff --git a/src/sage/schemes/toric/divisor.py b/src/sage/schemes/toric/divisor.py index 796d667c518..e94c6c3d1e5 100644 --- a/src/sage/schemes/toric/divisor.py +++ b/src/sage/schemes/toric/divisor.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra # sage.doctest: needs sage.geometry.polyhedron sage.graphs r""" Toric divisors and divisor classes diff --git a/src/sage/schemes/toric/divisor_class.pyx b/src/sage/schemes/toric/divisor_class.pyx index 3c9a9143eaf..2ed6a93f184 100644 --- a/src/sage/schemes/toric/divisor_class.pyx +++ b/src/sage/schemes/toric/divisor_class.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra # sage.doctest: needs sage.geometry.polyhedron sage.graphs r""" Toric rational divisor classes diff --git a/src/sage/schemes/toric/fano_variety.py b/src/sage/schemes/toric/fano_variety.py index b7f2c2ab6ac..3e7d3d119b8 100644 --- a/src/sage/schemes/toric/fano_variety.py +++ b/src/sage/schemes/toric/fano_variety.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra # sage.doctest: needs sage.geometry.polyhedron sage.graphs r""" Fano toric varieties diff --git a/src/sage/schemes/toric/homset.py b/src/sage/schemes/toric/homset.py index e02d0b92078..1c9bf503313 100644 --- a/src/sage/schemes/toric/homset.py +++ b/src/sage/schemes/toric/homset.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra # sage.doctest: needs sage.geometry.polyhedron sage.graphs r""" Set of homomorphisms between two toric varieties diff --git a/src/sage/schemes/toric/ideal.py b/src/sage/schemes/toric/ideal.py index 6d611719c14..4537662629f 100644 --- a/src/sage/schemes/toric/ideal.py +++ b/src/sage/schemes/toric/ideal.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra # sage.doctest: needs sage.geometry.polyhedron sage.graphs sage.libs.singular r""" Toric ideals diff --git a/src/sage/schemes/toric/library.py b/src/sage/schemes/toric/library.py index c09c404d64a..800ed825f85 100644 --- a/src/sage/schemes/toric/library.py +++ b/src/sage/schemes/toric/library.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra # sage.doctest: needs sage.geometry.polyhedron sage.graphs r""" Library of toric varieties diff --git a/src/sage/schemes/toric/morphism.py b/src/sage/schemes/toric/morphism.py index 5d64d632f97..5bd0c04eb78 100644 --- a/src/sage/schemes/toric/morphism.py +++ b/src/sage/schemes/toric/morphism.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra # sage.doctest: needs sage.geometry.polyhedron sage.graphs r""" Morphisms of toric varieties diff --git a/src/sage/schemes/toric/points.py b/src/sage/schemes/toric/points.py index 20507e5c0af..ce7dd62a7fb 100644 --- a/src/sage/schemes/toric/points.py +++ b/src/sage/schemes/toric/points.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra # sage.doctest: needs sage.geometry.polyhedron sage.graphs """ Enumerate points of a toric variety diff --git a/src/sage/schemes/toric/sheaf/all.py b/src/sage/schemes/toric/sheaf/all.py index e69de29bb2d..ca4c26e905d 100644 --- a/src/sage/schemes/toric/sheaf/all.py +++ b/src/sage/schemes/toric/sheaf/all.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-polyhedra diff --git a/src/sage/schemes/toric/sheaf/constructor.py b/src/sage/schemes/toric/sheaf/constructor.py index 72ed52a0115..dccf6a9ff58 100644 --- a/src/sage/schemes/toric/sheaf/constructor.py +++ b/src/sage/schemes/toric/sheaf/constructor.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra # sage.doctest: needs sage.geometry.polyhedron sage.graphs r""" Construct sheaves on toric varieties diff --git a/src/sage/schemes/toric/sheaf/klyachko.py b/src/sage/schemes/toric/sheaf/klyachko.py index 4325e77f186..9db9dacc014 100644 --- a/src/sage/schemes/toric/sheaf/klyachko.py +++ b/src/sage/schemes/toric/sheaf/klyachko.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra # sage.doctest: needs sage.geometry.polyhedron sage.graphs """ Klyachko bundles and sheaves diff --git a/src/sage/schemes/toric/toric_subscheme.py b/src/sage/schemes/toric/toric_subscheme.py index 3d481846b88..27e2668c28b 100644 --- a/src/sage/schemes/toric/toric_subscheme.py +++ b/src/sage/schemes/toric/toric_subscheme.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra # sage.doctest: needs sage.geometry.polyhedron sage.graphs r""" Subschemes of toric space diff --git a/src/sage/schemes/toric/variety.py b/src/sage/schemes/toric/variety.py index 9b06bd0223c..860b8b9bd7a 100644 --- a/src/sage/schemes/toric/variety.py +++ b/src/sage/schemes/toric/variety.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra # sage.doctest: needs sage.geometry.polyhedron sage.graphs r""" Toric varieties diff --git a/src/sage/schemes/toric/weierstrass.py b/src/sage/schemes/toric/weierstrass.py index b727e586141..3fc85ac8d8c 100644 --- a/src/sage/schemes/toric/weierstrass.py +++ b/src/sage/schemes/toric/weierstrass.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra # sage.doctest: needs sage.geometry.polyhedron sage.graphs r""" Weierstrass form of a toric elliptic curve diff --git a/src/sage/schemes/toric/weierstrass_covering.py b/src/sage/schemes/toric/weierstrass_covering.py index 128c30d33a8..b5a743210a7 100644 --- a/src/sage/schemes/toric/weierstrass_covering.py +++ b/src/sage/schemes/toric/weierstrass_covering.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra # sage.doctest: needs sage.geometry.polyhedron sage.graphs r""" Map to the Weierstrass form of a toric elliptic curve diff --git a/src/sage/schemes/toric/weierstrass_higher.py b/src/sage/schemes/toric/weierstrass_higher.py index 6e2cc57e59d..80ea9fcff0c 100644 --- a/src/sage/schemes/toric/weierstrass_higher.py +++ b/src/sage/schemes/toric/weierstrass_higher.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-polyhedra # sage.doctest: needs sage.geometry.polyhedron sage.graphs r""" Weierstrass for elliptic curves in higher codimension diff --git a/src/sage/sets/all.py b/src/sage/sets/all.py index 1c1a69e57a7..5102b8b4157 100644 --- a/src/sage/sets/all.py +++ b/src/sage/sets/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories from sage.misc.lazy_import import lazy_import lazy_import('sage.sets.real_set', 'RealSet') from .set import Set diff --git a/src/sage/sets/all__sagemath_objects.py b/src/sage/sets/all__sagemath_objects.py index 38e44245ad3..40da49fdd73 100644 --- a/src/sage/sets/all__sagemath_objects.py +++ b/src/sage/sets/all__sagemath_objects.py @@ -1,2 +1,3 @@ +# sage_setup: distribution = sagemath-objects # The presence of this file ensures that sage_setup for sagemath-objects # considers this directory as a namespace package diff --git a/src/sage/sets/cartesian_product.py b/src/sage/sets/cartesian_product.py index 9d0bb024a12..5b2eac72f29 100644 --- a/src/sage/sets/cartesian_product.py +++ b/src/sage/sets/cartesian_product.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Cartesian products diff --git a/src/sage/sets/condition_set.py b/src/sage/sets/condition_set.py index e29f0124224..10e05f9ce1d 100644 --- a/src/sage/sets/condition_set.py +++ b/src/sage/sets/condition_set.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Subsets of a Universe Defined by Predicates """ diff --git a/src/sage/sets/disjoint_set.pxd b/src/sage/sets/disjoint_set.pxd index 1ec38f5966b..381af463cdf 100644 --- a/src/sage/sets/disjoint_set.pxd +++ b/src/sage/sets/disjoint_set.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories #***************************************************************************** # Copyright (C) 2009 Sebastien Labbe # diff --git a/src/sage/sets/disjoint_set.pyx b/src/sage/sets/disjoint_set.pyx index 3d2f4dd1710..c0ad99eadcf 100644 --- a/src/sage/sets/disjoint_set.pyx +++ b/src/sage/sets/disjoint_set.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # -*- coding: utf-8 -*- r""" Disjoint-set data structure diff --git a/src/sage/sets/disjoint_union_enumerated_sets.py b/src/sage/sets/disjoint_union_enumerated_sets.py index d6e7fbdde72..613cd04691f 100644 --- a/src/sage/sets/disjoint_union_enumerated_sets.py +++ b/src/sage/sets/disjoint_union_enumerated_sets.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Disjoint union of enumerated sets diff --git a/src/sage/sets/family.pxd b/src/sage/sets/family.pxd index f5d8f755ecc..5459ef38e0b 100644 --- a/src/sage/sets/family.pxd +++ b/src/sage/sets/family.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories from sage.structure.parent cimport Parent diff --git a/src/sage/sets/family.pyx b/src/sage/sets/family.pyx index d1c102261a8..9e5f95116ba 100644 --- a/src/sage/sets/family.pyx +++ b/src/sage/sets/family.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Families diff --git a/src/sage/sets/finite_enumerated_set.py b/src/sage/sets/finite_enumerated_set.py index cc8deaea4d8..89fa689a3e8 100644 --- a/src/sage/sets/finite_enumerated_set.py +++ b/src/sage/sets/finite_enumerated_set.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Finite Enumerated Sets """ diff --git a/src/sage/sets/finite_set_map_cy.pxd b/src/sage/sets/finite_set_map_cy.pxd index 998e4f58729..3b238d55595 100644 --- a/src/sage/sets/finite_set_map_cy.pxd +++ b/src/sage/sets/finite_set_map_cy.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories #***************************************************************************** # Copyright (C) 2010 Florent Hivert , # diff --git a/src/sage/sets/finite_set_map_cy.pyx b/src/sage/sets/finite_set_map_cy.pyx index 1fad423fb81..3a35c2d6542 100644 --- a/src/sage/sets/finite_set_map_cy.pyx +++ b/src/sage/sets/finite_set_map_cy.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Data structures for maps between finite sets diff --git a/src/sage/sets/finite_set_maps.py b/src/sage/sets/finite_set_maps.py index e41f9f781b2..79e43737aad 100644 --- a/src/sage/sets/finite_set_maps.py +++ b/src/sage/sets/finite_set_maps.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Maps between finite sets diff --git a/src/sage/sets/image_set.py b/src/sage/sets/image_set.py index 0472d793c19..43650511660 100644 --- a/src/sage/sets/image_set.py +++ b/src/sage/sets/image_set.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Image Sets """ diff --git a/src/sage/sets/integer_range.py b/src/sage/sets/integer_range.py index d42f77a5307..67cdcc26c46 100644 --- a/src/sage/sets/integer_range.py +++ b/src/sage/sets/integer_range.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Integer Range diff --git a/src/sage/sets/non_negative_integers.py b/src/sage/sets/non_negative_integers.py index a7995ff3e1e..f76b8e6c6b0 100644 --- a/src/sage/sets/non_negative_integers.py +++ b/src/sage/sets/non_negative_integers.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Non Negative Integers """ diff --git a/src/sage/sets/positive_integers.py b/src/sage/sets/positive_integers.py index 70625fb53b7..cfb44167fe2 100644 --- a/src/sage/sets/positive_integers.py +++ b/src/sage/sets/positive_integers.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Positive Integers """ diff --git a/src/sage/sets/primes.py b/src/sage/sets/primes.py index ac33901a73b..fc4e8b02d29 100644 --- a/src/sage/sets/primes.py +++ b/src/sage/sets/primes.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ The set of prime numbers diff --git a/src/sage/sets/pythonclass.pxd b/src/sage/sets/pythonclass.pxd index 70c24f64d9c..b712c7809ad 100644 --- a/src/sage/sets/pythonclass.pxd +++ b/src/sage/sets/pythonclass.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects from sage.structure.parent cimport Set_generic diff --git a/src/sage/sets/pythonclass.pyx b/src/sage/sets/pythonclass.pyx index ed8c6d940c2..811155a1ac9 100644 --- a/src/sage/sets/pythonclass.pyx +++ b/src/sage/sets/pythonclass.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects """ Set of all objects of a given Python class """ diff --git a/src/sage/sets/real_set.py b/src/sage/sets/real_set.py index 2b431284e4d..bc3ca9ed2dc 100644 --- a/src/sage/sets/real_set.py +++ b/src/sage/sets/real_set.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # sage.doctest: needs sage.rings.real_interval_field sage.rings.real_mpfr """ Subsets of the Real Line diff --git a/src/sage/sets/recursively_enumerated_set.pxd b/src/sage/sets/recursively_enumerated_set.pxd index 7df7e28ec28..c9e83596037 100644 --- a/src/sage/sets/recursively_enumerated_set.pxd +++ b/src/sage/sets/recursively_enumerated_set.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories #***************************************************************************** # Copyright (C) 2014 Sage # diff --git a/src/sage/sets/recursively_enumerated_set.pyx b/src/sage/sets/recursively_enumerated_set.pyx index 66720d924e5..009e5f24c14 100644 --- a/src/sage/sets/recursively_enumerated_set.pyx +++ b/src/sage/sets/recursively_enumerated_set.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # -*- coding: utf-8 -*- r""" Recursively enumerated set diff --git a/src/sage/sets/set.py b/src/sage/sets/set.py index 8131c044e86..0b630a0411e 100644 --- a/src/sage/sets/set.py +++ b/src/sage/sets/set.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Sets diff --git a/src/sage/sets/set_from_iterator.py b/src/sage/sets/set_from_iterator.py index 5123879673a..923cc065b66 100644 --- a/src/sage/sets/set_from_iterator.py +++ b/src/sage/sets/set_from_iterator.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Enumerated set from iterator diff --git a/src/sage/sets/totally_ordered_finite_set.py b/src/sage/sets/totally_ordered_finite_set.py index f28840c81f7..003a362b82f 100644 --- a/src/sage/sets/totally_ordered_finite_set.py +++ b/src/sage/sets/totally_ordered_finite_set.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories """ Totally Ordered Finite Sets diff --git a/src/sage/stats/all.py b/src/sage/stats/all.py index 69fb8f01abd..d2e08f3a561 100644 --- a/src/sage/stats/all.py +++ b/src/sage/stats/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from .r import ttest from .basic_stats import (mean, mode, std, variance, median, moving_average) diff --git a/src/sage/stats/basic_stats.py b/src/sage/stats/basic_stats.py index 15e85197f3e..db1dd4589de 100644 --- a/src/sage/stats/basic_stats.py +++ b/src/sage/stats/basic_stats.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ Basic Statistics diff --git a/src/sage/stats/distributions/all.py b/src/sage/stats/distributions/all.py index e69de29bb2d..6f6ab52d0f2 100644 --- a/src/sage/stats/distributions/all.py +++ b/src/sage/stats/distributions/all.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-modules diff --git a/src/sage/stats/distributions/dgs.pxd b/src/sage/stats/distributions/dgs.pxd index 614db1388b5..328ae8d90d2 100644 --- a/src/sage/stats/distributions/dgs.pxd +++ b/src/sage/stats/distributions/dgs.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ AUTHOR: Martin Albrecht """ diff --git a/src/sage/stats/distributions/discrete_gaussian_integer.pxd b/src/sage/stats/distributions/discrete_gaussian_integer.pxd index d6edbe88d43..cadbd33f27f 100644 --- a/src/sage/stats/distributions/discrete_gaussian_integer.pxd +++ b/src/sage/stats/distributions/discrete_gaussian_integer.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.rings.integer cimport Integer from sage.rings.real_mpfr cimport RealNumber from sage.stats.distributions.dgs cimport dgs_disc_gauss_mp_t, dgs_disc_gauss_dp_t diff --git a/src/sage/stats/distributions/discrete_gaussian_integer.pyx b/src/sage/stats/distributions/discrete_gaussian_integer.pyx index 6d50074102b..55625af5320 100644 --- a/src/sage/stats/distributions/discrete_gaussian_integer.pyx +++ b/src/sage/stats/distributions/discrete_gaussian_integer.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.symbolic # # distutils: sources = sage/stats/distributions/dgs_gauss_mp.c sage/stats/distributions/dgs_gauss_dp.c sage/stats/distributions/dgs_bern.c diff --git a/src/sage/stats/distributions/discrete_gaussian_lattice.py b/src/sage/stats/distributions/discrete_gaussian_lattice.py index 08790bf92be..23d6bd732b8 100644 --- a/src/sage/stats/distributions/discrete_gaussian_lattice.py +++ b/src/sage/stats/distributions/discrete_gaussian_lattice.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # -*- coding: utf-8 -*- r""" Discrete Gaussian Samplers over Lattices diff --git a/src/sage/stats/distributions/discrete_gaussian_polynomial.py b/src/sage/stats/distributions/discrete_gaussian_polynomial.py index 7d61ab7eb0c..f5f6a940e7f 100644 --- a/src/sage/stats/distributions/discrete_gaussian_polynomial.py +++ b/src/sage/stats/distributions/discrete_gaussian_polynomial.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # -*- coding: utf-8 -*- r""" Discrete Gaussian Samplers for `\ZZ[x]` diff --git a/src/sage/stats/hmm/all.py b/src/sage/stats/hmm/all.py index 2e1bcacd23d..da9e45f3bfe 100644 --- a/src/sage/stats/hmm/all.py +++ b/src/sage/stats/hmm/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules ############################################################################# # Copyright (C) 2010 William Stein # Distributed under the terms of the GNU General Public License (GPL), v2+. diff --git a/src/sage/stats/hmm/chmm.pyx b/src/sage/stats/hmm/chmm.pyx index fe09b3f9cfb..fb89f101e2e 100644 --- a/src/sage/stats/hmm/chmm.pyx +++ b/src/sage/stats/hmm/chmm.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs numpy r""" Continuous Emission Hidden Markov Models diff --git a/src/sage/stats/hmm/distributions.pxd b/src/sage/stats/hmm/distributions.pxd index 7d613b22a64..84aae55c16d 100644 --- a/src/sage/stats/hmm/distributions.pxd +++ b/src/sage/stats/hmm/distributions.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules ############################################################################# # Copyright (C) 2010 William Stein # Distributed under the terms of the GNU General Public License (GPL) diff --git a/src/sage/stats/hmm/distributions.pyx b/src/sage/stats/hmm/distributions.pyx index ebb85739b2e..222055757d5 100644 --- a/src/sage/stats/hmm/distributions.pyx +++ b/src/sage/stats/hmm/distributions.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: optional - numpy r""" Distributions used in implementing Hidden Markov Models diff --git a/src/sage/stats/hmm/hmm.pxd b/src/sage/stats/hmm/hmm.pxd index f67de100a92..04148db52a9 100644 --- a/src/sage/stats/hmm/hmm.pxd +++ b/src/sage/stats/hmm/hmm.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules ############################################################################# # Copyright (C) 2010 William Stein # Distributed under the terms of the GNU General Public License (GPL) v2+. diff --git a/src/sage/stats/hmm/hmm.pyx b/src/sage/stats/hmm/hmm.pyx index fe8ab69cc66..adb8d55873a 100644 --- a/src/sage/stats/hmm/hmm.pyx +++ b/src/sage/stats/hmm/hmm.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs numpy sage.modules r""" Hidden Markov Models diff --git a/src/sage/stats/hmm/util.pxd b/src/sage/stats/hmm/util.pxd index 84a0e201a1b..c5ca4b4a6bf 100644 --- a/src/sage/stats/hmm/util.pxd +++ b/src/sage/stats/hmm/util.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.stats.time_series cimport TimeSeries cdef class HMM_Util: diff --git a/src/sage/stats/hmm/util.pyx b/src/sage/stats/hmm/util.pyx index fc849742b80..28c51bc8b36 100644 --- a/src/sage/stats/hmm/util.pyx +++ b/src/sage/stats/hmm/util.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: optional - numpy """ Hidden Markov Models -- Utility functions diff --git a/src/sage/stats/intlist.pxd b/src/sage/stats/intlist.pxd index d63971aac14..e6708c7aaf0 100644 --- a/src/sage/stats/intlist.pxd +++ b/src/sage/stats/intlist.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules ############################################################################# # Copyright (C) 2010 William Stein # Distributed under the terms of the GNU General Public License (GPL) v2+. diff --git a/src/sage/stats/intlist.pyx b/src/sage/stats/intlist.pyx index ce5abfc8b7b..ec79e8b1822 100644 --- a/src/sage/stats/intlist.pyx +++ b/src/sage/stats/intlist.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: optional - numpy """ C Int Lists diff --git a/src/sage/stats/r.py b/src/sage/stats/r.py index 47f492eff61..5a9d5313de4 100644 --- a/src/sage/stats/r.py +++ b/src/sage/stats/r.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules """ T-test using R diff --git a/src/sage/stats/time_series.pxd b/src/sage/stats/time_series.pxd index 7a044b52da9..d6387ff3c3b 100644 --- a/src/sage/stats/time_series.pxd +++ b/src/sage/stats/time_series.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules cdef class TimeSeries: cdef double* _values cdef Py_ssize_t _length diff --git a/src/sage/stats/time_series.pyx b/src/sage/stats/time_series.pyx index ce51e65baab..be5bf488562 100644 --- a/src/sage/stats/time_series.pyx +++ b/src/sage/stats/time_series.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: optional - numpy r""" Time Series diff --git a/src/sage/structure/__init__.py b/src/sage/structure/__init__.py index 8689eb1717f..bf977ccc379 100644 --- a/src/sage/structure/__init__.py +++ b/src/sage/structure/__init__.py @@ -1,2 +1,3 @@ +# sage_setup: distribution = sagemath-objects # Resolve a cyclic import import sage.structure.element diff --git a/src/sage/structure/all.py b/src/sage/structure/all.py index df0114c8382..b54188b9a6f 100644 --- a/src/sage/structure/all.py +++ b/src/sage/structure/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects from sage.structure.factorization import Factorization from sage.structure.sequence import Sequence, seq diff --git a/src/sage/structure/category_object.pxd b/src/sage/structure/category_object.pxd index 6bd450c4f68..4aa529bea97 100644 --- a/src/sage/structure/category_object.pxd +++ b/src/sage/structure/category_object.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects #***************************************************************************** # Copyright (C) 2006 William Stein # diff --git a/src/sage/structure/category_object.pyx b/src/sage/structure/category_object.pyx index 3d187a13dba..c5971028368 100644 --- a/src/sage/structure/category_object.pyx +++ b/src/sage/structure/category_object.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects # cython: old_style_globals=True r""" Base class for objects of a category diff --git a/src/sage/structure/coerce.pxd b/src/sage/structure/coerce.pxd index 0ab42fe9666..693742f56bc 100644 --- a/src/sage/structure/coerce.pxd +++ b/src/sage/structure/coerce.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects from sage.structure.parent cimport Parent from sage.structure.coerce_dict cimport TripleDict diff --git a/src/sage/structure/coerce.pyx b/src/sage/structure/coerce.pyx index 1e7c4dd1a49..5594500a2c4 100644 --- a/src/sage/structure/coerce.pyx +++ b/src/sage/structure/coerce.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects r""" The coercion model diff --git a/src/sage/structure/coerce_actions.pxd b/src/sage/structure/coerce_actions.pxd index 81a52ff5ad6..dc681f5a075 100644 --- a/src/sage/structure/coerce_actions.pxd +++ b/src/sage/structure/coerce_actions.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects from sage.categories.action cimport Action from sage.categories.map cimport Map diff --git a/src/sage/structure/coerce_actions.pyx b/src/sage/structure/coerce_actions.pyx index 9a26db7be64..0170395b7c5 100644 --- a/src/sage/structure/coerce_actions.pyx +++ b/src/sage/structure/coerce_actions.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects """ Coerce actions """ diff --git a/src/sage/structure/coerce_dict.pxd b/src/sage/structure/coerce_dict.pxd index 8542545a2f8..8ab24e73f5b 100644 --- a/src/sage/structure/coerce_dict.pxd +++ b/src/sage/structure/coerce_dict.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects cimport cython from cpython.object cimport PyObject diff --git a/src/sage/structure/coerce_dict.pyx b/src/sage/structure/coerce_dict.pyx index bd0a7808664..b697f21a796 100644 --- a/src/sage/structure/coerce_dict.pyx +++ b/src/sage/structure/coerce_dict.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects """ Containers for storing coercion data diff --git a/src/sage/structure/coerce_exceptions.py b/src/sage/structure/coerce_exceptions.py index 5859831e4fa..e60984f25ee 100644 --- a/src/sage/structure/coerce_exceptions.py +++ b/src/sage/structure/coerce_exceptions.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects "Exceptions raised by the coercion model" ############################################################################### diff --git a/src/sage/structure/coerce_maps.pxd b/src/sage/structure/coerce_maps.pxd index e3e969d0266..0de68c0c667 100644 --- a/src/sage/structure/coerce_maps.pxd +++ b/src/sage/structure/coerce_maps.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects from sage.categories.map cimport Map diff --git a/src/sage/structure/coerce_maps.pyx b/src/sage/structure/coerce_maps.pyx index be6d4807297..7d27861c9b0 100644 --- a/src/sage/structure/coerce_maps.pyx +++ b/src/sage/structure/coerce_maps.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects """ Coerce maps """ diff --git a/src/sage/structure/debug_options.pxd b/src/sage/structure/debug_options.pxd index 55db2332ed4..42a3411e76b 100644 --- a/src/sage/structure/debug_options.pxd +++ b/src/sage/structure/debug_options.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects cdef class DebugOptions_class: cdef public bint unique_parent_warnings cdef public bint refine_category_hash_check diff --git a/src/sage/structure/debug_options.pyx b/src/sage/structure/debug_options.pyx index 05d7835f869..3afe5ca835a 100644 --- a/src/sage/structure/debug_options.pyx +++ b/src/sage/structure/debug_options.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects """ Debug options for the :mod:`sage.structure` modules diff --git a/src/sage/structure/dynamic_class.py b/src/sage/structure/dynamic_class.py index cd72c1832a0..37dd257f574 100644 --- a/src/sage/structure/dynamic_class.py +++ b/src/sage/structure/dynamic_class.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects """ Dynamic classes diff --git a/src/sage/structure/element.pxd b/src/sage/structure/element.pxd index 487a3d126a1..aaaaab28a9e 100644 --- a/src/sage/structure/element.pxd +++ b/src/sage/structure/element.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects from sage.structure.sage_object cimport SageObject from sage.structure.parent cimport Parent from sage.misc.inherit_comparison cimport InheritComparisonMetaclass diff --git a/src/sage/structure/element.pyx b/src/sage/structure/element.pyx index f1cf9d26ac7..745e70500ef 100644 --- a/src/sage/structure/element.pyx +++ b/src/sage/structure/element.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects # Compile this with -Os because it works around a bug with # GCC-4.7.3 + Cython 0.19 on Itanium, see Issue #14452. Moreover, it # actually results in faster code than -O3. diff --git a/src/sage/structure/element_wrapper.pxd b/src/sage/structure/element_wrapper.pxd index 308f4a749ce..60da0310b7e 100644 --- a/src/sage/structure/element_wrapper.pxd +++ b/src/sage/structure/element_wrapper.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects from sage.structure.element cimport Element diff --git a/src/sage/structure/element_wrapper.pyx b/src/sage/structure/element_wrapper.pyx index 42dedbf03c3..636ac579f55 100644 --- a/src/sage/structure/element_wrapper.pyx +++ b/src/sage/structure/element_wrapper.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects # -*- coding: utf-8 -*- """ Element Wrapper diff --git a/src/sage/structure/factorization.py b/src/sage/structure/factorization.py index 00ad9658e59..e699266caed 100644 --- a/src/sage/structure/factorization.py +++ b/src/sage/structure/factorization.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects r""" Factorizations diff --git a/src/sage/structure/factorization_integer.py b/src/sage/structure/factorization_integer.py index 4d01cea5a6f..683cd0896cc 100644 --- a/src/sage/structure/factorization_integer.py +++ b/src/sage/structure/factorization_integer.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects "IntegerFactorization objects" from sage.structure.factorization import Factorization diff --git a/src/sage/structure/factory.pyx b/src/sage/structure/factory.pyx index d3f551ef24d..bdb4310acfa 100644 --- a/src/sage/structure/factory.pyx +++ b/src/sage/structure/factory.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects r""" Factory for cached representations diff --git a/src/sage/structure/formal_sum.py b/src/sage/structure/formal_sum.py index 7d8d5274144..13f66f2425c 100644 --- a/src/sage/structure/formal_sum.py +++ b/src/sage/structure/formal_sum.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects """ Formal sums diff --git a/src/sage/structure/gens_py.py b/src/sage/structure/gens_py.py index 22555a74c92..6d3fcae2520 100644 --- a/src/sage/structure/gens_py.py +++ b/src/sage/structure/gens_py.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects """ Pure python code for abstract base class for objects with generators """ diff --git a/src/sage/structure/global_options.py b/src/sage/structure/global_options.py index 2c55464e145..b41a0730f2e 100644 --- a/src/sage/structure/global_options.py +++ b/src/sage/structure/global_options.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects r""" Global options diff --git a/src/sage/structure/indexed_generators.py b/src/sage/structure/indexed_generators.py index 3ccff8a6706..9d0469e2744 100644 --- a/src/sage/structure/indexed_generators.py +++ b/src/sage/structure/indexed_generators.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects # -*- coding: utf-8 -*- """ Indexed Generators diff --git a/src/sage/structure/list_clone.pxd b/src/sage/structure/list_clone.pxd index e182ebf8be1..4e81105a0ca 100644 --- a/src/sage/structure/list_clone.pxd +++ b/src/sage/structure/list_clone.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects #***************************************************************************** # Copyright (C) 2009-2010 Florent Hivert # diff --git a/src/sage/structure/list_clone.pyx b/src/sage/structure/list_clone.pyx index 9ca7be464e6..1bd55f65fbb 100644 --- a/src/sage/structure/list_clone.pyx +++ b/src/sage/structure/list_clone.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects r""" Elements, Array and Lists With Clone Protocol diff --git a/src/sage/structure/list_clone_demo.pyx b/src/sage/structure/list_clone_demo.pyx index fc68eee947e..7ff0299d79f 100644 --- a/src/sage/structure/list_clone_demo.pyx +++ b/src/sage/structure/list_clone_demo.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects r""" Elements, Array and Lists With Clone Protocol, demonstration classes diff --git a/src/sage/structure/list_clone_timings.py b/src/sage/structure/list_clone_timings.py index efe5d20efc7..187f8b91e71 100644 --- a/src/sage/structure/list_clone_timings.py +++ b/src/sage/structure/list_clone_timings.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects # -*- coding: utf-8 -*- """ Performance Test for Clone Protocol diff --git a/src/sage/structure/list_clone_timings_cy.pyx b/src/sage/structure/list_clone_timings_cy.pyx index 6237fbe09a7..6680b1ee43e 100644 --- a/src/sage/structure/list_clone_timings_cy.pyx +++ b/src/sage/structure/list_clone_timings_cy.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects """ Cython Functions for Timing Clone Protocol """ diff --git a/src/sage/structure/mutability.pxd b/src/sage/structure/mutability.pxd index 16a474e8d2e..847d422b166 100644 --- a/src/sage/structure/mutability.pxd +++ b/src/sage/structure/mutability.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects """ Mutability -- Pyrex Implementation """ @@ -17,4 +18,4 @@ cdef class Mutability: cpdef _require_mutable(self) noexcept cpdef _require_immutable(self) noexcept cpdef bint is_immutable(self) noexcept - cpdef bint is_mutable(self) noexcept \ No newline at end of file + cpdef bint is_mutable(self) noexcept diff --git a/src/sage/structure/mutability.pyx b/src/sage/structure/mutability.pyx index 46a04784e0c..48c94e2bfd0 100644 --- a/src/sage/structure/mutability.pyx +++ b/src/sage/structure/mutability.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects """ Mutability Cython Implementation """ diff --git a/src/sage/structure/nonexact.py b/src/sage/structure/nonexact.py index ffb39e5f579..cef7a641f26 100644 --- a/src/sage/structure/nonexact.py +++ b/src/sage/structure/nonexact.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects r""" Precision management for non-exact objects diff --git a/src/sage/structure/parent.pxd b/src/sage/structure/parent.pxd index 2a9c637af6c..8001fc52cd4 100644 --- a/src/sage/structure/parent.pxd +++ b/src/sage/structure/parent.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects #***************************************************************************** # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/src/sage/structure/parent.pyx b/src/sage/structure/parent.pyx index 6ac939db3c8..5828dccc933 100644 --- a/src/sage/structure/parent.pyx +++ b/src/sage/structure/parent.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects r""" Base class for parent objects diff --git a/src/sage/structure/parent_base.pxd b/src/sage/structure/parent_base.pxd index 8ffac64eff2..3683c39d827 100644 --- a/src/sage/structure/parent_base.pxd +++ b/src/sage/structure/parent_base.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects ############################################################################### # Sage: Open Source Mathematical Software # Copyright (C) 2006 William Stein diff --git a/src/sage/structure/parent_base.pyx b/src/sage/structure/parent_base.pyx index f5ecc15affa..ba65b6fd71b 100644 --- a/src/sage/structure/parent_base.pyx +++ b/src/sage/structure/parent_base.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects r""" Base class for old-style parent objects with a base ring """ diff --git a/src/sage/structure/parent_gens.pxd b/src/sage/structure/parent_gens.pxd index cf3b416317f..573db0c52fa 100644 --- a/src/sage/structure/parent_gens.pxd +++ b/src/sage/structure/parent_gens.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects """ Parent objects with generators """ diff --git a/src/sage/structure/parent_gens.pyx b/src/sage/structure/parent_gens.pyx index 6d493e56781..5c0d42f3629 100644 --- a/src/sage/structure/parent_gens.pyx +++ b/src/sage/structure/parent_gens.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects r""" Base class for old-style parent objects with generators diff --git a/src/sage/structure/parent_old.pxd b/src/sage/structure/parent_old.pxd index 688ae96469a..c40a897725c 100644 --- a/src/sage/structure/parent_old.pxd +++ b/src/sage/structure/parent_old.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects # **************************************************************************** # Copyright (C) 2006 William Stein # diff --git a/src/sage/structure/parent_old.pyx b/src/sage/structure/parent_old.pyx index 06c84960605..205fe84cace 100644 --- a/src/sage/structure/parent_old.pyx +++ b/src/sage/structure/parent_old.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects r""" Base class for old-style parent objects diff --git a/src/sage/structure/proof/__init__.py b/src/sage/structure/proof/__init__.py index e69de29bb2d..f9b8167c3cd 100644 --- a/src/sage/structure/proof/__init__.py +++ b/src/sage/structure/proof/__init__.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-objects diff --git a/src/sage/structure/proof/all.py b/src/sage/structure/proof/all.py index c006c56c36d..02adb16a827 100644 --- a/src/sage/structure/proof/all.py +++ b/src/sage/structure/proof/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects def arithmetic(t=None): diff --git a/src/sage/structure/proof/proof.py b/src/sage/structure/proof/proof.py index 49d4ecebe5a..bb02b6dce54 100644 --- a/src/sage/structure/proof/proof.py +++ b/src/sage/structure/proof/proof.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects "Global proof preferences" from sage.structure.sage_object import SageObject diff --git a/src/sage/structure/richcmp.pxd b/src/sage/structure/richcmp.pxd index 7db6340ec48..3825b832fbc 100644 --- a/src/sage/structure/richcmp.pxd +++ b/src/sage/structure/richcmp.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects from libc.stdint cimport uint32_t from cpython.object cimport (Py_LT, Py_LE, Py_EQ, Py_NE, Py_GT, Py_GE, PyObject_RichCompare) diff --git a/src/sage/structure/richcmp.pyx b/src/sage/structure/richcmp.pyx index 7e1720c0e07..aba55417968 100644 --- a/src/sage/structure/richcmp.pyx +++ b/src/sage/structure/richcmp.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects r""" Cython-like rich comparisons in Python diff --git a/src/sage/structure/sage_object.pxd b/src/sage/structure/sage_object.pxd index 5e3e442c896..40b753d1aa3 100644 --- a/src/sage/structure/sage_object.pxd +++ b/src/sage/structure/sage_object.pxd @@ -1,2 +1,3 @@ +# sage_setup: distribution = sagemath-objects cdef class SageObject: pass diff --git a/src/sage/structure/sage_object.pyx b/src/sage/structure/sage_object.pyx index 10000aef394..38c46cca129 100644 --- a/src/sage/structure/sage_object.pyx +++ b/src/sage/structure/sage_object.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects # -*- encoding: utf-8 -*- r""" Abstract base class for Sage objects diff --git a/src/sage/structure/sage_object_test.py b/src/sage/structure/sage_object_test.py index 721c1ad7719..644543e99f8 100644 --- a/src/sage/structure/sage_object_test.py +++ b/src/sage/structure/sage_object_test.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects import pytest from sage.structure.sage_object import SageObject diff --git a/src/sage/structure/sequence.py b/src/sage/structure/sequence.py index c3972532ac3..b5aa586c777 100644 --- a/src/sage/structure/sequence.py +++ b/src/sage/structure/sequence.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects r""" Finite Homogeneous Sequences diff --git a/src/sage/structure/set_factories.py b/src/sage/structure/set_factories.py index f8b8e3643c9..46d8870379c 100644 --- a/src/sage/structure/set_factories.py +++ b/src/sage/structure/set_factories.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects r""" Set factories ============= diff --git a/src/sage/structure/set_factories_example.py b/src/sage/structure/set_factories_example.py index df1d7d7f49c..8212f7ce525 100644 --- a/src/sage/structure/set_factories_example.py +++ b/src/sage/structure/set_factories_example.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects r""" An example of set factory ========================= diff --git a/src/sage/structure/support_view.py b/src/sage/structure/support_view.py index 0778f2a47ed..bebae1a31f5 100644 --- a/src/sage/structure/support_view.py +++ b/src/sage/structure/support_view.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects r""" Iterable of the keys of a Mapping associated with nonzero values """ diff --git a/src/sage/structure/test_factory.py b/src/sage/structure/test_factory.py index 145311b9dd3..9835a06f909 100644 --- a/src/sage/structure/test_factory.py +++ b/src/sage/structure/test_factory.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects """ Test of the :mod:`~sage.structure.factory` module """ diff --git a/src/sage/structure/unique_representation.py b/src/sage/structure/unique_representation.py index 3bbea183fc6..26329d3eb04 100644 --- a/src/sage/structure/unique_representation.py +++ b/src/sage/structure/unique_representation.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects r""" Unique Representation diff --git a/src/sage/symbolic/all.py b/src/sage/symbolic/all.py index b5a0883d202..b2372b85175 100644 --- a/src/sage/symbolic/all.py +++ b/src/sage/symbolic/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics from .ring import SR from .constants import (pi, e, NaN, golden_ratio, log2, euler_gamma, catalan, khinchin, twinprime, mertens, glaisher) diff --git a/src/sage/symbolic/assumptions.py b/src/sage/symbolic/assumptions.py index 15f6fa07ce6..7f712a8abea 100644 --- a/src/sage/symbolic/assumptions.py +++ b/src/sage/symbolic/assumptions.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics """ Assumptions diff --git a/src/sage/symbolic/benchmark.py b/src/sage/symbolic/benchmark.py index 66d8217e315..f5aea55e97b 100644 --- a/src/sage/symbolic/benchmark.py +++ b/src/sage/symbolic/benchmark.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Benchmarks diff --git a/src/sage/symbolic/callable.py b/src/sage/symbolic/callable.py index 6db7f38745d..e2f28e51900 100644 --- a/src/sage/symbolic/callable.py +++ b/src/sage/symbolic/callable.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics """ Callable Symbolic Expressions diff --git a/src/sage/symbolic/comparison_impl.pxi b/src/sage/symbolic/comparison_impl.pxi index e4b80ad6fad..24e8666cf23 100644 --- a/src/sage/symbolic/comparison_impl.pxi +++ b/src/sage/symbolic/comparison_impl.pxi @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics """ Comparison of Symbolic Expressions diff --git a/src/sage/symbolic/complexity_measures.py b/src/sage/symbolic/complexity_measures.py index 528d1bf6906..dc6211f6486 100644 --- a/src/sage/symbolic/complexity_measures.py +++ b/src/sage/symbolic/complexity_measures.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics """ Complexity Measures diff --git a/src/sage/symbolic/constants.py b/src/sage/symbolic/constants.py index 07c3f34af39..af577022127 100644 --- a/src/sage/symbolic/constants.py +++ b/src/sage/symbolic/constants.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Mathematical constants diff --git a/src/sage/symbolic/constants_c_impl.pxi b/src/sage/symbolic/constants_c_impl.pxi index 3818926a9a2..cc9464af130 100644 --- a/src/sage/symbolic/constants_c_impl.pxi +++ b/src/sage/symbolic/constants_c_impl.pxi @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics """ The constant `e` """ diff --git a/src/sage/symbolic/expression.pxd b/src/sage/symbolic/expression.pxd index a212eb414c0..12880436625 100644 --- a/src/sage/symbolic/expression.pxd +++ b/src/sage/symbolic/expression.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics cpdef _repr_Expression(x) noexcept cpdef _latex_Expression(x) noexcept cpdef new_Expression(parent, x) noexcept diff --git a/src/sage/symbolic/expression.pyx b/src/sage/symbolic/expression.pyx index 9d86a81b24b..d194fba7207 100644 --- a/src/sage/symbolic/expression.pyx +++ b/src/sage/symbolic/expression.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics # -*- coding: utf-8 -*- # distutils: sources = sage/symbolic/ginac/add.cpp sage/symbolic/ginac/archive.cpp sage/symbolic/ginac/assume.cpp sage/symbolic/ginac/basic.cpp sage/symbolic/ginac/cmatcher.cpp sage/symbolic/ginac/constant.cpp sage/symbolic/ginac/context.cpp sage/symbolic/ginac/ex.cpp sage/symbolic/ginac/expair.cpp sage/symbolic/ginac/expairseq.cpp sage/symbolic/ginac/exprseq.cpp sage/symbolic/ginac/fderivative.cpp sage/symbolic/ginac/function.cpp sage/symbolic/ginac/function_info.cpp sage/symbolic/ginac/infinity.cpp sage/symbolic/ginac/infoflagbase.cpp sage/symbolic/ginac/inifcns.cpp sage/symbolic/ginac/inifcns_comb.cpp sage/symbolic/ginac/inifcns_gamma.cpp sage/symbolic/ginac/inifcns_hyperb.cpp sage/symbolic/ginac/inifcns_hyperg.cpp sage/symbolic/ginac/inifcns_nstdsums.cpp sage/symbolic/ginac/inifcns_orthopoly.cpp sage/symbolic/ginac/inifcns_trans.cpp sage/symbolic/ginac/inifcns_trig.cpp sage/symbolic/ginac/inifcns_zeta.cpp sage/symbolic/ginac/lst.cpp sage/symbolic/ginac/matrix.cpp sage/symbolic/ginac/mpoly-giac.cpp sage/symbolic/ginac/mpoly-ginac.cpp sage/symbolic/ginac/mpoly-singular.cpp sage/symbolic/ginac/mpoly.cpp sage/symbolic/ginac/mul.cpp sage/symbolic/ginac/normal.cpp sage/symbolic/ginac/numeric.cpp sage/symbolic/ginac/operators.cpp sage/symbolic/ginac/order.cpp sage/symbolic/ginac/power.cpp sage/symbolic/ginac/print.cpp sage/symbolic/ginac/pseries.cpp sage/symbolic/ginac/py_funcs.cpp sage/symbolic/ginac/registrar.cpp sage/symbolic/ginac/relational.cpp sage/symbolic/ginac/remember.cpp sage/symbolic/ginac/sum.cpp sage/symbolic/ginac/symbol.cpp sage/symbolic/ginac/templates.cpp sage/symbolic/ginac/upoly-ginac.cpp sage/symbolic/ginac/useries.cpp sage/symbolic/ginac/utils.cpp sage/symbolic/ginac/wildcard.cpp # distutils: language = c++ diff --git a/src/sage/symbolic/expression_conversion_algebraic.py b/src/sage/symbolic/expression_conversion_algebraic.py index f1b30784598..a273e5f134c 100644 --- a/src/sage/symbolic/expression_conversion_algebraic.py +++ b/src/sage/symbolic/expression_conversion_algebraic.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Conversion of symbolic expressions to algebraic numbers """ diff --git a/src/sage/symbolic/expression_conversion_sympy.py b/src/sage/symbolic/expression_conversion_sympy.py index c2c1b3e2634..17ad4649771 100644 --- a/src/sage/symbolic/expression_conversion_sympy.py +++ b/src/sage/symbolic/expression_conversion_sympy.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics # sage.doctest: needs sympy r""" Conversion of symbolic expressions to SymPy diff --git a/src/sage/symbolic/expression_conversions.py b/src/sage/symbolic/expression_conversions.py index 2f44dd34a3e..f70c252cd3e 100644 --- a/src/sage/symbolic/expression_conversions.py +++ b/src/sage/symbolic/expression_conversions.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics """ Conversion of symbolic expressions to other types diff --git a/src/sage/symbolic/function.pxd b/src/sage/symbolic/function.pxd index 1987a393f86..d471133baee 100644 --- a/src/sage/symbolic/function.pxd +++ b/src/sage/symbolic/function.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories from sage.structure.sage_object cimport SageObject cdef class Function(SageObject): diff --git a/src/sage/symbolic/function.pyx b/src/sage/symbolic/function.pyx index e349fe20100..0552b91a740 100644 --- a/src/sage/symbolic/function.pyx +++ b/src/sage/symbolic/function.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Classes for symbolic functions diff --git a/src/sage/symbolic/function_factory.py b/src/sage/symbolic/function_factory.py index 4c2542c77e3..767f7323924 100644 --- a/src/sage/symbolic/function_factory.py +++ b/src/sage/symbolic/function_factory.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Factory for symbolic functions """ diff --git a/src/sage/symbolic/getitem_impl.pxi b/src/sage/symbolic/getitem_impl.pxi index 7bbb2dfe852..29f64108e85 100644 --- a/src/sage/symbolic/getitem_impl.pxi +++ b/src/sage/symbolic/getitem_impl.pxi @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics "Operands" #***************************************************************************** diff --git a/src/sage/symbolic/integration/all.py b/src/sage/symbolic/integration/all.py index e69de29bb2d..332eaf1cdb6 100644 --- a/src/sage/symbolic/integration/all.py +++ b/src/sage/symbolic/integration/all.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-symbolics diff --git a/src/sage/symbolic/integration/external.py b/src/sage/symbolic/integration/external.py index 1e242c3f442..f783a86fd5f 100644 --- a/src/sage/symbolic/integration/external.py +++ b/src/sage/symbolic/integration/external.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics """Symbolic Integration via External Software TESTS:: diff --git a/src/sage/symbolic/integration/integral.py b/src/sage/symbolic/integration/integral.py index e431e76a767..c7495e69139 100644 --- a/src/sage/symbolic/integration/integral.py +++ b/src/sage/symbolic/integration/integral.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics """ Symbolic Integration """ diff --git a/src/sage/symbolic/maxima_wrapper.py b/src/sage/symbolic/maxima_wrapper.py index ca30af3efcf..3868ee20ad4 100644 --- a/src/sage/symbolic/maxima_wrapper.py +++ b/src/sage/symbolic/maxima_wrapper.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics "Access to Maxima methods" ############################################################################### diff --git a/src/sage/symbolic/operators.py b/src/sage/symbolic/operators.py index 738f792f853..17e9d06f7a8 100644 --- a/src/sage/symbolic/operators.py +++ b/src/sage/symbolic/operators.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics "Operators" import operator diff --git a/src/sage/symbolic/pynac.pxi b/src/sage/symbolic/pynac.pxi index 09f0ad032d5..911d53237fc 100644 --- a/src/sage/symbolic/pynac.pxi +++ b/src/sage/symbolic/pynac.pxi @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics """ Declarations for pynac, a Python frontend for ginac diff --git a/src/sage/symbolic/pynac_constant_impl.pxi b/src/sage/symbolic/pynac_constant_impl.pxi index 9dd5366dcaa..b21977cfe6f 100644 --- a/src/sage/symbolic/pynac_constant_impl.pxi +++ b/src/sage/symbolic/pynac_constant_impl.pxi @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics """ Wrapper around Pynac's constants """ diff --git a/src/sage/symbolic/pynac_function_impl.pxi b/src/sage/symbolic/pynac_function_impl.pxi index cca1bb5d196..6d4a1855447 100644 --- a/src/sage/symbolic/pynac_function_impl.pxi +++ b/src/sage/symbolic/pynac_function_impl.pxi @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics cpdef call_registered_function(unsigned serial, int nargs, list args, diff --git a/src/sage/symbolic/pynac_impl.pxi b/src/sage/symbolic/pynac_impl.pxi index b2091522c49..2efb2247f53 100644 --- a/src/sage/symbolic/pynac_impl.pxi +++ b/src/sage/symbolic/pynac_impl.pxi @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics """ Pynac interface """ diff --git a/src/sage/symbolic/random_tests.py b/src/sage/symbolic/random_tests.py index ebed9407776..d9a09a3e35e 100644 --- a/src/sage/symbolic/random_tests.py +++ b/src/sage/symbolic/random_tests.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics """ Randomized tests of GiNaC / PyNaC """ diff --git a/src/sage/symbolic/relation.py b/src/sage/symbolic/relation.py index ea3f5b170ea..9c500bec267 100644 --- a/src/sage/symbolic/relation.py +++ b/src/sage/symbolic/relation.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Symbolic Equations and Inequalities diff --git a/src/sage/symbolic/ring.pxd b/src/sage/symbolic/ring.pxd index 9e628098dd1..7f5a96be693 100644 --- a/src/sage/symbolic/ring.pxd +++ b/src/sage/symbolic/ring.pxd @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics cimport sage.rings.abc cdef class SymbolicRing(sage.rings.abc.SymbolicRing): diff --git a/src/sage/symbolic/ring.pyx b/src/sage/symbolic/ring.pyx index a74db5807d5..2d03bbcc592 100644 --- a/src/sage/symbolic/ring.pyx +++ b/src/sage/symbolic/ring.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics # -*- coding: utf-8 -*- """ The symbolic ring diff --git a/src/sage/symbolic/series_impl.pxi b/src/sage/symbolic/series_impl.pxi index 1d979dbc505..da61e2d8be7 100644 --- a/src/sage/symbolic/series_impl.pxi +++ b/src/sage/symbolic/series_impl.pxi @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Symbolic Series diff --git a/src/sage/symbolic/subring.py b/src/sage/symbolic/subring.py index 2db60e8f915..5bde515595b 100644 --- a/src/sage/symbolic/subring.py +++ b/src/sage/symbolic/subring.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" Subrings of the Symbolic Ring diff --git a/src/sage/symbolic/substitution_map_impl.pxi b/src/sage/symbolic/substitution_map_impl.pxi index c1dc3be748b..ed892c1b936 100644 --- a/src/sage/symbolic/substitution_map_impl.pxi +++ b/src/sage/symbolic/substitution_map_impl.pxi @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics """ Substitution Maps diff --git a/src/sage/symbolic/symbols.py b/src/sage/symbolic/symbols.py index 7fe7cdb4472..239e4912228 100644 --- a/src/sage/symbolic/symbols.py +++ b/src/sage/symbolic/symbols.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Symbol table """ diff --git a/src/sage/symbolic/symengine.py b/src/sage/symbolic/symengine.py index 5c3a46eb8b0..5954616e336 100644 --- a/src/sage/symbolic/symengine.py +++ b/src/sage/symbolic/symengine.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics r""" EXAMPLES:: diff --git a/src/sage/symbolic/tests.py b/src/sage/symbolic/tests.py index c1ef2cd14f2..9045a605a94 100644 --- a/src/sage/symbolic/tests.py +++ b/src/sage/symbolic/tests.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics """ Tests for the Sage/Pynac interaction """ diff --git a/src/sage/symbolic/units.py b/src/sage/symbolic/units.py index fe629bad49d..3793e7b34d3 100644 --- a/src/sage/symbolic/units.py +++ b/src/sage/symbolic/units.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-symbolics """ Units of measurement diff --git a/src/sage/tensor/all.py b/src/sage/tensor/all.py index dc52f0b09ed..ea413f29d17 100644 --- a/src/sage/tensor/all.py +++ b/src/sage/tensor/all.py @@ -1 +1,2 @@ +# sage_setup: distribution = sagemath-modules from .modules.all import * diff --git a/src/sage/tensor/modules/all.py b/src/sage/tensor/modules/all.py index 72f37f49fe9..f94577c2e47 100644 --- a/src/sage/tensor/modules/all.py +++ b/src/sage/tensor/modules/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules from sage.misc.lazy_import import lazy_import lazy_import('sage.tensor.modules.finite_rank_free_module', 'FiniteRankFreeModule') diff --git a/src/sage/tensor/modules/alternating_contr_tensor.py b/src/sage/tensor/modules/alternating_contr_tensor.py index 3ef51967bc6..c0ef91fae35 100644 --- a/src/sage/tensor/modules/alternating_contr_tensor.py +++ b/src/sage/tensor/modules/alternating_contr_tensor.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Alternating contravariant tensors on free modules diff --git a/src/sage/tensor/modules/comp.py b/src/sage/tensor/modules/comp.py index e4061826e83..3790b3f78ec 100644 --- a/src/sage/tensor/modules/comp.py +++ b/src/sage/tensor/modules/comp.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Components as indexed sets of ring elements diff --git a/src/sage/tensor/modules/ext_pow_free_module.py b/src/sage/tensor/modules/ext_pow_free_module.py index 785b4ecc6bd..789d7f36ea0 100644 --- a/src/sage/tensor/modules/ext_pow_free_module.py +++ b/src/sage/tensor/modules/ext_pow_free_module.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Exterior powers of free modules diff --git a/src/sage/tensor/modules/finite_rank_free_module.py b/src/sage/tensor/modules/finite_rank_free_module.py index d8d8686eeae..6d42b428dde 100644 --- a/src/sage/tensor/modules/finite_rank_free_module.py +++ b/src/sage/tensor/modules/finite_rank_free_module.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Free modules of finite rank diff --git a/src/sage/tensor/modules/format_utilities.py b/src/sage/tensor/modules/format_utilities.py index 139fee85310..381eb470dbf 100644 --- a/src/sage/tensor/modules/format_utilities.py +++ b/src/sage/tensor/modules/format_utilities.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Formatting utilities diff --git a/src/sage/tensor/modules/free_module_alt_form.py b/src/sage/tensor/modules/free_module_alt_form.py index a11d3a447c9..928d62a0e80 100644 --- a/src/sage/tensor/modules/free_module_alt_form.py +++ b/src/sage/tensor/modules/free_module_alt_form.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Alternating forms on free modules diff --git a/src/sage/tensor/modules/free_module_automorphism.py b/src/sage/tensor/modules/free_module_automorphism.py index ebe30d6255b..0bb0e208433 100644 --- a/src/sage/tensor/modules/free_module_automorphism.py +++ b/src/sage/tensor/modules/free_module_automorphism.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Free module automorphisms diff --git a/src/sage/tensor/modules/free_module_basis.py b/src/sage/tensor/modules/free_module_basis.py index e44276a4317..7d4d78756f9 100644 --- a/src/sage/tensor/modules/free_module_basis.py +++ b/src/sage/tensor/modules/free_module_basis.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Free module bases diff --git a/src/sage/tensor/modules/free_module_element.py b/src/sage/tensor/modules/free_module_element.py index d4e3f42a390..96eec08c27b 100644 --- a/src/sage/tensor/modules/free_module_element.py +++ b/src/sage/tensor/modules/free_module_element.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Elements of free modules of finite rank diff --git a/src/sage/tensor/modules/free_module_homset.py b/src/sage/tensor/modules/free_module_homset.py index 509ae146d49..7f1da1fe73f 100644 --- a/src/sage/tensor/modules/free_module_homset.py +++ b/src/sage/tensor/modules/free_module_homset.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Sets of morphisms between free modules diff --git a/src/sage/tensor/modules/free_module_linear_group.py b/src/sage/tensor/modules/free_module_linear_group.py index a58bd3a8a72..0e328a78ee1 100644 --- a/src/sage/tensor/modules/free_module_linear_group.py +++ b/src/sage/tensor/modules/free_module_linear_group.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" General linear group of a free module diff --git a/src/sage/tensor/modules/free_module_morphism.py b/src/sage/tensor/modules/free_module_morphism.py index 073cb91e60c..9c1ed019974 100644 --- a/src/sage/tensor/modules/free_module_morphism.py +++ b/src/sage/tensor/modules/free_module_morphism.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Free module morphisms diff --git a/src/sage/tensor/modules/free_module_tensor.py b/src/sage/tensor/modules/free_module_tensor.py index 1412638f64a..c510329d17d 100644 --- a/src/sage/tensor/modules/free_module_tensor.py +++ b/src/sage/tensor/modules/free_module_tensor.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Tensors on free modules diff --git a/src/sage/tensor/modules/reflexive_module.py b/src/sage/tensor/modules/reflexive_module.py index 073f76e4659..82646094800 100644 --- a/src/sage/tensor/modules/reflexive_module.py +++ b/src/sage/tensor/modules/reflexive_module.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Base classes for reflexive modules """ diff --git a/src/sage/tensor/modules/tensor_free_module.py b/src/sage/tensor/modules/tensor_free_module.py index 8e56dbc0b76..d89fbce1245 100644 --- a/src/sage/tensor/modules/tensor_free_module.py +++ b/src/sage/tensor/modules/tensor_free_module.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Tensor products of free modules diff --git a/src/sage/tensor/modules/tensor_free_submodule.py b/src/sage/tensor/modules/tensor_free_submodule.py index 6503c310a91..65a8cf3711f 100644 --- a/src/sage/tensor/modules/tensor_free_submodule.py +++ b/src/sage/tensor/modules/tensor_free_submodule.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Free submodules of tensor modules defined by monoterm symmetries diff --git a/src/sage/tensor/modules/tensor_free_submodule_basis.py b/src/sage/tensor/modules/tensor_free_submodule_basis.py index 6c88b05af23..da1b1c78979 100644 --- a/src/sage/tensor/modules/tensor_free_submodule_basis.py +++ b/src/sage/tensor/modules/tensor_free_submodule_basis.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules r""" Standard bases of free submodules of tensor modules defined by some monoterm symmetries diff --git a/src/sage/tensor/modules/tensor_with_indices.py b/src/sage/tensor/modules/tensor_with_indices.py index 8a637315af8..cf590f83a96 100644 --- a/src/sage/tensor/modules/tensor_with_indices.py +++ b/src/sage/tensor/modules/tensor_with_indices.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-modules # sage.doctest: needs sage.groups r""" Index notation for tensors diff --git a/src/sage/tests/__init__.py b/src/sage/tests/__init__.py index e69de29bb2d..62acb4df510 100644 --- a/src/sage/tests/__init__.py +++ b/src/sage/tests/__init__.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-repl diff --git a/src/sage/tests/all.py b/src/sage/tests/all.py index c0f6f2877d5..382623d080e 100644 --- a/src/sage/tests/all.py +++ b/src/sage/tests/all.py @@ -1,2 +1,3 @@ +# sage_setup: distribution = sagemath-repl """ """ diff --git a/src/sage/tests/article_heuberger_krenn_kropf_fsm-in-sage.py b/src/sage/tests/article_heuberger_krenn_kropf_fsm-in-sage.py index d0a51a55eff..f03f58a1517 100644 --- a/src/sage/tests/article_heuberger_krenn_kropf_fsm-in-sage.py +++ b/src/sage/tests/article_heuberger_krenn_kropf_fsm-in-sage.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl # sage.doctest: needs sage.graphs sage.modules r""" This file contains doctests of the article :: diff --git a/src/sage/tests/arxiv_0812_2725.py b/src/sage/tests/arxiv_0812_2725.py index 62217b3e8d8..b162a303708 100644 --- a/src/sage/tests/arxiv_0812_2725.py +++ b/src/sage/tests/arxiv_0812_2725.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl # sage.doctest: needs sage.combinat r""" Sage code for computing k-distant crossing numbers. diff --git a/src/sage/tests/benchmark.py b/src/sage/tests/benchmark.py index 9445a3f7633..4e6f6c4ede0 100644 --- a/src/sage/tests/benchmark.py +++ b/src/sage/tests/benchmark.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl # sage.doctest: needs sage.symbolic """ Benchmarks diff --git a/src/sage/tests/book_schilling_zabrocki_kschur_primer.py b/src/sage/tests/book_schilling_zabrocki_kschur_primer.py index 4f91b77e036..3a0b26c36d1 100644 --- a/src/sage/tests/book_schilling_zabrocki_kschur_primer.py +++ b/src/sage/tests/book_schilling_zabrocki_kschur_primer.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl # sage.doctest: needs sage.combinat sage.graphs sage.groups r""" This file contains doctests for the Chapter "k-Schur function primer" diff --git a/src/sage/tests/book_stein_ent.py b/src/sage/tests/book_stein_ent.py index 2c43a840cdc..807e824d204 100644 --- a/src/sage/tests/book_stein_ent.py +++ b/src/sage/tests/book_stein_ent.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl # sage.doctest: needs sage.libs.pari """ This file contains all the example code from the published book diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/__init__.py b/src/sage/tests/books/computational-mathematics-with-sagemath/__init__.py index e69de29bb2d..62acb4df510 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/__init__.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/__init__.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-repl diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/calculus_doctest.py b/src/sage/tests/books/computational-mathematics-with-sagemath/calculus_doctest.py index 976b912de2a..1a5262230ac 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/calculus_doctest.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/calculus_doctest.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl ## -*- encoding: utf-8 -*- """ This file (./calculus_doctest.sage) was *autogenerated* from ./calculus.tex, diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/combinat_doctest.py b/src/sage/tests/books/computational-mathematics-with-sagemath/combinat_doctest.py index 864549d1958..2100b880d06 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/combinat_doctest.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/combinat_doctest.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl ## -*- encoding: utf-8 -*- """ This file (./combinat_doctest.sage) was *autogenerated* from ./combinat.tex, diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/domaines_doctest.py b/src/sage/tests/books/computational-mathematics-with-sagemath/domaines_doctest.py index 94c50977d79..bc44e19bfb0 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/domaines_doctest.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/domaines_doctest.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl ## -*- encoding: utf-8 -*- """ This file (./domaines_doctest.sage) was *autogenerated* from ./domaines.tex, diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/float_doctest.py b/src/sage/tests/books/computational-mathematics-with-sagemath/float_doctest.py index aa3eed32f3b..3b7cbbe17b3 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/float_doctest.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/float_doctest.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl ## -*- encoding: utf-8 -*- """ This file (./float_doctest.sage) was *autogenerated* from ./float.tex, diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/graphique_doctest.py b/src/sage/tests/books/computational-mathematics-with-sagemath/graphique_doctest.py index bdf2f5b1e1e..2ce7d436164 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/graphique_doctest.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/graphique_doctest.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl ## -*- encoding: utf-8 -*- """ This file (./graphique_doctest.sage) was *autogenerated* from ./graphique.tex, diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/graphtheory_doctest.py b/src/sage/tests/books/computational-mathematics-with-sagemath/graphtheory_doctest.py index c1d8fa977e5..3de6608cad0 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/graphtheory_doctest.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/graphtheory_doctest.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl ## -*- encoding: utf-8 -*- """ This file (./graphtheory_doctest.sage) was *autogenerated* from ./graphtheory.tex, diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/integration_doctest.py b/src/sage/tests/books/computational-mathematics-with-sagemath/integration_doctest.py index dbe787aa5ff..2967db293aa 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/integration_doctest.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/integration_doctest.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl ## -*- encoding: utf-8 -*- """ This file (./integration_doctest.sage) was *autogenerated* from ./integration.tex, diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/linalg_doctest.py b/src/sage/tests/books/computational-mathematics-with-sagemath/linalg_doctest.py index 4ab7d86d5d3..4e5e4920446 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/linalg_doctest.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/linalg_doctest.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl ## -*- encoding: utf-8 -*- """ This file (./linalg_doctest.sage) was *autogenerated* from ./linalg.tex, diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/linsolve_doctest.py b/src/sage/tests/books/computational-mathematics-with-sagemath/linsolve_doctest.py index 7c5b83423ea..b370e0221c7 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/linsolve_doctest.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/linsolve_doctest.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl ## -*- encoding: utf-8 -*- r""" This file (./linsolve_doctest.sage) was *autogenerated* from ./linsolve.tex, diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/lp_doctest.py b/src/sage/tests/books/computational-mathematics-with-sagemath/lp_doctest.py index da89f065214..207ca2071dd 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/lp_doctest.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/lp_doctest.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl ## -*- encoding: utf-8 -*- """ This file (./lp_doctest.sage) was *autogenerated* from ./lp.tex, diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/mpoly_doctest.py b/src/sage/tests/books/computational-mathematics-with-sagemath/mpoly_doctest.py index bef4a2b6c62..0e5b60c1542 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/mpoly_doctest.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/mpoly_doctest.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl ## -*- encoding: utf-8 -*- """ This file (./mpoly_doctest.sage) was *autogenerated* from ./mpoly.tex, diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/nonlinear_doctest.py b/src/sage/tests/books/computational-mathematics-with-sagemath/nonlinear_doctest.py index 3a7104637ec..3945a502d78 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/nonlinear_doctest.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/nonlinear_doctest.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl ## -*- encoding: utf-8 -*- """ This file (./nonlinear_doctest.sage) was *autogenerated* from ./nonlinear.tex, diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/numbertheory_doctest.py b/src/sage/tests/books/computational-mathematics-with-sagemath/numbertheory_doctest.py index 46a4d4d2bec..3dff028ccd2 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/numbertheory_doctest.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/numbertheory_doctest.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl ## -*- encoding: utf-8 -*- """ This file (./numbertheory_doctest.sage) was *autogenerated* from ./numbertheory.tex, diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/polynomes_doctest.py b/src/sage/tests/books/computational-mathematics-with-sagemath/polynomes_doctest.py index 219afcd22fd..4e19e46d251 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/polynomes_doctest.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/polynomes_doctest.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl ## -*- encoding: utf-8 -*- """ This file (./polynomes_doctest.sage) was *autogenerated* from ./polynomes.tex, diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/premierspas_doctest.py b/src/sage/tests/books/computational-mathematics-with-sagemath/premierspas_doctest.py index 42121f2f815..1e6c3b70704 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/premierspas_doctest.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/premierspas_doctest.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl ## -*- encoding: utf-8 -*- """ This file (./premierspas_doctest.sage) was *autogenerated* from ./premierspas.tex, diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/programmation_doctest.py b/src/sage/tests/books/computational-mathematics-with-sagemath/programmation_doctest.py index 3f036d5d362..db7b4cc19f0 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/programmation_doctest.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/programmation_doctest.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl ## -*- encoding: utf-8 -*- """ This file (./programmation_doctest.sage) was *autogenerated* from ./programmation.tex, diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/recequadiff_doctest.py b/src/sage/tests/books/computational-mathematics-with-sagemath/recequadiff_doctest.py index 95a6367dcee..3657f88d0fe 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/recequadiff_doctest.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/recequadiff_doctest.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl ## -*- encoding: utf-8 -*- """ This file (./recequadiff_doctest.sage) was *autogenerated* from ./recequadiff.tex, diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/sol/__init__.py b/src/sage/tests/books/computational-mathematics-with-sagemath/sol/__init__.py index e69de29bb2d..62acb4df510 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/sol/__init__.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/sol/__init__.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-repl diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/sol/calculus_doctest.py b/src/sage/tests/books/computational-mathematics-with-sagemath/sol/calculus_doctest.py index 947f9f53a22..1aa1cb803fd 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/sol/calculus_doctest.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/sol/calculus_doctest.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl ## -*- encoding: utf-8 -*- """ This file (./sol/calculus_doctest.sage) was *autogenerated* from ./sol/calculus.tex, diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/sol/combinat_doctest.py b/src/sage/tests/books/computational-mathematics-with-sagemath/sol/combinat_doctest.py index 5f372f505b0..e1d013d4ec7 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/sol/combinat_doctest.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/sol/combinat_doctest.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl ## -*- encoding: utf-8 -*- """ This file (./sol/combinat_doctest.sage) was *autogenerated* from ./sol/combinat.tex, diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/sol/domaines_doctest.py b/src/sage/tests/books/computational-mathematics-with-sagemath/sol/domaines_doctest.py index df3eb03d8fe..21bc9e0ec06 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/sol/domaines_doctest.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/sol/domaines_doctest.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl ## -*- encoding: utf-8 -*- """ This file (./sol/domaines_doctest.sage) was *autogenerated* from ./sol/domaines.tex, diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/sol/float_doctest.py b/src/sage/tests/books/computational-mathematics-with-sagemath/sol/float_doctest.py index 5d5d4686ec7..7b54b8b992b 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/sol/float_doctest.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/sol/float_doctest.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl ## -*- encoding: utf-8 -*- """ This file (./sol/float_doctest.sage) was *autogenerated* from ./sol/float.tex, diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/sol/graphique_doctest.py b/src/sage/tests/books/computational-mathematics-with-sagemath/sol/graphique_doctest.py index 549f48e1b77..9df0f960675 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/sol/graphique_doctest.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/sol/graphique_doctest.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl ## -*- encoding: utf-8 -*- """ This file (./sol/graphique_doctest.sage) was *autogenerated* from ./sol/graphique.tex, diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/sol/graphtheory_doctest.py b/src/sage/tests/books/computational-mathematics-with-sagemath/sol/graphtheory_doctest.py index 27013d35ae8..3da56272371 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/sol/graphtheory_doctest.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/sol/graphtheory_doctest.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl ## -*- encoding: utf-8 -*- """ This file (./sol/graphtheory_doctest.sage) was *autogenerated* from ./sol/graphtheory.tex, diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/sol/integration_doctest.py b/src/sage/tests/books/computational-mathematics-with-sagemath/sol/integration_doctest.py index bb9550918bf..906321fc1e9 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/sol/integration_doctest.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/sol/integration_doctest.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl ## -*- encoding: utf-8 -*- """ This file (./sol/integration_doctest.sage) was *autogenerated* from ./sol/integration.tex, diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/sol/linalg_doctest.py b/src/sage/tests/books/computational-mathematics-with-sagemath/sol/linalg_doctest.py index 7e164a3bffc..d420174704f 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/sol/linalg_doctest.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/sol/linalg_doctest.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl ## -*- encoding: utf-8 -*- """ This file (./sol/linalg_doctest.sage) was *autogenerated* from ./sol/linalg.tex, diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/sol/linsolve_doctest.py b/src/sage/tests/books/computational-mathematics-with-sagemath/sol/linsolve_doctest.py index e89d7c06fb5..adc6b5b1413 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/sol/linsolve_doctest.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/sol/linsolve_doctest.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl ## -*- encoding: utf-8 -*- """ This file (./sol/linsolve_doctest.sage) was *autogenerated* from ./sol/linsolve.tex, diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/sol/lp_doctest.py b/src/sage/tests/books/computational-mathematics-with-sagemath/sol/lp_doctest.py index d60adc9dd8b..371cd21ec4e 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/sol/lp_doctest.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/sol/lp_doctest.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl ## -*- encoding: utf-8 -*- """ This file (./sol/lp_doctest.sage) was *autogenerated* from ./sol/lp.tex, diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/sol/mpoly_doctest.py b/src/sage/tests/books/computational-mathematics-with-sagemath/sol/mpoly_doctest.py index d4b92c1dfd6..488ac70a83c 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/sol/mpoly_doctest.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/sol/mpoly_doctest.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl ## -*- encoding: utf-8 -*- """ This file (./sol/mpoly_doctest.sage) was *autogenerated* from ./sol/mpoly.tex, diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/sol/nonlinear_doctest.py b/src/sage/tests/books/computational-mathematics-with-sagemath/sol/nonlinear_doctest.py index f99860f7b9c..5af539c3f14 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/sol/nonlinear_doctest.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/sol/nonlinear_doctest.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl ## -*- encoding: utf-8 -*- """ This file (./sol/nonlinear_doctest.sage) was *autogenerated* from ./sol/nonlinear.tex, diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/sol/numbertheory_doctest.py b/src/sage/tests/books/computational-mathematics-with-sagemath/sol/numbertheory_doctest.py index 2dbd0b018e5..88b4249f95c 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/sol/numbertheory_doctest.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/sol/numbertheory_doctest.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl ## -*- encoding: utf-8 -*- """ This file (./sol/numbertheory_doctest.sage) was *autogenerated* from ./sol/numbertheory.tex, diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/sol/polynomes_doctest.py b/src/sage/tests/books/computational-mathematics-with-sagemath/sol/polynomes_doctest.py index f8cefd2f6e8..19c458c8044 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/sol/polynomes_doctest.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/sol/polynomes_doctest.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl ## -*- encoding: utf-8 -*- """ This file (./sol/polynomes_doctest.sage) was *autogenerated* from ./sol/polynomes.tex, diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/sol/recequadiff_doctest.py b/src/sage/tests/books/computational-mathematics-with-sagemath/sol/recequadiff_doctest.py index 01d0e1bc143..b71acb01996 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/sol/recequadiff_doctest.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/sol/recequadiff_doctest.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl ## -*- encoding: utf-8 -*- """ This file (./sol/recequadiff_doctest.sage) was *autogenerated* from ./sol/recequadiff.tex, diff --git a/src/sage/tests/books/judson-abstract-algebra/__init__.py b/src/sage/tests/books/judson-abstract-algebra/__init__.py index e69de29bb2d..62acb4df510 100644 --- a/src/sage/tests/books/judson-abstract-algebra/__init__.py +++ b/src/sage/tests/books/judson-abstract-algebra/__init__.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-repl diff --git a/src/sage/tests/books/judson-abstract-algebra/actions-sage-exercises.py b/src/sage/tests/books/judson-abstract-algebra/actions-sage-exercises.py index eb93e40815f..ff4884405c6 100644 --- a/src/sage/tests/books/judson-abstract-algebra/actions-sage-exercises.py +++ b/src/sage/tests/books/judson-abstract-algebra/actions-sage-exercises.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl ## -*- coding: utf-8 -*- ## ## Sage Doctest File ## #**************************************# diff --git a/src/sage/tests/books/judson-abstract-algebra/actions-sage.py b/src/sage/tests/books/judson-abstract-algebra/actions-sage.py index 98eb03fcc64..71e46b9704d 100644 --- a/src/sage/tests/books/judson-abstract-algebra/actions-sage.py +++ b/src/sage/tests/books/judson-abstract-algebra/actions-sage.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl ## -*- coding: utf-8 -*- ## ## Sage Doctest File ## #**************************************# diff --git a/src/sage/tests/books/judson-abstract-algebra/algcodes-sage.py b/src/sage/tests/books/judson-abstract-algebra/algcodes-sage.py index 816ae050b95..3a6a63716dd 100644 --- a/src/sage/tests/books/judson-abstract-algebra/algcodes-sage.py +++ b/src/sage/tests/books/judson-abstract-algebra/algcodes-sage.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl ## -*- coding: utf-8 -*- ## ## Sage Doctest File ## #**************************************# diff --git a/src/sage/tests/books/judson-abstract-algebra/boolean-sage.py b/src/sage/tests/books/judson-abstract-algebra/boolean-sage.py index 2d7b13c00f7..4082e90450f 100644 --- a/src/sage/tests/books/judson-abstract-algebra/boolean-sage.py +++ b/src/sage/tests/books/judson-abstract-algebra/boolean-sage.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl ## -*- coding: utf-8 -*- ## ## Sage Doctest File ## #**************************************# diff --git a/src/sage/tests/books/judson-abstract-algebra/cosets-sage-exercises.py b/src/sage/tests/books/judson-abstract-algebra/cosets-sage-exercises.py index 57ab9ff0acf..47e5ac5abf5 100644 --- a/src/sage/tests/books/judson-abstract-algebra/cosets-sage-exercises.py +++ b/src/sage/tests/books/judson-abstract-algebra/cosets-sage-exercises.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl ## -*- coding: utf-8 -*- ## ## Sage Doctest File ## #**************************************# diff --git a/src/sage/tests/books/judson-abstract-algebra/cosets-sage.py b/src/sage/tests/books/judson-abstract-algebra/cosets-sage.py index 25efca28dce..f3b62b86881 100644 --- a/src/sage/tests/books/judson-abstract-algebra/cosets-sage.py +++ b/src/sage/tests/books/judson-abstract-algebra/cosets-sage.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl ## -*- coding: utf-8 -*- ## ## Sage Doctest File ## #**************************************# diff --git a/src/sage/tests/books/judson-abstract-algebra/crypt-sage.py b/src/sage/tests/books/judson-abstract-algebra/crypt-sage.py index 510761ddb6c..744041552d9 100644 --- a/src/sage/tests/books/judson-abstract-algebra/crypt-sage.py +++ b/src/sage/tests/books/judson-abstract-algebra/crypt-sage.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl ## -*- coding: utf-8 -*- ## ## Sage Doctest File ## #**************************************# diff --git a/src/sage/tests/books/judson-abstract-algebra/cyclic-sage.py b/src/sage/tests/books/judson-abstract-algebra/cyclic-sage.py index 5f8cd284b52..110dc45ecd1 100644 --- a/src/sage/tests/books/judson-abstract-algebra/cyclic-sage.py +++ b/src/sage/tests/books/judson-abstract-algebra/cyclic-sage.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl ## -*- coding: utf-8 -*- ## ## Sage Doctest File ## #**************************************# diff --git a/src/sage/tests/books/judson-abstract-algebra/domains-sage.py b/src/sage/tests/books/judson-abstract-algebra/domains-sage.py index 599ecc23155..1184f891041 100644 --- a/src/sage/tests/books/judson-abstract-algebra/domains-sage.py +++ b/src/sage/tests/books/judson-abstract-algebra/domains-sage.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl ## -*- coding: utf-8 -*- ## ## Sage Doctest File ## #**************************************# diff --git a/src/sage/tests/books/judson-abstract-algebra/fields-sage.py b/src/sage/tests/books/judson-abstract-algebra/fields-sage.py index de12e97030c..6aa13b8cfde 100644 --- a/src/sage/tests/books/judson-abstract-algebra/fields-sage.py +++ b/src/sage/tests/books/judson-abstract-algebra/fields-sage.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl ## -*- coding: utf-8 -*- ## ## Sage Doctest File ## #**************************************# diff --git a/src/sage/tests/books/judson-abstract-algebra/finite-sage.py b/src/sage/tests/books/judson-abstract-algebra/finite-sage.py index d6d85490a87..8af4841567b 100644 --- a/src/sage/tests/books/judson-abstract-algebra/finite-sage.py +++ b/src/sage/tests/books/judson-abstract-algebra/finite-sage.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl ## -*- coding: utf-8 -*- ## ## Sage Doctest File ## #**************************************# diff --git a/src/sage/tests/books/judson-abstract-algebra/galois-sage.py b/src/sage/tests/books/judson-abstract-algebra/galois-sage.py index 036b0a390c0..3708376bb2f 100644 --- a/src/sage/tests/books/judson-abstract-algebra/galois-sage.py +++ b/src/sage/tests/books/judson-abstract-algebra/galois-sage.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl ## -*- coding: utf-8 -*- ## ## Sage Doctest File ## #**************************************# diff --git a/src/sage/tests/books/judson-abstract-algebra/groups-sage.py b/src/sage/tests/books/judson-abstract-algebra/groups-sage.py index 71e0ee12eba..911c0bdac05 100644 --- a/src/sage/tests/books/judson-abstract-algebra/groups-sage.py +++ b/src/sage/tests/books/judson-abstract-algebra/groups-sage.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl ## -*- coding: utf-8 -*- ## ## Sage Doctest File ## #**************************************# diff --git a/src/sage/tests/books/judson-abstract-algebra/homomorph-sage-exercises.py b/src/sage/tests/books/judson-abstract-algebra/homomorph-sage-exercises.py index 31c4f1818fe..8cba4ac84ad 100644 --- a/src/sage/tests/books/judson-abstract-algebra/homomorph-sage-exercises.py +++ b/src/sage/tests/books/judson-abstract-algebra/homomorph-sage-exercises.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl ## -*- coding: utf-8 -*- ## ## Sage Doctest File ## #**************************************# diff --git a/src/sage/tests/books/judson-abstract-algebra/homomorph-sage.py b/src/sage/tests/books/judson-abstract-algebra/homomorph-sage.py index 29b25d1efde..55ff23e5415 100644 --- a/src/sage/tests/books/judson-abstract-algebra/homomorph-sage.py +++ b/src/sage/tests/books/judson-abstract-algebra/homomorph-sage.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl ## -*- coding: utf-8 -*- ## ## Sage Doctest File ## #**************************************# diff --git a/src/sage/tests/books/judson-abstract-algebra/integers-sage.py b/src/sage/tests/books/judson-abstract-algebra/integers-sage.py index 20a8228035e..feaa294cbeb 100644 --- a/src/sage/tests/books/judson-abstract-algebra/integers-sage.py +++ b/src/sage/tests/books/judson-abstract-algebra/integers-sage.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl ## -*- coding: utf-8 -*- ## ## Sage Doctest File ## #**************************************# diff --git a/src/sage/tests/books/judson-abstract-algebra/isomorph-sage.py b/src/sage/tests/books/judson-abstract-algebra/isomorph-sage.py index 43333ac1ea1..b3b083ce01e 100644 --- a/src/sage/tests/books/judson-abstract-algebra/isomorph-sage.py +++ b/src/sage/tests/books/judson-abstract-algebra/isomorph-sage.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl ## -*- coding: utf-8 -*- ## ## Sage Doctest File ## #**************************************# diff --git a/src/sage/tests/books/judson-abstract-algebra/normal-sage.py b/src/sage/tests/books/judson-abstract-algebra/normal-sage.py index 3db475d41b0..5818e066023 100644 --- a/src/sage/tests/books/judson-abstract-algebra/normal-sage.py +++ b/src/sage/tests/books/judson-abstract-algebra/normal-sage.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl ## -*- coding: utf-8 -*- ## ## Sage Doctest File ## #**************************************# diff --git a/src/sage/tests/books/judson-abstract-algebra/permute-sage.py b/src/sage/tests/books/judson-abstract-algebra/permute-sage.py index 625fb080a06..0380518069d 100644 --- a/src/sage/tests/books/judson-abstract-algebra/permute-sage.py +++ b/src/sage/tests/books/judson-abstract-algebra/permute-sage.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl ## -*- coding: utf-8 -*- ## ## Sage Doctest File ## #**************************************# diff --git a/src/sage/tests/books/judson-abstract-algebra/poly-sage.py b/src/sage/tests/books/judson-abstract-algebra/poly-sage.py index 0333425266d..fcf5a9e7a6f 100644 --- a/src/sage/tests/books/judson-abstract-algebra/poly-sage.py +++ b/src/sage/tests/books/judson-abstract-algebra/poly-sage.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl ## -*- coding: utf-8 -*- ## ## Sage Doctest File ## #**************************************# diff --git a/src/sage/tests/books/judson-abstract-algebra/rings-sage.py b/src/sage/tests/books/judson-abstract-algebra/rings-sage.py index 6d9571d00cd..d16ceb06baf 100644 --- a/src/sage/tests/books/judson-abstract-algebra/rings-sage.py +++ b/src/sage/tests/books/judson-abstract-algebra/rings-sage.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl ## -*- coding: utf-8 -*- ## ## Sage Doctest File ## #**************************************# diff --git a/src/sage/tests/books/judson-abstract-algebra/sets-sage.py b/src/sage/tests/books/judson-abstract-algebra/sets-sage.py index 0825b227669..ce012a2f45a 100644 --- a/src/sage/tests/books/judson-abstract-algebra/sets-sage.py +++ b/src/sage/tests/books/judson-abstract-algebra/sets-sage.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl ## -*- coding: utf-8 -*- ## ## Sage Doctest File ## #**************************************# diff --git a/src/sage/tests/books/judson-abstract-algebra/struct-sage.py b/src/sage/tests/books/judson-abstract-algebra/struct-sage.py index ce825b56c3c..eabfec07b08 100644 --- a/src/sage/tests/books/judson-abstract-algebra/struct-sage.py +++ b/src/sage/tests/books/judson-abstract-algebra/struct-sage.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl ## -*- coding: utf-8 -*- ## ## Sage Doctest File ## #**************************************# diff --git a/src/sage/tests/books/judson-abstract-algebra/sylow-sage.py b/src/sage/tests/books/judson-abstract-algebra/sylow-sage.py index 0051f206528..8723795dc31 100644 --- a/src/sage/tests/books/judson-abstract-algebra/sylow-sage.py +++ b/src/sage/tests/books/judson-abstract-algebra/sylow-sage.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl ## -*- coding: utf-8 -*- ## ## Sage Doctest File ## #**************************************# diff --git a/src/sage/tests/books/judson-abstract-algebra/vect-sage-exercises.py b/src/sage/tests/books/judson-abstract-algebra/vect-sage-exercises.py index 45786b72a36..0747a171e90 100644 --- a/src/sage/tests/books/judson-abstract-algebra/vect-sage-exercises.py +++ b/src/sage/tests/books/judson-abstract-algebra/vect-sage-exercises.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl ## -*- coding: utf-8 -*- ## ## Sage Doctest File ## #**************************************# diff --git a/src/sage/tests/books/judson-abstract-algebra/vect-sage.py b/src/sage/tests/books/judson-abstract-algebra/vect-sage.py index 46a9bd7cb68..e4d67d37360 100644 --- a/src/sage/tests/books/judson-abstract-algebra/vect-sage.py +++ b/src/sage/tests/books/judson-abstract-algebra/vect-sage.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl ## -*- coding: utf-8 -*- ## ## Sage Doctest File ## #**************************************# diff --git a/src/sage/tests/cmdline.py b/src/sage/tests/cmdline.py index 5a577d1ff83..3fd6c2215f6 100644 --- a/src/sage/tests/cmdline.py +++ b/src/sage/tests/cmdline.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl r""" This file contains some tests that Sage command line options actually do something. diff --git a/src/sage/tests/combinatorial_hopf_algebras.py b/src/sage/tests/combinatorial_hopf_algebras.py index 33c0472f404..7e5010f22ea 100644 --- a/src/sage/tests/combinatorial_hopf_algebras.py +++ b/src/sage/tests/combinatorial_hopf_algebras.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl # sage.doctest: needs sage.combinat sage.modules r""" Tests For Combinatorial Hopf Algebras diff --git a/src/sage/tests/cython.pyx b/src/sage/tests/cython.pyx index 3036085fdf2..ebdc8fc1662 100644 --- a/src/sage/tests/cython.pyx +++ b/src/sage/tests/cython.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl """ This file collects tests requiring Cython. """ diff --git a/src/sage/tests/finite_poset.py b/src/sage/tests/finite_poset.py index d04221dcc13..8f69c933628 100644 --- a/src/sage/tests/finite_poset.py +++ b/src/sage/tests/finite_poset.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl # sage.doctest: needs sage.graphs sage.modules """ This file contains test functions that can be used to search diff --git a/src/sage/tests/functools_partial_src.py b/src/sage/tests/functools_partial_src.py index d352d160230..92044eccc01 100644 --- a/src/sage/tests/functools_partial_src.py +++ b/src/sage/tests/functools_partial_src.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl r""" Ensure that ``functools.partial`` is correctly handled by :func:`~sage.misc.sageinspect.sage_getsourcelines`. diff --git a/src/sage/tests/gap_packages.py b/src/sage/tests/gap_packages.py index 249d1b03d23..00c39e92e9b 100644 --- a/src/sage/tests/gap_packages.py +++ b/src/sage/tests/gap_packages.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl # sage.doctest: needs sage.libs.gap """ Test the optional GAP packages diff --git a/src/sage/tests/gosper-sum.py b/src/sage/tests/gosper-sum.py index 84679ac0ff3..6c0f43340a2 100644 --- a/src/sage/tests/gosper-sum.py +++ b/src/sage/tests/gosper-sum.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl # sage.doctest: needs sage.symbolic """ Some tests about Gosper sums. diff --git a/src/sage/tests/lazy_imports.py b/src/sage/tests/lazy_imports.py index 8ea93a15ab5..f5479de2423 100644 --- a/src/sage/tests/lazy_imports.py +++ b/src/sage/tests/lazy_imports.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl # sage.doctest: needs sage.all r""" TESTS: diff --git a/src/sage/tests/memcheck/__init__.py b/src/sage/tests/memcheck/__init__.py index e69de29bb2d..62acb4df510 100644 --- a/src/sage/tests/memcheck/__init__.py +++ b/src/sage/tests/memcheck/__init__.py @@ -0,0 +1 @@ +# sage_setup: distribution = sagemath-repl diff --git a/src/sage/tests/memcheck/run_tests.py b/src/sage/tests/memcheck/run_tests.py index 6ff4503a81b..69554601383 100644 --- a/src/sage/tests/memcheck/run_tests.py +++ b/src/sage/tests/memcheck/run_tests.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl import types diff --git a/src/sage/tests/memcheck/run_tests_in_valgrind.py b/src/sage/tests/memcheck/run_tests_in_valgrind.py index df5ad0e92b2..307154c11f2 100644 --- a/src/sage/tests/memcheck/run_tests_in_valgrind.py +++ b/src/sage/tests/memcheck/run_tests_in_valgrind.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl """ Launch valgrind and run the memory leak tests diff --git a/src/sage/tests/memcheck/symbolic_expression.py b/src/sage/tests/memcheck/symbolic_expression.py index 52182fbe62d..80ae3b32fee 100644 --- a/src/sage/tests/memcheck/symbolic_expression.py +++ b/src/sage/tests/memcheck/symbolic_expression.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl from sage.tests.memcheck.verify_no_leak import verify_no_leak diff --git a/src/sage/tests/memcheck/verify_no_leak.py b/src/sage/tests/memcheck/verify_no_leak.py index 89ca90cf89c..b1671de64b4 100644 --- a/src/sage/tests/memcheck/verify_no_leak.py +++ b/src/sage/tests/memcheck/verify_no_leak.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl from typing import Tuple, Sequence, List, Callable, Any import valgrind diff --git a/src/sage/tests/modular_group_cohomology.py b/src/sage/tests/modular_group_cohomology.py index 35bc8b5387f..db03cfb80e7 100644 --- a/src/sage/tests/modular_group_cohomology.py +++ b/src/sage/tests/modular_group_cohomology.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl # sage.doctest: optional - p_group_cohomology r""" Tests for the optional ``p_group_cohomology`` package. diff --git a/src/sage/tests/numpy.py b/src/sage/tests/numpy.py index 5cd78b148d2..a397edc85fb 100644 --- a/src/sage/tests/numpy.py +++ b/src/sage/tests/numpy.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl # sage.doctest: needs numpy r""" TESTS: diff --git a/src/sage/tests/parigp.py b/src/sage/tests/parigp.py index 1049149a147..d87244560ab 100644 --- a/src/sage/tests/parigp.py +++ b/src/sage/tests/parigp.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl # sage.doctest: needs sage.libs.pari sage.modules r""" This file is meant to catch errors in the PARI/GP package which are not diff --git a/src/sage/tests/startup.py b/src/sage/tests/startup.py index 70629908446..55cd4ee9700 100644 --- a/src/sage/tests/startup.py +++ b/src/sage/tests/startup.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl r""" Ensure that certain modules are not loaded on startup. diff --git a/src/sage/tests/stl_vector.pyx b/src/sage/tests/stl_vector.pyx index 2a7c1bf5d05..b8efbfe5aa9 100644 --- a/src/sage/tests/stl_vector.pyx +++ b/src/sage/tests/stl_vector.pyx @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl # distutils: language = c++ """ diff --git a/src/sage/tests/symbolic-series.py b/src/sage/tests/symbolic-series.py index 5e53d1e07af..0fdaa6b1ce5 100644 --- a/src/sage/tests/symbolic-series.py +++ b/src/sage/tests/symbolic-series.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl # sage.doctest: needs sage.symbolic """ Tests for the fast univariate series expansion in Pynac diff --git a/src/sage/tests/sympy.py b/src/sage/tests/sympy.py index 2f98f95e00c..cbc05d9ec76 100644 --- a/src/sage/tests/sympy.py +++ b/src/sage/tests/sympy.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl # sage.doctest: optional - sympy r""" TESTS: diff --git a/src/sage/tests/test_deprecation.py b/src/sage/tests/test_deprecation.py index a8e6ff9c99b..a79e1a2bc79 100644 --- a/src/sage/tests/test_deprecation.py +++ b/src/sage/tests/test_deprecation.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-repl """ Tests Deprecation diff --git a/src/sage/topology/all.py b/src/sage/topology/all.py index 53b89564daa..2089fc4393f 100644 --- a/src/sage/topology/all.py +++ b/src/sage/topology/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # sage.doctest: needs sage.graphs from .simplicial_complex import SimplicialComplex, Simplex diff --git a/src/sage/topology/cell_complex.py b/src/sage/topology/cell_complex.py index 2f5abd5fc2b..07a12d50051 100644 --- a/src/sage/topology/cell_complex.py +++ b/src/sage/topology/cell_complex.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # sage.doctest: needs sage.graphs r""" Generic cell complexes diff --git a/src/sage/topology/cubical_complex.py b/src/sage/topology/cubical_complex.py index e31bbef30c6..15d6bd7f69d 100644 --- a/src/sage/topology/cubical_complex.py +++ b/src/sage/topology/cubical_complex.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # sage.doctest: needs sage.graphs r""" Finite cubical complexes diff --git a/src/sage/topology/delta_complex.py b/src/sage/topology/delta_complex.py index 18888465713..12b71d829b2 100644 --- a/src/sage/topology/delta_complex.py +++ b/src/sage/topology/delta_complex.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # sage.doctest: needs sage.graphs r""" Finite Delta-complexes diff --git a/src/sage/topology/filtered_simplicial_complex.py b/src/sage/topology/filtered_simplicial_complex.py index 95191dd1cd4..70e10d13770 100644 --- a/src/sage/topology/filtered_simplicial_complex.py +++ b/src/sage/topology/filtered_simplicial_complex.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # sage.doctest: needs sage.graphs r""" Finite filtered complexes diff --git a/src/sage/topology/moment_angle_complex.py b/src/sage/topology/moment_angle_complex.py index a06aea0309b..da709f3cbe4 100644 --- a/src/sage/topology/moment_angle_complex.py +++ b/src/sage/topology/moment_angle_complex.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs """ Moment-angle complexes diff --git a/src/sage/topology/simplicial_complex.py b/src/sage/topology/simplicial_complex.py index 8ca615e3488..92f7d80839c 100644 --- a/src/sage/topology/simplicial_complex.py +++ b/src/sage/topology/simplicial_complex.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # sage.doctest: needs sage.graphs r""" Finite simplicial complexes diff --git a/src/sage/topology/simplicial_complex_catalog.py b/src/sage/topology/simplicial_complex_catalog.py index dff18de22a0..8a0b547e2c2 100644 --- a/src/sage/topology/simplicial_complex_catalog.py +++ b/src/sage/topology/simplicial_complex_catalog.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # sage.doctest: needs sage.graphs """ Catalog of simplicial complexes diff --git a/src/sage/topology/simplicial_complex_examples.py b/src/sage/topology/simplicial_complex_examples.py index 2b1af7cbbe4..9f0f7eda64a 100644 --- a/src/sage/topology/simplicial_complex_examples.py +++ b/src/sage/topology/simplicial_complex_examples.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # sage.doctest: needs sage.graphs """ Examples of simplicial complexes diff --git a/src/sage/topology/simplicial_complex_homset.py b/src/sage/topology/simplicial_complex_homset.py index 255e905a990..c5c8b872788 100644 --- a/src/sage/topology/simplicial_complex_homset.py +++ b/src/sage/topology/simplicial_complex_homset.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # sage.doctest: needs sage.graphs r""" Homsets between simplicial complexes diff --git a/src/sage/topology/simplicial_complex_morphism.py b/src/sage/topology/simplicial_complex_morphism.py index 0030c4edee8..919a6dc2a85 100644 --- a/src/sage/topology/simplicial_complex_morphism.py +++ b/src/sage/topology/simplicial_complex_morphism.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # sage.doctest: needs sage.graphs r""" Morphisms of simplicial complexes diff --git a/src/sage/topology/simplicial_set.py b/src/sage/topology/simplicial_set.py index 9b707a62916..48392dda7e1 100644 --- a/src/sage/topology/simplicial_set.py +++ b/src/sage/topology/simplicial_set.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # sage.doctest: needs sage.graphs r""" Simplicial sets diff --git a/src/sage/topology/simplicial_set_catalog.py b/src/sage/topology/simplicial_set_catalog.py index 0269c8f6628..927cf7a3103 100644 --- a/src/sage/topology/simplicial_set_catalog.py +++ b/src/sage/topology/simplicial_set_catalog.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # sage.doctest: needs sage.graphs r""" Catalog of simplicial sets diff --git a/src/sage/topology/simplicial_set_constructions.py b/src/sage/topology/simplicial_set_constructions.py index 3a217286ac5..57ac020f03e 100644 --- a/src/sage/topology/simplicial_set_constructions.py +++ b/src/sage/topology/simplicial_set_constructions.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # sage.doctest: needs sage.graphs r""" Methods of constructing simplicial sets diff --git a/src/sage/topology/simplicial_set_examples.py b/src/sage/topology/simplicial_set_examples.py index 1fc85df3f6e..c0cb1e2fb32 100644 --- a/src/sage/topology/simplicial_set_examples.py +++ b/src/sage/topology/simplicial_set_examples.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # sage.doctest: needs sage.graphs r""" Examples of simplicial sets. diff --git a/src/sage/topology/simplicial_set_morphism.py b/src/sage/topology/simplicial_set_morphism.py index df5d004b3e1..c94a284ca9c 100644 --- a/src/sage/topology/simplicial_set_morphism.py +++ b/src/sage/topology/simplicial_set_morphism.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-graphs # sage.doctest: needs sage.graphs r""" Morphisms and homsets for simplicial sets diff --git a/src/sage/typeset/all.py b/src/sage/typeset/all.py index f2327dfdb20..66a4e73f80c 100644 --- a/src/sage/typeset/all.py +++ b/src/sage/typeset/all.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories from sage.misc.lazy_import import lazy_import lazy_import('sage.typeset.ascii_art', 'ascii_art') diff --git a/src/sage/typeset/ascii_art.py b/src/sage/typeset/ascii_art.py index 395245c0df5..0dfc7bb5d6b 100644 --- a/src/sage/typeset/ascii_art.py +++ b/src/sage/typeset/ascii_art.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # -*- coding: utf-8 -*- r""" ASCII Art diff --git a/src/sage/typeset/character_art.py b/src/sage/typeset/character_art.py index 239e35a7df3..7a44fd356d7 100644 --- a/src/sage/typeset/character_art.py +++ b/src/sage/typeset/character_art.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # -*- coding: utf-8 -*- r""" Base Class for Character-Based Art diff --git a/src/sage/typeset/character_art_factory.py b/src/sage/typeset/character_art_factory.py index cc3855d8f10..6449411f890 100644 --- a/src/sage/typeset/character_art_factory.py +++ b/src/sage/typeset/character_art_factory.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # -*- coding: utf-8 -*- r""" Factory for Character-Based Art diff --git a/src/sage/typeset/symbols.py b/src/sage/typeset/symbols.py index 00ddf81e63a..6c10a1031fe 100644 --- a/src/sage/typeset/symbols.py +++ b/src/sage/typeset/symbols.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # -*- coding: utf-8 -*- """ Symbols for Character Art diff --git a/src/sage/typeset/unicode_art.py b/src/sage/typeset/unicode_art.py index d9218e1df30..f0700e413c7 100644 --- a/src/sage/typeset/unicode_art.py +++ b/src/sage/typeset/unicode_art.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories # -*- coding: utf-8 -*- r""" Unicode Art diff --git a/src/sage/typeset/unicode_characters.py b/src/sage/typeset/unicode_characters.py index c4aa7bdd5fb..bedea90565c 100644 --- a/src/sage/typeset/unicode_characters.py +++ b/src/sage/typeset/unicode_characters.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-categories r""" Unicode Characters diff --git a/src/sage/version.py b/src/sage/version.py index ae557017ab3..8d8fb782a93 100644 --- a/src/sage/version.py +++ b/src/sage/version.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-environment # Sage version information for Python scripts # This file is auto-generated by the sage-update-version script, do not edit! version = '10.3.beta4' From 6740531ff63bb21a09805438fc7f33567bdc7003 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Tue, 26 Dec 2023 08:32:33 -0800 Subject: [PATCH 034/140] grep -l 'coding: *utf-8' src/sage | xargs sed -i.bak '/^#.*coding: *utf-8/d' --- src/sage/arith/misc.py | 1 - src/sage/combinat/debruijn_sequence.pyx | 1 - src/sage/combinat/fast_vector_partitions.pyx | 1 - src/sage/combinat/matrices/dancing_links.pyx | 1 - src/sage/cpython/atexit.pyx | 1 - src/sage/cpython/string.pyx | 1 - src/sage/crypto/boolean_function.pyx | 1 - src/sage/data_structures/blas_dict.pyx | 1 - src/sage/databases/conway.py | 1 - src/sage/databases/cubic_hecke_db.py | 1 - src/sage/databases/findstat.py | 1 - src/sage/databases/knotinfo_db.py | 1 - src/sage/databases/oeis.py | 1 - src/sage/databases/sql_db.py | 1 - src/sage/doctest/parsing.py | 1 - src/sage/doctest/reporting.py | 1 - src/sage/dynamics/arithmetic_dynamics/projective_ds.py | 1 - src/sage/dynamics/cellular_automata/elementary.py | 1 - src/sage/dynamics/cellular_automata/glca.py | 1 - src/sage/features/__init__.py | 1 - src/sage/features/csdp.py | 1 - src/sage/features/lrs.py | 1 - src/sage/features/msolve.py | 1 - src/sage/features/pandoc.py | 1 - src/sage/game_theory/normal_form_game.py | 1 - src/sage/games/quantumino.py | 1 - src/sage/graphs/base/graph_backends.pyx | 1 - src/sage/graphs/generic_graph_pyx.pyx | 1 - src/sage/graphs/graph_decompositions/clique_separators.pyx | 1 - src/sage/graphs/path_enumeration.pyx | 1 - src/sage/graphs/strongly_regular_db.pyx | 1 - src/sage/graphs/traversals.pyx | 1 - src/sage/homology/chain_complex.py | 1 - src/sage/homology/chain_homotopy.py | 1 - src/sage/interfaces/frobby.py | 1 - src/sage/interfaces/gap.py | 1 - src/sage/interfaces/genus2reduction.py | 1 - src/sage/interfaces/maxima_abstract.py | 1 - src/sage/interfaces/r.py | 1 - src/sage/knots/gauss_code.py | 1 - src/sage/knots/knot.py | 1 - src/sage/knots/knotinfo.py | 1 - src/sage/lfunctions/pari.py | 1 - src/sage/libs/arb/arb_version.pyx | 1 - src/sage/libs/giac/__init__.py | 1 - src/sage/libs/linkages/padics/Polynomial_ram.pxi | 1 - src/sage/manifolds/differentiable/integrated_curve.py | 1 - src/sage/manifolds/differentiable/levi_civita_connection.py | 1 - src/sage/manifolds/differentiable/manifold.py | 1 - src/sage/manifolds/section_module.py | 1 - src/sage/manifolds/subset.py | 1 - src/sage/manifolds/vector_bundle.py | 1 - src/sage/matrix/matrix0.pyx | 1 - src/sage/matrix/matrix_gf2e_dense.pyx | 1 - src/sage/matrix/matrix_integer_dense.pyx | 1 - src/sage/matrix/matrix_integer_sparse.pyx | 1 - src/sage/matrix/matrix_mod2_dense.pyx | 1 - src/sage/matrix/special.py | 1 - src/sage/matroids/matroid.pyx | 1 - src/sage/misc/callable_dict.pyx | 1 - src/sage/misc/lazy_string.pyx | 1 - src/sage/misc/parser.pyx | 1 - src/sage/modular/pollack_stevens/dist.pyx | 1 - src/sage/modules/with_basis/indexed_element.pyx | 1 - src/sage/monoids/automatic_semigroup.py | 1 - src/sage/monoids/hecke_monoid.py | 1 - src/sage/parallel/map_reduce.py | 1 - src/sage/plot/graphics.py | 1 - src/sage/plot/point.py | 1 - src/sage/quivers/path_semigroup.py | 1 - src/sage/repl/display/fancy_repr.py | 1 - src/sage/repl/display/formatter.py | 1 - src/sage/repl/display/pretty_print.py | 1 - src/sage/repl/display/util.py | 1 - src/sage/repl/image.py | 1 - src/sage/repl/ipython_kernel/interact.py | 1 - src/sage/repl/ipython_kernel/kernel.py | 1 - src/sage/repl/ipython_kernel/widgets_sagenb.py | 1 - src/sage/repl/preparse.py | 1 - src/sage/repl/rich_output/__init__.py | 1 - src/sage/repl/rich_output/backend_base.py | 1 - src/sage/repl/rich_output/backend_doctest.py | 1 - src/sage/repl/rich_output/backend_emacs.py | 1 - src/sage/repl/rich_output/backend_ipython.py | 1 - src/sage/repl/rich_output/buffer.py | 1 - src/sage/repl/rich_output/display_manager.py | 1 - src/sage/repl/rich_output/output_basic.py | 1 - src/sage/repl/rich_output/output_browser.py | 1 - src/sage/repl/rich_output/output_catalog.py | 1 - src/sage/repl/rich_output/output_graphics.py | 1 - src/sage/repl/rich_output/output_graphics3d.py | 1 - src/sage/repl/rich_output/output_video.py | 1 - src/sage/repl/rich_output/preferences.py | 1 - src/sage/repl/rich_output/pretty_print.py | 1 - src/sage/repl/rich_output/test_backend.py | 1 - src/sage/rings/complex_arb.pyx | 1 - src/sage/rings/continued_fraction.py | 1 - src/sage/rings/continued_fraction_gosper.py | 1 - src/sage/rings/factorint.pyx | 1 - src/sage/rings/fraction_field.py | 1 - src/sage/rings/imaginary_unit.py | 1 - src/sage/rings/lazy_series.py | 1 - src/sage/rings/morphism.pyx | 1 - src/sage/rings/number_field/class_group.py | 1 - src/sage/rings/number_field/selmer_group.py | 1 - src/sage/rings/padics/misc.py | 1 - src/sage/rings/padics/padic_valuation.py | 1 - src/sage/rings/padics/pow_computer_relative.pxd | 1 - src/sage/rings/padics/pow_computer_relative.pyx | 1 - src/sage/rings/polynomial/binary_form_reduce.py | 1 - src/sage/rings/polynomial/cyclotomic.pyx | 1 - src/sage/rings/polynomial/flatten.py | 1 - src/sage/rings/polynomial/hilbert.pyx | 1 - src/sage/rings/polynomial/ideal.py | 1 - src/sage/rings/polynomial/integer_valued_polynomials.py | 1 - src/sage/rings/polynomial/msolve.py | 1 - src/sage/rings/polynomial/polynomial_complex_arb.pyx | 1 - src/sage/rings/polynomial/polynomial_element.pyx | 1 - src/sage/rings/polynomial/polynomial_ring.py | 1 - src/sage/rings/power_series_poly.pyx | 1 - src/sage/rings/puiseux_series_ring.py | 1 - src/sage/rings/puiseux_series_ring_element.pyx | 1 - src/sage/rings/real_arb.pyx | 1 - src/sage/rings/valuation/developing_valuation.py | 1 - src/sage/rings/valuation/gauss_valuation.py | 1 - src/sage/rings/valuation/inductive_valuation.py | 1 - src/sage/rings/valuation/limit_valuation.py | 1 - src/sage/rings/valuation/mapped_valuation.py | 1 - src/sage/rings/valuation/scaled_valuation.py | 1 - src/sage/rings/valuation/trivial_valuation.py | 1 - src/sage/rings/valuation/valuation.py | 1 - src/sage/rings/valuation/valuation_space.py | 1 - src/sage/rings/valuation/value_group.py | 1 - src/sage/sandpiles/examples.py | 1 - src/sage/schemes/elliptic_curves/mod_sym_num.pyx | 1 - src/sage/sets/disjoint_set.pyx | 1 - src/sage/sets/recursively_enumerated_set.pyx | 1 - src/sage/stats/distributions/discrete_gaussian_lattice.py | 1 - src/sage/stats/distributions/discrete_gaussian_polynomial.py | 1 - src/sage/structure/element_wrapper.pyx | 1 - src/sage/structure/indexed_generators.py | 1 - src/sage/structure/list_clone_timings.py | 1 - src/sage/structure/sage_object.pyx | 1 - src/sage/symbolic/expression.pyx | 1 - src/sage/symbolic/ring.pyx | 1 - .../computational-mathematics-with-sagemath/calculus_doctest.py | 1 - .../computational-mathematics-with-sagemath/combinat_doctest.py | 1 - .../computational-mathematics-with-sagemath/domaines_doctest.py | 1 - .../computational-mathematics-with-sagemath/float_doctest.py | 1 - .../computational-mathematics-with-sagemath/graphique_doctest.py | 1 - .../graphtheory_doctest.py | 1 - .../integration_doctest.py | 1 - .../computational-mathematics-with-sagemath/linalg_doctest.py | 1 - .../computational-mathematics-with-sagemath/linsolve_doctest.py | 1 - .../books/computational-mathematics-with-sagemath/lp_doctest.py | 1 - .../computational-mathematics-with-sagemath/mpoly_doctest.py | 1 - .../computational-mathematics-with-sagemath/nonlinear_doctest.py | 1 - .../numbertheory_doctest.py | 1 - .../computational-mathematics-with-sagemath/polynomes_doctest.py | 1 - .../premierspas_doctest.py | 1 - .../programmation_doctest.py | 1 - .../recequadiff_doctest.py | 1 - .../sol/calculus_doctest.py | 1 - .../sol/combinat_doctest.py | 1 - .../sol/domaines_doctest.py | 1 - .../computational-mathematics-with-sagemath/sol/float_doctest.py | 1 - .../sol/graphique_doctest.py | 1 - .../sol/graphtheory_doctest.py | 1 - .../sol/integration_doctest.py | 1 - .../sol/linalg_doctest.py | 1 - .../sol/linsolve_doctest.py | 1 - .../computational-mathematics-with-sagemath/sol/lp_doctest.py | 1 - .../computational-mathematics-with-sagemath/sol/mpoly_doctest.py | 1 - .../sol/nonlinear_doctest.py | 1 - .../sol/numbertheory_doctest.py | 1 - .../sol/polynomes_doctest.py | 1 - .../sol/recequadiff_doctest.py | 1 - .../books/judson-abstract-algebra/actions-sage-exercises.py | 1 - src/sage/tests/books/judson-abstract-algebra/actions-sage.py | 1 - src/sage/tests/books/judson-abstract-algebra/algcodes-sage.py | 1 - src/sage/tests/books/judson-abstract-algebra/boolean-sage.py | 1 - .../tests/books/judson-abstract-algebra/cosets-sage-exercises.py | 1 - src/sage/tests/books/judson-abstract-algebra/cosets-sage.py | 1 - src/sage/tests/books/judson-abstract-algebra/crypt-sage.py | 1 - src/sage/tests/books/judson-abstract-algebra/cyclic-sage.py | 1 - src/sage/tests/books/judson-abstract-algebra/domains-sage.py | 1 - src/sage/tests/books/judson-abstract-algebra/fields-sage.py | 1 - src/sage/tests/books/judson-abstract-algebra/finite-sage.py | 1 - src/sage/tests/books/judson-abstract-algebra/galois-sage.py | 1 - src/sage/tests/books/judson-abstract-algebra/groups-sage.py | 1 - .../books/judson-abstract-algebra/homomorph-sage-exercises.py | 1 - src/sage/tests/books/judson-abstract-algebra/homomorph-sage.py | 1 - src/sage/tests/books/judson-abstract-algebra/integers-sage.py | 1 - src/sage/tests/books/judson-abstract-algebra/isomorph-sage.py | 1 - src/sage/tests/books/judson-abstract-algebra/normal-sage.py | 1 - src/sage/tests/books/judson-abstract-algebra/permute-sage.py | 1 - src/sage/tests/books/judson-abstract-algebra/poly-sage.py | 1 - src/sage/tests/books/judson-abstract-algebra/rings-sage.py | 1 - src/sage/tests/books/judson-abstract-algebra/sets-sage.py | 1 - src/sage/tests/books/judson-abstract-algebra/struct-sage.py | 1 - src/sage/tests/books/judson-abstract-algebra/sylow-sage.py | 1 - .../tests/books/judson-abstract-algebra/vect-sage-exercises.py | 1 - src/sage/tests/books/judson-abstract-algebra/vect-sage.py | 1 - src/sage/typeset/ascii_art.py | 1 - src/sage/typeset/character_art.py | 1 - src/sage/typeset/character_art_factory.py | 1 - src/sage/typeset/symbols.py | 1 - src/sage/typeset/unicode_art.py | 1 - 208 files changed, 208 deletions(-) diff --git a/src/sage/arith/misc.py b/src/sage/arith/misc.py index 44bee5b7534..872eab08284 100644 --- a/src/sage/arith/misc.py +++ b/src/sage/arith/misc.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-categories -# -*- coding: utf-8 -*- r""" Miscellaneous arithmetic functions diff --git a/src/sage/combinat/debruijn_sequence.pyx b/src/sage/combinat/debruijn_sequence.pyx index 80548a4f95b..48b4f56d373 100644 --- a/src/sage/combinat/debruijn_sequence.pyx +++ b/src/sage/combinat/debruijn_sequence.pyx @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-combinat -# -*- coding: utf-8 -*- r""" De Bruijn sequences diff --git a/src/sage/combinat/fast_vector_partitions.pyx b/src/sage/combinat/fast_vector_partitions.pyx index 42ed14c7537..16bc9aa8d30 100644 --- a/src/sage/combinat/fast_vector_partitions.pyx +++ b/src/sage/combinat/fast_vector_partitions.pyx @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-combinat -# -*- coding: utf-8 -*- r""" Brent Yorgey's fast algorithm for integer vector (multiset) partitions. diff --git a/src/sage/combinat/matrices/dancing_links.pyx b/src/sage/combinat/matrices/dancing_links.pyx index df8fd8cb250..5c6d2090337 100644 --- a/src/sage/combinat/matrices/dancing_links.pyx +++ b/src/sage/combinat/matrices/dancing_links.pyx @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-categories -# -*- coding: utf-8 -*- # distutils: language = c++ """ Dancing Links internal pyx code diff --git a/src/sage/cpython/atexit.pyx b/src/sage/cpython/atexit.pyx index 2228cba4e98..dc132a9d25d 100644 --- a/src/sage/cpython/atexit.pyx +++ b/src/sage/cpython/atexit.pyx @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-objects -# -*- encoding: utf-8 -*- """Utilities for interfacing with the standard library's atexit module.""" diff --git a/src/sage/cpython/string.pyx b/src/sage/cpython/string.pyx index cc1f64f3e3d..98ad82c0888 100644 --- a/src/sage/cpython/string.pyx +++ b/src/sage/cpython/string.pyx @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-objects -# -*- encoding: utf-8 -*- """ String <-> bytes encoding/decoding diff --git a/src/sage/crypto/boolean_function.pyx b/src/sage/crypto/boolean_function.pyx index 9074251e9bf..d75b1f6159a 100644 --- a/src/sage/crypto/boolean_function.pyx +++ b/src/sage/crypto/boolean_function.pyx @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-modules -# -*- coding: utf-8 -*- """ Boolean functions diff --git a/src/sage/data_structures/blas_dict.pyx b/src/sage/data_structures/blas_dict.pyx index 69b43d928ac..0490e18e40d 100644 --- a/src/sage/data_structures/blas_dict.pyx +++ b/src/sage/data_structures/blas_dict.pyx @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-categories -# -*- coding: utf-8 -*- r""" Basic Linear Algebra Subroutines on dictionaries diff --git a/src/sage/databases/conway.py b/src/sage/databases/conway.py index b1f76292ce8..393f8428468 100644 --- a/src/sage/databases/conway.py +++ b/src/sage/databases/conway.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- r""" Frank Lübeck's tables of Conway polynomials over finite fields """ diff --git a/src/sage/databases/cubic_hecke_db.py b/src/sage/databases/cubic_hecke_db.py index d25ef5ca630..02591e0e942 100644 --- a/src/sage/databases/cubic_hecke_db.py +++ b/src/sage/databases/cubic_hecke_db.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- r""" Cubic Hecke database diff --git a/src/sage/databases/findstat.py b/src/sage/databases/findstat.py index e1e33e2839c..81949cf2fbe 100644 --- a/src/sage/databases/findstat.py +++ b/src/sage/databases/findstat.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- r""" FindStat - the search engine for combinatorial statistics and maps diff --git a/src/sage/databases/knotinfo_db.py b/src/sage/databases/knotinfo_db.py index 0fe218b41b4..8b7b11d1038 100644 --- a/src/sage/databases/knotinfo_db.py +++ b/src/sage/databases/knotinfo_db.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-graphs -# -*- coding: utf-8 -*- r""" KnotInfo database diff --git a/src/sage/databases/oeis.py b/src/sage/databases/oeis.py index e40ebc7c539..7eb42bc9004 100644 --- a/src/sage/databases/oeis.py +++ b/src/sage/databases/oeis.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- r""" The On-Line Encyclopedia of Integer Sequences (OEIS) diff --git a/src/sage/databases/sql_db.py b/src/sage/databases/sql_db.py index 469fe454afb..88bc1c31e53 100644 --- a/src/sage/databases/sql_db.py +++ b/src/sage/databases/sql_db.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- r""" Relational (sqlite) Databases Module diff --git a/src/sage/doctest/parsing.py b/src/sage/doctest/parsing.py index b5580a302f4..a2d22fbda0d 100644 --- a/src/sage/doctest/parsing.py +++ b/src/sage/doctest/parsing.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -# -*- encoding: utf-8 -*- """ Parsing docstrings diff --git a/src/sage/doctest/reporting.py b/src/sage/doctest/reporting.py index bac84da558a..f646fa0e91e 100644 --- a/src/sage/doctest/reporting.py +++ b/src/sage/doctest/reporting.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -# -*- coding: utf-8 -*- r""" Reporting doctest results diff --git a/src/sage/dynamics/arithmetic_dynamics/projective_ds.py b/src/sage/dynamics/arithmetic_dynamics/projective_ds.py index 3d959687d51..660478bbb4b 100644 --- a/src/sage/dynamics/arithmetic_dynamics/projective_ds.py +++ b/src/sage/dynamics/arithmetic_dynamics/projective_ds.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-schemes -# -*- coding: utf-8 -*- r""" Dynamical systems on projective schemes diff --git a/src/sage/dynamics/cellular_automata/elementary.py b/src/sage/dynamics/cellular_automata/elementary.py index 26e68c37b01..77d5b705fcb 100644 --- a/src/sage/dynamics/cellular_automata/elementary.py +++ b/src/sage/dynamics/cellular_automata/elementary.py @@ -1,4 +1,3 @@ -# -*- encoding: utf-8 -*- """ Elementary Cellular Automata diff --git a/src/sage/dynamics/cellular_automata/glca.py b/src/sage/dynamics/cellular_automata/glca.py index 6b062f2a441..8c896a981e9 100644 --- a/src/sage/dynamics/cellular_automata/glca.py +++ b/src/sage/dynamics/cellular_automata/glca.py @@ -1,4 +1,3 @@ -# -*- encoding: utf-8 -*- """ Graftal Lace Cellular Automata diff --git a/src/sage/features/__init__.py b/src/sage/features/__init__.py index 6d751676b4c..7f8d0d554e3 100644 --- a/src/sage/features/__init__.py +++ b/src/sage/features/__init__.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-environment -# -*- coding: utf-8 -*- r""" Testing for features of the environment at runtime diff --git a/src/sage/features/csdp.py b/src/sage/features/csdp.py index 354ff03facc..f496e47d8a8 100644 --- a/src/sage/features/csdp.py +++ b/src/sage/features/csdp.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-environment -# -*- coding: utf-8 -*- r""" Feature for testing the presence of ``csdp`` """ diff --git a/src/sage/features/lrs.py b/src/sage/features/lrs.py index 17fee8edc6d..52506e496e5 100644 --- a/src/sage/features/lrs.py +++ b/src/sage/features/lrs.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-environment -# -*- coding: utf-8 -*- r""" Feature for testing the presence of ``lrslib`` """ diff --git a/src/sage/features/msolve.py b/src/sage/features/msolve.py index 0098a452b36..f33e9a993e4 100644 --- a/src/sage/features/msolve.py +++ b/src/sage/features/msolve.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-environment -# -*- coding: utf-8 -*- r""" Feature for testing the presence of msolve diff --git a/src/sage/features/pandoc.py b/src/sage/features/pandoc.py index ebb46589362..1c4450b9b0c 100644 --- a/src/sage/features/pandoc.py +++ b/src/sage/features/pandoc.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-environment -# -*- coding: utf-8 -*- r""" Feature for testing the presence of ``pandoc`` """ diff --git a/src/sage/game_theory/normal_form_game.py b/src/sage/game_theory/normal_form_game.py index 6d1a122e0be..a09a5126476 100644 --- a/src/sage/game_theory/normal_form_game.py +++ b/src/sage/game_theory/normal_form_game.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-polyhedra -# -*- coding: utf-8 -*- r""" Normal form games with N players. diff --git a/src/sage/games/quantumino.py b/src/sage/games/quantumino.py index 8cfb04cdfa8..16485d7ea42 100644 --- a/src/sage/games/quantumino.py +++ b/src/sage/games/quantumino.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-combinat -# -*- coding: utf-8 -*- r""" Family Games America's Quantumino solver diff --git a/src/sage/graphs/base/graph_backends.pyx b/src/sage/graphs/base/graph_backends.pyx index 8db3989adf8..dff96353d59 100644 --- a/src/sage/graphs/base/graph_backends.pyx +++ b/src/sage/graphs/base/graph_backends.pyx @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-graphs -# -*- coding: utf-8 -*- r""" Backends for Sage (di)graphs diff --git a/src/sage/graphs/generic_graph_pyx.pyx b/src/sage/graphs/generic_graph_pyx.pyx index 67098da1ffc..d59538cd5f5 100644 --- a/src/sage/graphs/generic_graph_pyx.pyx +++ b/src/sage/graphs/generic_graph_pyx.pyx @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-graphs -# -*- coding: utf-8 -*- """ GenericGraph Cython functions diff --git a/src/sage/graphs/graph_decompositions/clique_separators.pyx b/src/sage/graphs/graph_decompositions/clique_separators.pyx index 3e811eb5826..e6d60adc6ac 100644 --- a/src/sage/graphs/graph_decompositions/clique_separators.pyx +++ b/src/sage/graphs/graph_decompositions/clique_separators.pyx @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-graphs -# -*- coding: utf-8 -*- # cython: binding=True # distutils: language = c++ r""" diff --git a/src/sage/graphs/path_enumeration.pyx b/src/sage/graphs/path_enumeration.pyx index 18659f086ed..1c90daf51c5 100644 --- a/src/sage/graphs/path_enumeration.pyx +++ b/src/sage/graphs/path_enumeration.pyx @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-graphs -# -*- coding: utf-8 -*- # cython: binding=True # distutils: language = c++ r""" diff --git a/src/sage/graphs/strongly_regular_db.pyx b/src/sage/graphs/strongly_regular_db.pyx index 70bf5ed12d3..2a3edd34d4d 100644 --- a/src/sage/graphs/strongly_regular_db.pyx +++ b/src/sage/graphs/strongly_regular_db.pyx @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-graphs -# -*- coding: utf-8 -*- r""" Database of strongly regular graphs diff --git a/src/sage/graphs/traversals.pyx b/src/sage/graphs/traversals.pyx index 9d15f853ff0..f3ff7b70cdd 100644 --- a/src/sage/graphs/traversals.pyx +++ b/src/sage/graphs/traversals.pyx @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-graphs -# -*- coding: utf-8 -*- # cython: binding=True # distutils: language = c++ r""" diff --git a/src/sage/homology/chain_complex.py b/src/sage/homology/chain_complex.py index 93220979c3a..d9d351e940c 100644 --- a/src/sage/homology/chain_complex.py +++ b/src/sage/homology/chain_complex.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-modules -# -*- coding: utf-8 -*- r""" Chain complexes diff --git a/src/sage/homology/chain_homotopy.py b/src/sage/homology/chain_homotopy.py index c3704cbd205..8d5a1dd6351 100644 --- a/src/sage/homology/chain_homotopy.py +++ b/src/sage/homology/chain_homotopy.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-modules -# -*- coding: utf-8 -*- r""" Chain homotopies and chain contractions diff --git a/src/sage/interfaces/frobby.py b/src/sage/interfaces/frobby.py index 7eb5e53becd..83efdde1ccb 100644 --- a/src/sage/interfaces/frobby.py +++ b/src/sage/interfaces/frobby.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- r""" Interface to Frobby for fast computations on monomial ideals. diff --git a/src/sage/interfaces/gap.py b/src/sage/interfaces/gap.py index dbc66349ba6..8c1df79fea5 100644 --- a/src/sage/interfaces/gap.py +++ b/src/sage/interfaces/gap.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-gap -# -*- coding: utf-8 -*- r""" Interface to GAP diff --git a/src/sage/interfaces/genus2reduction.py b/src/sage/interfaces/genus2reduction.py index eeb63fcb939..5348998db7c 100644 --- a/src/sage/interfaces/genus2reduction.py +++ b/src/sage/interfaces/genus2reduction.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- r""" Conductor and reduction types for genus 2 curves diff --git a/src/sage/interfaces/maxima_abstract.py b/src/sage/interfaces/maxima_abstract.py index f6b3a611972..5844c1d97ab 100644 --- a/src/sage/interfaces/maxima_abstract.py +++ b/src/sage/interfaces/maxima_abstract.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-symbolics -# -*- coding: utf-8 -*- r""" Abstract interface to Maxima diff --git a/src/sage/interfaces/r.py b/src/sage/interfaces/r.py index 80a6ea27c74..df8d62b31d4 100644 --- a/src/sage/interfaces/r.py +++ b/src/sage/interfaces/r.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- r""" Interfaces to R diff --git a/src/sage/knots/gauss_code.py b/src/sage/knots/gauss_code.py index a34257aef05..2438808364d 100644 --- a/src/sage/knots/gauss_code.py +++ b/src/sage/knots/gauss_code.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-graphs -# -*- coding: utf-8 -*- """ Helper functions related to Gauss codes of knots diff --git a/src/sage/knots/knot.py b/src/sage/knots/knot.py index 0009fad0335..76119f6c593 100644 --- a/src/sage/knots/knot.py +++ b/src/sage/knots/knot.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-graphs -# -*- coding: utf-8 -*- r""" Knots diff --git a/src/sage/knots/knotinfo.py b/src/sage/knots/knotinfo.py index 2208e466e2a..433aa539b14 100644 --- a/src/sage/knots/knotinfo.py +++ b/src/sage/knots/knotinfo.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-graphs -# -*- coding: utf-8 -*- r""" Access to the KnotInfo database diff --git a/src/sage/lfunctions/pari.py b/src/sage/lfunctions/pari.py index e4968866303..1f9f774cac8 100644 --- a/src/sage/lfunctions/pari.py +++ b/src/sage/lfunctions/pari.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ `L`-functions from PARI diff --git a/src/sage/libs/arb/arb_version.pyx b/src/sage/libs/arb/arb_version.pyx index 37629d8d2ad..51d01d79d9a 100644 --- a/src/sage/libs/arb/arb_version.pyx +++ b/src/sage/libs/arb/arb_version.pyx @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-flint -# -*- coding: utf-8 from sage.libs.arb.arb cimport arb_version from sage.cpython.string cimport char_to_str diff --git a/src/sage/libs/giac/__init__.py b/src/sage/libs/giac/__init__.py index f92a2f5b616..ffc5714017a 100644 --- a/src/sage/libs/giac/__init__.py +++ b/src/sage/libs/giac/__init__.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-giac -# -*- coding: utf-8 -*- """ Wrappers for Giac functions diff --git a/src/sage/libs/linkages/padics/Polynomial_ram.pxi b/src/sage/libs/linkages/padics/Polynomial_ram.pxi index bb83aa2a675..503d8ec4266 100644 --- a/src/sage/libs/linkages/padics/Polynomial_ram.pxi +++ b/src/sage/libs/linkages/padics/Polynomial_ram.pxi @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-pari -# -*- coding: utf-8 -*- r""" This linkage file implements the padics API for ramified extensions using Sage Polynomials. diff --git a/src/sage/manifolds/differentiable/integrated_curve.py b/src/sage/manifolds/differentiable/integrated_curve.py index d83a78a76a6..ec073a99125 100644 --- a/src/sage/manifolds/differentiable/integrated_curve.py +++ b/src/sage/manifolds/differentiable/integrated_curve.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-symbolics -# -*- coding: utf-8 -*- r""" Integrated Curves and Geodesics in Manifolds diff --git a/src/sage/manifolds/differentiable/levi_civita_connection.py b/src/sage/manifolds/differentiable/levi_civita_connection.py index 929ea1bde6a..c0ed5664ce2 100644 --- a/src/sage/manifolds/differentiable/levi_civita_connection.py +++ b/src/sage/manifolds/differentiable/levi_civita_connection.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-symbolics -# -*- coding: utf-8 -*- r""" Levi-Civita Connections diff --git a/src/sage/manifolds/differentiable/manifold.py b/src/sage/manifolds/differentiable/manifold.py index f2b11e66f71..f4c80365be1 100644 --- a/src/sage/manifolds/differentiable/manifold.py +++ b/src/sage/manifolds/differentiable/manifold.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-symbolics -# -*- coding: utf-8 -*- r""" Differentiable Manifolds diff --git a/src/sage/manifolds/section_module.py b/src/sage/manifolds/section_module.py index 3b14460be58..0fcbb87a884 100644 --- a/src/sage/manifolds/section_module.py +++ b/src/sage/manifolds/section_module.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-symbolics -# -*- coding: utf-8 -*- r""" Section Modules diff --git a/src/sage/manifolds/subset.py b/src/sage/manifolds/subset.py index 9aaab597f92..9fdcb9a57f3 100644 --- a/src/sage/manifolds/subset.py +++ b/src/sage/manifolds/subset.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-symbolics -# -*- coding: utf-8 -*- r""" Subsets of Topological Manifolds diff --git a/src/sage/manifolds/vector_bundle.py b/src/sage/manifolds/vector_bundle.py index 1ed23c60140..9e4315e7069 100644 --- a/src/sage/manifolds/vector_bundle.py +++ b/src/sage/manifolds/vector_bundle.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-symbolics -# -*- coding: utf-8 -*- r""" Topological Vector Bundle diff --git a/src/sage/matrix/matrix0.pyx b/src/sage/matrix/matrix0.pyx index 94dba1fe460..f25c1c3d242 100644 --- a/src/sage/matrix/matrix0.pyx +++ b/src/sage/matrix/matrix0.pyx @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-modules -# -*- coding: utf-8 -*- """ Base class for matrices, part 0 diff --git a/src/sage/matrix/matrix_gf2e_dense.pyx b/src/sage/matrix/matrix_gf2e_dense.pyx index 4dc64dd9b26..4d6e57b42fb 100644 --- a/src/sage/matrix/matrix_gf2e_dense.pyx +++ b/src/sage/matrix/matrix_gf2e_dense.pyx @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-linbox -# -*- coding: utf-8 -*- # distutils: libraries = m4rie M4RI_LIBRARIES m # distutils: library_dirs = M4RI_LIBDIR # distutils: include_dirs = M4RI_INCDIR diff --git a/src/sage/matrix/matrix_integer_dense.pyx b/src/sage/matrix/matrix_integer_dense.pyx index 815e3aa0a96..25c05a58e00 100644 --- a/src/sage/matrix/matrix_integer_dense.pyx +++ b/src/sage/matrix/matrix_integer_dense.pyx @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-linbox -# -*- coding: utf-8 -*- # distutils: extra_compile_args = NTL_CFLAGS M4RI_CFLAGS # distutils: libraries = iml NTL_LIBRARIES gmp m CBLAS_LIBRARIES # distutils: library_dirs = NTL_LIBDIR CBLAS_LIBDIR diff --git a/src/sage/matrix/matrix_integer_sparse.pyx b/src/sage/matrix/matrix_integer_sparse.pyx index efc40846a74..363c956689b 100644 --- a/src/sage/matrix/matrix_integer_sparse.pyx +++ b/src/sage/matrix/matrix_integer_sparse.pyx @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-linbox -# -*- coding: utf-8 -*- r""" Sparse integer matrices diff --git a/src/sage/matrix/matrix_mod2_dense.pyx b/src/sage/matrix/matrix_mod2_dense.pyx index 7b3303a3dca..afb98f8462d 100644 --- a/src/sage/matrix/matrix_mod2_dense.pyx +++ b/src/sage/matrix/matrix_mod2_dense.pyx @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-linbox -# -*- coding: utf-8 -*- # distutils: libraries = M4RI_LIBRARIES GDLIB_LIBRARIES LIBPNG_LIBRARIES ZLIB_LIBRARIES # distutils: library_dirs = M4RI_LIBDIR GDLIB_LIBDIR LIBPNG_LIBDIR ZLIB_LIBDIR # distutils: include_dirs = M4RI_INCDIR GDLIB_INCDIR LIBPNG_INCDIR ZLIB_INCDIR diff --git a/src/sage/matrix/special.py b/src/sage/matrix/special.py index 50d753486ea..429432a84b7 100644 --- a/src/sage/matrix/special.py +++ b/src/sage/matrix/special.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-modules -# -*- coding: utf-8 -*- """ Constructors for special matrices diff --git a/src/sage/matroids/matroid.pyx b/src/sage/matroids/matroid.pyx index a1efdc872d4..da0653d3fb3 100644 --- a/src/sage/matroids/matroid.pyx +++ b/src/sage/matroids/matroid.pyx @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-modules -# -*- coding: utf-8 -*- r""" The abstract Matroid class diff --git a/src/sage/misc/callable_dict.pyx b/src/sage/misc/callable_dict.pyx index ff413883c3d..b2734335dc5 100644 --- a/src/sage/misc/callable_dict.pyx +++ b/src/sage/misc/callable_dict.pyx @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-categories -# -*- coding: utf-8 -*- """ Callable dictionaries """ diff --git a/src/sage/misc/lazy_string.pyx b/src/sage/misc/lazy_string.pyx index 4d59d98775c..bffa65ec12a 100644 --- a/src/sage/misc/lazy_string.pyx +++ b/src/sage/misc/lazy_string.pyx @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-objects -# -*- coding: utf-8 -*- """ Lazy strings diff --git a/src/sage/misc/parser.pyx b/src/sage/misc/parser.pyx index a3bfa0991f1..7c0da3acf05 100644 --- a/src/sage/misc/parser.pyx +++ b/src/sage/misc/parser.pyx @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-categories -# -*- coding: utf-8 -*- """ A parser for symbolic equations and expressions diff --git a/src/sage/modular/pollack_stevens/dist.pyx b/src/sage/modular/pollack_stevens/dist.pyx index e98333c9a40..97ae66a653b 100644 --- a/src/sage/modular/pollack_stevens/dist.pyx +++ b/src/sage/modular/pollack_stevens/dist.pyx @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # distutils: libraries = gmp # distutils: extra_compile_args = -D_XPG6 """ diff --git a/src/sage/modules/with_basis/indexed_element.pyx b/src/sage/modules/with_basis/indexed_element.pyx index f74c28db3b4..a5baf8de541 100644 --- a/src/sage/modules/with_basis/indexed_element.pyx +++ b/src/sage/modules/with_basis/indexed_element.pyx @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-modules -# -*- coding: utf-8 -*- r""" An element in an indexed free module diff --git a/src/sage/monoids/automatic_semigroup.py b/src/sage/monoids/automatic_semigroup.py index 27178a165cf..ece9717bde4 100644 --- a/src/sage/monoids/automatic_semigroup.py +++ b/src/sage/monoids/automatic_semigroup.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-combinat -# -*- coding: utf-8 -*- """ Automatic Semigroups diff --git a/src/sage/monoids/hecke_monoid.py b/src/sage/monoids/hecke_monoid.py index 720bae19bf0..8bd9627dd42 100644 --- a/src/sage/monoids/hecke_monoid.py +++ b/src/sage/monoids/hecke_monoid.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-combinat -# -*- coding: utf-8 -*- """ Hecke Monoids """ diff --git a/src/sage/parallel/map_reduce.py b/src/sage/parallel/map_reduce.py index bc42235a23e..bf628380561 100644 --- a/src/sage/parallel/map_reduce.py +++ b/src/sage/parallel/map_reduce.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-categories -# -*- coding: utf-8 -*- r""" Parallel computations using RecursivelyEnumeratedSet and Map-Reduce diff --git a/src/sage/plot/graphics.py b/src/sage/plot/graphics.py index 8f0e329de95..4e83aaa6ea7 100644 --- a/src/sage/plot/graphics.py +++ b/src/sage/plot/graphics.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-plot -# -*- encoding: utf-8 -*- r""" Graphics objects diff --git a/src/sage/plot/point.py b/src/sage/plot/point.py index 7cf12a940dc..2974f418fa5 100644 --- a/src/sage/plot/point.py +++ b/src/sage/plot/point.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-plot -# -*- coding: utf-8 -*- r""" Points diff --git a/src/sage/quivers/path_semigroup.py b/src/sage/quivers/path_semigroup.py index 8e4e567cad4..77462cf4f13 100644 --- a/src/sage/quivers/path_semigroup.py +++ b/src/sage/quivers/path_semigroup.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-flint -# -*- encoding: utf-8 -*- """ Path Semigroups """ diff --git a/src/sage/repl/display/fancy_repr.py b/src/sage/repl/display/fancy_repr.py index 4e9bfb291a1..719bc838b7f 100644 --- a/src/sage/repl/display/fancy_repr.py +++ b/src/sage/repl/display/fancy_repr.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -# -*- coding: utf-8 -*- """ Representations of objects """ diff --git a/src/sage/repl/display/formatter.py b/src/sage/repl/display/formatter.py index aee972a3ff0..9d6eaf53894 100644 --- a/src/sage/repl/display/formatter.py +++ b/src/sage/repl/display/formatter.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -# -*- coding: utf-8 -*- r""" IPython Displayhook Formatters diff --git a/src/sage/repl/display/pretty_print.py b/src/sage/repl/display/pretty_print.py index 4031882c41a..63d1978f387 100644 --- a/src/sage/repl/display/pretty_print.py +++ b/src/sage/repl/display/pretty_print.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -# -*- coding: utf-8 -*- """ The Sage pretty printer diff --git a/src/sage/repl/display/util.py b/src/sage/repl/display/util.py index 9dc74f2f0e5..8fcc6569a3a 100644 --- a/src/sage/repl/display/util.py +++ b/src/sage/repl/display/util.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -# -*- coding: utf-8 -*- """ Utility functions for pretty-printing diff --git a/src/sage/repl/image.py b/src/sage/repl/image.py index 4a4cbd0e2a4..3f15806ac41 100644 --- a/src/sage/repl/image.py +++ b/src/sage/repl/image.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -# -*- encoding: utf-8 -*- """ Sage Wrapper for Bitmap Images diff --git a/src/sage/repl/ipython_kernel/interact.py b/src/sage/repl/ipython_kernel/interact.py index a234ed0bced..f62cf420fc1 100644 --- a/src/sage/repl/ipython_kernel/interact.py +++ b/src/sage/repl/ipython_kernel/interact.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -# -*- coding: utf-8 -*- r""" Interacts for the Sage Jupyter notebook diff --git a/src/sage/repl/ipython_kernel/kernel.py b/src/sage/repl/ipython_kernel/kernel.py index 5b6b31b0d4c..0f0399f3135 100644 --- a/src/sage/repl/ipython_kernel/kernel.py +++ b/src/sage/repl/ipython_kernel/kernel.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -# -*- coding: utf-8 -*- """ The Sage ZMQ Kernel diff --git a/src/sage/repl/ipython_kernel/widgets_sagenb.py b/src/sage/repl/ipython_kernel/widgets_sagenb.py index 140ad2a95a0..4d3b1dbdedc 100644 --- a/src/sage/repl/ipython_kernel/widgets_sagenb.py +++ b/src/sage/repl/ipython_kernel/widgets_sagenb.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -# -*- coding: utf-8 -*- r""" Functions to construct widgets, based on the old SageNB interface. diff --git a/src/sage/repl/preparse.py b/src/sage/repl/preparse.py index 34b7b31a9af..f37c0a7a671 100644 --- a/src/sage/repl/preparse.py +++ b/src/sage/repl/preparse.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -# -*- coding: utf-8 -*- """ The Sage Preparser diff --git a/src/sage/repl/rich_output/__init__.py b/src/sage/repl/rich_output/__init__.py index d47af8aee22..558cd47d827 100644 --- a/src/sage/repl/rich_output/__init__.py +++ b/src/sage/repl/rich_output/__init__.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -# -*- encoding: utf-8 -*- from .display_manager import get_display_manager from .pretty_print import pretty_print diff --git a/src/sage/repl/rich_output/backend_base.py b/src/sage/repl/rich_output/backend_base.py index 01c830a4322..201aff8708b 100644 --- a/src/sage/repl/rich_output/backend_base.py +++ b/src/sage/repl/rich_output/backend_base.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -# -*- encoding: utf-8 -*- r""" Base Class for Backends diff --git a/src/sage/repl/rich_output/backend_doctest.py b/src/sage/repl/rich_output/backend_doctest.py index e100e892bc5..430579f3f19 100644 --- a/src/sage/repl/rich_output/backend_doctest.py +++ b/src/sage/repl/rich_output/backend_doctest.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -# -*- encoding: utf-8 -*- """ The backend used for doctests diff --git a/src/sage/repl/rich_output/backend_emacs.py b/src/sage/repl/rich_output/backend_emacs.py index 2be4857aa8e..52e098720c4 100644 --- a/src/sage/repl/rich_output/backend_emacs.py +++ b/src/sage/repl/rich_output/backend_emacs.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -# -*- encoding: utf-8 -*- r""" Emacs sage-mode Backend for the Sage Rich Output System diff --git a/src/sage/repl/rich_output/backend_ipython.py b/src/sage/repl/rich_output/backend_ipython.py index 748e8f1e069..114d49a123a 100644 --- a/src/sage/repl/rich_output/backend_ipython.py +++ b/src/sage/repl/rich_output/backend_ipython.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -# -*- coding: utf-8 -*- """ IPython Backend for the Sage Rich Output System diff --git a/src/sage/repl/rich_output/buffer.py b/src/sage/repl/rich_output/buffer.py index 65f4418c5f7..19681fd1dc9 100644 --- a/src/sage/repl/rich_output/buffer.py +++ b/src/sage/repl/rich_output/buffer.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -# -*- encoding: utf-8 -*- r""" Output Buffer diff --git a/src/sage/repl/rich_output/display_manager.py b/src/sage/repl/rich_output/display_manager.py index 43fbaa817ba..19e25e8f42b 100644 --- a/src/sage/repl/rich_output/display_manager.py +++ b/src/sage/repl/rich_output/display_manager.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -# -*- encoding: utf-8 -*- r""" Display Manager diff --git a/src/sage/repl/rich_output/output_basic.py b/src/sage/repl/rich_output/output_basic.py index e4f59a6cb5a..ea538ca5c96 100644 --- a/src/sage/repl/rich_output/output_basic.py +++ b/src/sage/repl/rich_output/output_basic.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -# -*- encoding: utf-8 -*- r""" Basic Output Types diff --git a/src/sage/repl/rich_output/output_browser.py b/src/sage/repl/rich_output/output_browser.py index 17e8cc00f7a..00072c96030 100644 --- a/src/sage/repl/rich_output/output_browser.py +++ b/src/sage/repl/rich_output/output_browser.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -# -*- encoding: utf-8 -*- r""" Rich Output for the Browser """ diff --git a/src/sage/repl/rich_output/output_catalog.py b/src/sage/repl/rich_output/output_catalog.py index 6592b3980d1..542182eee69 100644 --- a/src/sage/repl/rich_output/output_catalog.py +++ b/src/sage/repl/rich_output/output_catalog.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -# -*- encoding: utf-8 -*- r""" Catalog of all available output container types. diff --git a/src/sage/repl/rich_output/output_graphics.py b/src/sage/repl/rich_output/output_graphics.py index 146867acfcd..d8c29c553a7 100644 --- a/src/sage/repl/rich_output/output_graphics.py +++ b/src/sage/repl/rich_output/output_graphics.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -# -*- encoding: utf-8 -*- r""" Graphics Output Types diff --git a/src/sage/repl/rich_output/output_graphics3d.py b/src/sage/repl/rich_output/output_graphics3d.py index 4169f1efe92..3cf42fafb4a 100644 --- a/src/sage/repl/rich_output/output_graphics3d.py +++ b/src/sage/repl/rich_output/output_graphics3d.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -# -*- encoding: utf-8 -*- r""" Three-Dimensional Graphics Output Types diff --git a/src/sage/repl/rich_output/output_video.py b/src/sage/repl/rich_output/output_video.py index 0bd41825998..5171ac058ae 100644 --- a/src/sage/repl/rich_output/output_video.py +++ b/src/sage/repl/rich_output/output_video.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -# -*- encoding: utf-8 -*- r""" Video Output Types diff --git a/src/sage/repl/rich_output/preferences.py b/src/sage/repl/rich_output/preferences.py index 00dd79388e9..ca32aa1ea81 100644 --- a/src/sage/repl/rich_output/preferences.py +++ b/src/sage/repl/rich_output/preferences.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -# -*- encoding: utf-8 -*- r""" Display Preferences diff --git a/src/sage/repl/rich_output/pretty_print.py b/src/sage/repl/rich_output/pretty_print.py index a55d18f29cb..00b0c75465d 100644 --- a/src/sage/repl/rich_output/pretty_print.py +++ b/src/sage/repl/rich_output/pretty_print.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -# -*- encoding: utf-8 -*- r""" The ``pretty_print`` command diff --git a/src/sage/repl/rich_output/test_backend.py b/src/sage/repl/rich_output/test_backend.py index 788e288777f..a08d75624e1 100644 --- a/src/sage/repl/rich_output/test_backend.py +++ b/src/sage/repl/rich_output/test_backend.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -# -*- encoding: utf-8 -*- r""" Test Backend diff --git a/src/sage/rings/complex_arb.pyx b/src/sage/rings/complex_arb.pyx index f4d3d79dc62..4381bb3d4ef 100644 --- a/src/sage/rings/complex_arb.pyx +++ b/src/sage/rings/complex_arb.pyx @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-flint -# -*- coding: utf-8 r""" Arbitrary precision complex balls using Arb diff --git a/src/sage/rings/continued_fraction.py b/src/sage/rings/continued_fraction.py index 762eae87843..fcd7c23c1dd 100644 --- a/src/sage/rings/continued_fraction.py +++ b/src/sage/rings/continued_fraction.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-categories -# -*- coding: utf-8 -*- r""" Continued fractions diff --git a/src/sage/rings/continued_fraction_gosper.py b/src/sage/rings/continued_fraction_gosper.py index 486f7f505b1..997f4a9f951 100644 --- a/src/sage/rings/continued_fraction_gosper.py +++ b/src/sage/rings/continued_fraction_gosper.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-categories -# -*- encoding: utf-8 -*- """ Gosper iterator for homographic transformations diff --git a/src/sage/rings/factorint.pyx b/src/sage/rings/factorint.pyx index 643cb8ccac4..017d4583497 100644 --- a/src/sage/rings/factorint.pyx +++ b/src/sage/rings/factorint.pyx @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-categories -# -*- coding: utf-8 -*-* r""" Integer factorization functions diff --git a/src/sage/rings/fraction_field.py b/src/sage/rings/fraction_field.py index 047b0825950..de62a2c1c61 100644 --- a/src/sage/rings/fraction_field.py +++ b/src/sage/rings/fraction_field.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-categories -# -*- coding: utf-8 -*- r""" Fraction Field of Integral Domains diff --git a/src/sage/rings/imaginary_unit.py b/src/sage/rings/imaginary_unit.py index 13383facb8d..cfe6c09bab2 100644 --- a/src/sage/rings/imaginary_unit.py +++ b/src/sage/rings/imaginary_unit.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-flint -# coding: utf-8 from sage.rings.number_field.number_field import GaussianField diff --git a/src/sage/rings/lazy_series.py b/src/sage/rings/lazy_series.py index 1093fd5dd16..ea617a5d499 100644 --- a/src/sage/rings/lazy_series.py +++ b/src/sage/rings/lazy_series.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-combinat -# -*- coding: utf-8 -*- r""" Lazy Series diff --git a/src/sage/rings/morphism.pyx b/src/sage/rings/morphism.pyx index b8c8a35da18..c22b260aacd 100644 --- a/src/sage/rings/morphism.pyx +++ b/src/sage/rings/morphism.pyx @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-categories -# -*- coding: utf-8 -*- r""" Homomorphisms of rings diff --git a/src/sage/rings/number_field/class_group.py b/src/sage/rings/number_field/class_group.py index 2082d6a60a7..126799a3d72 100644 --- a/src/sage/rings/number_field/class_group.py +++ b/src/sage/rings/number_field/class_group.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-flint -# -*- coding: utf-8 -*- r""" Class groups of number fields diff --git a/src/sage/rings/number_field/selmer_group.py b/src/sage/rings/number_field/selmer_group.py index b5362f07ac3..bcc402694ca 100644 --- a/src/sage/rings/number_field/selmer_group.py +++ b/src/sage/rings/number_field/selmer_group.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-flint -# -*- coding: utf-8 -*- r""" `p`-Selmer groups of number fields diff --git a/src/sage/rings/padics/misc.py b/src/sage/rings/padics/misc.py index 4e60fe74741..3bde32a996a 100644 --- a/src/sage/rings/padics/misc.py +++ b/src/sage/rings/padics/misc.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-categories -# -*- coding: utf-8 -*- r""" Miscellaneous Functions diff --git a/src/sage/rings/padics/padic_valuation.py b/src/sage/rings/padics/padic_valuation.py index e168436ee64..f32b8916b6a 100644 --- a/src/sage/rings/padics/padic_valuation.py +++ b/src/sage/rings/padics/padic_valuation.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-pari -# -*- coding: utf-8 -*- r""" `p`-adic Valuations on Number Fields and Their Subrings and Completions diff --git a/src/sage/rings/padics/pow_computer_relative.pxd b/src/sage/rings/padics/pow_computer_relative.pxd index 12942b33404..367c8b50a8a 100644 --- a/src/sage/rings/padics/pow_computer_relative.pxd +++ b/src/sage/rings/padics/pow_computer_relative.pxd @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-pari -# -*- coding: utf-8 -*- from sage.rings.padics.pow_computer cimport PowComputer_class from sage.rings.polynomial.polynomial_element cimport Polynomial_generic_dense diff --git a/src/sage/rings/padics/pow_computer_relative.pyx b/src/sage/rings/padics/pow_computer_relative.pyx index 53719ad5ac5..eaee4b2a982 100644 --- a/src/sage/rings/padics/pow_computer_relative.pyx +++ b/src/sage/rings/padics/pow_computer_relative.pyx @@ -5,7 +5,6 @@ # distutils: library_dirs = NTL_LIBDIR # distutils: extra_link_args = NTL_LIBEXTRA # distutils: language = c++ -# -*- coding: utf-8 -*- r""" A ``PowComputer`` for relative extensions diff --git a/src/sage/rings/polynomial/binary_form_reduce.py b/src/sage/rings/polynomial/binary_form_reduce.py index 1a9896f2199..e5fd1f80c42 100644 --- a/src/sage/rings/polynomial/binary_form_reduce.py +++ b/src/sage/rings/polynomial/binary_form_reduce.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- r""" Helper functions for reduction of binary forms. diff --git a/src/sage/rings/polynomial/cyclotomic.pyx b/src/sage/rings/polynomial/cyclotomic.pyx index 9f62079cdd2..ad161f0f828 100644 --- a/src/sage/rings/polynomial/cyclotomic.pyx +++ b/src/sage/rings/polynomial/cyclotomic.pyx @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-categories -# -*- coding: utf-8 -*- r""" Fast calculation of cyclotomic polynomials diff --git a/src/sage/rings/polynomial/flatten.py b/src/sage/rings/polynomial/flatten.py index 4aa1bc217bd..dceec6b21bc 100644 --- a/src/sage/rings/polynomial/flatten.py +++ b/src/sage/rings/polynomial/flatten.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-categories -# -*- coding: utf-8 -*- r""" Class to flatten polynomial rings over polynomial ring diff --git a/src/sage/rings/polynomial/hilbert.pyx b/src/sage/rings/polynomial/hilbert.pyx index 6105a72ce03..61611f687f3 100644 --- a/src/sage/rings/polynomial/hilbert.pyx +++ b/src/sage/rings/polynomial/hilbert.pyx @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-flint -# -*- coding: utf-8 -*- r""" Compute Hilbert series of monomial ideals diff --git a/src/sage/rings/polynomial/ideal.py b/src/sage/rings/polynomial/ideal.py index 425eb70f5f6..7637a067d9c 100644 --- a/src/sage/rings/polynomial/ideal.py +++ b/src/sage/rings/polynomial/ideal.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-categories -# -*- coding: utf-8 -*- """ Ideals in Univariate Polynomial Rings diff --git a/src/sage/rings/polynomial/integer_valued_polynomials.py b/src/sage/rings/polynomial/integer_valued_polynomials.py index 41975882cc2..e906fcf03b0 100644 --- a/src/sage/rings/polynomial/integer_valued_polynomials.py +++ b/src/sage/rings/polynomial/integer_valued_polynomials.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- r""" Integer-valued polynomial rings diff --git a/src/sage/rings/polynomial/msolve.py b/src/sage/rings/polynomial/msolve.py index 1905d0a8a57..6e529864cd7 100644 --- a/src/sage/rings/polynomial/msolve.py +++ b/src/sage/rings/polynomial/msolve.py @@ -1,4 +1,3 @@ -# coding: utf-8 r""" Solution of polynomial systems using msolve diff --git a/src/sage/rings/polynomial/polynomial_complex_arb.pyx b/src/sage/rings/polynomial/polynomial_complex_arb.pyx index d51b45c702f..46c0f4ffd13 100644 --- a/src/sage/rings/polynomial/polynomial_complex_arb.pyx +++ b/src/sage/rings/polynomial/polynomial_complex_arb.pyx @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-flint -# -*- coding: utf-8 r""" Univariate polynomials over `\CC` with interval coefficients using Arb. diff --git a/src/sage/rings/polynomial/polynomial_element.pyx b/src/sage/rings/polynomial/polynomial_element.pyx index c193658d675..e3400fdb64c 100644 --- a/src/sage/rings/polynomial/polynomial_element.pyx +++ b/src/sage/rings/polynomial/polynomial_element.pyx @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-categories -# coding: utf-8 """ Univariate polynomial base class diff --git a/src/sage/rings/polynomial/polynomial_ring.py b/src/sage/rings/polynomial/polynomial_ring.py index 948d3cf7eb2..1f58cd07fa3 100644 --- a/src/sage/rings/polynomial/polynomial_ring.py +++ b/src/sage/rings/polynomial/polynomial_ring.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-categories -# -*- coding: utf-8 -*- """ Univariate Polynomial Rings diff --git a/src/sage/rings/power_series_poly.pyx b/src/sage/rings/power_series_poly.pyx index ea4262e8279..219f853c289 100644 --- a/src/sage/rings/power_series_poly.pyx +++ b/src/sage/rings/power_series_poly.pyx @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-categories -# -*- coding: utf-8 -*- """ Power Series Methods diff --git a/src/sage/rings/puiseux_series_ring.py b/src/sage/rings/puiseux_series_ring.py index e2ceeaeb80d..c54c35c215e 100644 --- a/src/sage/rings/puiseux_series_ring.py +++ b/src/sage/rings/puiseux_series_ring.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-categories -# -*- coding: utf-8 -*- r""" Puiseux Series Ring diff --git a/src/sage/rings/puiseux_series_ring_element.pyx b/src/sage/rings/puiseux_series_ring_element.pyx index 98849ace4e6..84b62c623d4 100644 --- a/src/sage/rings/puiseux_series_ring_element.pyx +++ b/src/sage/rings/puiseux_series_ring_element.pyx @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-categories -# -*- coding: utf-8 -*- r""" Puiseux Series Ring Element diff --git a/src/sage/rings/real_arb.pyx b/src/sage/rings/real_arb.pyx index ea496e66131..0ca4bbecabe 100644 --- a/src/sage/rings/real_arb.pyx +++ b/src/sage/rings/real_arb.pyx @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-flint -# -*- coding: utf-8 r""" Arbitrary precision real balls using Arb diff --git a/src/sage/rings/valuation/developing_valuation.py b/src/sage/rings/valuation/developing_valuation.py index 327bebfdab7..88e48f7626a 100644 --- a/src/sage/rings/valuation/developing_valuation.py +++ b/src/sage/rings/valuation/developing_valuation.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-pari -# -*- coding: utf-8 -*- r""" Valuations on polynomial rings based on `\phi`-adic expansions diff --git a/src/sage/rings/valuation/gauss_valuation.py b/src/sage/rings/valuation/gauss_valuation.py index a1318aefafd..a9d135bfd49 100644 --- a/src/sage/rings/valuation/gauss_valuation.py +++ b/src/sage/rings/valuation/gauss_valuation.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-pari -# -*- coding: utf-8 -*- """ Gauss valuations on polynomial rings diff --git a/src/sage/rings/valuation/inductive_valuation.py b/src/sage/rings/valuation/inductive_valuation.py index dcb918c03a0..465d12cc79f 100644 --- a/src/sage/rings/valuation/inductive_valuation.py +++ b/src/sage/rings/valuation/inductive_valuation.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-pari -# -*- coding: utf-8 -*- r""" Inductive valuations on polynomial rings diff --git a/src/sage/rings/valuation/limit_valuation.py b/src/sage/rings/valuation/limit_valuation.py index b4c8cc04339..947581cb120 100644 --- a/src/sage/rings/valuation/limit_valuation.py +++ b/src/sage/rings/valuation/limit_valuation.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-pari -# -*- coding: utf-8 -*- r""" Valuations which are defined as limits of valuations. diff --git a/src/sage/rings/valuation/mapped_valuation.py b/src/sage/rings/valuation/mapped_valuation.py index 8c257b71dc6..098ea95fd01 100644 --- a/src/sage/rings/valuation/mapped_valuation.py +++ b/src/sage/rings/valuation/mapped_valuation.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-pari -# -*- coding: utf-8 -*- r""" Valuations which are implemented through a map to another valuation diff --git a/src/sage/rings/valuation/scaled_valuation.py b/src/sage/rings/valuation/scaled_valuation.py index 9c5fa37517b..6a22cd18dc0 100644 --- a/src/sage/rings/valuation/scaled_valuation.py +++ b/src/sage/rings/valuation/scaled_valuation.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-pari -# -*- coding: utf-8 -*- r""" Valuations which are scaled versions of another valuation diff --git a/src/sage/rings/valuation/trivial_valuation.py b/src/sage/rings/valuation/trivial_valuation.py index 1a6113d278b..03fc43be725 100644 --- a/src/sage/rings/valuation/trivial_valuation.py +++ b/src/sage/rings/valuation/trivial_valuation.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-pari -# -*- coding: utf-8 -*- r""" Trivial valuations diff --git a/src/sage/rings/valuation/valuation.py b/src/sage/rings/valuation/valuation.py index 5a4caf6431b..e432478220d 100644 --- a/src/sage/rings/valuation/valuation.py +++ b/src/sage/rings/valuation/valuation.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-pari -# -*- coding: utf-8 -*- r""" Discrete valuations diff --git a/src/sage/rings/valuation/valuation_space.py b/src/sage/rings/valuation/valuation_space.py index ee3574a40c5..695f92ffd4e 100644 --- a/src/sage/rings/valuation/valuation_space.py +++ b/src/sage/rings/valuation/valuation_space.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-pari -# -*- coding: utf-8 -*- r""" Spaces of valuations diff --git a/src/sage/rings/valuation/value_group.py b/src/sage/rings/valuation/value_group.py index 5271238f5fd..6939504a732 100644 --- a/src/sage/rings/valuation/value_group.py +++ b/src/sage/rings/valuation/value_group.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-pari -# -*- coding: utf-8 -*- r""" Value groups of discrete valuations diff --git a/src/sage/sandpiles/examples.py b/src/sage/sandpiles/examples.py index 6ae56690969..34d47501167 100644 --- a/src/sage/sandpiles/examples.py +++ b/src/sage/sandpiles/examples.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-graphs -# -*- coding: utf-8 -*- """ Examples of Sandpile diff --git a/src/sage/schemes/elliptic_curves/mod_sym_num.pyx b/src/sage/schemes/elliptic_curves/mod_sym_num.pyx index 21da839c33e..f812f7021f2 100644 --- a/src/sage/schemes/elliptic_curves/mod_sym_num.pyx +++ b/src/sage/schemes/elliptic_curves/mod_sym_num.pyx @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-schemes -# -*- coding: utf-8 -*- #cdivision=False #cython: cdivision_warnings=False #cython: profile=False diff --git a/src/sage/sets/disjoint_set.pyx b/src/sage/sets/disjoint_set.pyx index c0ad99eadcf..1bec9937fc8 100644 --- a/src/sage/sets/disjoint_set.pyx +++ b/src/sage/sets/disjoint_set.pyx @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-categories -# -*- coding: utf-8 -*- r""" Disjoint-set data structure diff --git a/src/sage/sets/recursively_enumerated_set.pyx b/src/sage/sets/recursively_enumerated_set.pyx index 009e5f24c14..b2bb827e334 100644 --- a/src/sage/sets/recursively_enumerated_set.pyx +++ b/src/sage/sets/recursively_enumerated_set.pyx @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-categories -# -*- coding: utf-8 -*- r""" Recursively enumerated set diff --git a/src/sage/stats/distributions/discrete_gaussian_lattice.py b/src/sage/stats/distributions/discrete_gaussian_lattice.py index 23d6bd732b8..2334e5b49bb 100644 --- a/src/sage/stats/distributions/discrete_gaussian_lattice.py +++ b/src/sage/stats/distributions/discrete_gaussian_lattice.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-modules -# -*- coding: utf-8 -*- r""" Discrete Gaussian Samplers over Lattices diff --git a/src/sage/stats/distributions/discrete_gaussian_polynomial.py b/src/sage/stats/distributions/discrete_gaussian_polynomial.py index f5f6a940e7f..174cfba2798 100644 --- a/src/sage/stats/distributions/discrete_gaussian_polynomial.py +++ b/src/sage/stats/distributions/discrete_gaussian_polynomial.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-modules -# -*- coding: utf-8 -*- r""" Discrete Gaussian Samplers for `\ZZ[x]` diff --git a/src/sage/structure/element_wrapper.pyx b/src/sage/structure/element_wrapper.pyx index 636ac579f55..936002492f6 100644 --- a/src/sage/structure/element_wrapper.pyx +++ b/src/sage/structure/element_wrapper.pyx @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-objects -# -*- coding: utf-8 -*- """ Element Wrapper diff --git a/src/sage/structure/indexed_generators.py b/src/sage/structure/indexed_generators.py index 9d0469e2744..611b8faad73 100644 --- a/src/sage/structure/indexed_generators.py +++ b/src/sage/structure/indexed_generators.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-objects -# -*- coding: utf-8 -*- """ Indexed Generators """ diff --git a/src/sage/structure/list_clone_timings.py b/src/sage/structure/list_clone_timings.py index 187f8b91e71..05320d6bc77 100644 --- a/src/sage/structure/list_clone_timings.py +++ b/src/sage/structure/list_clone_timings.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-objects -# -*- coding: utf-8 -*- """ Performance Test for Clone Protocol diff --git a/src/sage/structure/sage_object.pyx b/src/sage/structure/sage_object.pyx index 38c46cca129..f21b85b5b0d 100644 --- a/src/sage/structure/sage_object.pyx +++ b/src/sage/structure/sage_object.pyx @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-objects -# -*- encoding: utf-8 -*- r""" Abstract base class for Sage objects """ diff --git a/src/sage/symbolic/expression.pyx b/src/sage/symbolic/expression.pyx index d194fba7207..1908ea586bd 100644 --- a/src/sage/symbolic/expression.pyx +++ b/src/sage/symbolic/expression.pyx @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-symbolics -# -*- coding: utf-8 -*- # distutils: sources = sage/symbolic/ginac/add.cpp sage/symbolic/ginac/archive.cpp sage/symbolic/ginac/assume.cpp sage/symbolic/ginac/basic.cpp sage/symbolic/ginac/cmatcher.cpp sage/symbolic/ginac/constant.cpp sage/symbolic/ginac/context.cpp sage/symbolic/ginac/ex.cpp sage/symbolic/ginac/expair.cpp sage/symbolic/ginac/expairseq.cpp sage/symbolic/ginac/exprseq.cpp sage/symbolic/ginac/fderivative.cpp sage/symbolic/ginac/function.cpp sage/symbolic/ginac/function_info.cpp sage/symbolic/ginac/infinity.cpp sage/symbolic/ginac/infoflagbase.cpp sage/symbolic/ginac/inifcns.cpp sage/symbolic/ginac/inifcns_comb.cpp sage/symbolic/ginac/inifcns_gamma.cpp sage/symbolic/ginac/inifcns_hyperb.cpp sage/symbolic/ginac/inifcns_hyperg.cpp sage/symbolic/ginac/inifcns_nstdsums.cpp sage/symbolic/ginac/inifcns_orthopoly.cpp sage/symbolic/ginac/inifcns_trans.cpp sage/symbolic/ginac/inifcns_trig.cpp sage/symbolic/ginac/inifcns_zeta.cpp sage/symbolic/ginac/lst.cpp sage/symbolic/ginac/matrix.cpp sage/symbolic/ginac/mpoly-giac.cpp sage/symbolic/ginac/mpoly-ginac.cpp sage/symbolic/ginac/mpoly-singular.cpp sage/symbolic/ginac/mpoly.cpp sage/symbolic/ginac/mul.cpp sage/symbolic/ginac/normal.cpp sage/symbolic/ginac/numeric.cpp sage/symbolic/ginac/operators.cpp sage/symbolic/ginac/order.cpp sage/symbolic/ginac/power.cpp sage/symbolic/ginac/print.cpp sage/symbolic/ginac/pseries.cpp sage/symbolic/ginac/py_funcs.cpp sage/symbolic/ginac/registrar.cpp sage/symbolic/ginac/relational.cpp sage/symbolic/ginac/remember.cpp sage/symbolic/ginac/sum.cpp sage/symbolic/ginac/symbol.cpp sage/symbolic/ginac/templates.cpp sage/symbolic/ginac/upoly-ginac.cpp sage/symbolic/ginac/useries.cpp sage/symbolic/ginac/utils.cpp sage/symbolic/ginac/wildcard.cpp # distutils: language = c++ # distutils: libraries = flint gmp SINGULAR_LIBRARIES diff --git a/src/sage/symbolic/ring.pyx b/src/sage/symbolic/ring.pyx index 2d03bbcc592..a0527931fbf 100644 --- a/src/sage/symbolic/ring.pyx +++ b/src/sage/symbolic/ring.pyx @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-symbolics -# -*- coding: utf-8 -*- """ The symbolic ring """ diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/calculus_doctest.py b/src/sage/tests/books/computational-mathematics-with-sagemath/calculus_doctest.py index 1a5262230ac..567174fc49c 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/calculus_doctest.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/calculus_doctest.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -## -*- encoding: utf-8 -*- """ This file (./calculus_doctest.sage) was *autogenerated* from ./calculus.tex, with sagetex.sty version 2011/05/27 v2.3.1. diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/combinat_doctest.py b/src/sage/tests/books/computational-mathematics-with-sagemath/combinat_doctest.py index 2100b880d06..b3349620ce6 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/combinat_doctest.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/combinat_doctest.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -## -*- encoding: utf-8 -*- """ This file (./combinat_doctest.sage) was *autogenerated* from ./combinat.tex, with sagetex.sty version 2011/05/27 v2.3.1. diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/domaines_doctest.py b/src/sage/tests/books/computational-mathematics-with-sagemath/domaines_doctest.py index bc44e19bfb0..cee1d36e208 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/domaines_doctest.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/domaines_doctest.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -## -*- encoding: utf-8 -*- """ This file (./domaines_doctest.sage) was *autogenerated* from ./domaines.tex, with sagetex.sty version 2011/05/27 v2.3.1. diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/float_doctest.py b/src/sage/tests/books/computational-mathematics-with-sagemath/float_doctest.py index 3b7cbbe17b3..7addbc668be 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/float_doctest.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/float_doctest.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -## -*- encoding: utf-8 -*- """ This file (./float_doctest.sage) was *autogenerated* from ./float.tex, with sagetex.sty version 2011/05/27 v2.3.1. diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/graphique_doctest.py b/src/sage/tests/books/computational-mathematics-with-sagemath/graphique_doctest.py index 2ce7d436164..6b4d06a09dc 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/graphique_doctest.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/graphique_doctest.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -## -*- encoding: utf-8 -*- """ This file (./graphique_doctest.sage) was *autogenerated* from ./graphique.tex, with sagetex.sty version 2011/05/27 v2.3.1. diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/graphtheory_doctest.py b/src/sage/tests/books/computational-mathematics-with-sagemath/graphtheory_doctest.py index 3de6608cad0..0f2c5270912 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/graphtheory_doctest.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/graphtheory_doctest.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -## -*- encoding: utf-8 -*- """ This file (./graphtheory_doctest.sage) was *autogenerated* from ./graphtheory.tex, with sagetex.sty version 2011/05/27 v2.3.1. diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/integration_doctest.py b/src/sage/tests/books/computational-mathematics-with-sagemath/integration_doctest.py index 2967db293aa..298aa799d79 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/integration_doctest.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/integration_doctest.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -## -*- encoding: utf-8 -*- """ This file (./integration_doctest.sage) was *autogenerated* from ./integration.tex, with sagetex.sty version 2011/05/27 v2.3.1. diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/linalg_doctest.py b/src/sage/tests/books/computational-mathematics-with-sagemath/linalg_doctest.py index 4e5e4920446..6b66ac182b0 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/linalg_doctest.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/linalg_doctest.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -## -*- encoding: utf-8 -*- """ This file (./linalg_doctest.sage) was *autogenerated* from ./linalg.tex, with sagetex.sty version 2011/05/27 v2.3.1. diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/linsolve_doctest.py b/src/sage/tests/books/computational-mathematics-with-sagemath/linsolve_doctest.py index b370e0221c7..2fa092c2136 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/linsolve_doctest.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/linsolve_doctest.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -## -*- encoding: utf-8 -*- r""" This file (./linsolve_doctest.sage) was *autogenerated* from ./linsolve.tex, with sagetex.sty version 2011/05/27 v2.3.1. diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/lp_doctest.py b/src/sage/tests/books/computational-mathematics-with-sagemath/lp_doctest.py index 207ca2071dd..9467c2c0daa 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/lp_doctest.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/lp_doctest.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -## -*- encoding: utf-8 -*- """ This file (./lp_doctest.sage) was *autogenerated* from ./lp.tex, with sagetex.sty version 2011/05/27 v2.3.1. diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/mpoly_doctest.py b/src/sage/tests/books/computational-mathematics-with-sagemath/mpoly_doctest.py index 0e5b60c1542..163208bfbbf 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/mpoly_doctest.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/mpoly_doctest.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -## -*- encoding: utf-8 -*- """ This file (./mpoly_doctest.sage) was *autogenerated* from ./mpoly.tex, with sagetex.sty version 2011/05/27 v2.3.1. diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/nonlinear_doctest.py b/src/sage/tests/books/computational-mathematics-with-sagemath/nonlinear_doctest.py index 3945a502d78..53877a43bf8 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/nonlinear_doctest.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/nonlinear_doctest.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -## -*- encoding: utf-8 -*- """ This file (./nonlinear_doctest.sage) was *autogenerated* from ./nonlinear.tex, with sagetex.sty version 2011/05/27 v2.3.1. diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/numbertheory_doctest.py b/src/sage/tests/books/computational-mathematics-with-sagemath/numbertheory_doctest.py index 3dff028ccd2..24b9588008f 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/numbertheory_doctest.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/numbertheory_doctest.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -## -*- encoding: utf-8 -*- """ This file (./numbertheory_doctest.sage) was *autogenerated* from ./numbertheory.tex, with sagetex.sty version 2011/05/27 v2.3.1. diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/polynomes_doctest.py b/src/sage/tests/books/computational-mathematics-with-sagemath/polynomes_doctest.py index 4e19e46d251..18abb89f281 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/polynomes_doctest.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/polynomes_doctest.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -## -*- encoding: utf-8 -*- """ This file (./polynomes_doctest.sage) was *autogenerated* from ./polynomes.tex, with sagetex.sty version 2011/05/27 v2.3.1. diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/premierspas_doctest.py b/src/sage/tests/books/computational-mathematics-with-sagemath/premierspas_doctest.py index 1e6c3b70704..ba9f281957b 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/premierspas_doctest.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/premierspas_doctest.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -## -*- encoding: utf-8 -*- """ This file (./premierspas_doctest.sage) was *autogenerated* from ./premierspas.tex, with sagetex.sty version 2011/05/27 v2.3.1. diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/programmation_doctest.py b/src/sage/tests/books/computational-mathematics-with-sagemath/programmation_doctest.py index db7b4cc19f0..7c7c78dfcf6 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/programmation_doctest.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/programmation_doctest.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -## -*- encoding: utf-8 -*- """ This file (./programmation_doctest.sage) was *autogenerated* from ./programmation.tex, with sagetex.sty version 2011/05/27 v2.3.1. diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/recequadiff_doctest.py b/src/sage/tests/books/computational-mathematics-with-sagemath/recequadiff_doctest.py index 3657f88d0fe..2de80122ed5 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/recequadiff_doctest.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/recequadiff_doctest.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -## -*- encoding: utf-8 -*- """ This file (./recequadiff_doctest.sage) was *autogenerated* from ./recequadiff.tex, with sagetex.sty version 2011/05/27 v2.3.1. diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/sol/calculus_doctest.py b/src/sage/tests/books/computational-mathematics-with-sagemath/sol/calculus_doctest.py index 1aa1cb803fd..44306633eef 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/sol/calculus_doctest.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/sol/calculus_doctest.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -## -*- encoding: utf-8 -*- """ This file (./sol/calculus_doctest.sage) was *autogenerated* from ./sol/calculus.tex, with sagetex.sty version 2011/05/27 v2.3.1. diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/sol/combinat_doctest.py b/src/sage/tests/books/computational-mathematics-with-sagemath/sol/combinat_doctest.py index e1d013d4ec7..3fa0c2fb145 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/sol/combinat_doctest.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/sol/combinat_doctest.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -## -*- encoding: utf-8 -*- """ This file (./sol/combinat_doctest.sage) was *autogenerated* from ./sol/combinat.tex, with sagetex.sty version 2011/05/27 v2.3.1. diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/sol/domaines_doctest.py b/src/sage/tests/books/computational-mathematics-with-sagemath/sol/domaines_doctest.py index 21bc9e0ec06..39468adf6e3 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/sol/domaines_doctest.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/sol/domaines_doctest.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -## -*- encoding: utf-8 -*- """ This file (./sol/domaines_doctest.sage) was *autogenerated* from ./sol/domaines.tex, with sagetex.sty version 2011/05/27 v2.3.1. diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/sol/float_doctest.py b/src/sage/tests/books/computational-mathematics-with-sagemath/sol/float_doctest.py index 7b54b8b992b..7475406ba08 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/sol/float_doctest.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/sol/float_doctest.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -## -*- encoding: utf-8 -*- """ This file (./sol/float_doctest.sage) was *autogenerated* from ./sol/float.tex, with sagetex.sty version 2011/05/27 v2.3.1. diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/sol/graphique_doctest.py b/src/sage/tests/books/computational-mathematics-with-sagemath/sol/graphique_doctest.py index 9df0f960675..807d751a7a8 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/sol/graphique_doctest.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/sol/graphique_doctest.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -## -*- encoding: utf-8 -*- """ This file (./sol/graphique_doctest.sage) was *autogenerated* from ./sol/graphique.tex, with sagetex.sty version 2011/05/27 v2.3.1. diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/sol/graphtheory_doctest.py b/src/sage/tests/books/computational-mathematics-with-sagemath/sol/graphtheory_doctest.py index 3da56272371..42b6cd5a1a3 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/sol/graphtheory_doctest.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/sol/graphtheory_doctest.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -## -*- encoding: utf-8 -*- """ This file (./sol/graphtheory_doctest.sage) was *autogenerated* from ./sol/graphtheory.tex, with sagetex.sty version 2011/05/27 v2.3.1. diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/sol/integration_doctest.py b/src/sage/tests/books/computational-mathematics-with-sagemath/sol/integration_doctest.py index 906321fc1e9..321e43ca881 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/sol/integration_doctest.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/sol/integration_doctest.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -## -*- encoding: utf-8 -*- """ This file (./sol/integration_doctest.sage) was *autogenerated* from ./sol/integration.tex, with sagetex.sty version 2011/05/27 v2.3.1. diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/sol/linalg_doctest.py b/src/sage/tests/books/computational-mathematics-with-sagemath/sol/linalg_doctest.py index d420174704f..a1242f0e1fe 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/sol/linalg_doctest.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/sol/linalg_doctest.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -## -*- encoding: utf-8 -*- """ This file (./sol/linalg_doctest.sage) was *autogenerated* from ./sol/linalg.tex, with sagetex.sty version 2011/05/27 v2.3.1. diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/sol/linsolve_doctest.py b/src/sage/tests/books/computational-mathematics-with-sagemath/sol/linsolve_doctest.py index adc6b5b1413..bcb2bdda88c 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/sol/linsolve_doctest.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/sol/linsolve_doctest.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -## -*- encoding: utf-8 -*- """ This file (./sol/linsolve_doctest.sage) was *autogenerated* from ./sol/linsolve.tex, with sagetex.sty version 2011/05/27 v2.3.1. diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/sol/lp_doctest.py b/src/sage/tests/books/computational-mathematics-with-sagemath/sol/lp_doctest.py index 371cd21ec4e..8cdf67654cc 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/sol/lp_doctest.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/sol/lp_doctest.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -## -*- encoding: utf-8 -*- """ This file (./sol/lp_doctest.sage) was *autogenerated* from ./sol/lp.tex, with sagetex.sty version 2011/05/27 v2.3.1. diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/sol/mpoly_doctest.py b/src/sage/tests/books/computational-mathematics-with-sagemath/sol/mpoly_doctest.py index 488ac70a83c..434065a5e6c 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/sol/mpoly_doctest.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/sol/mpoly_doctest.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -## -*- encoding: utf-8 -*- """ This file (./sol/mpoly_doctest.sage) was *autogenerated* from ./sol/mpoly.tex, with sagetex.sty version 2011/05/27 v2.3.1. diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/sol/nonlinear_doctest.py b/src/sage/tests/books/computational-mathematics-with-sagemath/sol/nonlinear_doctest.py index 5af539c3f14..0f18ca3696c 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/sol/nonlinear_doctest.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/sol/nonlinear_doctest.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -## -*- encoding: utf-8 -*- """ This file (./sol/nonlinear_doctest.sage) was *autogenerated* from ./sol/nonlinear.tex, with sagetex.sty version 2011/05/27 v2.3.1. diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/sol/numbertheory_doctest.py b/src/sage/tests/books/computational-mathematics-with-sagemath/sol/numbertheory_doctest.py index 88b4249f95c..f335c0bbf9e 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/sol/numbertheory_doctest.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/sol/numbertheory_doctest.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -## -*- encoding: utf-8 -*- """ This file (./sol/numbertheory_doctest.sage) was *autogenerated* from ./sol/numbertheory.tex, with sagetex.sty version 2011/05/27 v2.3.1. diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/sol/polynomes_doctest.py b/src/sage/tests/books/computational-mathematics-with-sagemath/sol/polynomes_doctest.py index 19c458c8044..8e674bc6e1e 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/sol/polynomes_doctest.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/sol/polynomes_doctest.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -## -*- encoding: utf-8 -*- """ This file (./sol/polynomes_doctest.sage) was *autogenerated* from ./sol/polynomes.tex, with sagetex.sty version 2011/05/27 v2.3.1. diff --git a/src/sage/tests/books/computational-mathematics-with-sagemath/sol/recequadiff_doctest.py b/src/sage/tests/books/computational-mathematics-with-sagemath/sol/recequadiff_doctest.py index b71acb01996..a28a4de5c7f 100644 --- a/src/sage/tests/books/computational-mathematics-with-sagemath/sol/recequadiff_doctest.py +++ b/src/sage/tests/books/computational-mathematics-with-sagemath/sol/recequadiff_doctest.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -## -*- encoding: utf-8 -*- """ This file (./sol/recequadiff_doctest.sage) was *autogenerated* from ./sol/recequadiff.tex, with sagetex.sty version 2011/05/27 v2.3.1. diff --git a/src/sage/tests/books/judson-abstract-algebra/actions-sage-exercises.py b/src/sage/tests/books/judson-abstract-algebra/actions-sage-exercises.py index ff4884405c6..08d4cdaf852 100644 --- a/src/sage/tests/books/judson-abstract-algebra/actions-sage-exercises.py +++ b/src/sage/tests/books/judson-abstract-algebra/actions-sage-exercises.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -## -*- coding: utf-8 -*- ## ## Sage Doctest File ## #**************************************# #* Generated from PreTeXt source *# diff --git a/src/sage/tests/books/judson-abstract-algebra/actions-sage.py b/src/sage/tests/books/judson-abstract-algebra/actions-sage.py index 71e46b9704d..5f8395655c1 100644 --- a/src/sage/tests/books/judson-abstract-algebra/actions-sage.py +++ b/src/sage/tests/books/judson-abstract-algebra/actions-sage.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -## -*- coding: utf-8 -*- ## ## Sage Doctest File ## #**************************************# #* Generated from PreTeXt source *# diff --git a/src/sage/tests/books/judson-abstract-algebra/algcodes-sage.py b/src/sage/tests/books/judson-abstract-algebra/algcodes-sage.py index 3a6a63716dd..bf1b76f8371 100644 --- a/src/sage/tests/books/judson-abstract-algebra/algcodes-sage.py +++ b/src/sage/tests/books/judson-abstract-algebra/algcodes-sage.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -## -*- coding: utf-8 -*- ## ## Sage Doctest File ## #**************************************# #* Generated from PreTeXt source *# diff --git a/src/sage/tests/books/judson-abstract-algebra/boolean-sage.py b/src/sage/tests/books/judson-abstract-algebra/boolean-sage.py index 4082e90450f..b7861db1e3d 100644 --- a/src/sage/tests/books/judson-abstract-algebra/boolean-sage.py +++ b/src/sage/tests/books/judson-abstract-algebra/boolean-sage.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -## -*- coding: utf-8 -*- ## ## Sage Doctest File ## #**************************************# #* Generated from PreTeXt source *# diff --git a/src/sage/tests/books/judson-abstract-algebra/cosets-sage-exercises.py b/src/sage/tests/books/judson-abstract-algebra/cosets-sage-exercises.py index 47e5ac5abf5..788070ab821 100644 --- a/src/sage/tests/books/judson-abstract-algebra/cosets-sage-exercises.py +++ b/src/sage/tests/books/judson-abstract-algebra/cosets-sage-exercises.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -## -*- coding: utf-8 -*- ## ## Sage Doctest File ## #**************************************# #* Generated from PreTeXt source *# diff --git a/src/sage/tests/books/judson-abstract-algebra/cosets-sage.py b/src/sage/tests/books/judson-abstract-algebra/cosets-sage.py index f3b62b86881..66882f55388 100644 --- a/src/sage/tests/books/judson-abstract-algebra/cosets-sage.py +++ b/src/sage/tests/books/judson-abstract-algebra/cosets-sage.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -## -*- coding: utf-8 -*- ## ## Sage Doctest File ## #**************************************# #* Generated from PreTeXt source *# diff --git a/src/sage/tests/books/judson-abstract-algebra/crypt-sage.py b/src/sage/tests/books/judson-abstract-algebra/crypt-sage.py index 744041552d9..947b40be364 100644 --- a/src/sage/tests/books/judson-abstract-algebra/crypt-sage.py +++ b/src/sage/tests/books/judson-abstract-algebra/crypt-sage.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -## -*- coding: utf-8 -*- ## ## Sage Doctest File ## #**************************************# #* Generated from PreTeXt source *# diff --git a/src/sage/tests/books/judson-abstract-algebra/cyclic-sage.py b/src/sage/tests/books/judson-abstract-algebra/cyclic-sage.py index 110dc45ecd1..6ae22a7a184 100644 --- a/src/sage/tests/books/judson-abstract-algebra/cyclic-sage.py +++ b/src/sage/tests/books/judson-abstract-algebra/cyclic-sage.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -## -*- coding: utf-8 -*- ## ## Sage Doctest File ## #**************************************# #* Generated from PreTeXt source *# diff --git a/src/sage/tests/books/judson-abstract-algebra/domains-sage.py b/src/sage/tests/books/judson-abstract-algebra/domains-sage.py index 1184f891041..ea481f762c1 100644 --- a/src/sage/tests/books/judson-abstract-algebra/domains-sage.py +++ b/src/sage/tests/books/judson-abstract-algebra/domains-sage.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -## -*- coding: utf-8 -*- ## ## Sage Doctest File ## #**************************************# #* Generated from PreTeXt source *# diff --git a/src/sage/tests/books/judson-abstract-algebra/fields-sage.py b/src/sage/tests/books/judson-abstract-algebra/fields-sage.py index 6aa13b8cfde..191267d14d4 100644 --- a/src/sage/tests/books/judson-abstract-algebra/fields-sage.py +++ b/src/sage/tests/books/judson-abstract-algebra/fields-sage.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -## -*- coding: utf-8 -*- ## ## Sage Doctest File ## #**************************************# #* Generated from PreTeXt source *# diff --git a/src/sage/tests/books/judson-abstract-algebra/finite-sage.py b/src/sage/tests/books/judson-abstract-algebra/finite-sage.py index 8af4841567b..d8682a18a38 100644 --- a/src/sage/tests/books/judson-abstract-algebra/finite-sage.py +++ b/src/sage/tests/books/judson-abstract-algebra/finite-sage.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -## -*- coding: utf-8 -*- ## ## Sage Doctest File ## #**************************************# #* Generated from PreTeXt source *# diff --git a/src/sage/tests/books/judson-abstract-algebra/galois-sage.py b/src/sage/tests/books/judson-abstract-algebra/galois-sage.py index 3708376bb2f..9ff575f9f63 100644 --- a/src/sage/tests/books/judson-abstract-algebra/galois-sage.py +++ b/src/sage/tests/books/judson-abstract-algebra/galois-sage.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -## -*- coding: utf-8 -*- ## ## Sage Doctest File ## #**************************************# #* Generated from PreTeXt source *# diff --git a/src/sage/tests/books/judson-abstract-algebra/groups-sage.py b/src/sage/tests/books/judson-abstract-algebra/groups-sage.py index 911c0bdac05..9543f68ea9e 100644 --- a/src/sage/tests/books/judson-abstract-algebra/groups-sage.py +++ b/src/sage/tests/books/judson-abstract-algebra/groups-sage.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -## -*- coding: utf-8 -*- ## ## Sage Doctest File ## #**************************************# #* Generated from PreTeXt source *# diff --git a/src/sage/tests/books/judson-abstract-algebra/homomorph-sage-exercises.py b/src/sage/tests/books/judson-abstract-algebra/homomorph-sage-exercises.py index 8cba4ac84ad..cd8c6877675 100644 --- a/src/sage/tests/books/judson-abstract-algebra/homomorph-sage-exercises.py +++ b/src/sage/tests/books/judson-abstract-algebra/homomorph-sage-exercises.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -## -*- coding: utf-8 -*- ## ## Sage Doctest File ## #**************************************# #* Generated from PreTeXt source *# diff --git a/src/sage/tests/books/judson-abstract-algebra/homomorph-sage.py b/src/sage/tests/books/judson-abstract-algebra/homomorph-sage.py index 55ff23e5415..cb511199a47 100644 --- a/src/sage/tests/books/judson-abstract-algebra/homomorph-sage.py +++ b/src/sage/tests/books/judson-abstract-algebra/homomorph-sage.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -## -*- coding: utf-8 -*- ## ## Sage Doctest File ## #**************************************# #* Generated from PreTeXt source *# diff --git a/src/sage/tests/books/judson-abstract-algebra/integers-sage.py b/src/sage/tests/books/judson-abstract-algebra/integers-sage.py index feaa294cbeb..ec4ba89521a 100644 --- a/src/sage/tests/books/judson-abstract-algebra/integers-sage.py +++ b/src/sage/tests/books/judson-abstract-algebra/integers-sage.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -## -*- coding: utf-8 -*- ## ## Sage Doctest File ## #**************************************# #* Generated from PreTeXt source *# diff --git a/src/sage/tests/books/judson-abstract-algebra/isomorph-sage.py b/src/sage/tests/books/judson-abstract-algebra/isomorph-sage.py index b3b083ce01e..7e360a62ff7 100644 --- a/src/sage/tests/books/judson-abstract-algebra/isomorph-sage.py +++ b/src/sage/tests/books/judson-abstract-algebra/isomorph-sage.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -## -*- coding: utf-8 -*- ## ## Sage Doctest File ## #**************************************# #* Generated from PreTeXt source *# diff --git a/src/sage/tests/books/judson-abstract-algebra/normal-sage.py b/src/sage/tests/books/judson-abstract-algebra/normal-sage.py index 5818e066023..6d4aeffe31d 100644 --- a/src/sage/tests/books/judson-abstract-algebra/normal-sage.py +++ b/src/sage/tests/books/judson-abstract-algebra/normal-sage.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -## -*- coding: utf-8 -*- ## ## Sage Doctest File ## #**************************************# #* Generated from PreTeXt source *# diff --git a/src/sage/tests/books/judson-abstract-algebra/permute-sage.py b/src/sage/tests/books/judson-abstract-algebra/permute-sage.py index 0380518069d..90267f518f7 100644 --- a/src/sage/tests/books/judson-abstract-algebra/permute-sage.py +++ b/src/sage/tests/books/judson-abstract-algebra/permute-sage.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -## -*- coding: utf-8 -*- ## ## Sage Doctest File ## #**************************************# #* Generated from PreTeXt source *# diff --git a/src/sage/tests/books/judson-abstract-algebra/poly-sage.py b/src/sage/tests/books/judson-abstract-algebra/poly-sage.py index fcf5a9e7a6f..3af6f81117e 100644 --- a/src/sage/tests/books/judson-abstract-algebra/poly-sage.py +++ b/src/sage/tests/books/judson-abstract-algebra/poly-sage.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -## -*- coding: utf-8 -*- ## ## Sage Doctest File ## #**************************************# #* Generated from PreTeXt source *# diff --git a/src/sage/tests/books/judson-abstract-algebra/rings-sage.py b/src/sage/tests/books/judson-abstract-algebra/rings-sage.py index d16ceb06baf..a76cea542bd 100644 --- a/src/sage/tests/books/judson-abstract-algebra/rings-sage.py +++ b/src/sage/tests/books/judson-abstract-algebra/rings-sage.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -## -*- coding: utf-8 -*- ## ## Sage Doctest File ## #**************************************# #* Generated from PreTeXt source *# diff --git a/src/sage/tests/books/judson-abstract-algebra/sets-sage.py b/src/sage/tests/books/judson-abstract-algebra/sets-sage.py index ce012a2f45a..8d5491f86dc 100644 --- a/src/sage/tests/books/judson-abstract-algebra/sets-sage.py +++ b/src/sage/tests/books/judson-abstract-algebra/sets-sage.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -## -*- coding: utf-8 -*- ## ## Sage Doctest File ## #**************************************# #* Generated from PreTeXt source *# diff --git a/src/sage/tests/books/judson-abstract-algebra/struct-sage.py b/src/sage/tests/books/judson-abstract-algebra/struct-sage.py index eabfec07b08..6c30b93df29 100644 --- a/src/sage/tests/books/judson-abstract-algebra/struct-sage.py +++ b/src/sage/tests/books/judson-abstract-algebra/struct-sage.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -## -*- coding: utf-8 -*- ## ## Sage Doctest File ## #**************************************# #* Generated from PreTeXt source *# diff --git a/src/sage/tests/books/judson-abstract-algebra/sylow-sage.py b/src/sage/tests/books/judson-abstract-algebra/sylow-sage.py index 8723795dc31..802cb3208bc 100644 --- a/src/sage/tests/books/judson-abstract-algebra/sylow-sage.py +++ b/src/sage/tests/books/judson-abstract-algebra/sylow-sage.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -## -*- coding: utf-8 -*- ## ## Sage Doctest File ## #**************************************# #* Generated from PreTeXt source *# diff --git a/src/sage/tests/books/judson-abstract-algebra/vect-sage-exercises.py b/src/sage/tests/books/judson-abstract-algebra/vect-sage-exercises.py index 0747a171e90..8dba35d0b27 100644 --- a/src/sage/tests/books/judson-abstract-algebra/vect-sage-exercises.py +++ b/src/sage/tests/books/judson-abstract-algebra/vect-sage-exercises.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -## -*- coding: utf-8 -*- ## ## Sage Doctest File ## #**************************************# #* Generated from PreTeXt source *# diff --git a/src/sage/tests/books/judson-abstract-algebra/vect-sage.py b/src/sage/tests/books/judson-abstract-algebra/vect-sage.py index e4d67d37360..3af215cb318 100644 --- a/src/sage/tests/books/judson-abstract-algebra/vect-sage.py +++ b/src/sage/tests/books/judson-abstract-algebra/vect-sage.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-repl -## -*- coding: utf-8 -*- ## ## Sage Doctest File ## #**************************************# #* Generated from PreTeXt source *# diff --git a/src/sage/typeset/ascii_art.py b/src/sage/typeset/ascii_art.py index 0dfc7bb5d6b..28024405d27 100644 --- a/src/sage/typeset/ascii_art.py +++ b/src/sage/typeset/ascii_art.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-categories -# -*- coding: utf-8 -*- r""" ASCII Art diff --git a/src/sage/typeset/character_art.py b/src/sage/typeset/character_art.py index 7a44fd356d7..9b545b3e358 100644 --- a/src/sage/typeset/character_art.py +++ b/src/sage/typeset/character_art.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-categories -# -*- coding: utf-8 -*- r""" Base Class for Character-Based Art diff --git a/src/sage/typeset/character_art_factory.py b/src/sage/typeset/character_art_factory.py index 6449411f890..f5ce695766e 100644 --- a/src/sage/typeset/character_art_factory.py +++ b/src/sage/typeset/character_art_factory.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-categories -# -*- coding: utf-8 -*- r""" Factory for Character-Based Art """ diff --git a/src/sage/typeset/symbols.py b/src/sage/typeset/symbols.py index 6c10a1031fe..1701603b408 100644 --- a/src/sage/typeset/symbols.py +++ b/src/sage/typeset/symbols.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-categories -# -*- coding: utf-8 -*- """ Symbols for Character Art diff --git a/src/sage/typeset/unicode_art.py b/src/sage/typeset/unicode_art.py index f0700e413c7..1d8e0933b5b 100644 --- a/src/sage/typeset/unicode_art.py +++ b/src/sage/typeset/unicode_art.py @@ -1,5 +1,4 @@ # sage_setup: distribution = sagemath-categories -# -*- coding: utf-8 -*- r""" Unicode Art From a9db3ac52d5895eb67fe3a4acd2f432dece417db Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Tue, 26 Dec 2023 10:19:24 -0800 Subject: [PATCH 035/140] Fixups --- src/sage/misc/replace_dot_all.py | 2 +- src/sage/misc/sageinspect.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/sage/misc/replace_dot_all.py b/src/sage/misc/replace_dot_all.py index 231f7d8a6c6..e3c2ae4ea95 100644 --- a/src/sage/misc/replace_dot_all.py +++ b/src/sage/misc/replace_dot_all.py @@ -299,7 +299,7 @@ def process_line(location, line, replacements, row_index, verbose=False): sage: from sage.misc.replace_dot_all import * sage: location = os.path.join(sage.env.SAGE_SRC, 'sage/plot/arc.py') sage: replacements = find_replacements(location, package_regex='sage[.]plot[.]all', verbose=True); replacements - [[477, 24, 'from sage.plot.graphics import Graphics']] + [[478, 24, 'from sage.plot.graphics import Graphics']] sage: with open(location, "r") as file: ....: lines = file.readlines() sage: row_index, col_number, *_ = replacements[0] diff --git a/src/sage/misc/sageinspect.py b/src/sage/misc/sageinspect.py index 501a182e070..f8c56bfaef4 100644 --- a/src/sage/misc/sageinspect.py +++ b/src/sage/misc/sageinspect.py @@ -1,3 +1,4 @@ +# sage_setup: distribution = sagemath-objects r""" Inspect Python, Sage, and Cython objects @@ -26,7 +27,7 @@ 'Rational Numbers...' sage: sage_getsource(sage.rings.rational) - '# sage_setup: distribution = sagemath-objects...# distutils: ...Rational Numbers...' + '# sage_setup: distribution = sagemath-categories...# distutils: ...Rational Numbers...' Python modules:: From 6744cbe987a31c417a2e8d02dd36b1d070dae370 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Wed, 27 Dec 2023 10:16:54 -0800 Subject: [PATCH 036/140] src/sage_setup/find.py: Relax a doctest --- src/sage_setup/find.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sage_setup/find.py b/src/sage_setup/find.py index f43beb572f4..53681c1f1c5 100644 --- a/src/sage_setup/find.py +++ b/src/sage_setup/find.py @@ -116,7 +116,7 @@ def find_python_sources(src_dir, modules=['sage'], distributions=None, sage: find_python_sources(SAGE_SRC, distributions=['sagemath-tdlib']) ([], - ['sage.all__sagemath_tdlib', ...], + [...], []) Benchmarking:: From 865e6a0da63e6e656a1fa589a1b255917eb76dcb Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Thu, 28 Dec 2023 17:44:06 -0800 Subject: [PATCH 037/140] pkgs/sagemath-standard/setup.py: Conditionalize source discovery - not needed for sdist --- pkgs/sagemath-standard/setup.py | 104 +++++++++++++++++--------------- 1 file changed, 54 insertions(+), 50 deletions(-) diff --git a/pkgs/sagemath-standard/setup.py b/pkgs/sagemath-standard/setup.py index 701ea966dbd..cad1bf4e105 100755 --- a/pkgs/sagemath-standard/setup.py +++ b/pkgs/sagemath-standard/setup.py @@ -73,56 +73,60 @@ from sage_setup.autogen import autogen_all autogen_all() -# TODO: This should be quiet by default -print("Discovering Python/Cython source code....") -t = time.time() -from sage.misc.package import is_package_installed_and_updated - -distributions = [ - '', - "sagemath-brial", - "sagemath-categories", - "sagemath-combinat", - "sagemath-eclib", - "sagemath-environment", - "sagemath-flint", - "sagemath-gap", - "sagemath-giac", - "sagemath-glpk", - "sagemath-graphs", - "sagemath-groups", - "sagemath-homfly", - "sagemath-lcalc", - "sagemath-libbraiding", - "sagemath-libecm", - "sagemath-linbox", - "sagemath-modules", - "sagemath-mpmath", - "sagemath-ntl", - "sagemath-objects", - "sagemath-pari", - "sagemath-plot", - "sagemath-polyhedra", - "sagemath-repl", - "sagemath-schemes", - "sagemath-singular", - "sagemath-symbolics", -] - -optional_packages_with_extensions = os.environ.get('SAGE_OPTIONAL_PACKAGES_WITH_EXTENSIONS', '').split(',') -distributions += ['sagemath-{}'.format(pkg) - for pkg in optional_packages_with_extensions - if is_package_installed_and_updated(pkg)] -log.warn('distributions = {0}'.format(distributions)) -from sage_setup.find import find_python_sources -python_packages, python_modules, cython_modules = find_python_sources( - SAGE_SRC, ['sage'], distributions=distributions) - -log.debug('python_packages = {0}'.format(python_packages)) -log.debug('python_modules = {0}'.format(python_modules)) -log.debug('cython_modules = {0}'.format(cython_modules)) - -print("Discovered Python/Cython sources, time: %.2f seconds." % (time.time() - t)) + # TODO: This should be quiet by default + print("Discovering Python/Cython source code....") + t = time.time() + from sage.misc.package import is_package_installed_and_updated + + distributions = [ + '', + "sagemath-brial", + "sagemath-categories", + "sagemath-combinat", + "sagemath-eclib", + "sagemath-environment", + "sagemath-flint", + "sagemath-gap", + "sagemath-giac", + "sagemath-glpk", + "sagemath-graphs", + "sagemath-groups", + "sagemath-homfly", + "sagemath-lcalc", + "sagemath-libbraiding", + "sagemath-libecm", + "sagemath-linbox", + "sagemath-modules", + "sagemath-mpmath", + "sagemath-ntl", + "sagemath-objects", + "sagemath-pari", + "sagemath-plot", + "sagemath-polyhedra", + "sagemath-repl", + "sagemath-schemes", + "sagemath-singular", + "sagemath-symbolics", + ] + + optional_packages_with_extensions = os.environ.get('SAGE_OPTIONAL_PACKAGES_WITH_EXTENSIONS', '').split(',') + distributions += ['sagemath-{}'.format(pkg) + for pkg in optional_packages_with_extensions + if is_package_installed_and_updated(pkg)] + log.warn('distributions = {0}'.format(distributions)) + from sage_setup.find import find_python_sources + python_packages, python_modules, cython_modules = find_python_sources( + SAGE_SRC, ['sage'], distributions=distributions) + + log.debug('python_packages = {0}'.format(python_packages)) + log.debug('python_modules = {0}'.format(python_modules)) + log.debug('cython_modules = {0}'.format(cython_modules)) + + print("Discovered Python/Cython sources, time: %.2f seconds." % (time.time() - t)) +else: + # sdist, egg_info, dist_info + python_packages = [] + cython_modules = [] ######################################################### ### Distutils From 18e2102d4bfb71d93dacb3c1cac8f2942163407f Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Fri, 29 Dec 2023 22:49:36 -0800 Subject: [PATCH 038/140] Fix doctests of is_package_or_sage_namespace_package_dir for multiple items in __path__ --- src/sage/misc/package_dir.py | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/src/sage/misc/package_dir.py b/src/sage/misc/package_dir.py index 7f57a5fe5b3..c46007ecdb8 100644 --- a/src/sage/misc/package_dir.py +++ b/src/sage/misc/package_dir.py @@ -263,6 +263,8 @@ def is_package_or_sage_namespace_package_dir(path, *, distribution_filter=None): :mod:`sage.cpython` is an ordinary package:: sage: from sage.misc.package_dir import is_package_or_sage_namespace_package_dir + sage: len(sage.cpython.__path__) + 1 sage: directory = sage.cpython.__path__[0]; directory '.../sage/cpython' sage: is_package_or_sage_namespace_package_dir(directory) @@ -271,23 +273,26 @@ def is_package_or_sage_namespace_package_dir(path, *, distribution_filter=None): :mod:`sage.libs.mpfr` only has an ``__init__.pxd`` file, but we consider it a package directory for consistency with Cython:: - sage: directory = os.path.join(sage.libs.__path__[0], 'mpfr'); directory - '.../sage/libs/mpfr' - sage: is_package_or_sage_namespace_package_dir(directory) + sage: directories = [os.path.join(p, 'mpfr') + ....: for p in sage.libs.__path__]; directories + ['.../sage/libs/mpfr'...] + sage: any(is_package_or_sage_namespace_package_dir(d) for d in directories) True - :mod:`sage` is designated to become an implicit namespace package:: + :mod:`sage` is an implicit namespace package:: - sage: directory = sage.__path__[0]; directory + sage: sage.__path__[0] '.../sage' - sage: is_package_or_sage_namespace_package_dir(directory) + sage: all(is_package_or_sage_namespace_package_dir(p) for p in sage.__path__) True Not a package:: - sage: directory = os.path.join(sage.symbolic.__path__[0], 'ginac'); directory # needs sage.symbolic - '.../sage/symbolic/ginac' - sage: is_package_or_sage_namespace_package_dir(directory) # needs sage.symbolic + sage: directories = [os.path.join(p, 'ginac') # needs sage.symbolic + ....: for p in sage.symbolic.__path__]; directories + ['.../sage/symbolic/ginac'...] + sage: any(is_package_or_sage_namespace_package_dir(d) # needs sage.symbolic + ....: for d in directories) False """ if os.path.exists(os.path.join(path, '__init__.py')): # ordinary package From c824afd3775934574eb1c66f7fe27f53a0f41d52 Mon Sep 17 00:00:00 2001 From: Gareth Ma Date: Fri, 19 Jan 2024 03:11:30 +0100 Subject: [PATCH 039/140] Set order in `.twists()`, part 1 --- src/sage/schemes/elliptic_curves/ell_field.py | 49 ++++-- .../elliptic_curves/ell_finite_field.py | 165 +++++++++++++++--- 2 files changed, 172 insertions(+), 42 deletions(-) diff --git a/src/sage/schemes/elliptic_curves/ell_field.py b/src/sage/schemes/elliptic_curves/ell_field.py index 5b2b23d81eb..d4c7fa0a589 100644 --- a/src/sage/schemes/elliptic_curves/ell_field.py +++ b/src/sage/schemes/elliptic_curves/ell_field.py @@ -148,6 +148,19 @@ def quadratic_twist(self, D=None): sage: k2 = GF(p^2,'a') sage: E.change_ring(k2).is_isomorphic(Et.change_ring(k2)) True + + The order of quadratic twists is precomputed if the order of the original curve is + precomputed. The final call in the following example is instant:: + + sage: p = next_prime(10^10) + sage: E = EllipticCurve(GF(p), [-1, 3]) + sage: E.order() + 9999895640 + sage: Et = E.quadratic_twist() + sage: Et.order() + 10000104400 + sage: E.order() + Et.order() == 2 * p + 2 + True """ K = self.base_ring() char = K.characteristic() @@ -185,21 +198,31 @@ def quadratic_twist(self, D=None): raise ValueError("twisting parameter D must be nonzero when characteristic is not 2") if char != 2: - b2,b4,b6,b8 = self.b_invariants() + b2,b4,b6,_ = self.b_invariants() # E is isomorphic to [0,b2,0,8*b4,16*b6] - return EllipticCurve(K,[0,b2*D,0,8*b4*D**2,16*b6*D**3]) - - # now char==2 - if self.j_invariant() != 0: # iff a1!=0 - a1,a2,a3,a4,a6 = self.ainvs() - E0 = self.change_weierstrass_model(a1,a3/a1,0,(a1**2*a4+a3**2)/a1**3) - # which has the form = [1,A2,0,0,A6] - assert E0.a1() == K(1) - assert E0.a3() == K(0) - assert E0.a4() == K(0) - return EllipticCurve(K,[1,E0.a2()+D,0,0,E0.a6()]) + Et = EllipticCurve(K,[0,b2*D,0,8*b4*D**2,16*b6*D**3]) + else: - raise ValueError("Quadratic twist not implemented in char 2 when j=0") + # now char==2 + if self.j_invariant() != 0: # iff a1!=0 + a1,_,a3,a4,_ = self.ainvs() + E0 = self.change_weierstrass_model(a1,a3/a1,0,(a1**2*a4+a3**2)/a1**3) + # which has the form = [1,A2,0,0,A6] + assert E0.a1() == K(1) + assert E0.a3() == K(0) + assert E0.a4() == K(0) + Et = EllipticCurve(K,[1,E0.a2()+D,0,0,E0.a6()]) + else: + raise ValueError("Quadratic twist not implemented in char 2 when j=0") + + try: + # If it was computed, use it! + _ = self._order + Et.set_order(1 + self.base_field().order() + self.trace_of_frobenius()) + except AttributeError: + pass + + return Et def two_torsion_rank(self): r""" diff --git a/src/sage/schemes/elliptic_curves/ell_finite_field.py b/src/sage/schemes/elliptic_curves/ell_finite_field.py index 47195e96327..de6a927ea11 100644 --- a/src/sage/schemes/elliptic_curves/ell_finite_field.py +++ b/src/sage/schemes/elliptic_curves/ell_finite_field.py @@ -1537,7 +1537,7 @@ def height_above_floor(self, ell, e): from sage.libs.pari.convert_sage import gen_to_sage from sage.libs.pari.all import pari X,Y = polygens(F,['X', 'Y'],2) - phi = gen_to_sage(pari.polmodular(ell),{'x':X, 'y':Y}) + phi = gen_to_sage(pari.polmodular(ell),{'x': X, 'y': Y}) j1 = phi([x,j]).roots(multiplicities=False) nj1 = len(j1) on_floor = self.two_torsion_rank() < 2 if ell == 2 else nj1 <= ell @@ -1765,6 +1765,8 @@ def twists(self): (0, 0, z8^6 + z8^3 + z8^2, 0, 0), (0, 0, z8^6 + z8^3 + z8^2, 0, z8^3 + z8^2)] + # TODO (grhkm): Docs for precomputed orders + TESTS: Randomized check that we find all twists and there are no duplicates:: @@ -1807,9 +1809,9 @@ def twists(self): twists = curves_with_j_0(K) elif j == 1728: twists = curves_with_j_1728(K) - if twists: # i.e. if j=0 or 1728 + if twists: # i.e. if j=0 or 1728 # replace the one isomorphic to self with self and move to front - for i,t in enumerate(twists): + for i, t in enumerate(twists): if self.is_isomorphic(t): twists[i] = twists[0] twists[0] = self @@ -1818,13 +1820,16 @@ def twists(self): # Now j is not 0 or 1728, and we only have a quadratic twist - if K.characteristic() == 2: # find D with trace 1 for the additive twist - D = K.one() # will work if degree is odd + if K.characteristic() == 2: + # find D with trace 1 for the additive twist + D = K.one() while D.trace() == 0: D = K.random_element() - else: # find a nonsquare D - D = K.gen() - q2 = (K.cardinality()-1)//2 + else: + # find a nonsquare D + D = K.multiplicative_generator() + q2 = (K.cardinality() - 1) // 2 + # this should always work while not D or D**q2 == 1: D = K.random_element() return [self, self.quadratic_twist(D)] @@ -1870,6 +1875,8 @@ def curves_with_j_0(K): sage: curves_with_j_0(GF(11)) [Elliptic Curve defined by y^2 = x^3 + 1 over Finite Field of size 11, Elliptic Curve defined by y^2 = x^3 + 6 over Finite Field of size 11] + + # TODO (grhkm): Docs for order precomputation """ if not K.is_finite(): raise ValueError("field must be finite") @@ -1881,14 +1888,23 @@ def curves_with_j_0(K): q = K.cardinality() if q % 3 == 2: # Then we only have two quadratic twists (and -3 is non-square) - return [EllipticCurve(K, [0,a]) for a in [1,-27]] + return [EllipticCurve(K, [0, a]) for a in [1, -27]] # Now we have genuine sextic twists, find D generating K* mod 6th powers - q2 = (q-1)//2 - q3 = (q-1)//3 - D = K.gen() + q2 = (q - 1) // 2 + q3 = (q - 1) // 3 + D = K.multiplicative_generator() + # This shouldn't run? while not D or D**q2 == 1 or D**q3 == 1: D = K.random_element() - return [EllipticCurve(K, [0,D**i]) for i in range(6)] + + curves = [EllipticCurve(K, [0, D**i]) for i in range(6)] + # TODO (grhkm): Precompute orders of sextic twists + # The idea should be to evaluate the character (D / q) or something + # Probably reference [Connell1999]_ + # Also a necessary change is `curves_with_j_0` should take in an optional "starting curve" + # (passed from the original .twists call), because if you start twisting from that curve, + # then you can also compute the orders! + return curves def curves_with_j_1728(K): r""" @@ -1927,6 +1943,8 @@ def curves_with_j_1728(K): sage: curves_with_j_1728(GF(11)) [Elliptic Curve defined by y^2 = x^3 + x over Finite Field of size 11, Elliptic Curve defined by y^2 = x^3 + 10*x over Finite Field of size 11] + + # TODO (grhkm): Docs for order precomputation """ if not K.is_finite(): raise ValueError("field must be finite") @@ -1937,13 +1955,25 @@ def curves_with_j_1728(K): return curves_with_j_0_char3(K) q = K.cardinality() if q % 4 == 3: - return [EllipticCurve(K, [a,0]) for a in [1,-1]] + curves = [EllipticCurve(K, [a, 0]) for a in [1, -1]] + curves[0].set_order(q + 1) + curves[1].set_order(q + 1) + return curves + # Now we have genuine quartic twists, find D generating K* mod 4th powers - q2 = (q-1)//2 - D = K.gen() + q2 = (q - 1) // 2 + D = K.multiplicative_generator() + # This shouldn't run? while not D or D**q2 == 1: D = K.random_element() - return [EllipticCurve(K, [D**i,0]) for i in range(4)] + curves = [EllipticCurve(K, [D**i, 0]) for i in range(4)] + # TODO (grhkm): Precompute orders of quartic twists + # The idea should be to evaluate the character (D / q) or something + # Probably reference [Connell1999]_ + # Also a necessary change is `curves_with_j_1728` should take in an optional "starting curve" + # (passed from the original .twists call), because if you start twisting from that curve, + # then you can also compute the orders! + return curves def curves_with_j_0_char2(K): r""" @@ -2006,13 +2036,32 @@ def curves_with_j_0_char2(K): sage: sum(1/len(E.automorphisms()) for E in curves) == 1 # needs sage.rings.finite_rings True + + The orders of the twists are precomputed:: + + sage: K = GF(2**13) + sage: curves = EllipticCurve(j=K(0)).twists() + sage: [curve.order() for curve in curves] + [8193, 8065, 8321] """ if not K.is_finite() or K.characteristic() != 2: raise ValueError("field must be finite of characteristic 2") - if K.degree() % 2: - return [EllipticCurve(K, [0, 0, 1, 0, 0]), - EllipticCurve(K, [0, 0, 1, 1, 0]), - EllipticCurve(K, [0, 0, 1, 1, 1])] + + deg = K.degree() + if deg % 2 == 1: + curves = [EllipticCurve(K, [0, 0, 1, 0, 0]), + EllipticCurve(K, [0, 0, 1, 1, 0]), + EllipticCurve(K, [0, 0, 1, 1, 1])] + + base = 2**deg + 1 + delta = 2**((deg + 1) // 2) * (-1)**((deg + 1) // 4) + + curves[0].set_order(base) + curves[1].set_order(base + delta) + curves[2].set_order(base - delta) + + return curves + # find a,b,c,d,e such that # a is not a cube, i.e. a**((q-1)//3)!=1 # Tr(b)=1 @@ -2028,15 +2077,26 @@ def curves_with_j_0_char2(K): while not b or not b.trace(): b = K.random_element() c = K.one() # OK if degree is 2 mod 4 - if K.degree() % 4 == 0: + if deg % 4 == 0: while (x**4+x+c).roots(): c = K.random_element() while not d or (x**2+a*x+d).roots(): d = K.random_element() while not e or (x**2+asq*x+e).roots(): e = K.random_element() - return [EllipticCurve(K, ai) for ai in - [[0,0,1,0,0], [0,0,1,0,b], [0,0,1,c,0], [0,0,a,0,0], [0,0,a,0,d], [0,0,asq,0,0], [0,0,asq,0,e]]] + + curves = [ + EllipticCurve(K, ai) + for ai in [[0, 0, 1, 0, 0], [0, 0, 1, 0, b], [0, 0, 1, c, 0], + [0, 0, a, 0, 0], [0, 0, a, 0, d], [0, 0, asq, 0, 0], + [0, 0, asq, 0, e]] + ] + + base = 2**deg + 1 + delta = (-2)**(deg // 2) + for i, f in zip(range(7), [-2, 2, 0, 1, -1, 1, -1]): + curves[i].set_order(base + f * delta) + return curves def curves_with_j_0_char3(K): r""" @@ -2101,6 +2161,22 @@ def curves_with_j_0_char3(K): sage: sum(1/len(E.automorphisms()) for E in curves) == 1 # needs sage.rings.finite_rings True + + The orders of the twists are precomputed:: + + sage: K = GF(3**10) + sage: curves = EllipticCurve(j=K(0)).twists() + sage: [curve.order() for curve in curves] + [59536, 58807, 59050, 58564, 59293, 59050] + + Note that for odd degrees, the ordering of the orders of the output is not deterministic:: + + sage: K = GF(3**3) + sage: curves = EllipticCurve(j=K(0)).twists() + sage: orders = [[curve.order() for curve in curves] for _ in range(100)] + sage: assert all(order == [28, 28, 37, 19] or order == [28, 28, 19, 37] for order in orders) + sage: all(order == (28, 28, 37, 19) for order in orders) + False """ if not K.is_finite() or K.characteristic() != 3: raise ValueError("field must be finite of characteristic 3") @@ -2109,9 +2185,30 @@ def curves_with_j_0_char3(K): while not b or not b.trace(): b = K.random_element() - if K.degree() % 2: - return [EllipticCurve(K, a4a6) for a4a6 in - [[1,0], [-1,0], [-1,b], [-1,-b]]] + deg = K.degree() + if deg % 2: + curves = [ + EllipticCurve(K, a4a6) + for a4a6 in [[1, 0], [-1, 0], [-1, b], [-1, -b]] + ] + + # It is a bit annoying here since we know the last two curves have order base +- delta, but + # we don't know the sign. I think you can compute it via some analysis on `b`, but that is + # slow, so I opt to use `.set_order` with check=True, so that if it fails it means it is the + # wrong order :) + base = 3**deg + 1 + delta = 3**((deg + 1) // 2) + + curves[0].set_order(base) + curves[1].set_order(base) + try: + curves[2].set_order(base + delta) + curves[3].set_order(base - delta) + except ValueError: + curves[2].set_order(base - delta) + curves[3].set_order(base + delta) + + return curves # find a, i, c where: # a generates K* mod 4th powers, i.e. non-square, @@ -2126,8 +2223,18 @@ def curves_with_j_0_char3(K): c = None while not c or (x**3 + a**2*x + c).roots(): c = K.random_element() - return [EllipticCurve(K, a4a6) for a4a6 in - [[1,0], [1,i*b], [a,0], [a**2,0], [a**2,c], [a**3,0]]] + + curves = [ + EllipticCurve(K, a4a6) + for a4a6 in [[1, 0], [1, i * b], [a, 0], [a**2, 0], [a**2, c], [a**3, 0]] + ] + + base = 3**deg + 1 + delta = 3**(deg // 2) * (-1)**(deg // 2) + for i, f in enumerate([-2, 1, 0, 2, -1, 0]): + curves[i].set_order(base + delta * f) + + return curves # dict to hold precomputed coefficient vectors of supersingular j values (excluding 0, 1728): From 45bb57187c19a7c432b6bb1b3adbea58ce4893bb Mon Sep 17 00:00:00 2001 From: Gareth Ma Date: Fri, 19 Jan 2024 15:10:30 +0100 Subject: [PATCH 040/140] refs --- src/doc/en/reference/references/index.rst | 4 ++++ src/sage/schemes/elliptic_curves/ell_finite_field.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/doc/en/reference/references/index.rst b/src/doc/en/reference/references/index.rst index 3f207ec0539..399caf24a82 100644 --- a/src/doc/en/reference/references/index.rst +++ b/src/doc/en/reference/references/index.rst @@ -5463,6 +5463,10 @@ REFERENCES: imaginary quadratic fields. Invent. Math. 103 (1991), no. 1, 25--68. +.. [RS2010] RUBIN, K., & SILVERBERG, A. (2010). CHOOSING THE CORRECT ELLIPTIC + CURVE IN THE CM METHOD. Mathematics of Computation, 79(269), + 545–561. :doi:`10.1090/S0025-5718-09-02266-2` + .. [Rud1958] \M. E. Rudin. *An unshellable triangulation of a tetrahedron*. Bull. Amer. Math. Soc. 64 (1958), 90-91. diff --git a/src/sage/schemes/elliptic_curves/ell_finite_field.py b/src/sage/schemes/elliptic_curves/ell_finite_field.py index de6a927ea11..8df936875ca 100644 --- a/src/sage/schemes/elliptic_curves/ell_finite_field.py +++ b/src/sage/schemes/elliptic_curves/ell_finite_field.py @@ -1900,7 +1900,7 @@ def curves_with_j_0(K): curves = [EllipticCurve(K, [0, D**i]) for i in range(6)] # TODO (grhkm): Precompute orders of sextic twists # The idea should be to evaluate the character (D / q) or something - # Probably reference [Connell1999]_ + # Probably reference [RS2010]_ and [Connell1999]_ # Also a necessary change is `curves_with_j_0` should take in an optional "starting curve" # (passed from the original .twists call), because if you start twisting from that curve, # then you can also compute the orders! From 4337649790e2018c4fbf5e8812f8aebcbe67896e Mon Sep 17 00:00:00 2001 From: Gareth Ma Date: Sun, 21 Jan 2024 04:43:45 +0100 Subject: [PATCH 041/140] Implement CM method --- src/sage/quadratic_forms/binary_qf.py | 49 ++++++++--- .../elliptic_curves/ell_finite_field.py | 85 +++++++++++++++++++ 2 files changed, 124 insertions(+), 10 deletions(-) diff --git a/src/sage/quadratic_forms/binary_qf.py b/src/sage/quadratic_forms/binary_qf.py index 555fe01b3ef..747d7b83762 100755 --- a/src/sage/quadratic_forms/binary_qf.py +++ b/src/sage/quadratic_forms/binary_qf.py @@ -1596,17 +1596,20 @@ def small_prime_value(self, Bmax=1000): raise ValueError("Unable to find a prime value of %s" % self) B += 10 - def solve_integer(self, n, *, algorithm="general"): + def solve_integer(self, n, *, algorithm="general", flag=2): r""" Solve `Q(x, y) = n` in integers `x` and `y` where `Q` is this quadratic form. INPUT: - - ``n`` -- a positive integer + - ``n`` -- a positive integer or a + `:sage:`~sage.structure.factorization.Factorization` object - ``algorithm`` -- ``"general"`` (default) or ``"cornacchia"`` + - ``flag`` -- ``1``, ``2`` (default) or ``3`` + To use the Cornacchia algorithm, the quadratic form must have `a=1` and `b=0` and `c>0`, and ``n`` must be a prime or four times a prime (but this is not checked). @@ -1653,6 +1656,14 @@ def solve_integer(self, n, *, algorithm="general"): sage: [Q.solve_integer(6) for Q in Qs] [(1, -1), (1, -1), (-1, -1)] + :: + + sage: # needs sage.libs.pari + sage: n = factor(136) + sage: Q = BinaryQF([1, 0, 5]) + sage: Q.solve_integer(n) + (11, -1) + TESTS: The returned solutions are correct (random inputs):: @@ -1702,22 +1713,39 @@ def solve_integer(self, n, *, algorithm="general"): sage: Q = Q.matrix_action_right(U) sage: Q.discriminant().is_square() True - sage: xy = Q.solve_integer(n) # needs sage.libs.pari - sage: Q(*xy) == n # needs sage.libs.pari + sage: # needs sage.libs.pari + sage: xy = Q.solve_integer(n) + sage: Q(*xy) == n True Also test the `n=0` special case separately:: - sage: xy = Q.solve_integer(0) # needs sage.libs.pari - sage: Q(*xy) # needs sage.libs.pari + sage: # needs sage.libs.pari + sage: xy = Q.solve_integer(0) + sage: Q(*xy) 0 - """ - n = ZZ(n) + Test for different `flag` values:: + + sage: # needs sage.libs.pari + sage: Q = BinaryQF([1, 0, 5]) + sage: Q.solve_integer(126, flag=1) + [(11, -1), (-1, -5), (-1, 5), (-11, -1)] + sage: Q.solve_integer(126, flag=2) + (11, -1) + sage: Q.solve_integer(126, flag=3) + [(11, -1), (-1, -5), (-1, 5), (-11, -1), (-9, -3), (9, -3)] + """ if self.is_negative_definite(): # not supported by PARI return (-self).solve_integer(-n) if self.is_reducible(): # square discriminant; not supported by PARI + try: + n = ZZ(n) + except TypeError: + # Factorization + n = ZZ(n.value()) + if self._a: # https://math.stackexchange.com/a/980075 w = self.discriminant().sqrt() @@ -1760,9 +1788,10 @@ def solve_integer(self, n, *, algorithm="general"): if algorithm != 'general': raise ValueError(f'algorithm {algorithm!r} is not a valid algorithm') - flag = 2 # single solution, possibly imprimitive sol = self.__pari__().qfbsolve(n, flag) - return tuple(map(ZZ, sol)) if sol else None + if flag == 2: + return tuple(map(ZZ, sol)) if sol else None + return list(map(lambda tup: tuple(map(ZZ, tup)), sol)) def form_class(self): r""" diff --git a/src/sage/schemes/elliptic_curves/ell_finite_field.py b/src/sage/schemes/elliptic_curves/ell_finite_field.py index 8df936875ca..8943c613254 100644 --- a/src/sage/schemes/elliptic_curves/ell_finite_field.py +++ b/src/sage/schemes/elliptic_curves/ell_finite_field.py @@ -2722,3 +2722,88 @@ def special_supersingular_curve(F, *, endomorphism=False): endo._degree = ZZ(q) endo.trace.set_cache(ZZ.zero()) return E, endo + +def _EllipticCurve_with_order_helper(m, D, iter): + from sage.arith.misc import is_prime, factor + from sage.quadratic_forms.binary_qf import BinaryQF + from sage.structure.factorization import Factorization + from sage.schemes.elliptic_curves.cm import hilbert_class_polynomial + + def helper(m, m4_fac, D): + all_sol = BinaryQF(1, 0, -D).solve_integer(m4_fac, flag=3) + for t, _ in all_sol: + if is_prime(m + 1 - t): + yield m + 1 - t + if is_prime(m + 1 + t): + yield m + 1 + t + + if isinstance(m, Factorization): + m4_fac = m * factor(4) + m_val = m.value() + else: + m4_fac = factor(m * 4) + m_val = m + + if D is None: + Ds = (4 * d if d % 4 != 3 else d for d in range(1, m_val)) + else: + Ds = [D] + + seen = set() + for D in Ds: + for q in helper(m_val, m4_fac, -D): + H = hilbert_class_polynomial(-D) + K = GF(q) + roots = H.roots(ring=K) + for j0, _ in roots: + E = EllipticCurve(j=j0) + for Et in E.twists(): + if any(Et.is_isomorphic(E) for E in seen): + continue + try: + # This tests whether the curve has given order + Et.set_order(m_val) + seen.add(Et) + yield Et + except ValueError: + pass + +def EllipticCurve_with_order(m, D=None, iter=False): + r""" + Return an elliptic curve with the given order. + + A `:sage:`~sage.structure.factorization.Factorization` can be passed for ``m``, in which case + the algorithm is more efficient. + + If ``D`` is specified, it is used as the discriminant. + + If ``iter`` is set, an iterator of all elliptic curves with the given order is returned. + + EXAMPLES:: + + sage: from sage.schemes.elliptic_curves.ell_finite_field import EllipticCurve_with_order + sage: E = EllipticCurve_with_order(1234); E + Elliptic Curve defined by y^2 = x^3 + 8*x over Finite Field of size 1229 + sage: E.order() == 1234 + True + + When ``iter`` is set, the function returns an iterator of all elliptic curves with the given + order:: + + sage: from sage.schemes.elliptic_curves.ell_finite_field import EllipticCurve_with_order + sage: it = EllipticCurve_with_order(21, iter=True); it + + sage: next(it) + Elliptic Curve defined by y^2 = x^3 + 4 over Finite Field of size 19 + sage: Es = list(it); Es + [Elliptic Curve defined by y^2 = x^3 + 19 over Finite Field of size 31, + Elliptic Curve defined by y^2 = x^3 + 4 over Finite Field of size 13, + Elliptic Curve defined by y^2 = x^3 + 3 over Finite Field of size 13, + Elliptic Curve defined by y^2 = x^3 + 6 over Finite Field of size 13] + sage: all(E.order() == 21 for E in Es) + True + """ + sol = _EllipticCurve_with_order_helper(m, D, iter) + if iter: + return sol + return next(sol) From a73ea51139b6eb904f59a89f1a41b8f1a3b3d05e Mon Sep 17 00:00:00 2001 From: Gareth Ma Date: Sun, 21 Jan 2024 11:51:02 +0000 Subject: [PATCH 042/140] Fix CM method incomplete output Someone that's experienced with CM method should check whether my implementation truly returns all curves (over a prime finite field) with the given order. In particular, I might be missing $p = 2$? --- .../elliptic_curves/ell_finite_field.py | 61 ++++++++++++++----- 1 file changed, 47 insertions(+), 14 deletions(-) diff --git a/src/sage/schemes/elliptic_curves/ell_finite_field.py b/src/sage/schemes/elliptic_curves/ell_finite_field.py index 8943c613254..a38c546bd61 100644 --- a/src/sage/schemes/elliptic_curves/ell_finite_field.py +++ b/src/sage/schemes/elliptic_curves/ell_finite_field.py @@ -2723,7 +2723,10 @@ def special_supersingular_curve(F, *, endomorphism=False): endo.trace.set_cache(ZZ.zero()) return E, endo -def _EllipticCurve_with_order_helper(m, D, iter): +def _EllipticCurve_with_order_helper(m, D): + r""" + NOTE:: D should be negative here. + """ from sage.arith.misc import is_prime, factor from sage.quadratic_forms.binary_qf import BinaryQF from sage.structure.factorization import Factorization @@ -2732,10 +2735,8 @@ def _EllipticCurve_with_order_helper(m, D, iter): def helper(m, m4_fac, D): all_sol = BinaryQF(1, 0, -D).solve_integer(m4_fac, flag=3) for t, _ in all_sol: - if is_prime(m + 1 - t): - yield m + 1 - t - if is_prime(m + 1 + t): - yield m + 1 + t + yield m + 1 - t + yield m + 1 + t if isinstance(m, Factorization): m4_fac = m * factor(4) @@ -2745,14 +2746,18 @@ def helper(m, m4_fac, D): m_val = m if D is None: - Ds = (4 * d if d % 4 != 3 else d for d in range(1, m_val)) + Ds = (D for D in range(-4 * m_val, 0) if D % 4 in [0, 1]) else: + assert D < 0 and D % 4 in [0, 1] Ds = [D] seen = set() for D in Ds: - for q in helper(m_val, m4_fac, -D): - H = hilbert_class_polynomial(-D) + for q in helper(m_val, m4_fac, D): + if not is_prime(q): + continue + + H = hilbert_class_polynomial(D) K = GF(q) roots = H.roots(ring=K) for j0, _ in roots: @@ -2770,20 +2775,26 @@ def helper(m, m4_fac, D): def EllipticCurve_with_order(m, D=None, iter=False): r""" - Return an elliptic curve with the given order. + Return an elliptic curve over a prime finite field with the given order. The curves are + computed using the Complex Multiplication (CM) method. A `:sage:`~sage.structure.factorization.Factorization` can be passed for ``m``, in which case the algorithm is more efficient. If ``D`` is specified, it is used as the discriminant. - If ``iter`` is set, an iterator of all elliptic curves with the given order is returned. + If ``iter`` is set, an iterator of all elliptic curves over prime order finite fields with the + given order is returned. + + .. TODO:: + + Remove the restriction on *prime* finite fields. EXAMPLES:: sage: from sage.schemes.elliptic_curves.ell_finite_field import EllipticCurve_with_order sage: E = EllipticCurve_with_order(1234); E - Elliptic Curve defined by y^2 = x^3 + 8*x over Finite Field of size 1229 + Elliptic Curve defined by y^2 = x^3 + 1142*x + 1209 over Finite Field of size 1237 sage: E.order() == 1234 True @@ -2794,16 +2805,38 @@ def EllipticCurve_with_order(m, D=None, iter=False): sage: it = EllipticCurve_with_order(21, iter=True); it sage: next(it) - Elliptic Curve defined by y^2 = x^3 + 4 over Finite Field of size 19 + Elliptic Curve defined by y^2 = x^3 + 6*x + 14 over Finite Field of size 23 sage: Es = list(it); Es - [Elliptic Curve defined by y^2 = x^3 + 19 over Finite Field of size 31, + [Elliptic Curve defined by y^2 = x^3 + 12*x + 4 over Finite Field of size 23, + Elliptic Curve defined by y^2 = x^3 + 5*x + 2 over Finite Field of size 23, + Elliptic Curve defined by y^2 = x^3 + 7*x + 1 over Finite Field of size 19, + Elliptic Curve defined by y^2 = x^3 + 17*x + 10 over Finite Field of size 19, + Elliptic Curve defined by y^2 = x^3 + 5*x + 12 over Finite Field of size 17, + Elliptic Curve defined by y^2 = x^3 + 9*x + 1 over Finite Field of size 17, + Elliptic Curve defined by y^2 = x^3 + 7*x + 6 over Finite Field of size 17, + Elliptic Curve defined by y^2 = x^3 + 18*x + 26 over Finite Field of size 29, + Elliptic Curve defined by y^2 = x^3 + 11*x + 19 over Finite Field of size 29, + Elliptic Curve defined by y^2 = x^3 + 4 over Finite Field of size 19, + Elliptic Curve defined by y^2 = x^3 + 19 over Finite Field of size 31, Elliptic Curve defined by y^2 = x^3 + 4 over Finite Field of size 13, Elliptic Curve defined by y^2 = x^3 + 3 over Finite Field of size 13, Elliptic Curve defined by y^2 = x^3 + 6 over Finite Field of size 13] sage: all(E.order() == 21 for E in Es) True + + Indeed, we can verify that this is correct. Hasse's bounds tell us that $p \leq 50$ + (approximately), and the rest can be checked via bruteforce:: + + sage: from sage.schemes.elliptic_curves.ell_finite_field import EllipticCurve_with_order + sage: Es = list(EllipticCurve_with_order(21, iter=True)) + sage: for p in prime_range(50): + ....: for j in range(p): + ....: E0 = EllipticCurve(GF(p), j=j) + ....: for Et in E0.twists(): + ....: if Et.order() == 21: + ....: assert any(Et.is_isomorphic(E) for E in Es) """ - sol = _EllipticCurve_with_order_helper(m, D, iter) + sol = _EllipticCurve_with_order_helper(m, D) if iter: return sol return next(sol) From 7fbb32aac1d94dbd6d14da652742d476f7beaca8 Mon Sep 17 00:00:00 2001 From: Gareth Ma Date: Sun, 21 Jan 2024 13:10:29 +0000 Subject: [PATCH 043/140] strengthen `.set_order` tests --- .../elliptic_curves/ell_finite_field.py | 80 +++++++++++-------- 1 file changed, 46 insertions(+), 34 deletions(-) diff --git a/src/sage/schemes/elliptic_curves/ell_finite_field.py b/src/sage/schemes/elliptic_curves/ell_finite_field.py index a38c546bd61..14092619883 100644 --- a/src/sage/schemes/elliptic_curves/ell_finite_field.py +++ b/src/sage/schemes/elliptic_curves/ell_finite_field.py @@ -1339,22 +1339,18 @@ def set_order(self, value, *, check=True, num_checks=8): EXAMPLES: - This example illustrates basic usage. + This example illustrates basic usage:: - :: - - sage: E = EllipticCurve(GF(7), [0, 1]) # This curve has order 6 - sage: E.set_order(6) + sage: E = EllipticCurve(GF(7), [0, 1]) # This curve has order 12 + sage: E.set_order(12) sage: E.order() - 6 + 12 sage: E.order() * E.random_point() (0 : 1 : 0) We now give a more interesting case, the NIST-P521 curve. Its order is too big to calculate with Sage, and takes a long time - using other packages, so it is very useful here. - - :: + using other packages, so it is very useful here:: sage: p = 2^521 - 1 sage: prev_proof_state = proof.arithmetic() @@ -1373,7 +1369,7 @@ def set_order(self, value, *, check=True, num_checks=8): It is an error to pass a value which is not an integer in the Hasse-Weil range:: - sage: E = EllipticCurve(GF(7), [0, 1]) # This curve has order 6 + sage: E = EllipticCurve(GF(7), [0, 1]) # This curve has order 12 sage: E.set_order("hi") Traceback (most recent call last): ... @@ -1392,40 +1388,49 @@ def set_order(self, value, *, check=True, num_checks=8): ``num_checks``, the factorization of the actual order, and the actual group structure:: - sage: E = EllipticCurve(GF(7), [0, 1]) # This curve has order 6 + sage: E = EllipticCurve(GF(1009), [0, 1]) # This curve has order 948 + sage: E.set_order(947) + Traceback (most recent call last): + ... + ValueError: Value 947 illegal (multiple of random point not the identity) + + For curves over small finite fields, the order is cheap to compute, so it is computed + directly and compared:: + + sage: E = EllipticCurve(GF(7), [0, 1]) # This curve has order 12 sage: E.set_order(11) Traceback (most recent call last): ... - ValueError: Value 11 illegal (multiple of random point not the identity) + ValueError: Value 11 illegal (correct order is 12) - However, set_order can be fooled, though it's not likely in - "real cases of interest". For instance, the order can be set - to a multiple of the actual order:: + TESTS: - sage: E = EllipticCurve(GF(7), [0, 1]) # This curve has order 6 - sage: E.set_order(12) # 12 just fits in the Hasse range - sage: E.order() - 12 + The previous version's random tests are not strong enough. In particular, the following used + to work:: - Or, the order can be set incorrectly along with ``num_checks`` set - too small:: + sage: E = EllipticCurve(GF(2), [0, 0, 1, 1, 1]) # This curve has order 1 + sage: E.set_order(3) + Traceback (most recent call last): + ... + ValueError: Value 3 illegal (correct order is 1) + + :: - sage: E = EllipticCurve(GF(7), [0, 1]) # This curve has order 6 + sage: E = EllipticCurve(GF(7), [0, 1]) # This curve has order 12 sage: E.set_order(4, num_checks=0) sage: E.order() - 4 - - The value of ``num_checks`` must be an integer. Negative values - are interpreted as zero, which means don't do any checking:: + Traceback (most recent call last): + ... + ValueError: Value 4 illegal (correct order is 12) - sage: E = EllipticCurve(GF(7), [0, 1]) # This curve has order 6 - sage: E.set_order(4, num_checks=-12) - sage: E.order() - 4 + .. TODO:: Add provable correctness check by computing the abelian group structure and + comparing. AUTHORS: - - Mariah Lenox (2011-02-16) + - Mariah Lenox (2011-02-16): Initial implementation + + - Gareth Ma (2024-01-21): Fix bug for small curves """ value = Integer(value) @@ -1434,12 +1439,19 @@ def set_order(self, value, *, check=True, num_checks=8): q = self.base_field().order() a,b = Hasse_bounds(q,1) if not a <= value <= b: - raise ValueError('Value %s illegal (not an integer in the Hasse range)' % value) + raise ValueError(f"Value {value} illegal (not an integer in the Hasse range)") + + # For really small values, the random tests are too weak to detect wrong orders + # So we go with computing directly instead. + if q <= 100: + if self.order() != value: + raise ValueError(f"Value {value} illegal (correct order is {self.order()})") + # Is value*random == identity? - for i in range(num_checks): + for _ in range(num_checks): G = self.random_point() if value * G != self(0): - raise ValueError('Value %s illegal (multiple of random point not the identity)' % value) + raise ValueError(f"Value {value} illegal (multiple of random point not the identity)") # TODO: It might help some of PARI's algorithms if we # could copy this over to the .pari_curve() as well. From f398d942292b36e62aa93cf04bb13283d05d78a2 Mon Sep 17 00:00:00 2001 From: Gareth Ma Date: Sun, 21 Jan 2024 13:14:53 +0000 Subject: [PATCH 044/140] Set order only for curves over FF --- src/sage/schemes/elliptic_curves/ell_field.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/sage/schemes/elliptic_curves/ell_field.py b/src/sage/schemes/elliptic_curves/ell_field.py index d4c7fa0a589..db1108f473c 100644 --- a/src/sage/schemes/elliptic_curves/ell_field.py +++ b/src/sage/schemes/elliptic_curves/ell_field.py @@ -21,6 +21,7 @@ from sage.rings.rational_field import QQ from sage.schemes.elliptic_curves.ell_point import EllipticCurvePoint_field from sage.schemes.curves.projective_curve import ProjectivePlaneCurve_field +from sage.rings.finite_rings.finite_field_base import FiniteField as FiniteField_generic from .constructor import EllipticCurve from .ell_curve_isogeny import EllipticCurveIsogeny, isogeny_codomain_from_kernel @@ -215,12 +216,12 @@ def quadratic_twist(self, D=None): else: raise ValueError("Quadratic twist not implemented in char 2 when j=0") - try: - # If it was computed, use it! - _ = self._order - Et.set_order(1 + self.base_field().order() + self.trace_of_frobenius()) - except AttributeError: - pass + if isinstance(K, FiniteField_generic): + try: + # If it was computed, use it! + Et.set_order(2 * self.base_field().order() + 2 - self._order) + except AttributeError: + pass return Et From 24c9740c79e5f9fe29390aafeb537968907e7535 Mon Sep 17 00:00:00 2001 From: Gareth Ma Date: Mon, 22 Jan 2024 00:44:41 +0000 Subject: [PATCH 045/140] Fix doctest... --- src/sage/quadratic_forms/binary_qf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sage/quadratic_forms/binary_qf.py b/src/sage/quadratic_forms/binary_qf.py index 747d7b83762..969ea93bd3c 100755 --- a/src/sage/quadratic_forms/binary_qf.py +++ b/src/sage/quadratic_forms/binary_qf.py @@ -1659,7 +1659,7 @@ def solve_integer(self, n, *, algorithm="general", flag=2): :: sage: # needs sage.libs.pari - sage: n = factor(136) + sage: n = factor(126) sage: Q = BinaryQF([1, 0, 5]) sage: Q.solve_integer(n) (11, -1) From 63ca8f7a963260b3add089fd77550785c531d743 Mon Sep 17 00:00:00 2001 From: Gareth Ma Date: Mon, 22 Jan 2024 01:00:53 +0000 Subject: [PATCH 046/140] Allow prime power finite fields --- .../elliptic_curves/ell_finite_field.py | 37 +++++++++++++------ 1 file changed, 25 insertions(+), 12 deletions(-) diff --git a/src/sage/schemes/elliptic_curves/ell_finite_field.py b/src/sage/schemes/elliptic_curves/ell_finite_field.py index 14092619883..0421f36eecd 100644 --- a/src/sage/schemes/elliptic_curves/ell_finite_field.py +++ b/src/sage/schemes/elliptic_curves/ell_finite_field.py @@ -2737,9 +2737,17 @@ def special_supersingular_curve(F, *, endomorphism=False): def _EllipticCurve_with_order_helper(m, D): r""" - NOTE:: D should be negative here. + See documentation of :func:`EllipticCurve_with_order`. + + EXAMPLES:: + + sage: from sage.schemes.elliptic_curves.ell_finite_field import EllipticCurve_with_order + sage: E = EllipticCurve_with_order(1234); E + Elliptic Curve defined by y^2 = x^3 + 1142*x + 1209 over Finite Field of size 1237 + sage: E.order() == 1234 + True """ - from sage.arith.misc import is_prime, factor + from sage.arith.misc import is_prime_power, factor from sage.quadratic_forms.binary_qf import BinaryQF from sage.structure.factorization import Factorization from sage.schemes.elliptic_curves.cm import hilbert_class_polynomial @@ -2766,7 +2774,7 @@ def helper(m, m4_fac, D): seen = set() for D in Ds: for q in helper(m_val, m4_fac, D): - if not is_prime(q): + if not is_prime_power(q): continue H = hilbert_class_polynomial(D) @@ -2785,22 +2793,21 @@ def helper(m, m4_fac, D): except ValueError: pass -def EllipticCurve_with_order(m, D=None, iter=False): +def EllipticCurve_with_order(m, *, D=None, all=False, iter=False): r""" - Return an elliptic curve over a prime finite field with the given order. The curves are - computed using the Complex Multiplication (CM) method. + Return an elliptic curve over a finite field with the given order. The curves are computed using + the Complex Multiplication (CM) method. A `:sage:`~sage.structure.factorization.Factorization` can be passed for ``m``, in which case the algorithm is more efficient. If ``D`` is specified, it is used as the discriminant. - If ``iter`` is set, an iterator of all elliptic curves over prime order finite fields with the - given order is returned. - - .. TODO:: + If ``all`` is set, a list of all elliptic curves over finite fields with the given order is + returned. - Remove the restriction on *prime* finite fields. + If ``iter`` is set, an iterator of all elliptic curves over finite fields with the given order + is returned. This cannot be set with ``all``. EXAMPLES:: @@ -2840,7 +2847,7 @@ def EllipticCurve_with_order(m, D=None, iter=False): (approximately), and the rest can be checked via bruteforce:: sage: from sage.schemes.elliptic_curves.ell_finite_field import EllipticCurve_with_order - sage: Es = list(EllipticCurve_with_order(21, iter=True)) + sage: Es = EllipticCurve_with_order(21, all=True) sage: for p in prime_range(50): ....: for j in range(p): ....: E0 = EllipticCurve(GF(p), j=j) @@ -2849,6 +2856,12 @@ def EllipticCurve_with_order(m, D=None, iter=False): ....: assert any(Et.is_isomorphic(E) for E in Es) """ sol = _EllipticCurve_with_order_helper(m, D) + if all: + if iter: + raise ValueError(f"all and iter cannot be both set") + return list(sol) + if iter: return sol + return next(sol) From 059519bfc8866c16ebf7ec866fb7a1bf38a95a84 Mon Sep 17 00:00:00 2001 From: Gareth Ma Date: Mon, 22 Jan 2024 01:02:44 +0000 Subject: [PATCH 047/140] =?UTF-8?q?Credits=20=E2=9C=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/sage/schemes/elliptic_curves/ell_finite_field.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/sage/schemes/elliptic_curves/ell_finite_field.py b/src/sage/schemes/elliptic_curves/ell_finite_field.py index 0421f36eecd..d4f68b6df11 100644 --- a/src/sage/schemes/elliptic_curves/ell_finite_field.py +++ b/src/sage/schemes/elliptic_curves/ell_finite_field.py @@ -2854,6 +2854,10 @@ def EllipticCurve_with_order(m, *, D=None, all=False, iter=False): ....: for Et in E0.twists(): ....: if Et.order() == 21: ....: assert any(Et.is_isomorphic(E) for E in Es) + + AUTHORS: + + - Gareth Ma and Giacomo Pope (Sage Days 123): Fix bug for small curves """ sol = _EllipticCurve_with_order_helper(m, D) if all: From d1f9c1f3cc154c53f754f940dcb8c77a4ba6f7fb Mon Sep 17 00:00:00 2001 From: Gareth Ma Date: Mon, 22 Jan 2024 01:36:30 +0000 Subject: [PATCH 048/140] =?UTF-8?q?Bugs=20=F0=9F=90=9E=20+=20avoid=20slow?= =?UTF-8?q?=20`multiplicative=5Fgenerator`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../elliptic_curves/ell_finite_field.py | 61 ++++++++++++------- 1 file changed, 39 insertions(+), 22 deletions(-) diff --git a/src/sage/schemes/elliptic_curves/ell_finite_field.py b/src/sage/schemes/elliptic_curves/ell_finite_field.py index d4f68b6df11..50fc138ae4f 100644 --- a/src/sage/schemes/elliptic_curves/ell_finite_field.py +++ b/src/sage/schemes/elliptic_curves/ell_finite_field.py @@ -1418,10 +1418,11 @@ def set_order(self, value, *, check=True, num_checks=8): sage: E = EllipticCurve(GF(7), [0, 1]) # This curve has order 12 sage: E.set_order(4, num_checks=0) - sage: E.order() Traceback (most recent call last): ... ValueError: Value 4 illegal (correct order is 12) + sage: E.order() + 12 .. TODO:: Add provable correctness check by computing the abelian group structure and comparing. @@ -1721,7 +1722,7 @@ def twists(self): sage: # needs sage.rings.finite_rings sage: K = GF(3**5) - sage: [E.ainvs() for E in EllipticCurve(j=K(1)).twists()] + sage: [E.ainvs() for E in EllipticCurve(j=K(1)).twists()] # random [(0, 1, 0, 0, 2), (0, z5, 0, 0, 2*z5^3)] sage: # needs sage.rings.finite_rings @@ -1734,7 +1735,7 @@ def twists(self): sage: # needs sage.rings.finite_rings sage: K = GF(3**4) - sage: [E.ainvs() for E in EllipticCurve(j=K(1)).twists()] + sage: [E.ainvs() for E in EllipticCurve(j=K(1)).twists()] # random [(0, 1, 0, 0, 2), (0, z4, 0, 0, 2*z4^3)] sage: # needs sage.rings.finite_rings @@ -1753,7 +1754,7 @@ def twists(self): sage: # needs sage.rings.finite_rings sage: K = GF(2**7) - sage: [E.ainvs() for E in EllipticCurve(j=K(1)).twists()] + sage: [E.ainvs() for E in EllipticCurve(j=K(1)).twists()] # random [(1, 0, 0, 0, 1), (1, 1, 0, 0, 1)] sage: # needs sage.rings.finite_rings @@ -1821,6 +1822,7 @@ def twists(self): twists = curves_with_j_0(K) elif j == 1728: twists = curves_with_j_1728(K) + if twists: # i.e. if j=0 or 1728 # replace the one isomorphic to self with self and move to front for i, t in enumerate(twists): @@ -1835,15 +1837,18 @@ def twists(self): if K.characteristic() == 2: # find D with trace 1 for the additive twist D = K.one() - while D.trace() == 0: + while not D or D.trace() == 0: D = K.random_element() else: - # find a nonsquare D - D = K.multiplicative_generator() + # find a nonsquare D. note that computing a multiplicative generator is expensive q2 = (K.cardinality() - 1) // 2 - # this should always work - while not D or D**q2 == 1: + while True: D = K.random_element() + if D and D**q2 != 1: + break + # assert D and D**q2 != 1 + # assert not D.is_square9) + return [self, self.quadratic_twist(D)] def curves_with_j_0(K): @@ -1868,7 +1873,7 @@ def curves_with_j_0(K): Elliptic Curve defined by y^2 = x^3 + 4 over Finite Field of size 7, Elliptic Curve defined by y^2 = x^3 + 5 over Finite Field of size 7, Elliptic Curve defined by y^2 = x^3 + 6 over Finite Field of size 7] - sage: curves_with_j_0(GF(25)) # needs sage.rings.finite_rings + sage: curves_with_j_0(GF(25)) # random # needs sage.rings.finite_rings [Elliptic Curve defined by y^2 = x^3 + 1 over Finite Field in z2 of size 5^2, Elliptic Curve defined by y^2 = x^3 + z2 over Finite Field in z2 of size 5^2, Elliptic Curve defined by y^2 = x^3 + (z2+3) over Finite Field in z2 of size 5^2, @@ -1904,8 +1909,8 @@ def curves_with_j_0(K): # Now we have genuine sextic twists, find D generating K* mod 6th powers q2 = (q - 1) // 2 q3 = (q - 1) // 3 - D = K.multiplicative_generator() - # This shouldn't run? + # Note that computing multiplicative generator is expensive + D = K.random_element() while not D or D**q2 == 1 or D**q3 == 1: D = K.random_element() @@ -1938,7 +1943,7 @@ def curves_with_j_1728(K): Elliptic Curve defined by y^2 = x^3 + 2*x over Finite Field of size 5, Elliptic Curve defined by y^2 = x^3 + 3*x over Finite Field of size 5, Elliptic Curve defined by y^2 = x^3 + 4*x over Finite Field of size 5] - sage: curves_with_j_1728(GF(49)) # needs sage.rings.finite_rings + sage: curves_with_j_1728(GF(49)) # random # needs sage.rings.finite_rings [Elliptic Curve defined by y^2 = x^3 + x over Finite Field in z2 of size 7^2, Elliptic Curve defined by y^2 = x^3 + z2*x over Finite Field in z2 of size 7^2, Elliptic Curve defined by y^2 = x^3 + (z2+4)*x over Finite Field in z2 of size 7^2, @@ -1974,8 +1979,8 @@ def curves_with_j_1728(K): # Now we have genuine quartic twists, find D generating K* mod 4th powers q2 = (q - 1) // 2 - D = K.multiplicative_generator() - # This shouldn't run? + # Note that computing multiplicative generator is expensive + D = K.random_element() while not D or D**q2 == 1: D = K.random_element() curves = [EllipticCurve(K, [D**i, 0]) for i in range(4)] @@ -2742,7 +2747,7 @@ def _EllipticCurve_with_order_helper(m, D): EXAMPLES:: sage: from sage.schemes.elliptic_curves.ell_finite_field import EllipticCurve_with_order - sage: E = EllipticCurve_with_order(1234); E + sage: E = EllipticCurve_with_order(1234); E # random Elliptic Curve defined by y^2 = x^3 + 1142*x + 1209 over Finite Field of size 1237 sage: E.order() == 1234 True @@ -2812,7 +2817,7 @@ def EllipticCurve_with_order(m, *, D=None, all=False, iter=False): EXAMPLES:: sage: from sage.schemes.elliptic_curves.ell_finite_field import EllipticCurve_with_order - sage: E = EllipticCurve_with_order(1234); E + sage: E = EllipticCurve_with_order(1234); E # random Elliptic Curve defined by y^2 = x^3 + 1142*x + 1209 over Finite Field of size 1237 sage: E.order() == 1234 True @@ -2823,23 +2828,30 @@ def EllipticCurve_with_order(m, *, D=None, all=False, iter=False): sage: from sage.schemes.elliptic_curves.ell_finite_field import EllipticCurve_with_order sage: it = EllipticCurve_with_order(21, iter=True); it - sage: next(it) + sage: E = next(it); E # random Elliptic Curve defined by y^2 = x^3 + 6*x + 14 over Finite Field of size 23 - sage: Es = list(it); Es + sage: E.order() == 21 + True + sage: Es = list(it); Es # random [Elliptic Curve defined by y^2 = x^3 + 12*x + 4 over Finite Field of size 23, Elliptic Curve defined by y^2 = x^3 + 5*x + 2 over Finite Field of size 23, + Elliptic Curve defined by y^2 = x^3 + (z2+3) over Finite Field in z2 of size 5^2, + Elliptic Curve defined by y^2 = x^3 + (2*z2+2) over Finite Field in z2 of size 5^2, Elliptic Curve defined by y^2 = x^3 + 7*x + 1 over Finite Field of size 19, Elliptic Curve defined by y^2 = x^3 + 17*x + 10 over Finite Field of size 19, Elliptic Curve defined by y^2 = x^3 + 5*x + 12 over Finite Field of size 17, Elliptic Curve defined by y^2 = x^3 + 9*x + 1 over Finite Field of size 17, Elliptic Curve defined by y^2 = x^3 + 7*x + 6 over Finite Field of size 17, + Elliptic Curve defined by y^2 = x^3 + z3^2*x^2 + (2*z3^2+z3) over Finite Field in z3 of size 3^3, + Elliptic Curve defined by y^2 = x^3 + (z3^2+2*z3+1)*x^2 + (2*z3^2+2*z3) over Finite Field in z3 of size 3^3, + Elliptic Curve defined by y^2 = x^3 + (z3^2+z3+1)*x^2 + (2*z3^2+1) over Finite Field in z3 of size 3^3, + Elliptic Curve defined by y^2 + (z4^2+z4+1)*y = x^3 over Finite Field in z4 of size 2^4, + Elliptic Curve defined by y^2 + (z4^2+z4)*y = x^3 over Finite Field in z4 of size 2^4, Elliptic Curve defined by y^2 = x^3 + 18*x + 26 over Finite Field of size 29, Elliptic Curve defined by y^2 = x^3 + 11*x + 19 over Finite Field of size 29, Elliptic Curve defined by y^2 = x^3 + 4 over Finite Field of size 19, Elliptic Curve defined by y^2 = x^3 + 19 over Finite Field of size 31, - Elliptic Curve defined by y^2 = x^3 + 4 over Finite Field of size 13, - Elliptic Curve defined by y^2 = x^3 + 3 over Finite Field of size 13, - Elliptic Curve defined by y^2 = x^3 + 6 over Finite Field of size 13] + Elliptic Curve defined by y^2 = x^3 + 4 over Finite Field of size 13] sage: all(E.order() == 21 for E in Es) True @@ -2855,6 +2867,11 @@ def EllipticCurve_with_order(m, *, D=None, all=False, iter=False): ....: if Et.order() == 21: ....: assert any(Et.is_isomorphic(E) for E in Es) + .. NOTE:: + + The output curves are not fixed, as :func:`EllipticCurve_finite_field.twists` is not + deterministic. However, the order of the j-invariants and base fields is fixed. + AUTHORS: - Gareth Ma and Giacomo Pope (Sage Days 123): Fix bug for small curves From e64b60d40c5e6b0dcc6f8dcca3ff44f33b608a8b Mon Sep 17 00:00:00 2001 From: Gareth Ma Date: Tue, 30 Jan 2024 19:10:53 +0000 Subject: [PATCH 049/140] =?UTF-8?q?Apply=20reviews=20=F0=9F=A4=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../elliptic_curves/ell_finite_field.py | 171 +++++++----------- 1 file changed, 66 insertions(+), 105 deletions(-) diff --git a/src/sage/schemes/elliptic_curves/ell_finite_field.py b/src/sage/schemes/elliptic_curves/ell_finite_field.py index 0685d918c23..8b3196aaf8c 100644 --- a/src/sage/schemes/elliptic_curves/ell_finite_field.py +++ b/src/sage/schemes/elliptic_curves/ell_finite_field.py @@ -1547,10 +1547,9 @@ def height_above_floor(self, ell, e): F = j.parent() x = polygen(F) from sage.rings.polynomial.polynomial_ring import polygens - from sage.libs.pari.convert_sage import gen_to_sage - from sage.libs.pari.all import pari - X,Y = polygens(F,['X', 'Y'],2) - phi = gen_to_sage(pari.polmodular(ell),{'x': X, 'y': Y}) + from sage.schemes.elliptic_curves.mod_poly import classical_modular_polynomial + X, Y = polygens(F, "X, Y", 2) + phi = classical_modular_polynomial(ell)(X, Y) j1 = phi([x,j]).roots(multiplicities=False) nj1 = len(j1) on_floor = self.two_torsion_rank() < 2 if ell == 2 else nj1 <= ell @@ -1873,13 +1872,8 @@ def curves_with_j_0(K): Elliptic Curve defined by y^2 = x^3 + 4 over Finite Field of size 7, Elliptic Curve defined by y^2 = x^3 + 5 over Finite Field of size 7, Elliptic Curve defined by y^2 = x^3 + 6 over Finite Field of size 7] - sage: curves_with_j_0(GF(25)) # random # needs sage.rings.finite_rings - [Elliptic Curve defined by y^2 = x^3 + 1 over Finite Field in z2 of size 5^2, - Elliptic Curve defined by y^2 = x^3 + z2 over Finite Field in z2 of size 5^2, - Elliptic Curve defined by y^2 = x^3 + (z2+3) over Finite Field in z2 of size 5^2, - Elliptic Curve defined by y^2 = x^3 + (4*z2+3) over Finite Field in z2 of size 5^2, - Elliptic Curve defined by y^2 = x^3 + (2*z2+2) over Finite Field in z2 of size 5^2, - Elliptic Curve defined by y^2 = x^3 + (4*z2+1) over Finite Field in z2 of size 5^2] + sage: set(E.j_invariant() for E in curves_with_j_0(GF(25))) # needs sage.rings.finite_rings + {0} For `K=\GF{q}` where `q\equiv5\mod{6}` there are two curves, quadratic twists of each other by `-3`: `y^2=x^3+1` and @@ -2209,21 +2203,18 @@ def curves_with_j_0_char3(K): for a4a6 in [[1, 0], [-1, 0], [-1, b], [-1, -b]] ] - # It is a bit annoying here since we know the last two curves have order base +- delta, but - # we don't know the sign. I think you can compute it via some analysis on `b`, but that is - # slow, so I opt to use `.set_order` with check=True, so that if it fails it means it is the - # wrong order :) base = 3**deg + 1 delta = 3**((deg + 1) // 2) curves[0].set_order(base) curves[1].set_order(base) - try: - curves[2].set_order(base + delta) - curves[3].set_order(base - delta) - except ValueError: - curves[2].set_order(base - delta) - curves[3].set_order(base + delta) + # TODO (grhkm): issue 37110 + # try: + # curves[2].set_order(base + delta) + # curves[3].set_order(base - delta) + # except ValueError: + # curves[2].set_order(base - delta) + # curves[3].set_order(base + delta) return curves @@ -2740,84 +2731,20 @@ def special_supersingular_curve(F, *, endomorphism=False): endo.trace.set_cache(ZZ.zero()) return E, endo -def _EllipticCurve_with_order_helper(m, D): - r""" - See documentation of :func:`EllipticCurve_with_order`. - - EXAMPLES:: - - sage: from sage.schemes.elliptic_curves.ell_finite_field import EllipticCurve_with_order - sage: E = EllipticCurve_with_order(1234); E # random - Elliptic Curve defined by y^2 = x^3 + 1142*x + 1209 over Finite Field of size 1237 - sage: E.order() == 1234 - True - """ - from sage.arith.misc import is_prime_power, factor - from sage.quadratic_forms.binary_qf import BinaryQF - from sage.structure.factorization import Factorization - from sage.schemes.elliptic_curves.cm import hilbert_class_polynomial - - def helper(m, m4_fac, D): - all_sol = BinaryQF(1, 0, -D).solve_integer(m4_fac, flag=3) - for t, _ in all_sol: - yield m + 1 - t - yield m + 1 + t - - if isinstance(m, Factorization): - m4_fac = m * factor(4) - m_val = m.value() - else: - m4_fac = factor(m * 4) - m_val = m - - if D is None: - Ds = (D for D in range(-4 * m_val, 0) if D % 4 in [0, 1]) - else: - assert D < 0 and D % 4 in [0, 1] - Ds = [D] - - seen = set() - for D in Ds: - for q in helper(m_val, m4_fac, D): - if not is_prime_power(q): - continue - - H = hilbert_class_polynomial(D) - K = GF(q) - roots = H.roots(ring=K) - for j0, _ in roots: - E = EllipticCurve(j=j0) - for Et in E.twists(): - if any(Et.is_isomorphic(E) for E in seen): - continue - try: - # This tests whether the curve has given order - Et.set_order(m_val) - seen.add(Et) - yield Et - except ValueError: - pass - -def EllipticCurve_with_order(m, *, D=None, all=False, iter=False): +def EllipticCurve_with_order(m, *, D=None): r""" - Return an elliptic curve over a finite field with the given order. The curves are computed using - the Complex Multiplication (CM) method. + Return an iterator for elliptic curves over finite fields with the given order. The curves are + computed using the Complex Multiplication (CM) method. A `:sage:`~sage.structure.factorization.Factorization` can be passed for ``m``, in which case the algorithm is more efficient. If ``D`` is specified, it is used as the discriminant. - If ``all`` is set, a list of all elliptic curves over finite fields with the given order is - returned. - - If ``iter`` is set, an iterator of all elliptic curves over finite fields with the given order - is returned. This cannot be set with ``all``. - EXAMPLES:: sage: from sage.schemes.elliptic_curves.ell_finite_field import EllipticCurve_with_order - sage: E = EllipticCurve_with_order(1234); E # random + sage: E = next(EllipticCurve_with_order(1234)); E # random Elliptic Curve defined by y^2 = x^3 + 1142*x + 1209 over Finite Field of size 1237 sage: E.order() == 1234 True @@ -2826,14 +2753,15 @@ def EllipticCurve_with_order(m, *, D=None, all=False, iter=False): order:: sage: from sage.schemes.elliptic_curves.ell_finite_field import EllipticCurve_with_order - sage: it = EllipticCurve_with_order(21, iter=True); it - + sage: it = EllipticCurve_with_order(21); it + sage: E = next(it); E # random Elliptic Curve defined by y^2 = x^3 + 6*x + 14 over Finite Field of size 23 sage: E.order() == 21 True - sage: Es = list(it); Es # random - [Elliptic Curve defined by y^2 = x^3 + 12*x + 4 over Finite Field of size 23, + sage: Es = [E] + list(it); Es # random + [Elliptic Curve defined by y^2 = x^3 + 6*x + 14 over Finite Field of size 23, + Elliptic Curve defined by y^2 = x^3 + 12*x + 4 over Finite Field of size 23, Elliptic Curve defined by y^2 = x^3 + 5*x + 2 over Finite Field of size 23, Elliptic Curve defined by y^2 = x^3 + (z2+3) over Finite Field in z2 of size 5^2, Elliptic Curve defined by y^2 = x^3 + (2*z2+2) over Finite Field in z2 of size 5^2, @@ -2858,8 +2786,6 @@ def EllipticCurve_with_order(m, *, D=None, all=False, iter=False): Indeed, we can verify that this is correct. Hasse's bounds tell us that $p \leq 50$ (approximately), and the rest can be checked via bruteforce:: - sage: from sage.schemes.elliptic_curves.ell_finite_field import EllipticCurve_with_order - sage: Es = EllipticCurve_with_order(21, all=True) sage: for p in prime_range(50): ....: for j in range(p): ....: E0 = EllipticCurve(GF(p), j=j) @@ -2869,20 +2795,55 @@ def EllipticCurve_with_order(m, *, D=None, all=False, iter=False): .. NOTE:: - The output curves are not fixed, as :func:`EllipticCurve_finite_field.twists` is not + The output curves are not deterministic, as :func:`EllipticCurve_finite_field.twists` is not deterministic. However, the order of the j-invariants and base fields is fixed. AUTHORS: - - Gareth Ma and Giacomo Pope (Sage Days 123): Fix bug for small curves + - Gareth Ma and Giacomo Pope (Sage Days 123): initial version """ - sol = _EllipticCurve_with_order_helper(m, D) - if all: - if iter: - raise ValueError(f"all and iter cannot be both set") - return list(sol) + from sage.arith.misc import is_prime_power, factor + from sage.quadratic_forms.binary_qf import BinaryQF + from sage.structure.factorization import Factorization + from sage.schemes.elliptic_curves.cm import hilbert_class_polynomial + + def helper(m, m4_fac, D): + all_sol = BinaryQF(1, 0, -D).solve_integer(m4_fac, flag=3) + for t, _ in all_sol: + yield m + 1 - t + yield m + 1 + t + + if isinstance(m, Factorization): + m4_fac = m * factor(4) + m_val = m.value() + else: + m4_fac = factor(m * 4) + m_val = m - if iter: - return sol + if D is None: + Ds = (D for D in range(-4 * m_val, 0) if D % 4 in [0, 1]) + else: + assert D < 0 and D % 4 in [0, 1] + Ds = [D] - return next(sol) + seen = set() + for D in Ds: + for q in helper(m_val, m4_fac, D): + if not is_prime_power(q): + continue + + H = hilbert_class_polynomial(D) + K = GF(q) + roots = H.roots(ring=K) + for j0, _ in roots: + E = EllipticCurve(j=j0) + for Et in E.twists(): + if any(Et.is_isomorphic(E) for E in seen): + continue + try: + # This tests whether the curve has given order + Et.set_order(m_val) + seen.add(Et) + yield Et + except ValueError: + pass From 96b451e77db65e28dd7a5483c912ab6aa8dbaeb5 Mon Sep 17 00:00:00 2001 From: Gareth Ma Date: Tue, 30 Jan 2024 19:14:24 +0000 Subject: [PATCH 050/140] Remove TODO --- .../schemes/elliptic_curves/ell_finite_field.py | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/sage/schemes/elliptic_curves/ell_finite_field.py b/src/sage/schemes/elliptic_curves/ell_finite_field.py index 8b3196aaf8c..6c56724516a 100644 --- a/src/sage/schemes/elliptic_curves/ell_finite_field.py +++ b/src/sage/schemes/elliptic_curves/ell_finite_field.py @@ -1777,7 +1777,13 @@ def twists(self): (0, 0, z8^6 + z8^3 + z8^2, 0, 0), (0, 0, z8^6 + z8^3 + z8^2, 0, z8^3 + z8^2)] - # TODO (grhkm): Docs for precomputed orders + The order of the quadratic twist is precomputed, so the second + computation below is fast:: + + sage: E = EllipticCurve(GF(2^255 - 19), [3, 5]) + sage: E.set_order(2^255 - 94400682670973290858718002131957303262) + sage: E.quadratic_twist().order() + 57896044618658097711785492504343953926729393015491255310587510006088522123194 TESTS: @@ -1886,8 +1892,6 @@ def curves_with_j_0(K): sage: curves_with_j_0(GF(11)) [Elliptic Curve defined by y^2 = x^3 + 1 over Finite Field of size 11, Elliptic Curve defined by y^2 = x^3 + 6 over Finite Field of size 11] - - # TODO (grhkm): Docs for order precomputation """ if not K.is_finite(): raise ValueError("field must be finite") @@ -1909,7 +1913,7 @@ def curves_with_j_0(K): D = K.random_element() curves = [EllipticCurve(K, [0, D**i]) for i in range(6)] - # TODO (grhkm): Precompute orders of sextic twists + # TODO (grhkm): issue 37110, Precompute orders of sextic twists + docs # The idea should be to evaluate the character (D / q) or something # Probably reference [RS2010]_ and [Connell1999]_ # Also a necessary change is `curves_with_j_0` should take in an optional "starting curve" @@ -1954,8 +1958,6 @@ def curves_with_j_1728(K): sage: curves_with_j_1728(GF(11)) [Elliptic Curve defined by y^2 = x^3 + x over Finite Field of size 11, Elliptic Curve defined by y^2 = x^3 + 10*x over Finite Field of size 11] - - # TODO (grhkm): Docs for order precomputation """ if not K.is_finite(): raise ValueError("field must be finite") @@ -1978,7 +1980,7 @@ def curves_with_j_1728(K): while not D or D**q2 == 1: D = K.random_element() curves = [EllipticCurve(K, [D**i, 0]) for i in range(4)] - # TODO (grhkm): Precompute orders of quartic twists + # TODO (grhkm): issue 37110, Precompute orders of quartic twists + docs # The idea should be to evaluate the character (D / q) or something # Probably reference [Connell1999]_ # Also a necessary change is `curves_with_j_1728` should take in an optional "starting curve" From 08b7b3dbe99423c492cd1dd84f5c82c82e39a419 Mon Sep 17 00:00:00 2001 From: Gareth Ma Date: Thu, 15 Feb 2024 21:07:08 +0000 Subject: [PATCH 051/140] rename `flag` to `_flag` --- src/sage/quadratic_forms/binary_qf.py | 16 ++++++++-------- .../schemes/elliptic_curves/ell_finite_field.py | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/sage/quadratic_forms/binary_qf.py b/src/sage/quadratic_forms/binary_qf.py index 969ea93bd3c..32992a56259 100755 --- a/src/sage/quadratic_forms/binary_qf.py +++ b/src/sage/quadratic_forms/binary_qf.py @@ -1596,7 +1596,7 @@ def small_prime_value(self, Bmax=1000): raise ValueError("Unable to find a prime value of %s" % self) B += 10 - def solve_integer(self, n, *, algorithm="general", flag=2): + def solve_integer(self, n, *, algorithm="general", _flag=2): r""" Solve `Q(x, y) = n` in integers `x` and `y` where `Q` is this quadratic form. @@ -1608,7 +1608,7 @@ def solve_integer(self, n, *, algorithm="general", flag=2): - ``algorithm`` -- ``"general"`` (default) or ``"cornacchia"`` - - ``flag`` -- ``1``, ``2`` (default) or ``3`` + - ``_flag`` -- ``1``, ``2`` (default) or ``3`` To use the Cornacchia algorithm, the quadratic form must have `a=1` and `b=0` and `c>0`, and ``n`` must be a prime or four @@ -1725,15 +1725,15 @@ def solve_integer(self, n, *, algorithm="general", flag=2): sage: Q(*xy) 0 - Test for different `flag` values:: + Test for different `_flag` values:: sage: # needs sage.libs.pari sage: Q = BinaryQF([1, 0, 5]) - sage: Q.solve_integer(126, flag=1) + sage: Q.solve_integer(126, _flag=1) [(11, -1), (-1, -5), (-1, 5), (-11, -1)] - sage: Q.solve_integer(126, flag=2) + sage: Q.solve_integer(126, _flag=2) (11, -1) - sage: Q.solve_integer(126, flag=3) + sage: Q.solve_integer(126, _flag=3) [(11, -1), (-1, -5), (-1, 5), (-11, -1), (-9, -3), (9, -3)] """ if self.is_negative_definite(): # not supported by PARI @@ -1788,8 +1788,8 @@ def solve_integer(self, n, *, algorithm="general", flag=2): if algorithm != 'general': raise ValueError(f'algorithm {algorithm!r} is not a valid algorithm') - sol = self.__pari__().qfbsolve(n, flag) - if flag == 2: + sol = self.__pari__().qfbsolve(n, _flag) + if _flag == 2: return tuple(map(ZZ, sol)) if sol else None return list(map(lambda tup: tuple(map(ZZ, tup)), sol)) diff --git a/src/sage/schemes/elliptic_curves/ell_finite_field.py b/src/sage/schemes/elliptic_curves/ell_finite_field.py index 6c56724516a..711c3020111 100644 --- a/src/sage/schemes/elliptic_curves/ell_finite_field.py +++ b/src/sage/schemes/elliptic_curves/ell_finite_field.py @@ -2810,7 +2810,7 @@ def EllipticCurve_with_order(m, *, D=None): from sage.schemes.elliptic_curves.cm import hilbert_class_polynomial def helper(m, m4_fac, D): - all_sol = BinaryQF(1, 0, -D).solve_integer(m4_fac, flag=3) + all_sol = BinaryQF(1, 0, -D).solve_integer(m4_fac, _flag=3) for t, _ in all_sol: yield m + 1 - t yield m + 1 + t From bfc990cd48dc51f4185953fa209c2125d7e89a23 Mon Sep 17 00:00:00 2001 From: Martin Rubey Date: Sat, 24 Feb 2024 18:10:50 +0100 Subject: [PATCH 052/140] allow construction of tensor products of free modules --- src/sage/combinat/free_module.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/sage/combinat/free_module.py b/src/sage/combinat/free_module.py index 8a97fbdc796..35f30886d70 100644 --- a/src/sage/combinat/free_module.py +++ b/src/sage/combinat/free_module.py @@ -503,10 +503,13 @@ def change_ring(self, R): return self construction = self.construction() if construction is not None: - functor, _ = construction + functor, args = construction from sage.categories.pushout import VectorFunctor if isinstance(functor, VectorFunctor): return functor(R) + from sage.categories.tensor import TensorProductFunctor + if isinstance(functor, TensorProductFunctor): + return functor([f.change_ring(R) for f in args]) raise NotImplementedError('the method change_ring() has not yet been implemented') # For backwards compatibility From ad7d8fd84f2801f5e1fea55d672b04bfa15e3437 Mon Sep 17 00:00:00 2001 From: Martin Rubey Date: Sat, 24 Feb 2024 18:15:31 +0100 Subject: [PATCH 053/140] add doctest --- src/sage/combinat/free_module.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/sage/combinat/free_module.py b/src/sage/combinat/free_module.py index 35f30886d70..67f5b86237d 100644 --- a/src/sage/combinat/free_module.py +++ b/src/sage/combinat/free_module.py @@ -498,6 +498,11 @@ def change_ring(self, R): Free module generated by {'a', 'b', 'c'} over Rational Field sage: F_QQ.change_ring(ZZ) == F True + + sage: T = F.tensor(F); T + Free module generated by {'a', 'b', 'c'} over Integer Ring # Free module generated by {'a', 'b', 'c'} over Integer Ring + sage: T.change_ring(QQ) + Free module generated by {'a', 'b', 'c'} over Rational Field # Free module generated by {'a', 'b', 'c'} over Rational Field """ if R is self.base_ring(): return self From f443df6a54ec7bb66bc1319e11f1d6d165f7d577 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Sat, 10 Feb 2024 20:36:17 -0500 Subject: [PATCH 054/140] build/pkgs/debugpy: skip when the system ipykernel is being used The debugpy package is used only by ipykernel. While it is listed unconditionally as a dependency, it is technically optional. Gentoo's ipykernel, for example, does not depend on it; and in fact, Gentoo's debugpy package is being removed (it is a pain to maintain). This commit un-requires debugpy when the system ipykernel is being used: the dependencies of the system package are assumed to be satisfied. --- build/pkgs/debugpy/spkg-configure.m4 | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/build/pkgs/debugpy/spkg-configure.m4 b/build/pkgs/debugpy/spkg-configure.m4 index db605ff03c8..4ff24d41057 100644 --- a/build/pkgs/debugpy/spkg-configure.m4 +++ b/build/pkgs/debugpy/spkg-configure.m4 @@ -1 +1,14 @@ -SAGE_SPKG_CONFIGURE([debugpy], [SAGE_PYTHON_PACKAGE_CHECK([debugpy])]) +SAGE_SPKG_CONFIGURE([debugpy], [ + SAGE_PYTHON_PACKAGE_CHECK([debugpy]) +], [ + dnl REQUIRED-CHECK + dnl + dnl Skip debugpy if ipykernel from the system will be used. + dnl This allows downstream packagers to treat debugpy (a + dnl somewhat problematic package) as optional. + AC_REQUIRE([SAGE_SPKG_CONFIGURE_IPYKERNEL]) + sage_require_debugpy=yes + AS_VAR_IF([sage_spkg_install_ipykernel], [no], [ + sage_require_debugpy=no + ]) +]) From 79c723092c73fee93041649250991dd427534e0a Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Sat, 10 Feb 2024 20:39:10 -0500 Subject: [PATCH 055/140] build/pkgs/debugpy: drop Gentoo package information It's masked for removal soon. --- build/pkgs/debugpy/distros/gentoo.txt | 1 - 1 file changed, 1 deletion(-) delete mode 100644 build/pkgs/debugpy/distros/gentoo.txt diff --git a/build/pkgs/debugpy/distros/gentoo.txt b/build/pkgs/debugpy/distros/gentoo.txt deleted file mode 100644 index 8b797ce715f..00000000000 --- a/build/pkgs/debugpy/distros/gentoo.txt +++ /dev/null @@ -1 +0,0 @@ -dev-python/debugpy From fe0a9f2731af10f01f45716e3de1c44bbefe8927 Mon Sep 17 00:00:00 2001 From: Gareth Ma Date: Thu, 14 Mar 2024 15:47:19 +0000 Subject: [PATCH 056/140] =?UTF-8?q?=F0=9F=8E=89=20review=20changes=20?= =?UTF-8?q?=F0=9F=8E=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/sage/quadratic_forms/binary_qf.py | 3 ++- .../elliptic_curves/ell_finite_field.py | 25 +++++++++++-------- 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/src/sage/quadratic_forms/binary_qf.py b/src/sage/quadratic_forms/binary_qf.py index 32992a56259..c65ef5fb66e 100755 --- a/src/sage/quadratic_forms/binary_qf.py +++ b/src/sage/quadratic_forms/binary_qf.py @@ -1608,7 +1608,8 @@ def solve_integer(self, n, *, algorithm="general", _flag=2): - ``algorithm`` -- ``"general"`` (default) or ``"cornacchia"`` - - ``_flag`` -- ``1``, ``2`` (default) or ``3`` + - ``_flag`` -- ``1``, ``2`` (default) or ``3``; passed onto the pari + function``qfbsolve``. For internal use only. To use the Cornacchia algorithm, the quadratic form must have `a=1` and `b=0` and `c>0`, and ``n`` must be a prime or four diff --git a/src/sage/schemes/elliptic_curves/ell_finite_field.py b/src/sage/schemes/elliptic_curves/ell_finite_field.py index 711c3020111..6bb10b24ce2 100644 --- a/src/sage/schemes/elliptic_curves/ell_finite_field.py +++ b/src/sage/schemes/elliptic_curves/ell_finite_field.py @@ -1845,14 +1845,13 @@ def twists(self): while not D or D.trace() == 0: D = K.random_element() else: - # find a nonsquare D. note that computing a multiplicative generator is expensive + # find a nonsquare D. + D = K.gen() q2 = (K.cardinality() - 1) // 2 - while True: + while not D or D**q2 == 1: D = K.random_element() - if D and D**q2 != 1: - break # assert D and D**q2 != 1 - # assert not D.is_square9) + # assert not D.is_square() return [self, self.quadratic_twist(D)] @@ -1870,6 +1869,7 @@ def curves_with_j_0(K): For `K=\GF{q}` where `q\equiv1\mod{6}` there are six curves, the sextic twists of `y^2=x^3+1`:: + sage: # needs sage.rings.finite_rings sage: from sage.schemes.elliptic_curves.ell_finite_field import curves_with_j_0 sage: sorted(curves_with_j_0(GF(7)), key = lambda E: E.a_invariants()) [Elliptic Curve defined by y^2 = x^3 + 1 over Finite Field of size 7, @@ -1878,7 +1878,11 @@ def curves_with_j_0(K): Elliptic Curve defined by y^2 = x^3 + 4 over Finite Field of size 7, Elliptic Curve defined by y^2 = x^3 + 5 over Finite Field of size 7, Elliptic Curve defined by y^2 = x^3 + 6 over Finite Field of size 7] - sage: set(E.j_invariant() for E in curves_with_j_0(GF(25))) # needs sage.rings.finite_rings + sage: curves = curves_with_j_0(GF(25)); len(curves) + 6 + sage: all(not curves[i].is_isomorphic(curves[j]) for i in range(6) for j in range(i + 1, 6)) + True + sage: set(E.j_invariant() for E in curves) {0} For `K=\GF{q}` where `q\equiv5\mod{6}` there are two curves, @@ -1907,13 +1911,12 @@ def curves_with_j_0(K): # Now we have genuine sextic twists, find D generating K* mod 6th powers q2 = (q - 1) // 2 q3 = (q - 1) // 3 - # Note that computing multiplicative generator is expensive - D = K.random_element() + D = K.gen() while not D or D**q2 == 1 or D**q3 == 1: D = K.random_element() curves = [EllipticCurve(K, [0, D**i]) for i in range(6)] - # TODO (grhkm): issue 37110, Precompute orders of sextic twists + docs + # TODO: issue 37110, Precompute orders of sextic twists + docs # The idea should be to evaluate the character (D / q) or something # Probably reference [RS2010]_ and [Connell1999]_ # Also a necessary change is `curves_with_j_0` should take in an optional "starting curve" @@ -1980,7 +1983,7 @@ def curves_with_j_1728(K): while not D or D**q2 == 1: D = K.random_element() curves = [EllipticCurve(K, [D**i, 0]) for i in range(4)] - # TODO (grhkm): issue 37110, Precompute orders of quartic twists + docs + # TODO: issue 37110, Precompute orders of quartic twists + docs # The idea should be to evaluate the character (D / q) or something # Probably reference [Connell1999]_ # Also a necessary change is `curves_with_j_1728` should take in an optional "starting curve" @@ -2210,7 +2213,7 @@ def curves_with_j_0_char3(K): curves[0].set_order(base) curves[1].set_order(base) - # TODO (grhkm): issue 37110 + # TODO: issue 37110 # try: # curves[2].set_order(base + delta) # curves[3].set_order(base - delta) From 984daca3b89940951e89855c50f882981f1d74b1 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Thu, 14 Mar 2024 16:12:55 -0700 Subject: [PATCH 057/140] src/sage/rings/all__sagemath_categories.py: Add import of lazy_import --- src/sage/rings/all__sagemath_categories.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/sage/rings/all__sagemath_categories.py b/src/sage/rings/all__sagemath_categories.py index 4d523ed572d..d2fa0062d68 100644 --- a/src/sage/rings/all__sagemath_categories.py +++ b/src/sage/rings/all__sagemath_categories.py @@ -1,3 +1,5 @@ +from sage.misc.lazy_import import lazy_import + # Ring base classes from sage.rings.ring import (Ring, Field, CommutativeRing, IntegralDomain, PrincipalIdealDomain) @@ -21,3 +23,5 @@ # from sage.rings.number_field.all__sagemath_categories import * # from sage.rings.padics.all__sagemath_categories import * # from sage.rings.polynomial.all__sagemath_categories import * + +del lazy_import From fe6359f967e85df8742625dd9d9c63fcb1651a2c Mon Sep 17 00:00:00 2001 From: Dhrumil07 Date: Thu, 29 Feb 2024 13:55:28 +0530 Subject: [PATCH 058/140] improving the documentation of DDS by fixing typos and repeated sentences. --- src/sage/dynamics/finite_dynamical_system.py | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/src/sage/dynamics/finite_dynamical_system.py b/src/sage/dynamics/finite_dynamical_system.py index 4295070615a..e5545be7438 100644 --- a/src/sage/dynamics/finite_dynamical_system.py +++ b/src/sage/dynamics/finite_dynamical_system.py @@ -98,22 +98,15 @@ class DiscreteDynamicalSystem(SageObject, metaclass=ClasscallMetaclass): A *discrete dynamical system* (henceforth *DDS*) is a pair `(X, \phi)` of a set `X` and a map `\phi : X \to X`. - This set `X` is called the *ground set* of the DDS, while - the map `\phi` is called the *evolution* of the DDS. - - A *discrete dynamical system* (short: *DDS*) is a pair - `(X, \phi)` of a set `X` and a map `\phi : X \to X`. - (This is one of several things known as a "discrete - dynamical system" in mathematics.) - Thus, a DDS is the same as an endomorphism of a set. - The DDS is said to be *finite* if `X` is finite. - The DDS is said to be *invertible* if the map `\phi` is - invertible. The set `X` is called the *ground set* of the DDS; the map `\phi` is called the *evolution* of the DDS; the inverse map `\phi^{-1}` (when it exists) is called the *inverse evolution* of the DDS. + The DDS is said to be *finite* if `X` is finite. + The DDS is said to be *invertible* if the map `\phi` is + invertible. + Given a DDS `(X, \phi)`, we can study * its orbits (i.e., the lists @@ -138,7 +131,7 @@ class DiscreteDynamicalSystem(SageObject, metaclass=ClasscallMetaclass): - ``X`` -- set, list, tuple, or another iterable, or ``None`` (default: ``None``); the ground set for the DDS. - Tthis can be ``None`` (in which case Sage will not know + This can be ``None`` (in which case Sage will not know the ground set, but can still apply evolution to any elements that are provided to it). Make sure to set the ``create_tuple`` argument to From 6f0f7ae7dbee0b690dc3b194e428107e05c57ef5 Mon Sep 17 00:00:00 2001 From: Dhrumil07 Date: Fri, 1 Mar 2024 18:43:02 +0530 Subject: [PATCH 059/140] fixing the terminology by replacing *is said* with *is called* --- src/sage/dynamics/finite_dynamical_system.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sage/dynamics/finite_dynamical_system.py b/src/sage/dynamics/finite_dynamical_system.py index e5545be7438..414741ddbbd 100644 --- a/src/sage/dynamics/finite_dynamical_system.py +++ b/src/sage/dynamics/finite_dynamical_system.py @@ -103,8 +103,8 @@ class DiscreteDynamicalSystem(SageObject, metaclass=ClasscallMetaclass): the inverse map `\phi^{-1}` (when it exists) is called the *inverse evolution* of the DDS. - The DDS is said to be *finite* if `X` is finite. - The DDS is said to be *invertible* if the map `\phi` is + The DDS is called *finite* if `X` is finite. + The DDS is called *invertible* if the map `\phi` is invertible. Given a DDS `(X, \phi)`, we can study From 17331452f2d94b1344f6272dc7daa0054f93489d Mon Sep 17 00:00:00 2001 From: Dhrumil07 Date: Thu, 7 Mar 2024 14:57:36 +0530 Subject: [PATCH 060/140] fixing minor linter error --- src/sage/dynamics/finite_dynamical_system.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sage/dynamics/finite_dynamical_system.py b/src/sage/dynamics/finite_dynamical_system.py index 414741ddbbd..915db6dc580 100644 --- a/src/sage/dynamics/finite_dynamical_system.py +++ b/src/sage/dynamics/finite_dynamical_system.py @@ -106,7 +106,7 @@ class DiscreteDynamicalSystem(SageObject, metaclass=ClasscallMetaclass): The DDS is called *finite* if `X` is finite. The DDS is called *invertible* if the map `\phi` is invertible. - + Given a DDS `(X, \phi)`, we can study * its orbits (i.e., the lists From 541558b6da6d259d6a91f80a0b41e8961b36346f Mon Sep 17 00:00:00 2001 From: Giacomo Pope Date: Fri, 15 Mar 2024 16:36:20 +0000 Subject: [PATCH 061/140] remove bugged function and add docstring --- .../hyperelliptic_rational_field.py | 43 +++++++++++++++---- 1 file changed, 35 insertions(+), 8 deletions(-) diff --git a/src/sage/schemes/hyperelliptic_curves/hyperelliptic_rational_field.py b/src/sage/schemes/hyperelliptic_curves/hyperelliptic_rational_field.py index f9337b0fbc0..3551799558c 100644 --- a/src/sage/schemes/hyperelliptic_curves/hyperelliptic_rational_field.py +++ b/src/sage/schemes/hyperelliptic_curves/hyperelliptic_rational_field.py @@ -20,21 +20,48 @@ class HyperellipticCurve_rational_field(hyperelliptic_generic.HyperellipticCurve ProjectivePlaneCurve_field): def matrix_of_frobenius(self, p, prec=20): + """ + Compute the matrix of Frobenius on Monsky-Washnitzer cohomology using + the `p`-adic field with precision ``prec``. + + This function is essentially a wrapper function of + :meth:`sage.schemes.hyperelliptic_curves.monsky_washnitzer.matrix_of_frobenius_hyperelliptic`. + + INPUT: + + - ``p`` (prime integer or pAdic ring / field ) -- if ``p`` is an integer, + constructs a ``pAdicField`` with ``p`` to compute the matrix of + Frobenius, otherwise uses the supplied pAdic ring or field. - # BUG: should get this method from HyperellipticCurve_generic - def my_chage_ring(self, R): - from .constructor import HyperellipticCurve - f, h = self._hyperelliptic_polynomials - y = self._printing_ring.gen() - x = self._printing_ring.base_ring().gen() - return HyperellipticCurve(f.change_ring(R), h, "%s,%s" % (x,y)) + - ``prec`` (optional) -- if ``p`` is an prime integer, the `p`-adic + precision of the coefficient ring constructed + EXAMPLES:: + + sage: K = pAdicField(5, prec=3) + sage: R. = QQ['x'] + sage: H = HyperellipticCurve(x^5 - 2*x + 3) + sage: H.matrix_of_frobenius(K) + [ 4*5 + O(5^3) 5 + 2*5^2 + O(5^3) 2 + 3*5 + 2*5^2 + O(5^3) 2 + 5 + 5^2 + O(5^3)] + [ 3*5 + 5^2 + O(5^3) 3*5 + O(5^3) 4*5 + O(5^3) 2 + 5^2 + O(5^3)] + [ 4*5 + 4*5^2 + O(5^3) 3*5 + 2*5^2 + O(5^3) 5 + 3*5^2 + O(5^3) 2*5 + 2*5^2 + O(5^3)] + [ 5^2 + O(5^3) 5 + 4*5^2 + O(5^3) 4*5 + 3*5^2 + O(5^3) 2*5 + O(5^3)] + + You can also pass directly a prime `p` with to construct a pAdic field with precision + ``prec``:: + + sage: H.matrix_of_frobenius(3, prec=2) + [ O(3^2) 3 + O(3^2) O(3^2) O(3^2)] + [ 3 + O(3^2) O(3^2) O(3^2) 2 + 3 + O(3^2)] + [ 2*3 + O(3^2) O(3^2) O(3^2) 3^-1 + O(3)] + [ O(3^2) O(3^2) 3 + O(3^2) O(3^2)] + """ import sage.schemes.hyperelliptic_curves.monsky_washnitzer as monsky_washnitzer if isinstance(p, (sage.rings.abc.pAdicField, sage.rings.abc.pAdicRing)): K = p else: K = pAdicField(p, prec) - frob_p, forms = monsky_washnitzer.matrix_of_frobenius_hyperelliptic(my_chage_ring(self, K)) + frob_p, _ = monsky_washnitzer.matrix_of_frobenius_hyperelliptic(self.change_ring(K)) return frob_p def lseries(self, prec=53): From b8409da81e745e67ebefb0d78634f20154bb21b6 Mon Sep 17 00:00:00 2001 From: Giacomo Pope Date: Fri, 15 Mar 2024 17:22:57 +0000 Subject: [PATCH 062/140] linter, again --- .../hyperelliptic_rational_field.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/sage/schemes/hyperelliptic_curves/hyperelliptic_rational_field.py b/src/sage/schemes/hyperelliptic_curves/hyperelliptic_rational_field.py index 3551799558c..60b9423be2b 100644 --- a/src/sage/schemes/hyperelliptic_curves/hyperelliptic_rational_field.py +++ b/src/sage/schemes/hyperelliptic_curves/hyperelliptic_rational_field.py @@ -23,8 +23,8 @@ def matrix_of_frobenius(self, p, prec=20): """ Compute the matrix of Frobenius on Monsky-Washnitzer cohomology using the `p`-adic field with precision ``prec``. - - This function is essentially a wrapper function of + + This function is essentially a wrapper function of :meth:`sage.schemes.hyperelliptic_curves.monsky_washnitzer.matrix_of_frobenius_hyperelliptic`. INPUT: @@ -46,10 +46,10 @@ def matrix_of_frobenius(self, p, prec=20): [ 3*5 + 5^2 + O(5^3) 3*5 + O(5^3) 4*5 + O(5^3) 2 + 5^2 + O(5^3)] [ 4*5 + 4*5^2 + O(5^3) 3*5 + 2*5^2 + O(5^3) 5 + 3*5^2 + O(5^3) 2*5 + 2*5^2 + O(5^3)] [ 5^2 + O(5^3) 5 + 4*5^2 + O(5^3) 4*5 + 3*5^2 + O(5^3) 2*5 + O(5^3)] - + You can also pass directly a prime `p` with to construct a pAdic field with precision - ``prec``:: - + ``prec``:: + sage: H.matrix_of_frobenius(3, prec=2) [ O(3^2) 3 + O(3^2) O(3^2) O(3^2)] [ 3 + O(3^2) O(3^2) O(3^2) 2 + 3 + O(3^2)] From fb7b5605e1b7aa65d7fba21aa9a92a4fecc84a9b Mon Sep 17 00:00:00 2001 From: Sebastian Spindler Date: Thu, 21 Mar 2024 22:08:38 +0100 Subject: [PATCH 063/140] Corrections in `.normalize_basis_at_p` ... ... and additional fix in `.maximal_order()`. Amend: Added a space in docstring --- .../algebras/quatalg/quaternion_algebra.py | 45 ++++++++++++++++--- 1 file changed, 38 insertions(+), 7 deletions(-) diff --git a/src/sage/algebras/quatalg/quaternion_algebra.py b/src/sage/algebras/quatalg/quaternion_algebra.py index 849a5bdd727..8c10fcd6830 100644 --- a/src/sage/algebras/quatalg/quaternion_algebra.py +++ b/src/sage/algebras/quatalg/quaternion_algebra.py @@ -755,8 +755,7 @@ def maximal_order(self, take_shortcuts=True): sage: for d in ( m for m in range(1, 750) if is_squarefree(m) ): # long time (3s) ....: A = QuaternionAlgebra(d) - ....: R = A.maximal_order(take_shortcuts=False) - ....: assert A.discriminant() == R.discriminant() + ....: assert A.maximal_order(take_shortcuts=False).is_maximal() We do not support number fields other than the rationals yet:: @@ -766,6 +765,17 @@ def maximal_order(self, take_shortcuts=True): ... NotImplementedError: maximal order only implemented for rational quaternion algebras + + TESTS: + + We check that the first part of :issue:`37217` is fixed:: + + sage: invars = [(-292, -732), (-48, -564), (-436, -768), (-752, -708), (885, 545), + ....: (411, -710), (-411, 593), (805, -591), (-921, 353), (409, 96), + ....: (394, 873), (353, -722), (730, 830), (-466, -427), (-213, -630), + ....: (-511, 608), (493, 880), (105, -709), (-213, 530), (97, 745)] + sage: all(QuaternionAlgebra(a, b).maximal_order().is_maximal() for (a, b) in invars) + True """ if self.base_ring() != QQ: raise NotImplementedError("maximal order only implemented for rational quaternion algebras") @@ -819,7 +829,8 @@ def maximal_order(self, take_shortcuts=True): # For each prime at which R is not yet maximal, make it bigger for p, _ in d_R.factor(): e = R.basis() - while self.quaternion_order(e).discriminant().valuation(p) > d_A.valuation(p): + disc = self.quaternion_order(e).discriminant() + while disc.valuation(p) > d_A.valuation(p): # Compute a normalized basis at p f = normalize_basis_at_p(list(e), p) @@ -896,6 +907,16 @@ def maximal_order(self, take_shortcuts=True): # be an order). We will join them all together at the end e = e_n + # Since e might not define an order at this point, we need to manually + # calculate the updated discriminant + L = [] + for x in e: + MM = [] + for y in e: + MM.append(x.pair(y)) + L.append(MM) + disc = (MatrixSpace(QQ, 4, 4)(L)).determinant().sqrt() + e_new_gens.extend(e[1:]) e_new = basis_for_quaternion_lattice(list(R.basis()) + e_new_gens, reverse=True) @@ -3529,7 +3550,18 @@ def normalize_basis_at_p(e, p, B=QuaternionAlgebraElement_abstract.pair): sage: e = [A(1), k, j, 1/2 + 1/2*i + 1/2*j + 1/2*k] sage: normalize_basis_at_p(e, 2) [(1, 0), (1/2 + 1/2*i + 1/2*j + 1/2*k, 0), (-34/105*i - 463/735*j + 71/105*k, 1), - (-34/105*i - 463/735*j + 71/105*k, 1)] + (1/7*i - 8/49*j + 1/7*k, 1)] + + TESTS: + + We check that the second part of :issue:`37217` is fixed:: + + sage: A. = QuaternionAlgebra(-1,-7) + sage: e = [A(1), k, j, 1/2 + 1/2*i + 1/2*j + 1/2*k] + sage: e_norm = normalize_basis_at_p(e, 2) + sage: V = QQ**4 + sage: V.span([V(x.coefficient_tuple()) for (x,_) in e_norm]).dimension() + 4 """ N = len(e) @@ -3577,8 +3609,7 @@ def normalize_basis_at_p(e, p, B=QuaternionAlgebraElement_abstract.pair): # Ensures that (B(f0,f0)/2).valuation(p) <= B(f0,f1).valuation(p) if B(f0, f1).valuation(p) + 1 < B(f0, f0).valuation(p): - f0 += f1 - f1 = f0 + f0, f1 = f0 + f1, f0 # Make remaining vectors orthogonal to span of f0, f1 e[min_m] = e[0] @@ -3591,7 +3622,7 @@ def normalize_basis_at_p(e, p, B=QuaternionAlgebraElement_abstract.pair): tu = [(B01 * B(f1, e[l]) - B11 * B(f0, e[l]), B01 * B(f0, e[l]) - B00 * B(f1, e[l])) for l in range(2, N)] - e[2:n] = [e[l] + tu[l-2][0]/d * f0 + tu[l-2][1]/d * f1 for l in range(2, N)] + e[2:N] = [e[l] + tu[l-2][0]/d * f0 + tu[l-2][1]/d * f1 for l in range(2, N)] # Recursively normalize remaining vectors f = normalize_basis_at_p(e[2:N], p) From 57532ff19ae7c4e710f9ef69f6c3beb8af22fac7 Mon Sep 17 00:00:00 2001 From: Sebastian Spindler Date: Thu, 21 Mar 2024 23:23:55 +0100 Subject: [PATCH 064/140] Added example from #37417 --- src/sage/algebras/quatalg/quaternion_algebra.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/sage/algebras/quatalg/quaternion_algebra.py b/src/sage/algebras/quatalg/quaternion_algebra.py index 8c10fcd6830..d2c9de90176 100644 --- a/src/sage/algebras/quatalg/quaternion_algebra.py +++ b/src/sage/algebras/quatalg/quaternion_algebra.py @@ -768,11 +768,11 @@ def maximal_order(self, take_shortcuts=True): TESTS: - We check that the first part of :issue:`37217` is fixed:: + We check that :issue:`37417` and the first part of :issue:`37217` are fixed:: - sage: invars = [(-292, -732), (-48, -564), (-436, -768), (-752, -708), (885, 545), - ....: (411, -710), (-411, 593), (805, -591), (-921, 353), (409, 96), - ....: (394, 873), (353, -722), (730, 830), (-466, -427), (-213, -630), + sage: invars = [(-4, -28), (-292, -732), (-48, -564), (-436, -768), (-752, -708), + ....: (885, 545), (411, -710), (-411, 593), (805, -591), (-921, 353), + ....: (409, 96), (394, 873), (353, -722), (730, 830), (-466, -427), (-213, -630), ....: (-511, 608), (493, 880), (105, -709), (-213, 530), (97, 745)] sage: all(QuaternionAlgebra(a, b).maximal_order().is_maximal() for (a, b) in invars) True From ac010ad271b0c95de5afdbad686463bea4a0bf0d Mon Sep 17 00:00:00 2001 From: Giorgos Mousa Date: Mon, 25 Mar 2024 23:51:56 +0200 Subject: [PATCH 065/140] Make matroid copy and deepcopy simply return self --- src/sage/matroids/advanced.py | 1 + src/sage/matroids/basis_matroid.pyx | 40 --- .../matroids/circuit_closures_matroid.pyx | 73 ++---- src/sage/matroids/circuits_matroid.pyx | 49 ---- src/sage/matroids/dual_matroid.py | 46 +--- src/sage/matroids/graphic_matroid.py | 40 --- src/sage/matroids/lean_matrix.pyx | 26 -- src/sage/matroids/linear_matroid.pyx | 229 ------------------ src/sage/matroids/matroid.pyx | 92 +++++++ src/sage/matroids/minor_matroid.py | 44 ---- src/sage/matroids/rank_matroid.py | 45 ---- 11 files changed, 111 insertions(+), 574 deletions(-) diff --git a/src/sage/matroids/advanced.py b/src/sage/matroids/advanced.py index b38075bb39c..f70d78ed01e 100644 --- a/src/sage/matroids/advanced.py +++ b/src/sage/matroids/advanced.py @@ -52,6 +52,7 @@ from .minor_matroid import MinorMatroid from .dual_matroid import DualMatroid from .rank_matroid import RankMatroid +from .circuits_matroid import CircuitsMatroid from .circuit_closures_matroid import CircuitClosuresMatroid from .basis_matroid import BasisMatroid from .linear_matroid import LinearMatroid, RegularMatroid, BinaryMatroid, TernaryMatroid, QuaternaryMatroid diff --git a/src/sage/matroids/basis_matroid.pyx b/src/sage/matroids/basis_matroid.pyx index 137edc21d94..33930892d6b 100644 --- a/src/sage/matroids/basis_matroid.pyx +++ b/src/sage/matroids/basis_matroid.pyx @@ -1161,46 +1161,6 @@ cdef class BasisMatroid(BasisExchangeMatroid): else: return rich_to_bool(op, 1) - def __copy__(self): - """ - Create a shallow copy. - - EXAMPLES:: - - sage: from sage.matroids.advanced import * - sage: M = BasisMatroid(matroids.catalog.Vamos()) - sage: N = copy(M) # indirect doctest - sage: M == N - True - """ - N = BasisMatroid(M=self) - N.rename(self.get_custom_name()) - return N - - def __deepcopy__(self, memo=None): - """ - Create a deep copy. - - .. NOTE:: - - Identical to shallow copy for BasisMatroid class. - - EXAMPLES:: - - sage: from sage.matroids.advanced import * - sage: M = BasisMatroid(matroids.catalog.Vamos()) - sage: N = deepcopy(M) # indirect doctest - sage: M == N - True - sage: M.groundset() is N.groundset() - False - """ - if memo is None: - memo = {} - N = BasisMatroid(M=self) - N.rename(self.get_custom_name()) - return N - def __reduce__(self): """ Save the matroid for later reloading. diff --git a/src/sage/matroids/circuit_closures_matroid.pyx b/src/sage/matroids/circuit_closures_matroid.pyx index 3570d59c421..e87bdd87f7d 100644 --- a/src/sage/matroids/circuit_closures_matroid.pyx +++ b/src/sage/matroids/circuit_closures_matroid.pyx @@ -46,15 +46,6 @@ Note that the class does not implement custom minor and dual operations:: AUTHORS: - Rudi Pendavingh, Stefan van Zwam (2013-04-01): initial version - -TESTS:: - - sage: from sage.matroids.advanced import * - sage: M = CircuitClosuresMatroid(matroids.catalog.Fano()) - sage: TestSuite(M).run() - -Methods -======= """ # **************************************************************************** # Copyright (C) 2013 Rudi Pendavingh @@ -131,7 +122,8 @@ cdef class CircuitClosuresMatroid(Matroid): True """ - # NECESSARY + # necessary + def __init__(self, M=None, groundset=None, circuit_closures=None): """ Initialization of the matroid. See class docstring for full @@ -154,6 +146,12 @@ cdef class CircuitClosuresMatroid(Matroid): ....: 4: ['abcdefgh']}) sage: M.equals(matroids.catalog.P8()) True + + TESTS:: + + sage: from sage.matroids.advanced import * + sage: M = CircuitClosuresMatroid(matroids.catalog.Fano()) + sage: TestSuite(M).run() """ if M is not None: self._groundset = M.groundset() @@ -206,7 +204,8 @@ cdef class CircuitClosuresMatroid(Matroid): """ return len(self._max_independent(X)) - # OPTIONAL, OPTIMIZED FOR THIS CLASS + # optional + cpdef full_rank(self) noexcept: r""" Return the rank of the matroid. @@ -413,7 +412,8 @@ cdef class CircuitClosuresMatroid(Matroid): SN.append(C) return SM._isomorphism(SN) is not None - # REPRESENTATION + # representation + def _repr_(self): """ Return a string representation of the matroid. @@ -430,7 +430,7 @@ cdef class CircuitClosuresMatroid(Matroid): """ return Matroid._repr_(self) + " with circuit-closures\n" + setprint_s(self._circuit_closures) - # COMPARISON + # comparison def __hash__(self): r""" @@ -490,52 +490,7 @@ cdef class CircuitClosuresMatroid(Matroid): return rich_to_bool(op, 1) return richcmp(lt._circuit_closures, rt._circuit_closures, op) - # COPYING, LOADING, SAVING - - def __copy__(self): - """ - Create a shallow copy. - - EXAMPLES:: - - sage: M = matroids.catalog.Vamos() - sage: N = copy(M) # indirect doctest - sage: M == N - True - sage: M.groundset() is N.groundset() - True - """ - N = CircuitClosuresMatroid(groundset=[], circuit_closures={}) - N._groundset = self._groundset - N._circuit_closures = self._circuit_closures - N._matroid_rank = self._matroid_rank - N.rename(self.get_custom_name()) - return N - - def __deepcopy__(self, memo=None): - """ - Create a deep copy. - - .. NOTE:: - - Since matroids are immutable, a shallow copy normally suffices. - - EXAMPLES:: - - sage: M = matroids.catalog.Vamos() - sage: N = deepcopy(M) # indirect doctest - sage: M == N - True - sage: M.groundset() is N.groundset() - False - """ - if memo is None: - memo = {} - from copy import deepcopy - # Since matroids are immutable, N cannot reference itself in correct code, so no need to worry about the recursion. - N = CircuitClosuresMatroid(groundset=deepcopy(self._groundset, memo), circuit_closures=deepcopy(self._circuit_closures, memo)) - N.rename(deepcopy(self.get_custom_name(), memo)) - return N + # copying, loading, saving def __reduce__(self): """ diff --git a/src/sage/matroids/circuits_matroid.pyx b/src/sage/matroids/circuits_matroid.pyx index bbcf6ce8319..25dbda18235 100644 --- a/src/sage/matroids/circuits_matroid.pyx +++ b/src/sage/matroids/circuits_matroid.pyx @@ -337,55 +337,6 @@ cdef class CircuitsMatroid(Matroid): # copying, loading, saving - def __copy__(self): - """ - Create a shallow copy. - - EXAMPLES:: - - sage: from sage.matroids.circuits_matroid import CircuitsMatroid - sage: M = CircuitsMatroid(matroids.catalog.Vamos()) - sage: N = copy(M) # indirect doctest - sage: M == N - True - sage: M.groundset() is N.groundset() - True - """ - N = CircuitsMatroid(groundset=[], circuits=[]) - N._groundset = self._groundset - N._C = self._C - N._k_C = self._k_C - N._nsc_defined = self._nsc_defined - N._matroid_rank = self._matroid_rank - N.rename(self.get_custom_name()) - return N - - def __deepcopy__(self, memo=None): - """ - Create a deep copy. - - .. NOTE:: - - Since matroids are immutable, a shallow copy normally suffices. - - EXAMPLES:: - - sage: from sage.matroids.circuits_matroid import CircuitsMatroid - sage: M = CircuitsMatroid(matroids.catalog.Vamos()) - sage: N = deepcopy(M) # indirect doctest - sage: M == N - True - sage: M.groundset() is N.groundset() - False - """ - if memo is None: - memo = {} - from copy import deepcopy - # Since matroids are immutable, N cannot reference itself in correct code, so no need to worry about the recursion. - N = CircuitsMatroid(groundset=deepcopy(self._groundset, memo), circuits=deepcopy(frozenset(self._C), memo)) - N.rename(deepcopy(self.get_custom_name(), memo)) - return N - def __reduce__(self): """ Save the matroid for later reloading. diff --git a/src/sage/matroids/dual_matroid.py b/src/sage/matroids/dual_matroid.py index f3cabe0dc42..37b9e6c046b 100644 --- a/src/sage/matroids/dual_matroid.py +++ b/src/sage/matroids/dual_matroid.py @@ -386,7 +386,8 @@ def dual(self): """ return self._matroid - # REPRESENTATION + # representation + def _repr_(self): """ Return a string representation of the matroid. @@ -404,7 +405,7 @@ def _repr_(self): """ return "Dual of '" + repr(self._matroid) + "'" - # COMPARISON + # comparison def __hash__(self): r""" @@ -494,46 +495,7 @@ def __ne__(self, other): """ return not self == other - # COPYING, LOADING, SAVING - - def __copy__(self): - """ - Create a shallow copy. - - EXAMPLES:: - - sage: M = matroids.catalog.Vamos() - sage: N = copy(M) # indirect doctest - sage: M == N - True - sage: M.groundset() is N.groundset() - True - """ - N = DualMatroid(self._matroid) - N.rename(self.get_custom_name()) - return N - - def __deepcopy__(self, memo={}): - """ - Create a deep copy. - - .. NOTE:: - - Since matroids are immutable, a shallow copy normally suffices. - - EXAMPLES:: - - sage: M = matroids.catalog.Vamos().dual() - sage: N = deepcopy(M) # indirect doctest - sage: M == N - True - sage: M.groundset() is N.groundset() - False - """ - from copy import deepcopy - N = DualMatroid(deepcopy(self._matroid, memo)) - N.rename(deepcopy(self.get_custom_name(), memo)) - return N + # copying, loading, saving def __reduce__(self): """ diff --git a/src/sage/matroids/graphic_matroid.py b/src/sage/matroids/graphic_matroid.py index e0d0b792f0a..0c8bacff7d0 100644 --- a/src/sage/matroids/graphic_matroid.py +++ b/src/sage/matroids/graphic_matroid.py @@ -450,46 +450,6 @@ def __ne__(self, other): # Copying, loading, saving: - def __copy__(self): - """ - Create a shallow copy. - - Creating a ``GraphicMatroid`` instance will build a new graph, so - the copies have no attributes in common. - - EXAMPLES:: - - sage: M = Matroid(graphs.PappusGraph()) - sage: N = copy(M) - sage: M == N - True - sage: M._G is N._G - False - """ - N = GraphicMatroid(self._G) - N.rename(self.get_custom_name()) - return N - - def __deepcopy__(self, memo={}): - """ - Create a deep copy. - - .. NOTE:: - - Since matroids are immutable, a shallow copy normally suffices. - - EXAMPLES:: - - sage: M = Matroid(graphs.PetersenGraph()) - sage: N = deepcopy(M) - sage: N == M - True - """ - # The only real difference between this and __copy__() is the memo - N = GraphicMatroid(deepcopy(self._G, memo)) - N.rename(deepcopy(self.get_custom_name(), memo)) - return N - def __reduce__(self): """ Save the matroid for later reloading. diff --git a/src/sage/matroids/lean_matrix.pyx b/src/sage/matroids/lean_matrix.pyx index 1e768775fdf..451db9b501b 100644 --- a/src/sage/matroids/lean_matrix.pyx +++ b/src/sage/matroids/lean_matrix.pyx @@ -476,32 +476,6 @@ cdef class LeanMatrix: # Copying, loading, saving: - def __copy__(self): - """ - Return a copy of ``self``. - - EXAMPLES:: - - sage: from sage.matroids.lean_matrix import * - sage: A = GenericMatrix(2, 5, Matrix(GF(5), [[1, 0, 1, 1, 1], [0, 1, 1, 2, 3]])) - sage: A == copy(A) # indirect doctest - True - """ - return self.copy() - - def __deepcopy__(self, memo=None): - """ - Return a deep copy of ``self``. - - EXAMPLES:: - - sage: from sage.matroids.lean_matrix import * - sage: A = GenericMatrix(2, 5, Matrix(GF(5), [[1, 0, 1, 1, 1], [0, 1, 1, 2, 3]])) - sage: A == deepcopy(A) # indirect doctest - True - """ - return self.copy() - def __reduce__(self): """ Save the object. diff --git a/src/sage/matroids/linear_matroid.pyx b/src/sage/matroids/linear_matroid.pyx index bd277d891eb..8adb2be9c5b 100644 --- a/src/sage/matroids/linear_matroid.pyx +++ b/src/sage/matroids/linear_matroid.pyx @@ -2882,48 +2882,6 @@ cdef class LinearMatroid(BasisExchangeMatroid): # Copying, loading, saving - def __copy__(self): - """ - Create a shallow copy. - - EXAMPLES:: - - sage: M = Matroid(Matrix(GF(7), [[1, 0, 0, 1, 1], [0, 1, 0, 1, 2], - ....: [0, 0, 1, 1, 3]])) - sage: N = copy(M) # indirect doctest - sage: M == N - True - """ - cdef LinearMatroid N - if self._representation is not None: - N = LinearMatroid(groundset=self._E, matrix=self._representation, keep_initial_representation=True) - else: - rows, cols = self._current_rows_cols() - N = LinearMatroid(groundset=rows + cols, reduced_matrix=self._A) - N.rename(self.get_custom_name()) - return N - - def __deepcopy__(self, memo): - """ - Create a deep copy. - - EXAMPLES:: - - sage: M = Matroid(Matrix(GF(7), [[1, 0, 0, 1, 1], [0, 1, 0, 1, 2], - ....: [0, 0, 1, 1, 3]])) - sage: N = deepcopy(M) # indirect doctest - sage: M == N - True - """ - cdef LinearMatroid N - if self._representation is not None: - N = LinearMatroid(groundset=deepcopy(self._E, memo), matrix=deepcopy(self._representation, memo), keep_initial_representation=True) - else: - rows, cols = self._current_rows_cols() - N = LinearMatroid(groundset=deepcopy(rows + cols, memo), reduced_matrix=deepcopy(self._A, memo)) - N.rename(deepcopy(self.get_custom_name(), memo)) - return N - def __reduce__(self): """ Save the matroid for later reloading. @@ -3931,55 +3889,6 @@ cdef class BinaryMatroid(LinearMatroid): """ return True - def __copy__(self): - """ - Create a shallow copy. - - EXAMPLES:: - - sage: M = Matroid(Matrix(GF(2), [[1, 0, 0, 1, 1], [0, 1, 0, 1, 2], - ....: [0, 0, 1, 1, 3]])) - sage: N = copy(M) # indirect doctest - sage: M == N - True - """ - cdef BinaryMatroid N - cdef list basis - if self._representation is not None: - N = BinaryMatroid(groundset=self._E, matrix=self._representation, keep_initial_representation=True) - else: - basis = [0] * self.full_rank() - for e in self.basis(): - basis[self._prow[self._idx[e]]] = e - N = BinaryMatroid(groundset=self._E, matrix=self._A, basis=basis) - N.rename(self.get_custom_name()) - return N - - def __deepcopy__(self, memo): - """ - Create a deep copy. - - EXAMPLES:: - - sage: M = Matroid(Matrix(GF(2), [[1, 0, 0, 1, 1], [0, 1, 0, 1, 2], - ....: [0, 0, 1, 1, 3]])) - sage: N = deepcopy(M) # indirect doctest - sage: M == N - True - """ - from copy import deepcopy - cdef BinaryMatroid N - cdef list basis - if self._representation is not None: - N = BinaryMatroid(groundset=deepcopy(self._E, memo), matrix=deepcopy(self._representation, memo), keep_initial_representation=True) - else: - basis = [0] * self.full_rank() - for e in self.basis(): - basis[self._prow[self._idx[e]]] = e - N = BinaryMatroid(groundset=deepcopy(self._E, memo), matrix=deepcopy(self._A, memo), basis=deepcopy(basis, memo)) - N.rename(deepcopy(self.get_custom_name(), memo)) - return N - def __reduce__(self): """ Save the matroid for later reloading. @@ -4821,55 +4730,6 @@ cdef class TernaryMatroid(LinearMatroid): """ return True - def __copy__(self): - """ - Create a shallow copy. - - EXAMPLES:: - - sage: M = Matroid(Matrix(GF(3), [[1, 0, 0, 1, 1], [0, 1, 0, 1, 2], - ....: [0, 0, 1, 1, 3]])) - sage: N = copy(M) # indirect doctest - sage: M == N - True - """ - cdef TernaryMatroid N - cdef list basis - if self._representation is not None: - N = TernaryMatroid(groundset=self._E, matrix=self._representation, keep_initial_representation=True) - else: - basis = [0] * self.full_rank() - for e in self.basis(): - basis[self._prow[self._idx[e]]] = e - N = TernaryMatroid(groundset=self._E, matrix=self._A, basis=basis) - N.rename(self.get_custom_name()) - return N - - def __deepcopy__(self, memo): - """ - Create a deep copy. - - EXAMPLES:: - - sage: M = Matroid(Matrix(GF(3), [[1, 0, 0, 1, 1], [0, 1, 0, 1, 2], - ....: [0, 0, 1, 1, -1]])) - sage: N = deepcopy(M) # indirect doctest - sage: M == N - True - """ - from copy import deepcopy - cdef TernaryMatroid N - cdef list basis - if self._representation is not None: - N = TernaryMatroid(groundset=deepcopy(self._E, memo), matrix=deepcopy(self._representation, memo), keep_initial_representation=True) - else: - basis = [0] * self.full_rank() - for e in self.basis(): - basis[self._prow[self._idx[e]]] = e - N = TernaryMatroid(groundset=deepcopy(self._E, memo), matrix=deepcopy(self._A, memo), basis=deepcopy(basis, memo)) - N.rename(deepcopy(self.get_custom_name(), memo)) - return N - def __reduce__(self): """ Save the matroid for later reloading. @@ -5550,55 +5410,6 @@ cdef class QuaternaryMatroid(LinearMatroid): """ return True - def __copy__(self): - """ - Create a shallow copy. - - EXAMPLES:: - - sage: M = Matroid(Matrix(GF(4, 'x'), [[1, 0, 0, 1, 1], # needs sage.rings.finite_rings - ....: [0, 1, 0, 1, 2], [0, 0, 1, 1, 3]])) - sage: N = copy(M) # indirect doctest # needs sage.rings.finite_rings - sage: M == N # needs sage.rings.finite_rings - True - """ - cdef QuaternaryMatroid N - cdef list basis - if self._representation is not None: - N = QuaternaryMatroid(groundset=self._E, matrix=self._representation, keep_initial_representation=True) - else: - basis = [0] * self.full_rank() - for e in self.basis(): - basis[self._prow[self._idx[e]]] = e - N = QuaternaryMatroid(groundset=self._E, matrix=self._A, basis=basis) - N.rename(self.get_custom_name()) - return N - - def __deepcopy__(self, memo): - """ - Create a deep copy. - - EXAMPLES:: - - sage: M = Matroid(Matrix(GF(4, 'x'), [[1, 0, 0, 1, 1], # needs sage.rings.finite_rings - ....: [0, 1, 0, 1, 2], [0, 0, 1, 1, -1]])) - sage: N = deepcopy(M) # indirect doctest # needs sage.rings.finite_rings - sage: M == N # needs sage.rings.finite_rings - True - """ - from copy import deepcopy - cdef QuaternaryMatroid N - cdef list basis - if self._representation is not None: - N = QuaternaryMatroid(groundset=deepcopy(self._E, memo), matrix=deepcopy(self._representation, memo), keep_initial_representation=True) - else: - basis = [0] * self.full_rank() - for e in self.basis(): - basis[self._prow[self._idx[e]]] = e - N = QuaternaryMatroid(groundset=deepcopy(self._E, memo), matrix=deepcopy(self._A, memo), basis=deepcopy(basis, memo)) - N.rename(deepcopy(self.get_custom_name(), memo)) - return N - def __reduce__(self): """ Save the matroid for later reloading. @@ -6487,46 +6298,6 @@ cdef class RegularMatroid(LinearMatroid): # Copying, loading, saving - def __copy__(self): - """ - Create a shallow copy. - - EXAMPLES:: - - sage: M = matroids.catalog.R10() - sage: N = copy(M) # indirect doctest - sage: M == N - True - """ - cdef RegularMatroid N - if self._representation is not None: - N = RegularMatroid(groundset=self._E, matrix=self._representation, keep_initial_representation=True) - else: - rows, cols = self._current_rows_cols() - N = RegularMatroid(groundset=rows + cols, reduced_matrix=self._A) - N.rename(self.get_custom_name()) - return N - - def __deepcopy__(self, memo): - """ - Create a deep copy. - - EXAMPLES:: - - sage: M = matroids.catalog.R10() - sage: N = deepcopy(M) # indirect doctest - sage: M == N - True - """ - cdef RegularMatroid N - if self._representation is not None: - N = RegularMatroid(groundset=deepcopy(self._E, memo), matrix=deepcopy(self._representation, memo), keep_initial_representation=True) - else: - rows, cols = self._current_rows_cols() - N = RegularMatroid(groundset=deepcopy(rows + cols, memo), reduced_matrix=deepcopy(self._A, memo)) - N.rename(deepcopy(self.get_custom_name(), memo)) - return N - def __reduce__(self): """ Save the matroid for later reloading. diff --git a/src/sage/matroids/matroid.pyx b/src/sage/matroids/matroid.pyx index 2da743d35c9..c5b923d40bc 100644 --- a/src/sage/matroids/matroid.pyx +++ b/src/sage/matroids/matroid.pyx @@ -517,6 +517,98 @@ cdef class Matroid(SageObject): """ raise NotImplementedError("subclasses need to implement this.") + # copying + + def __copy__(self): + """ + Create a shallow copy. + + EXAMPLES:: + + sage: from sage.matroids.advanced import * + sage: matroids_lst = [ + ....: BasisMatroid(matroids.catalog.Vamos()), + ....: CircuitsMatroid(matroids.catalog.Vamos()), + ....: CircuitClosuresMatroid(matroids.catalog.Vamos()), + ....: Matroid(groundset=range(10), rank_function=lambda X: min(len(X), 4)), + ....: Matroid(Matrix(GF(7), [[1,0,0,1,1],[0,1,0,1,2],[0,0,1,1,3]])), + ....: Matroid(Matrix(GF(2), [[1,0,0,1,1],[0,1,0,1,2],[0,0,1,1,3]])), + ....: Matroid(Matrix(GF(3), [[1,0,0,1,1],[0,1,0,1,2],[0,0,1,1,3]])), + ....: Matroid(Matrix(GF(4, 'x'), [[1,0,0,1,1],[0,1,0,1,2],[0,0,1,1,3]])), + ....: matroids.catalog.R10() + ....: ] + sage: for M in matroids_lst: + ....: N = copy(M) # indirect doctest + ....: assert M == N + ....: assert M.groundset() is N.groundset() + + sage: M = Matroid(graphs.PappusGraph()) + sage: N = copy(M) + sage: M == N + True + sage: M._G is N._G + True + + sage: M = MinorMatroid(matroid=matroids.catalog.Vamos(), + ....: contractions={'a', 'b'}, deletions={'f'}) + sage: N = copy(M) # indirect doctest + sage: M == N + True + sage: M._matroid is N._matroid + True + + sage: from sage.matroids.lean_matrix import * + sage: A = GenericMatrix(2, 5, Matrix(GF(5), [[1, 0, 1, 1, 1], [0, 1, 1, 2, 3]])) + sage: A == copy(A) # indirect doctest + True + """ + return self + + def __deepcopy__(self, memo=None): + """ + Create a deep copy. + + EXAMPLES:: + + sage: from sage.matroids.advanced import * + sage: matroids_lst = [ + ....: BasisMatroid(matroids.catalog.Vamos()), + ....: CircuitsMatroid(matroids.catalog.Vamos()), + ....: CircuitClosuresMatroid(matroids.catalog.Vamos()), + ....: Matroid(groundset=range(10), rank_function=lambda X: min(len(X), 4)), + ....: Matroid(Matrix(GF(7), [[1,0,0,1,1],[0,1,0,1,2],[0,0,1,1,3]])), + ....: Matroid(Matrix(GF(2), [[1,0,0,1,1],[0,1,0,1,2],[0,0,1,1,3]])), + ....: Matroid(Matrix(GF(3), [[1,0,0,1,1],[0,1,0,1,2],[0,0,1,1,3]])), + ....: Matroid(Matrix(GF(4, 'x'), [[1,0,0,1,1],[0,1,0,1,2],[0,0,1,1,3]])), + ....: matroids.catalog.R10() + ....: ] + sage: for M in matroids_lst: + ....: N = deepcopy(M) # indirect doctest + ....: assert M == N + ....: assert M.groundset() is N.groundset() + + sage: M = Matroid(graphs.PappusGraph()) + sage: N = deepcopy(M) + sage: M == N + True + sage: M._G is N._G + True + + sage: M = MinorMatroid(matroid=matroids.catalog.Vamos(), + ....: contractions={'a', 'b'}, deletions={'f'}) + sage: N = deepcopy(M) # indirect doctest + sage: M == N + True + sage: M._matroid is N._matroid + True + + sage: from sage.matroids.lean_matrix import * + sage: A = GenericMatrix(2, 5, Matrix(GF(5), [[1, 0, 1, 1, 1], [0, 1, 1, 2, 3]])) + sage: A == deepcopy(A) # indirect doctest + True + """ + return self + # internal methods, assuming verified input # for better efficiency, its best to override the following methods in diff --git a/src/sage/matroids/minor_matroid.py b/src/sage/matroids/minor_matroid.py index 6c7fbeb8ef9..721dd653d8d 100644 --- a/src/sage/matroids/minor_matroid.py +++ b/src/sage/matroids/minor_matroid.py @@ -470,50 +470,6 @@ def __ne__(self, other): # Copying, loading, saving: - def __copy__(self): - """ - Create a shallow copy. - - EXAMPLES:: - - sage: from sage.matroids.advanced import * - sage: M = MinorMatroid(matroid=matroids.catalog.Vamos(), - ....: contractions={'a', 'b'}, deletions={'f'}) - sage: N = copy(M) # indirect doctest - sage: M == N - True - sage: M._matroid is N._matroid - True - """ - N = MinorMatroid(self._matroid, self._contractions, self._deletions) - N.rename(self.get_custom_name()) - return N - - def __deepcopy__(self, memo={}): - """ - Create a deep copy. - - .. NOTE:: - - Since matroids are immutable, a shallow copy normally suffices. - - EXAMPLES:: - - sage: from sage.matroids.advanced import * - sage: M = MinorMatroid(matroid=matroids.catalog.Vamos(), - ....: contractions={'a', 'b'}, deletions={'f'}) - sage: N = deepcopy(M) # indirect doctest - sage: M == N - True - sage: M._matroid is N._matroid - False - """ - from copy import deepcopy - # Since matroids are immutable, N cannot reference itself in correct code, so no need to worry about the recursion. - N = MinorMatroid(deepcopy(self._matroid, memo), deepcopy(self._contractions, memo), deepcopy(self._deletions, memo)) - N.rename(deepcopy(self.get_custom_name(), memo)) - return N - def __reduce__(self): r""" Save the matroid for later reloading. diff --git a/src/sage/matroids/rank_matroid.py b/src/sage/matroids/rank_matroid.py index 9dd359c14a9..c2ca7ccb980 100644 --- a/src/sage/matroids/rank_matroid.py +++ b/src/sage/matroids/rank_matroid.py @@ -247,51 +247,6 @@ def __ne__(self, other): # Copying, loading, saving: - def __copy__(self): - """ - Create a shallow copy. - - EXAMPLES:: - - sage: from sage.matroids.advanced import * - sage: M = Matroid(groundset=range(10), - ....: rank_function=lambda X: min(len(X), 4)) - sage: N = copy(M) # indirect doctest - sage: M == N - True - sage: M.groundset() is N.groundset() - True - """ - N = RankMatroid(groundset=[], rank_function=None) - N._groundset = self._groundset - N._rank_function = self._rank_function - N.rename(self.get_custom_name()) - return N - - def __deepcopy__(self, memo={}): - """ - Create a deep copy. - - .. NOTE:: - - Since matroids are immutable, a shallow copy normally suffices. - - EXAMPLES:: - - sage: M = Matroid(groundset=range(10), - ....: rank_function=lambda X: min(len(X), 4)) - sage: N = deepcopy(M) # indirect doctest - sage: M == N - True - sage: M.groundset() is N.groundset() - False - """ - from copy import deepcopy - # Since matroids are immutable, N cannot reference itself in correct code, so no need to worry about the recursion. - N = RankMatroid(groundset=deepcopy(self._groundset), rank_function=deepcopy(self._rank_function)) - N.rename(deepcopy(self.get_custom_name(), memo)) - return N - def __reduce__(self): """ Save the matroid for later reloading. From 564ab601862745f36e9f74d2b669fb82ed3d6b0e Mon Sep 17 00:00:00 2001 From: Giorgos Mousa Date: Tue, 26 Mar 2024 00:35:58 +0200 Subject: [PATCH 066/140] Lint # indirect doctest --- src/sage/matroids/matroid.pyx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/sage/matroids/matroid.pyx b/src/sage/matroids/matroid.pyx index c5b923d40bc..2c0d23215c8 100644 --- a/src/sage/matroids/matroid.pyx +++ b/src/sage/matroids/matroid.pyx @@ -537,8 +537,8 @@ cdef class Matroid(SageObject): ....: Matroid(Matrix(GF(4, 'x'), [[1,0,0,1,1],[0,1,0,1,2],[0,0,1,1,3]])), ....: matroids.catalog.R10() ....: ] - sage: for M in matroids_lst: - ....: N = copy(M) # indirect doctest + sage: for M in matroids_lst: # indirect doctest + ....: N = copy(M) ....: assert M == N ....: assert M.groundset() is N.groundset() @@ -582,8 +582,8 @@ cdef class Matroid(SageObject): ....: Matroid(Matrix(GF(4, 'x'), [[1,0,0,1,1],[0,1,0,1,2],[0,0,1,1,3]])), ....: matroids.catalog.R10() ....: ] - sage: for M in matroids_lst: - ....: N = deepcopy(M) # indirect doctest + sage: for M in matroids_lst: # indirect doctest + ....: N = deepcopy(M) ....: assert M == N ....: assert M.groundset() is N.groundset() From 08004b7ceba7cb74917f7d99147407da40b21abf Mon Sep 17 00:00:00 2001 From: Sebastian Spindler Date: Mon, 25 Mar 2024 23:06:26 +0100 Subject: [PATCH 067/140] Removed redundant calculations/calls ... ... plus small refactoring of code --- .../algebras/quatalg/quaternion_algebra.py | 37 +++++++++++-------- 1 file changed, 21 insertions(+), 16 deletions(-) diff --git a/src/sage/algebras/quatalg/quaternion_algebra.py b/src/sage/algebras/quatalg/quaternion_algebra.py index d2c9de90176..185fd43ff05 100644 --- a/src/sage/algebras/quatalg/quaternion_algebra.py +++ b/src/sage/algebras/quatalg/quaternion_algebra.py @@ -768,17 +768,21 @@ def maximal_order(self, take_shortcuts=True): TESTS: - We check that :issue:`37417` and the first part of :issue:`37217` are fixed:: - - sage: invars = [(-4, -28), (-292, -732), (-48, -564), (-436, -768), (-752, -708), - ....: (885, 545), (411, -710), (-411, 593), (805, -591), (-921, 353), - ....: (409, 96), (394, 873), (353, -722), (730, 830), (-466, -427), (-213, -630), - ....: (-511, 608), (493, 880), (105, -709), (-213, 530), (97, 745)] - sage: all(QuaternionAlgebra(a, b).maximal_order().is_maximal() for (a, b) in invars) + Check that :issue:`37417` and the first part of :issue:`37217` are fixed:: + + sage: invars = [(-4, -28), (-292, -732), (-48, -564), (-436, -768), + ....: (-752, -708), (885, 545), (411, -710), (-411, 593), + ....: (805, -591), (-921, 353), (409, 96), (394, 873), + ....: (353, -722), (730, 830), (-466, -427), (-213, -630), + ....: (-511, 608), (493, 880), (105, -709), (-213, 530), + ....: (97, 745)] + sage: all(QuaternionAlgebra(a, b).maximal_order().is_maximal() + ....: for (a, b) in invars) True """ if self.base_ring() != QQ: - raise NotImplementedError("maximal order only implemented for rational quaternion algebras") + raise NotImplementedError("maximal order only implemented for" + " rational quaternion algebras") d_A = self.discriminant() @@ -821,15 +825,16 @@ def maximal_order(self, take_shortcuts=True): # The following code should always work (over QQ) # Start with <1,i,j,k> - R = self.quaternion_order((1,) + self.gens()) + order_basis = (self.one(),) + self.gens() + R = self.quaternion_order(order_basis) d_R = R.discriminant() e_new_gens = [] # For each prime at which R is not yet maximal, make it bigger for p, _ in d_R.factor(): - e = R.basis() - disc = self.quaternion_order(e).discriminant() + e = order_basis + disc = d_R while disc.valuation(p) > d_A.valuation(p): # Compute a normalized basis at p f = normalize_basis_at_p(list(e), p) @@ -903,12 +908,12 @@ def maximal_order(self, take_shortcuts=True): e_n = basis_for_quaternion_lattice(list(e) + e_n[1:], reverse=True) # e_n now contains elements that locally at p give a bigger order, - # but the basis may be messed up at other primes (it might not even - # be an order). We will join them all together at the end + # but the basis may be messed up at other primes (it might not + # even be an order). We will join them all together at the end e = e_n - # Since e might not define an order at this point, we need to manually - # calculate the updated discriminant + # Since e might not define an order at this point, we need to + # manually calculate the updated discriminant L = [] for x in e: MM = [] @@ -919,7 +924,7 @@ def maximal_order(self, take_shortcuts=True): e_new_gens.extend(e[1:]) - e_new = basis_for_quaternion_lattice(list(R.basis()) + e_new_gens, reverse=True) + e_new = basis_for_quaternion_lattice(list(order_basis) + e_new_gens, reverse=True) return self.quaternion_order(e_new) def invariants(self): From 9ace39f83cd12d93f1f40e07167c415358c048ea Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 25 Mar 2024 23:48:13 +0000 Subject: [PATCH 068/140] :arrow_up: Bump myrotvorets/set-commit-status-action from 2.0.0 to 2.0.1 Bumps [myrotvorets/set-commit-status-action](https://github.com/myrotvorets/set-commit-status-action) from 2.0.0 to 2.0.1. - [Release notes](https://github.com/myrotvorets/set-commit-status-action/releases) - [Commits](https://github.com/myrotvorets/set-commit-status-action/compare/v2.0.0...v2.0.1) --- updated-dependencies: - dependency-name: myrotvorets/set-commit-status-action dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- .github/workflows/doc-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/doc-publish.yml b/.github/workflows/doc-publish.yml index 361dafb22e0..3e3cc850236 100644 --- a/.github/workflows/doc-publish.yml +++ b/.github/workflows/doc-publish.yml @@ -75,7 +75,7 @@ jobs: [Documentation preview for this PR](${{ steps.deploy-netlify.outputs.NETLIFY_URL }}/html/en) (built with commit ${{ steps.source-run-info.outputs.sourceHeadSha }}; [changes](${{ steps.deploy-netlify.outputs.NETLIFY_URL }}/CHANGES.html)) is ready! :tada: - name: Update deployment status PR check - uses: myrotvorets/set-commit-status-action@v2.0.0 + uses: myrotvorets/set-commit-status-action@v2.0.1 if: ${{ always() }} env: DEPLOY_SUCCESS: Successfully deployed preview. From b84c31e5ae145f37ea4639a279d94d103020ca04 Mon Sep 17 00:00:00 2001 From: Gareth Ma Date: Thu, 28 Mar 2024 22:21:00 +0000 Subject: [PATCH 069/140] revert and isolate #37110 --- src/sage/schemes/elliptic_curves/ell_field.py | 50 ++----- .../elliptic_curves/ell_finite_field.py | 127 +++--------------- 2 files changed, 30 insertions(+), 147 deletions(-) diff --git a/src/sage/schemes/elliptic_curves/ell_field.py b/src/sage/schemes/elliptic_curves/ell_field.py index 0e85bdfcfa9..3efa79ff759 100644 --- a/src/sage/schemes/elliptic_curves/ell_field.py +++ b/src/sage/schemes/elliptic_curves/ell_field.py @@ -22,7 +22,6 @@ from sage.misc.misc_c import prod from sage.schemes.elliptic_curves.ell_point import EllipticCurvePoint_field from sage.schemes.curves.projective_curve import ProjectivePlaneCurve_field -from sage.rings.finite_rings.finite_field_base import FiniteField as FiniteField_generic from .constructor import EllipticCurve from .ell_curve_isogeny import EllipticCurveIsogeny, isogeny_codomain_from_kernel @@ -172,19 +171,6 @@ def quadratic_twist(self, D=None): sage: k2 = GF(p^2,'a') sage: E.change_ring(k2).is_isomorphic(Et.change_ring(k2)) True - - The order of quadratic twists is precomputed if the order of the original curve is - precomputed. The final call in the following example is instant:: - - sage: p = next_prime(10^10) - sage: E = EllipticCurve(GF(p), [-1, 3]) - sage: E.order() - 9999895640 - sage: Et = E.quadratic_twist() - sage: Et.order() - 10000104400 - sage: E.order() + Et.order() == 2 * p + 2 - True """ K = self.base_ring() char = K.characteristic() @@ -222,31 +208,21 @@ def quadratic_twist(self, D=None): raise ValueError("twisting parameter D must be nonzero when characteristic is not 2") if char != 2: - b2,b4,b6,_ = self.b_invariants() + b2,b4,b6,b8 = self.b_invariants() # E is isomorphic to [0,b2,0,8*b4,16*b6] - Et = EllipticCurve(K,[0,b2*D,0,8*b4*D**2,16*b6*D**3]) - + return EllipticCurve(K,[0,b2*D,0,8*b4*D**2,16*b6*D**3]) + + # now char==2 + if self.j_invariant() != 0: # iff a1!=0 + a1,a2,a3,a4,a6 = self.ainvs() + E0 = self.change_weierstrass_model(a1,a3/a1,0,(a1**2*a4+a3**2)/a1**3) + # which has the form = [1,A2,0,0,A6] + assert E0.a1() == K(1) + assert E0.a3() == K(0) + assert E0.a4() == K(0) + return EllipticCurve(K,[1,E0.a2()+D,0,0,E0.a6()]) else: - # now char==2 - if self.j_invariant() != 0: # iff a1!=0 - a1,_,a3,a4,_ = self.ainvs() - E0 = self.change_weierstrass_model(a1,a3/a1,0,(a1**2*a4+a3**2)/a1**3) - # which has the form = [1,A2,0,0,A6] - assert E0.a1() == K(1) - assert E0.a3() == K(0) - assert E0.a4() == K(0) - Et = EllipticCurve(K,[1,E0.a2()+D,0,0,E0.a6()]) - else: - raise ValueError("Quadratic twist not implemented in char 2 when j=0") - - if isinstance(K, FiniteField_generic): - try: - # If it was computed, use it! - Et.set_order(2 * self.base_field().order() + 2 - self._order) - except AttributeError: - pass - - return Et + raise ValueError("Quadratic twist not implemented in char 2 when j=0") def two_torsion_rank(self): r""" diff --git a/src/sage/schemes/elliptic_curves/ell_finite_field.py b/src/sage/schemes/elliptic_curves/ell_finite_field.py index 99f7d2d1fc2..49a1963897d 100644 --- a/src/sage/schemes/elliptic_curves/ell_finite_field.py +++ b/src/sage/schemes/elliptic_curves/ell_finite_field.py @@ -1739,7 +1739,7 @@ def twists(self): sage: # needs sage.rings.finite_rings sage: K = GF(3**5) - sage: [E.ainvs() for E in EllipticCurve(j=K(1)).twists()] # random + sage: [E.ainvs() for E in EllipticCurve(j=K(1)).twists()] [(0, 1, 0, 0, 2), (0, z5, 0, 0, 2*z5^3)] sage: # needs sage.rings.finite_rings @@ -1752,7 +1752,7 @@ def twists(self): sage: # needs sage.rings.finite_rings sage: K = GF(3**4) - sage: [E.ainvs() for E in EllipticCurve(j=K(1)).twists()] # random + sage: [E.ainvs() for E in EllipticCurve(j=K(1)).twists()] [(0, 1, 0, 0, 2), (0, z4, 0, 0, 2*z4^3)] sage: # needs sage.rings.finite_rings @@ -1771,7 +1771,7 @@ def twists(self): sage: # needs sage.rings.finite_rings sage: K = GF(2**7) - sage: [E.ainvs() for E in EllipticCurve(j=K(1)).twists()] # random + sage: [E.ainvs() for E in EllipticCurve(j=K(1)).twists()] [(1, 0, 0, 0, 1), (1, 1, 0, 0, 1)] sage: # needs sage.rings.finite_rings @@ -1795,14 +1795,6 @@ def twists(self): (0, 0, z8^6 + z8^3 + z8^2, 0, 0), (0, 0, z8^6 + z8^3 + z8^2, 0, z8^3 + z8^2)] - The order of the quadratic twist is precomputed, so the second - computation below is fast:: - - sage: E = EllipticCurve(GF(2^255 - 19), [3, 5]) - sage: E.set_order(2^255 - 94400682670973290858718002131957303262) - sage: E.quadratic_twist().order() - 57896044618658097711785492504343953926729393015491255310587510006088522123194 - TESTS: Randomized check that we find all twists and there are no duplicates:: @@ -1988,24 +1980,13 @@ def curves_with_j_1728(K): return curves_with_j_0_char3(K) q = K.cardinality() if q % 4 == 3: - curves = [EllipticCurve(K, [a, 0]) for a in [1, -1]] - curves[0].set_order(q + 1) - curves[1].set_order(q + 1) - return curves - + return [EllipticCurve(K, [a,0]) for a in [1,-1]] # Now we have genuine quartic twists, find D generating K* mod 4th powers q2 = (q - 1) // 2 - # Note that computing multiplicative generator is expensive - D = K.random_element() + D = K.gen() while not D or D**q2 == 1: D = K.random_element() curves = [EllipticCurve(K, [D**i, 0]) for i in range(4)] - # TODO: issue 37110, Precompute orders of quartic twists + docs - # The idea should be to evaluate the character (D / q) or something - # Probably reference [Connell1999]_ - # Also a necessary change is `curves_with_j_1728` should take in an optional "starting curve" - # (passed from the original .twists call), because if you start twisting from that curve, - # then you can also compute the orders! return curves def curves_with_j_0_char2(K): @@ -2069,32 +2050,13 @@ def curves_with_j_0_char2(K): sage: sum(1/len(E.automorphisms()) for E in curves) == 1 # needs sage.rings.finite_rings True - - The orders of the twists are precomputed:: - - sage: K = GF(2**13) - sage: curves = EllipticCurve(j=K(0)).twists() - sage: [curve.order() for curve in curves] - [8193, 8065, 8321] """ if not K.is_finite() or K.characteristic() != 2: raise ValueError("field must be finite of characteristic 2") - - deg = K.degree() - if deg % 2 == 1: - curves = [EllipticCurve(K, [0, 0, 1, 0, 0]), - EllipticCurve(K, [0, 0, 1, 1, 0]), - EllipticCurve(K, [0, 0, 1, 1, 1])] - - base = 2**deg + 1 - delta = 2**((deg + 1) // 2) * (-1)**((deg + 1) // 4) - - curves[0].set_order(base) - curves[1].set_order(base + delta) - curves[2].set_order(base - delta) - - return curves - + if K.degree() % 2: + return [EllipticCurve(K, [0, 0, 1, 0, 0]), + EllipticCurve(K, [0, 0, 1, 1, 0]), + EllipticCurve(K, [0, 0, 1, 1, 1])] # find a,b,c,d,e such that # a is not a cube, i.e. a**((q-1)//3)!=1 # Tr(b)=1 @@ -2110,26 +2072,15 @@ def curves_with_j_0_char2(K): while not b or not b.trace(): b = K.random_element() c = K.one() # OK if degree is 2 mod 4 - if deg % 4 == 0: + if K.degree() % 4 == 0: while (x**4+x+c).roots(): c = K.random_element() while not d or (x**2+a*x+d).roots(): d = K.random_element() while not e or (x**2+asq*x+e).roots(): e = K.random_element() - - curves = [ - EllipticCurve(K, ai) - for ai in [[0, 0, 1, 0, 0], [0, 0, 1, 0, b], [0, 0, 1, c, 0], - [0, 0, a, 0, 0], [0, 0, a, 0, d], [0, 0, asq, 0, 0], - [0, 0, asq, 0, e]] - ] - - base = 2**deg + 1 - delta = (-2)**(deg // 2) - for i, f in zip(range(7), [-2, 2, 0, 1, -1, 1, -1]): - curves[i].set_order(base + f * delta) - return curves + return [EllipticCurve(K, ai) for ai in + [[0,0,1,0,0], [0,0,1,0,b], [0,0,1,c,0], [0,0,a,0,0], [0,0,a,0,d], [0,0,asq,0,0], [0,0,asq,0,e]]] def curves_with_j_0_char3(K): r""" @@ -2194,22 +2145,6 @@ def curves_with_j_0_char3(K): sage: sum(1/len(E.automorphisms()) for E in curves) == 1 # needs sage.rings.finite_rings True - - The orders of the twists are precomputed:: - - sage: K = GF(3**10) - sage: curves = EllipticCurve(j=K(0)).twists() - sage: [curve.order() for curve in curves] - [59536, 58807, 59050, 58564, 59293, 59050] - - Note that for odd degrees, the ordering of the orders of the output is not deterministic:: - - sage: K = GF(3**3) - sage: curves = EllipticCurve(j=K(0)).twists() - sage: orders = [[curve.order() for curve in curves] for _ in range(100)] - sage: assert all(order == [28, 28, 37, 19] or order == [28, 28, 19, 37] for order in orders) - sage: all(order == (28, 28, 37, 19) for order in orders) - False """ if not K.is_finite() or K.characteristic() != 3: raise ValueError("field must be finite of characteristic 3") @@ -2218,27 +2153,9 @@ def curves_with_j_0_char3(K): while not b or not b.trace(): b = K.random_element() - deg = K.degree() - if deg % 2: - curves = [ - EllipticCurve(K, a4a6) - for a4a6 in [[1, 0], [-1, 0], [-1, b], [-1, -b]] - ] - - base = 3**deg + 1 - delta = 3**((deg + 1) // 2) - - curves[0].set_order(base) - curves[1].set_order(base) - # TODO: issue 37110 - # try: - # curves[2].set_order(base + delta) - # curves[3].set_order(base - delta) - # except ValueError: - # curves[2].set_order(base - delta) - # curves[3].set_order(base + delta) - - return curves + if K.degree() % 2: + return [EllipticCurve(K, a4a6) for a4a6 in + [[1,0], [-1,0], [-1,b], [-1,-b]]] # find a, i, c where: # a generates K* mod 4th powers, i.e. non-square, @@ -2253,18 +2170,8 @@ def curves_with_j_0_char3(K): c = None while not c or (x**3 + a**2*x + c).roots(): c = K.random_element() - - curves = [ - EllipticCurve(K, a4a6) - for a4a6 in [[1, 0], [1, i * b], [a, 0], [a**2, 0], [a**2, c], [a**3, 0]] - ] - - base = 3**deg + 1 - delta = 3**(deg // 2) * (-1)**(deg // 2) - for i, f in enumerate([-2, 1, 0, 2, -1, 0]): - curves[i].set_order(base + delta * f) - - return curves + return [EllipticCurve(K, a4a6) for a4a6 in + [[1,0], [1,i*b], [a,0], [a**2,0], [a**2,c], [a**3,0]]] # dict to hold precomputed coefficient vectors of supersingular j values (excluding 0, 1728): From 5d70b4682ce4298d66f739c3617e40f9b4568380 Mon Sep 17 00:00:00 2001 From: Gareth Ma Date: Thu, 28 Mar 2024 22:39:30 +0000 Subject: [PATCH 070/140] =?UTF-8?q?=F0=9F=8E=89=20reviews=20=F0=9F=8E=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/sage/quadratic_forms/binary_qf.py | 8 ++++---- src/sage/schemes/elliptic_curves/ell_finite_field.py | 7 +++---- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/sage/quadratic_forms/binary_qf.py b/src/sage/quadratic_forms/binary_qf.py index 420c4871f4b..6b902703bb8 100755 --- a/src/sage/quadratic_forms/binary_qf.py +++ b/src/sage/quadratic_forms/binary_qf.py @@ -1741,11 +1741,11 @@ def solve_integer(self, n, *, algorithm="general", _flag=2): return (-self).solve_integer(-n) if self.is_reducible(): # square discriminant; not supported by PARI - try: - n = ZZ(n) - except TypeError: - # Factorization + from sage.structure.factorization import Factorization + if isinstance(n, Factorization): n = ZZ(n.value()) + else: + n = ZZ(n) if self._a: # https://math.stackexchange.com/a/980075 diff --git a/src/sage/schemes/elliptic_curves/ell_finite_field.py b/src/sage/schemes/elliptic_curves/ell_finite_field.py index 49a1963897d..ceea92a0129 100644 --- a/src/sage/schemes/elliptic_curves/ell_finite_field.py +++ b/src/sage/schemes/elliptic_curves/ell_finite_field.py @@ -2736,9 +2736,8 @@ def EllipticCurve_with_order(m, *, D=None): from sage.structure.factorization import Factorization from sage.schemes.elliptic_curves.cm import hilbert_class_polynomial - def helper(m, m4_fac, D): - all_sol = BinaryQF(1, 0, -D).solve_integer(m4_fac, _flag=3) - for t, _ in all_sol: + def find_q(m, m4_fac, D): + for t, _ in BinaryQF(1, 0, -D).solve_integer(m4_fac, _flag=3): yield m + 1 - t yield m + 1 + t @@ -2757,7 +2756,7 @@ def helper(m, m4_fac, D): seen = set() for D in Ds: - for q in helper(m_val, m4_fac, D): + for q in find_q(m_val, m4_fac, D): if not is_prime_power(q): continue From 8290483ba1a96b73d4d9a70c7642c66eaba2108d Mon Sep 17 00:00:00 2001 From: Gareth Ma Date: Thu, 28 Mar 2024 23:28:20 +0000 Subject: [PATCH 071/140] add TODO item --- src/sage/quadratic_forms/binary_qf.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/sage/quadratic_forms/binary_qf.py b/src/sage/quadratic_forms/binary_qf.py index 6b902703bb8..3e8b3f5a6fb 100755 --- a/src/sage/quadratic_forms/binary_qf.py +++ b/src/sage/quadratic_forms/binary_qf.py @@ -1622,6 +1622,8 @@ def solve_integer(self, n, *, algorithm="general", _flag=2): ALGORITHM: :pari:`qfbsolve` or :pari:`qfbcornacchia` + TODO:: Replace `_flag` with human-readable parameters c.f. :issue:`37119` + EXAMPLES:: sage: Q = BinaryQF([1, 0, 419]) From 94f9d54e20abac53e2085bffaca2185b04f03e88 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Thu, 21 Mar 2024 18:50:52 -0700 Subject: [PATCH 072/140] src/sage/doctest/sources.py: Remove most uses of SAGE_SRC in doctests --- src/sage/doctest/sources.py | 151 ++++++++++++++---------------------- 1 file changed, 59 insertions(+), 92 deletions(-) diff --git a/src/sage/doctest/sources.py b/src/sage/doctest/sources.py index fdad2749083..a126a8ac288 100644 --- a/src/sage/doctest/sources.py +++ b/src/sage/doctest/sources.py @@ -82,11 +82,10 @@ def get_basename(path): EXAMPLES:: sage: from sage.doctest.sources import get_basename - sage: from sage.env import SAGE_SRC sage: import os - sage: get_basename(os.path.join(SAGE_SRC, 'sage', 'doctest', 'sources.py')) + sage: get_basename(sage.doctest.sources.__file__) 'sage.doctest.sources' - sage: get_basename(os.path.join(SAGE_SRC, 'sage', 'structure', 'element.pxd')) + sage: get_basename(os.path.join(sage.structure.__path__[0], 'element.pxd')) 'sage.structure.element.pxd' """ if path is None: @@ -140,10 +139,8 @@ def __init__(self, options): sage: from sage.doctest.control import DocTestDefaults sage: from sage.doctest.sources import FileDocTestSource - sage: from sage.env import SAGE_SRC - sage: import os - sage: filename = os.path.join(SAGE_SRC,'sage','doctest','sources.py') - sage: FDS = FileDocTestSource(filename,DocTestDefaults()) + sage: filename = sage.doctest.sources.__file__ + sage: FDS = FileDocTestSource(filename, DocTestDefaults()) sage: TestSuite(FDS).run() """ self.options = options @@ -156,12 +153,10 @@ def __eq__(self, other): sage: from sage.doctest.control import DocTestDefaults sage: from sage.doctest.sources import FileDocTestSource - sage: from sage.env import SAGE_SRC - sage: import os - sage: filename = os.path.join(SAGE_SRC,'sage','doctest','sources.py') + sage: filename = sage.doctest.sources.__file__ sage: DD = DocTestDefaults() - sage: FDS = FileDocTestSource(filename,DD) - sage: FDS2 = FileDocTestSource(filename,DD) + sage: FDS = FileDocTestSource(filename, DD) + sage: FDS2 = FileDocTestSource(filename, DD) sage: FDS == FDS2 True """ @@ -177,12 +172,10 @@ def __ne__(self, other): sage: from sage.doctest.control import DocTestDefaults sage: from sage.doctest.sources import FileDocTestSource - sage: from sage.env import SAGE_SRC - sage: import os - sage: filename = os.path.join(SAGE_SRC,'sage','doctest','sources.py') + sage: filename = sage.doctest.sources.__file__ sage: DD = DocTestDefaults() - sage: FDS = FileDocTestSource(filename,DD) - sage: FDS2 = FileDocTestSource(filename,DD) + sage: FDS = FileDocTestSource(filename, DD) + sage: FDS2 = FileDocTestSource(filename, DD) sage: FDS != FDS2 False """ @@ -217,10 +210,8 @@ def _process_doc(self, doctests, doc, namespace, start): sage: from sage.doctest.control import DocTestDefaults sage: from sage.doctest.sources import FileDocTestSource sage: from sage.doctest.parsing import SageDocTestParser - sage: from sage.env import SAGE_SRC - sage: import os - sage: filename = os.path.join(SAGE_SRC,'sage','doctest','util.py') - sage: FDS = FileDocTestSource(filename,DocTestDefaults()) + sage: filename = sage.doctest.util.__file__ + sage: FDS = FileDocTestSource(filename, DocTestDefaults()) sage: doctests, _ = FDS.create_doctests({}) sage: manual_doctests = [] sage: for dt in doctests: @@ -291,10 +282,8 @@ def _create_doctests(self, namespace, tab_okay=None): sage: from sage.doctest.control import DocTestDefaults sage: from sage.doctest.sources import FileDocTestSource sage: from sage.doctest.util import NestedName - sage: from sage.env import SAGE_SRC - sage: import os - sage: filename = os.path.join(SAGE_SRC,'sage','doctest','sources.py') - sage: FDS = FileDocTestSource(filename,DocTestDefaults()) + sage: filename = sage.doctest.sources.__file__ + sage: FDS = FileDocTestSource(filename, DocTestDefaults()) sage: FDS.qualified_name = NestedName('sage.doctest.sources') sage: doctests, extras = FDS._create_doctests({}) sage: len(doctests) @@ -523,10 +512,8 @@ class FileDocTestSource(DocTestSource): sage: from sage.doctest.control import DocTestDefaults sage: from sage.doctest.sources import FileDocTestSource - sage: from sage.env import SAGE_SRC - sage: import os - sage: filename = os.path.join(SAGE_SRC,'sage','doctest','sources.py') - sage: FDS = FileDocTestSource(filename,DocTestDefaults()) + sage: filename = sage.doctest.sources.__file__ + sage: FDS = FileDocTestSource(filename, DocTestDefaults()) sage: FDS.basename 'sage.doctest.sources' @@ -539,7 +526,7 @@ class FileDocTestSource(DocTestSource): sage: from sage.doctest.control import DocTestDefaults sage: from sage.doctest.sources import FileDocTestSource sage: filename = tmp_filename(ext=".txtt") - sage: FDS = FileDocTestSource(filename,DocTestDefaults()) + sage: FDS = FileDocTestSource(filename, DocTestDefaults()) Traceback (most recent call last): ... ValueError: unknown extension for the file to test (=...txtt), @@ -554,10 +541,8 @@ def __init__(self, path, options): sage: from sage.doctest.control import DocTestDefaults sage: from sage.doctest.sources import FileDocTestSource - sage: from sage.env import SAGE_SRC - sage: import os - sage: filename = os.path.join(SAGE_SRC,'sage','doctest','sources.py') - sage: FDS = FileDocTestSource(filename,DocTestDefaults(randorder=0)) + sage: filename = sage.doctest.sources.__file__ + sage: FDS = FileDocTestSource(filename, DocTestDefaults(randorder=0)) sage: FDS.options.randorder 0 """ @@ -645,16 +630,17 @@ def printpath(self): sage: from sage.doctest.control import DocTestDefaults sage: from sage.doctest.sources import FileDocTestSource - sage: from sage.env import SAGE_SRC sage: import os - sage: root = os.path.realpath(os.path.join(SAGE_SRC,'sage')) - sage: filename = os.path.join(root,'doctest','sources.py') + sage: filename = os.path.realpath(sage.doctest.sources.__file__) + sage: root = os.path.join(os.path.dirname(filename), '..') sage: cwd = os.getcwd() sage: os.chdir(root) - sage: FDS = FileDocTestSource(filename,DocTestDefaults(randorder=0,abspath=False)) + sage: FDS = FileDocTestSource(filename, DocTestDefaults(randorder=0, + ....: abspath=False)) sage: FDS.printpath 'doctest/sources.py' - sage: FDS = FileDocTestSource(filename,DocTestDefaults(randorder=0,abspath=True)) + sage: FDS = FileDocTestSource(filename, DocTestDefaults(randorder=0, + ....: abspath=True)) sage: FDS.printpath '.../sage/doctest/sources.py' sage: os.chdir(cwd) @@ -677,10 +663,8 @@ def basename(self): sage: from sage.doctest.control import DocTestDefaults sage: from sage.doctest.sources import FileDocTestSource - sage: from sage.env import SAGE_SRC - sage: import os sage: filename = os.path.join(SAGE_SRC,'sage','rings','integer.pyx') - sage: FDS = FileDocTestSource(filename,DocTestDefaults()) + sage: FDS = FileDocTestSource(filename, DocTestDefaults()) sage: FDS.basename 'sage.rings.integer' """ @@ -700,7 +684,6 @@ def in_lib(self): sage: from sage.doctest.control import DocTestDefaults sage: from sage.doctest.sources import FileDocTestSource - sage: from sage.env import SAGE_SRC sage: import os sage: filename = os.path.join(SAGE_SRC, 'sage', 'rings', 'integer.pyx') sage: FDS = FileDocTestSource(filename, DocTestDefaults()) @@ -713,10 +696,10 @@ def in_lib(self): You can override the default:: - sage: FDS = FileDocTestSource("hello_world.py",DocTestDefaults()) + sage: FDS = FileDocTestSource("hello_world.py", DocTestDefaults()) sage: FDS.in_lib False - sage: FDS = FileDocTestSource("hello_world.py",DocTestDefaults(force_lib=True)) + sage: FDS = FileDocTestSource("hello_world.py", DocTestDefaults(force_lib=True)) sage: FDS.in_lib True """ @@ -732,9 +715,7 @@ def file_optional_tags(self): sage: from sage.doctest.control import DocTestDefaults sage: from sage.doctest.sources import FileDocTestSource - sage: from sage.env import SAGE_SRC - sage: import os - sage: filename = os.path.join(SAGE_SRC, 'sage', 'repl', 'user_globals.py') + sage: filename = sage.repl.user_globals.__file__ sage: FDS = FileDocTestSource(filename, DocTestDefaults()) sage: FDS.file_optional_tags {'sage.modules': None} @@ -760,10 +741,8 @@ def create_doctests(self, namespace): sage: from sage.doctest.control import DocTestDefaults sage: from sage.doctest.sources import FileDocTestSource - sage: from sage.env import SAGE_SRC - sage: import os - sage: filename = os.path.join(SAGE_SRC,'sage','doctest','sources.py') - sage: FDS = FileDocTestSource(filename,DocTestDefaults()) + sage: filename = sage.doctest.sources.__file__ + sage: FDS = FileDocTestSource(filename, DocTestDefaults()) sage: doctests, extras = FDS.create_doctests(globals()) sage: len(doctests) 43 @@ -774,8 +753,8 @@ def create_doctests(self, namespace): sage: doctests[20].name 'sage.doctest.sources.FileDocTestSource.create_doctests' - sage: doctests[20].examples[10].source - 'doctests[Integer(20)].examples[Integer(10)].source\n' + sage: doctests[20].examples[8].source + 'doctests[Integer(20)].examples[Integer(8)].source\n' TESTS: @@ -787,7 +766,7 @@ def create_doctests(self, namespace): sage: gp.get_precision() == 38 # needs sage.libs.pari False # 32-bit True # 64-bit - sage: ex = doctests[20].examples[13] + sage: ex = doctests[20].examples[11] sage: ((bitness == '64' and ex.want == 'True \n') # needs sage.libs.pari ....: or (bitness == '32' and ex.want == 'False \n')) True @@ -835,8 +814,7 @@ def _test_enough_doctests(self, check_extras=True, verbose=True): sage: # not tested (because the output will change when source files are changed) sage: from sage.doctest.control import DocTestDefaults sage: from sage.doctest.sources import FileDocTestSource - sage: from sage.env import SAGE_SRC - sage: cwd = os.getcwd() + sage: cwd = os.getcwd() sage: os.chdir(SAGE_SRC) sage: import itertools sage: for path, dirs, files in itertools.chain(os.walk('sage'), os.walk('doc')): @@ -942,10 +920,8 @@ def parse_docstring(self, docstring, namespace, start): sage: from sage.doctest.sources import FileDocTestSource sage: from sage.doctest.parsing import SageDocTestParser sage: from sage.doctest.util import NestedName - sage: from sage.env import SAGE_SRC - sage: import os - sage: filename = os.path.join(SAGE_SRC,'sage','doctest','util.py') - sage: FDS = FileDocTestSource(filename,DocTestDefaults()) + sage: filename = sage.doctest.util.__file__ + sage: FDS = FileDocTestSource(filename, DocTestDefaults()) sage: doctests, _ = FDS.create_doctests({}) sage: for dt in doctests: ....: FDS.qualified_name = dt.name @@ -964,10 +940,8 @@ class PythonSource(SourceLanguage): sage: from sage.doctest.control import DocTestDefaults sage: from sage.doctest.sources import FileDocTestSource - sage: from sage.env import SAGE_SRC - sage: import os - sage: filename = os.path.join(SAGE_SRC,'sage','doctest','sources.py') - sage: FDS = FileDocTestSource(filename,DocTestDefaults()) + sage: filename = sage.doctest.sources.__file__ + sage: FDS = FileDocTestSource(filename, DocTestDefaults()) sage: type(FDS) """ @@ -982,10 +956,8 @@ def _init(self): sage: from sage.doctest.control import DocTestDefaults sage: from sage.doctest.sources import FileDocTestSource - sage: from sage.env import SAGE_SRC - sage: import os - sage: filename = os.path.join(SAGE_SRC,'sage','doctest','sources.py') - sage: FDS = FileDocTestSource(filename,DocTestDefaults()) + sage: filename = sage.doctest.sources.__file__ + sage: FDS = FileDocTestSource(filename, DocTestDefaults()) sage: FDS._init() sage: FDS.last_indent -1 @@ -1019,10 +991,8 @@ def _update_quotetype(self, line): sage: from sage.doctest.control import DocTestDefaults sage: from sage.doctest.sources import FileDocTestSource - sage: from sage.env import SAGE_SRC - sage: import os - sage: filename = os.path.join(SAGE_SRC,'sage','doctest','sources.py') - sage: FDS = FileDocTestSource(filename,DocTestDefaults()) + sage: filename = sage.doctest.sources.__file__ + sage: FDS = FileDocTestSource(filename, DocTestDefaults()) sage: FDS._init() sage: FDS._update_quotetype('\"\"\"'); print(" ".join(list(FDS.quotetype))) " " " @@ -1116,10 +1086,8 @@ def starting_docstring(self, line): sage: from sage.doctest.control import DocTestDefaults sage: from sage.doctest.sources import FileDocTestSource sage: from sage.doctest.util import NestedName - sage: from sage.env import SAGE_SRC - sage: import os - sage: filename = os.path.join(SAGE_SRC,'sage','doctest','sources.py') - sage: FDS = FileDocTestSource(filename,DocTestDefaults()) + sage: filename = sage.doctest.sources.__file__ + sage: FDS = FileDocTestSource(filename, DocTestDefaults()) sage: FDS._init() sage: FDS.starting_docstring("r'''") <...Match object...> @@ -1185,7 +1153,7 @@ def ending_docstring(self, line): OUTPUT: - an object that, when evaluated in a boolean context, gives - True or False depending on whether the input line marks the + ``True`` or ``False`` depending on whether the input line marks the end of a docstring. EXAMPLES:: @@ -1193,10 +1161,8 @@ def ending_docstring(self, line): sage: from sage.doctest.control import DocTestDefaults sage: from sage.doctest.sources import FileDocTestSource sage: from sage.doctest.util import NestedName - sage: from sage.env import SAGE_SRC - sage: import os - sage: filename = os.path.join(SAGE_SRC,'sage','doctest','sources.py') - sage: FDS = FileDocTestSource(filename,DocTestDefaults()) + sage: filename = sage.doctest.sources.__file__ + sage: FDS = FileDocTestSource(filename, DocTestDefaults()) sage: FDS._init() sage: FDS.quotetype = "'''" sage: FDS.ending_docstring("'''") @@ -1229,7 +1195,8 @@ def _neutralize_doctests(self, reindent): sage: from sage.doctest.sources import StringDocTestSource, PythonSource sage: from sage.structure.dynamic_class import dynamic_class sage: s = "'''\n sage: 2 + 2\n 4\n'''" - sage: PythonStringSource = dynamic_class('PythonStringSource',(StringDocTestSource, PythonSource)) + sage: PythonStringSource = dynamic_class('PythonStringSource', + ....: (StringDocTestSource, PythonSource)) sage: PSS = PythonStringSource('', s, DocTestDefaults(), 'runtime') sage: print(PSS._neutralize_doctests(0)) ''' @@ -1264,7 +1231,7 @@ class TexSource(SourceLanguage): sage: from sage.doctest.control import DocTestDefaults sage: from sage.doctest.sources import FileDocTestSource sage: filename = "sage_paper.tex" - sage: FDS = FileDocTestSource(filename,DocTestDefaults()) + sage: FDS = FileDocTestSource(filename, DocTestDefaults()) sage: type(FDS) """ @@ -1280,7 +1247,7 @@ def _init(self): sage: from sage.doctest.control import DocTestDefaults sage: from sage.doctest.sources import FileDocTestSource sage: filename = "sage_paper.tex" - sage: FDS = FileDocTestSource(filename,DocTestDefaults()) + sage: FDS = FileDocTestSource(filename, DocTestDefaults()) sage: FDS._init() sage: FDS.skipping False @@ -1312,7 +1279,7 @@ def starting_docstring(self, line): sage: from sage.doctest.control import DocTestDefaults sage: from sage.doctest.sources import FileDocTestSource sage: filename = "sage_paper.tex" - sage: FDS = FileDocTestSource(filename,DocTestDefaults()) + sage: FDS = FileDocTestSource(filename, DocTestDefaults()) sage: FDS._init() We start docstrings with \begin{verbatim} or \begin{lstlisting}:: @@ -1391,7 +1358,7 @@ def ending_docstring(self, line, check_skip=True): sage: from sage.doctest.control import DocTestDefaults sage: from sage.doctest.sources import FileDocTestSource sage: filename = "sage_paper.tex" - sage: FDS = FileDocTestSource(filename,DocTestDefaults()) + sage: FDS = FileDocTestSource(filename, DocTestDefaults()) sage: FDS._init() sage: FDS.ending_docstring(r"\end{verbatim}") True @@ -1442,7 +1409,7 @@ class RestSource(SourceLanguage): sage: from sage.doctest.control import DocTestDefaults sage: from sage.doctest.sources import FileDocTestSource sage: filename = "sage_doc.rst" - sage: FDS = FileDocTestSource(filename,DocTestDefaults()) + sage: FDS = FileDocTestSource(filename, DocTestDefaults()) sage: type(FDS) """ @@ -1458,7 +1425,7 @@ def _init(self): sage: from sage.doctest.control import DocTestDefaults sage: from sage.doctest.sources import FileDocTestSource sage: filename = "sage_doc.rst" - sage: FDS = FileDocTestSource(filename,DocTestDefaults()) + sage: FDS = FileDocTestSource(filename, DocTestDefaults()) sage: FDS._init() sage: FDS.link_all False @@ -1490,7 +1457,7 @@ def starting_docstring(self, line): sage: from sage.doctest.control import DocTestDefaults sage: from sage.doctest.sources import FileDocTestSource sage: filename = "sage_doc.rst" - sage: FDS = FileDocTestSource(filename,DocTestDefaults()) + sage: FDS = FileDocTestSource(filename, DocTestDefaults()) sage: FDS._init() sage: FDS.starting_docstring("Hello world::") True @@ -1548,7 +1515,7 @@ def ending_docstring(self, line): sage: from sage.doctest.control import DocTestDefaults sage: from sage.doctest.sources import FileDocTestSource sage: filename = "sage_doc.rst" - sage: FDS = FileDocTestSource(filename,DocTestDefaults()) + sage: FDS = FileDocTestSource(filename, DocTestDefaults()) sage: FDS._init() sage: FDS.starting_docstring("Hello world::") True @@ -1594,7 +1561,7 @@ def parse_docstring(self, docstring, namespace, start): sage: from sage.doctest.parsing import SageDocTestParser sage: from sage.doctest.util import NestedName sage: filename = "sage_doc.rst" - sage: FDS = FileDocTestSource(filename,DocTestDefaults()) + sage: FDS = FileDocTestSource(filename, DocTestDefaults()) sage: FDS.parser = SageDocTestParser(set(['sage'])) sage: FDS.qualified_name = NestedName('sage_doc') sage: s = "Some text::\n\n def example_python_function(a, \ From 4548e5e519018c160b8d024673f4a62e0b89e04c Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Thu, 21 Mar 2024 19:09:55 -0700 Subject: [PATCH 073/140] src/sage/doctest: Remove most uses of SAGE_SRC in doctests --- src/sage/doctest/control.py | 4 +- src/sage/doctest/forker.py | 89 +++++++++++++---------------------- src/sage/doctest/parsing.py | 24 ++++------ src/sage/doctest/reporting.py | 71 +++++++++++++++------------- 4 files changed, 80 insertions(+), 108 deletions(-) diff --git a/src/sage/doctest/control.py b/src/sage/doctest/control.py index 138e5241024..887bf3b5123 100644 --- a/src/sage/doctest/control.py +++ b/src/sage/doctest/control.py @@ -1102,9 +1102,7 @@ def source_baseline(self, source): EXAMPLES:: sage: from sage.doctest.control import DocTestDefaults, DocTestController - sage: from sage.env import SAGE_SRC - sage: import os - sage: filename = os.path.join(SAGE_SRC,'sage','doctest','util.py') + sage: filename = sage.doctest.util.__file__ sage: DD = DocTestDefaults() sage: DC = DocTestController(DD, [filename]) sage: DC.expand_files_into_sources() diff --git a/src/sage/doctest/forker.py b/src/sage/doctest/forker.py index 42598a761c9..3e5b4c52811 100644 --- a/src/sage/doctest/forker.py +++ b/src/sage/doctest/forker.py @@ -575,11 +575,10 @@ def _run(self, test, compileflags, out): sage: from sage.doctest.forker import SageDocTestRunner sage: from sage.doctest.sources import FileDocTestSource sage: from sage.doctest.control import DocTestDefaults; DD = DocTestDefaults() - sage: from sage.env import SAGE_SRC sage: import doctest, sys, os sage: DTR = SageDocTestRunner(SageOutputChecker(), verbose=False, sage_options=DD, optionflags=doctest.NORMALIZE_WHITESPACE|doctest.ELLIPSIS) - sage: filename = os.path.join(SAGE_SRC,'sage','doctest','forker.py') - sage: FDS = FileDocTestSource(filename,DD) + sage: filename = sage.doctest.forker.__file__ + sage: FDS = FileDocTestSource(filename, DD) sage: doctests, extras = FDS.create_doctests(globals()) sage: DTR.run(doctests[0], clear_globs=False) # indirect doctest TestResults(failed=0, attempted=4) @@ -876,12 +875,11 @@ def run(self, test, compileflags=0, out=None, clear_globs=True): sage: from sage.doctest.forker import SageDocTestRunner sage: from sage.doctest.sources import FileDocTestSource sage: from sage.doctest.control import DocTestDefaults; DD = DocTestDefaults() - sage: from sage.env import SAGE_SRC sage: import doctest, sys, os sage: DTR = SageDocTestRunner(SageOutputChecker(), verbose=False, sage_options=DD, ....: optionflags=doctest.NORMALIZE_WHITESPACE|doctest.ELLIPSIS) - sage: filename = os.path.join(SAGE_SRC,'sage','doctest','forker.py') - sage: FDS = FileDocTestSource(filename,DD) + sage: filename = sage.doctest.forker.__file__ + sage: FDS = FileDocTestSource(filename, DD) sage: doctests, extras = FDS.create_doctests(globals()) sage: DTR.run(doctests[0], clear_globs=False) TestResults(failed=0, attempted=4) @@ -1021,11 +1019,10 @@ def update_digests(self, example): sage: from sage.doctest.forker import SageDocTestRunner sage: from sage.doctest.sources import FileDocTestSource sage: from sage.doctest.control import DocTestDefaults; DD = DocTestDefaults() - sage: from sage.env import SAGE_SRC sage: import doctest, sys, os, hashlib sage: DTR = SageDocTestRunner(SageOutputChecker(), verbose=False, sage_options=DD, optionflags=doctest.NORMALIZE_WHITESPACE|doctest.ELLIPSIS) - sage: filename = os.path.join(SAGE_SRC,'sage','doctest','forker.py') - sage: FDS = FileDocTestSource(filename,DD) + sage: filename = sage.doctest.forker.__file__ + sage: FDS = FileDocTestSource(filename, DD) sage: doctests, extras = FDS.create_doctests(globals()) sage: DTR.running_global_digest.hexdigest() 'd41d8cd98f00b204e9800998ecf8427e' @@ -1083,12 +1080,11 @@ def compile_and_execute(self, example, compiler, globs): sage: from sage.doctest.sources import FileDocTestSource sage: from sage.doctest.util import RecordingDict sage: from sage.doctest.control import DocTestDefaults; DD = DocTestDefaults() - sage: from sage.env import SAGE_SRC sage: import doctest, sys, os, hashlib sage: DTR = SageDocTestRunner(SageOutputChecker(), verbose=False, sage_options=DD, ....: optionflags=doctest.NORMALIZE_WHITESPACE|doctest.ELLIPSIS) sage: DTR.running_doctest_digest = hashlib.md5() - sage: filename = os.path.join(SAGE_SRC, 'sage', 'doctest', 'forker.py') + sage: filename = sage.doctest.forker.__file__ sage: FDS = FileDocTestSource(filename, DD) sage: globs = RecordingDict(globals()) sage: 'doctest_var' in globs @@ -1203,11 +1199,10 @@ def _failure_header(self, test, example, message='Failed example:'): sage: from sage.doctest.forker import SageDocTestRunner sage: from sage.doctest.sources import FileDocTestSource sage: from sage.doctest.control import DocTestDefaults; DD = DocTestDefaults() - sage: from sage.env import SAGE_SRC sage: import doctest, sys, os sage: DTR = SageDocTestRunner(SageOutputChecker(), verbose=False, sage_options=DD, optionflags=doctest.NORMALIZE_WHITESPACE|doctest.ELLIPSIS) - sage: filename = os.path.join(SAGE_SRC,'sage','doctest','forker.py') - sage: FDS = FileDocTestSource(filename,DD) + sage: filename = sage.doctest.forker.__file__ + sage: FDS = FileDocTestSource(filename, DD) sage: doctests, extras = FDS.create_doctests(globals()) sage: ex = doctests[0].examples[0] sage: print(DTR._failure_header(doctests[0], ex)) @@ -1315,11 +1310,10 @@ def report_start(self, out, test, example): sage: from sage.doctest.forker import SageDocTestRunner sage: from sage.doctest.sources import FileDocTestSource sage: from sage.doctest.control import DocTestDefaults; DD = DocTestDefaults() - sage: from sage.env import SAGE_SRC sage: import doctest, sys, os sage: DTR = SageDocTestRunner(SageOutputChecker(), verbose=True, sage_options=DD, optionflags=doctest.NORMALIZE_WHITESPACE|doctest.ELLIPSIS) - sage: filename = os.path.join(SAGE_SRC,'sage','doctest','forker.py') - sage: FDS = FileDocTestSource(filename,DD) + sage: filename = sage.doctest.forker.__file__ + sage: FDS = FileDocTestSource(filename, DD) sage: doctests, extras = FDS.create_doctests(globals()) sage: ex = doctests[0].examples[0] sage: DTR.report_start(sys.stdout.write, doctests[0], ex) @@ -1369,11 +1363,10 @@ def report_success(self, out, test, example, got, *, check_duration=0): sage: from sage.doctest.sources import FileDocTestSource sage: from sage.doctest.control import DocTestDefaults; DD = DocTestDefaults() sage: from sage.misc.timing import walltime - sage: from sage.env import SAGE_SRC sage: import doctest, sys, os sage: DTR = SageDocTestRunner(SageOutputChecker(), verbose=True, sage_options=DD, optionflags=doctest.NORMALIZE_WHITESPACE|doctest.ELLIPSIS) - sage: filename = os.path.join(SAGE_SRC,'sage','doctest','forker.py') - sage: FDS = FileDocTestSource(filename,DD) + sage: filename = sage.doctest.forker.__file__ + sage: FDS = FileDocTestSource(filename, DD) sage: doctests, extras = FDS.create_doctests(globals()) sage: ex = doctests[0].examples[0] sage: ex.walltime = 0.0 @@ -1410,11 +1403,10 @@ def report_failure(self, out, test, example, got, globs): sage: from sage.doctest.forker import SageDocTestRunner sage: from sage.doctest.sources import FileDocTestSource sage: from sage.doctest.control import DocTestDefaults; DD = DocTestDefaults() - sage: from sage.env import SAGE_SRC sage: import doctest, sys, os sage: DTR = SageDocTestRunner(SageOutputChecker(), verbose=True, sage_options=DD, optionflags=doctest.NORMALIZE_WHITESPACE|doctest.ELLIPSIS) - sage: filename = os.path.join(SAGE_SRC,'sage','doctest','forker.py') - sage: FDS = FileDocTestSource(filename,DD) + sage: filename = sage.doctest.forker.__file__ + sage: FDS = FileDocTestSource(filename, DD) sage: doctests, extras = FDS.create_doctests(globals()) sage: ex = doctests[0].examples[0] sage: DTR.no_failure_yet = True @@ -1544,11 +1536,10 @@ def report_overtime(self, out, test, example, got, *, check_duration=0): sage: from sage.doctest.sources import FileDocTestSource sage: from sage.doctest.control import DocTestDefaults; DD = DocTestDefaults() sage: from sage.misc.timing import walltime - sage: from sage.env import SAGE_SRC sage: import doctest, sys, os sage: DTR = SageDocTestRunner(SageOutputChecker(), verbose=True, sage_options=DD, optionflags=doctest.NORMALIZE_WHITESPACE|doctest.ELLIPSIS) - sage: filename = os.path.join(SAGE_SRC,'sage','doctest','forker.py') - sage: FDS = FileDocTestSource(filename,DD) + sage: filename = sage.doctest.forker.__file__ + sage: FDS = FileDocTestSource(filename, DD) sage: doctests, extras = FDS.create_doctests(globals()) sage: ex = doctests[0].examples[0] sage: ex.walltime = 1.23 @@ -1672,11 +1663,10 @@ def update_results(self, D): sage: from sage.doctest.forker import SageDocTestRunner sage: from sage.doctest.sources import FileDocTestSource, DictAsObject sage: from sage.doctest.control import DocTestDefaults; DD = DocTestDefaults() - sage: from sage.env import SAGE_SRC sage: import doctest, sys, os sage: DTR = SageDocTestRunner(SageOutputChecker(), verbose=False, sage_options=DD, optionflags=doctest.NORMALIZE_WHITESPACE|doctest.ELLIPSIS) - sage: filename = os.path.join(SAGE_SRC,'sage','doctest','forker.py') - sage: FDS = FileDocTestSource(filename,DD) + sage: filename = sage.doctest.forker.__file__ + sage: FDS = FileDocTestSource(filename, DD) sage: doctests, extras = FDS.create_doctests(globals()) sage: from sage.doctest.util import Timer sage: T = Timer().start() @@ -1754,7 +1744,6 @@ def serial_dispatch(self): sage: from sage.doctest.forker import DocTestDispatcher sage: from sage.doctest.reporting import DocTestReporter sage: from sage.doctest.util import Timer - sage: from sage.env import SAGE_SRC sage: import os sage: homset = os.path.join(SAGE_SRC, 'sage', 'rings', 'homset.py') sage: ideal = os.path.join(SAGE_SRC, 'sage', 'rings', 'ideal.py') @@ -1801,7 +1790,6 @@ def parallel_dispatch(self): sage: from sage.doctest.forker import DocTestDispatcher sage: from sage.doctest.reporting import DocTestReporter sage: from sage.doctest.util import Timer - sage: from sage.env import SAGE_SRC sage: import os sage: crem = os.path.join(SAGE_SRC, 'sage', 'databases', 'cremona.py') sage: bigo = os.path.join(SAGE_SRC, 'sage', 'rings', 'big_oh.py') @@ -2136,7 +2124,6 @@ def dispatch(self): sage: from sage.doctest.forker import DocTestDispatcher sage: from sage.doctest.reporting import DocTestReporter sage: from sage.doctest.util import Timer - sage: from sage.env import SAGE_SRC sage: import os sage: freehom = os.path.join(SAGE_SRC, 'sage', 'modules', 'free_module_homspace.py') sage: bigo = os.path.join(SAGE_SRC, 'sage', 'rings', 'big_oh.py') @@ -2191,10 +2178,9 @@ class should be accessed by the child process. sage: from sage.doctest.sources import FileDocTestSource sage: from sage.doctest.reporting import DocTestReporter sage: from sage.doctest.control import DocTestController, DocTestDefaults - sage: from sage.env import SAGE_SRC - sage: filename = os.path.join(SAGE_SRC,'sage','doctest','util.py') + sage: filename = sage.doctest.util.__file__ sage: DD = DocTestDefaults() - sage: FDS = FileDocTestSource(filename,DD) + sage: FDS = FileDocTestSource(filename, DD) sage: W = DocTestWorker(FDS, DD) sage: W.start() sage: DC = DocTestController(DD, filename) @@ -2316,10 +2302,9 @@ def start(self): sage: from sage.doctest.sources import FileDocTestSource sage: from sage.doctest.reporting import DocTestReporter sage: from sage.doctest.control import DocTestController, DocTestDefaults - sage: from sage.env import SAGE_SRC - sage: filename = os.path.join(SAGE_SRC,'sage','doctest','util.py') + sage: filename = sage.doctest.util.__file__ sage: DD = DocTestDefaults() - sage: FDS = FileDocTestSource(filename,DD) + sage: FDS = FileDocTestSource(filename, DD) sage: W = DocTestWorker(FDS, DD) sage: W.start() sage: try: @@ -2356,10 +2341,9 @@ def read_messages(self): sage: from sage.doctest.sources import FileDocTestSource sage: from sage.doctest.reporting import DocTestReporter sage: from sage.doctest.control import DocTestController, DocTestDefaults - sage: from sage.env import SAGE_SRC - sage: filename = os.path.join(SAGE_SRC,'sage','doctest','util.py') + sage: filename = sage.doctest.util.__file__ sage: DD = DocTestDefaults(verbose=True,nthreads=2) - sage: FDS = FileDocTestSource(filename,DD) + sage: FDS = FileDocTestSource(filename, DD) sage: W = DocTestWorker(FDS, DD) sage: W.start() sage: while W.rmessages is not None: @@ -2391,10 +2375,9 @@ def save_result_output(self): sage: from sage.doctest.sources import FileDocTestSource sage: from sage.doctest.reporting import DocTestReporter sage: from sage.doctest.control import DocTestController, DocTestDefaults - sage: from sage.env import SAGE_SRC - sage: filename = os.path.join(SAGE_SRC,'sage','doctest','util.py') + sage: filename = sage.doctest.util.__file__ sage: DD = DocTestDefaults() - sage: FDS = FileDocTestSource(filename,DD) + sage: FDS = FileDocTestSource(filename, DD) sage: W = DocTestWorker(FDS, DD) sage: W.start() sage: W.join() @@ -2452,10 +2435,9 @@ def kill(self): sage: from sage.doctest.sources import FileDocTestSource sage: from sage.doctest.reporting import DocTestReporter sage: from sage.doctest.control import DocTestController, DocTestDefaults - sage: from sage.env import SAGE_SRC sage: filename = os.path.join(SAGE_SRC,'sage','doctest','tests','99seconds.rst') sage: DD = DocTestDefaults() - sage: FDS = FileDocTestSource(filename,DD) + sage: FDS = FileDocTestSource(filename, DD) We set up the worker to start by blocking ``SIGQUIT``, such that killing will fail initially:: @@ -2522,11 +2504,10 @@ class DocTestTask(): sage: from sage.doctest.forker import DocTestTask sage: from sage.doctest.sources import FileDocTestSource sage: from sage.doctest.control import DocTestDefaults, DocTestController - sage: from sage.env import SAGE_SRC sage: import os - sage: filename = os.path.join(SAGE_SRC,'sage','doctest','sources.py') + sage: filename = sage.doctest.sources.__file__ sage: DD = DocTestDefaults() - sage: FDS = FileDocTestSource(filename,DD) + sage: FDS = FileDocTestSource(filename, DD) sage: DTT = DocTestTask(FDS) sage: DC = DocTestController(DD,[filename]) sage: ntests, results = DTT(options=DD) @@ -2545,10 +2526,9 @@ def __init__(self, source): sage: from sage.doctest.forker import DocTestTask sage: from sage.doctest.sources import FileDocTestSource sage: from sage.doctest.control import DocTestDefaults - sage: from sage.env import SAGE_SRC sage: import os - sage: filename = os.path.join(SAGE_SRC,'sage','doctest','sources.py') - sage: FDS = FileDocTestSource(filename,DocTestDefaults()) + sage: filename = sage.doctest.sources.__file__ + sage: FDS = FileDocTestSource(filename, DocTestDefaults()) sage: DocTestTask(FDS) """ @@ -2588,11 +2568,10 @@ def __call__(self, options, outtmpfile=None, msgfile=None, result_queue=None, *, sage: from sage.doctest.forker import DocTestTask sage: from sage.doctest.sources import FileDocTestSource sage: from sage.doctest.control import DocTestDefaults, DocTestController - sage: from sage.env import SAGE_SRC sage: import os - sage: filename = os.path.join(SAGE_SRC,'sage','doctest','parsing.py') + sage: filename = sage.doctest.parsing.__file__ sage: DD = DocTestDefaults() - sage: FDS = FileDocTestSource(filename,DD) + sage: FDS = FileDocTestSource(filename, DD) sage: DTT = DocTestTask(FDS) sage: DC = DocTestController(DD, [filename]) sage: ntests, runner = DTT(options=DD) diff --git a/src/sage/doctest/parsing.py b/src/sage/doctest/parsing.py index 8c70c723b90..8485525f8e0 100644 --- a/src/sage/doctest/parsing.py +++ b/src/sage/doctest/parsing.py @@ -782,10 +782,8 @@ class OriginalSource(): sage: from sage.doctest.sources import FileDocTestSource sage: from sage.doctest.control import DocTestDefaults - sage: from sage.env import SAGE_SRC - sage: import os - sage: filename = os.path.join(SAGE_SRC,'sage','doctest','forker.py') - sage: FDS = FileDocTestSource(filename,DocTestDefaults()) + sage: filename = sage.doctest.forker.__file__ + sage: FDS = FileDocTestSource(filename, DocTestDefaults()) sage: doctests, extras = FDS.create_doctests(globals()) sage: ex = doctests[0].examples[0] sage: ex.sage_source @@ -809,10 +807,8 @@ def __init__(self, example): sage: from sage.doctest.sources import FileDocTestSource sage: from sage.doctest.control import DocTestDefaults - sage: from sage.env import SAGE_SRC - sage: import os - sage: filename = os.path.join(SAGE_SRC,'sage','doctest','forker.py') - sage: FDS = FileDocTestSource(filename,DocTestDefaults()) + sage: filename = sage.doctest.forker.__file__ + sage: FDS = FileDocTestSource(filename, DocTestDefaults()) sage: doctests, extras = FDS.create_doctests(globals()) sage: ex = doctests[0].examples[0] sage: from sage.doctest.parsing import OriginalSource @@ -827,10 +823,8 @@ def __enter__(self): sage: from sage.doctest.sources import FileDocTestSource sage: from sage.doctest.control import DocTestDefaults - sage: from sage.env import SAGE_SRC - sage: import os - sage: filename = os.path.join(SAGE_SRC,'sage','doctest','forker.py') - sage: FDS = FileDocTestSource(filename,DocTestDefaults()) + sage: filename = sage.doctest.forker.__file__ + sage: FDS = FileDocTestSource(filename, DocTestDefaults()) sage: doctests, extras = FDS.create_doctests(globals()) sage: ex = doctests[0].examples[0] sage: from sage.doctest.parsing import OriginalSource @@ -847,10 +841,8 @@ def __exit__(self, *args): sage: from sage.doctest.sources import FileDocTestSource sage: from sage.doctest.control import DocTestDefaults - sage: from sage.env import SAGE_SRC - sage: import os - sage: filename = os.path.join(SAGE_SRC,'sage','doctest','forker.py') - sage: FDS = FileDocTestSource(filename,DocTestDefaults()) + sage: filename = sage.doctest.forker.__file__ + sage: FDS = FileDocTestSource(filename, DocTestDefaults()) sage: doctests, extras = FDS.create_doctests(globals()) sage: ex = doctests[0].examples[0] sage: from sage.doctest.parsing import OriginalSource diff --git a/src/sage/doctest/reporting.py b/src/sage/doctest/reporting.py index 1161bafd31c..600a18b0e8d 100644 --- a/src/sage/doctest/reporting.py +++ b/src/sage/doctest/reporting.py @@ -109,10 +109,8 @@ def __init__(self, controller): sage: from sage.doctest.reporting import DocTestReporter sage: from sage.doctest.control import DocTestController, DocTestDefaults - sage: from sage.env import SAGE_SRC - sage: import os - sage: filename = os.path.join(SAGE_SRC,'sage','doctest','reporting.py') - sage: DC = DocTestController(DocTestDefaults(),[filename]) + sage: filename = sage.doctest.reporting.__file__ + sage: DC = DocTestController(DocTestDefaults(), [filename]) sage: DTR = DocTestReporter(DC) """ self.controller = controller @@ -133,10 +131,8 @@ def were_doctests_with_optional_tag_run(self, tag): sage: from sage.doctest.reporting import DocTestReporter sage: from sage.doctest.control import DocTestController, DocTestDefaults - sage: from sage.env import SAGE_SRC - sage: import os - sage: filename = os.path.join(SAGE_SRC,'sage','doctest','reporting.py') - sage: DC = DocTestController(DocTestDefaults(),[filename]) + sage: filename = sage.doctest.reporting.__file__ + sage: DC = DocTestController(DocTestDefaults(), [filename]) sage: DTR = DocTestReporter(DC) :: @@ -150,7 +146,7 @@ def were_doctests_with_optional_tag_run(self, tag): ``latex`` are run by default since :issue:`32174`:: sage: filename = os.path.join(SAGE_SRC,'sage','misc','latex.py') - sage: DC = DocTestController(DocTestDefaults(),[filename]) + sage: DC = DocTestController(DocTestDefaults(), [filename]) sage: DTR = DocTestReporter(DC) sage: DTR.were_doctests_with_optional_tag_run('latex') # optional - latex True @@ -178,10 +174,9 @@ def report_head(self, source, fail_msg=None): sage: from sage.doctest.control import DocTestController, DocTestDefaults sage: from sage.doctest.sources import FileDocTestSource sage: from sage.doctest.forker import SageDocTestRunner - sage: from sage.env import SAGE_SRC - sage: filename = os.path.join(SAGE_SRC,'sage','doctest','reporting.py') + sage: filename = sage.doctest.reporting.__file__ sage: DD = DocTestDefaults() - sage: FDS = FileDocTestSource(filename,DD) + sage: FDS = FileDocTestSource(filename, DD) sage: DC = DocTestController(DD, [filename]) sage: DTR = DocTestReporter(DC) sage: print(DTR.report_head(FDS)) @@ -261,12 +256,11 @@ def report(self, source, timeout, return_code, results, output, pid=None): sage: from sage.doctest.forker import SageDocTestRunner sage: from sage.doctest.parsing import SageOutputChecker sage: from sage.doctest.util import Timer - sage: from sage.env import SAGE_SRC - sage: import os, sys, doctest - sage: filename = os.path.join(SAGE_SRC,'sage','doctest','reporting.py') + sage: import doctest + sage: filename = sage.doctest.reporting.__file__ sage: DD = DocTestDefaults() - sage: FDS = FileDocTestSource(filename,DD) - sage: DC = DocTestController(DD,[filename]) + sage: FDS = FileDocTestSource(filename, DD) + sage: DC = DocTestController(DD, [filename]) sage: DTR = DocTestReporter(DC) You can report a timeout:: @@ -339,13 +333,15 @@ def report(self, source, timeout, return_code, results, output, pid=None): Or tell the user that everything succeeded:: sage: doctests, extras = FDS.create_doctests(globals()) - sage: runner = SageDocTestRunner(SageOutputChecker(), verbose=False, sage_options=DD, - ....: optionflags=doctest.NORMALIZE_WHITESPACE|doctest.ELLIPSIS) + sage: runner = SageDocTestRunner( + ....: SageOutputChecker(), verbose=False, sage_options=DD, + ....: optionflags=doctest.NORMALIZE_WHITESPACE|doctest.ELLIPSIS) sage: Timer().start().stop().annotate(runner) sage: D = DictAsObject({'err':None}) sage: runner.update_results(D) 0 - sage: DTR.report(FDS, False, 0, (sum([len(t.examples) for t in doctests]), D), "Good tests") + sage: DTR.report(FDS, False, 0, (sum([len(t.examples) for t in doctests]), D), + ....: "Good tests") [... tests, ... s] sage: DTR.stats {'sage.doctest.reporting': {'ntests': ..., 'walltime': ...}} @@ -355,7 +351,8 @@ def report(self, source, timeout, return_code, results, output, pid=None): sage: runner.failures = 1 sage: runner.update_results(D) 1 - sage: DTR.report(FDS, False, 0, (sum([len(t.examples) for t in doctests]), D), "Doctest output including the failure...") + sage: DTR.report(FDS, False, 0, (sum([len(t.examples) for t in doctests]), D), + ....: "Doctest output including the failure...") [... tests, 1 failure, ... s] If the user has requested that we report on skipped doctests, @@ -365,7 +362,7 @@ def report(self, source, timeout, return_code, results, output, pid=None): sage: from collections import defaultdict sage: optionals = defaultdict(int) sage: optionals['magma'] = 5; optionals['long time'] = 4; optionals[''] = 1; optionals['not tested'] = 2 - sage: D = DictAsObject(dict(err=None,optionals=optionals)) + sage: D = DictAsObject(dict(err=None, optionals=optionals)) sage: runner.failures = 0 sage: runner.update_results(D) 0 @@ -391,20 +388,23 @@ def report(self, source, timeout, return_code, results, output, pid=None): sage: DC = DocTestController(DD, [filename]) sage: DTR = DocTestReporter(DC) sage: doctests, extras = FDS.create_doctests(globals()) - sage: runner = SageDocTestRunner(SageOutputChecker(), verbose=False, sage_options=DD, - ....: optionflags=doctest.NORMALIZE_WHITESPACE|doctest.ELLIPSIS) + sage: runner = SageDocTestRunner( + ....: SageOutputChecker(), verbose=False, sage_options=DD, + ....: optionflags=doctest.NORMALIZE_WHITESPACE|doctest.ELLIPSIS) sage: Timer().start().stop().annotate(runner) sage: D = DictAsObject({'err':None}) sage: runner.update_results(D) 0 - sage: DTR.report(FDS, False, 0, (sum([len(t.examples) for t in doctests]), D), "Good tests") + sage: DTR.report(FDS, False, 0, (sum([len(t.examples) for t in doctests]), D), + ....: "Good tests") However, failures are still output in the errors-only mode:: sage: runner.failures = 1 sage: runner.update_results(D) 1 - sage: DTR.report(FDS, False, 0, (sum([len(t.examples) for t in doctests]), D), "Failed test") + sage: DTR.report(FDS, False, 0, (sum([len(t.examples) for t in doctests]), D), + ....: "Failed test") [... tests, 1 failure, ... s] """ log = self.controller.log @@ -598,12 +598,11 @@ def finalize(self): sage: from sage.doctest.forker import SageDocTestRunner sage: from sage.doctest.parsing import SageOutputChecker sage: from sage.doctest.util import Timer - sage: from sage.env import SAGE_SRC - sage: import os, sys, doctest - sage: filename = os.path.join(SAGE_SRC,'sage','doctest','reporting.py') + sage: import doctest + sage: filename = sage.doctest.reporting.__file__ sage: DD = DocTestDefaults() - sage: FDS = FileDocTestSource(filename,DD) - sage: DC = DocTestController(DD,[filename]) + sage: FDS = FileDocTestSource(filename, DD) + sage: DC = DocTestController(DD, [filename]) sage: DTR = DocTestReporter(DC) Now we pretend to run some doctests:: @@ -621,19 +620,23 @@ def finalize(self): Output before bad exit ********************************************************************** sage: doctests, extras = FDS.create_doctests(globals()) - sage: runner = SageDocTestRunner(SageOutputChecker(), verbose=False, sage_options=DD,optionflags=doctest.NORMALIZE_WHITESPACE|doctest.ELLIPSIS) + sage: runner = SageDocTestRunner( + ....: SageOutputChecker(), verbose=False, sage_options=DD, + ....: optionflags=doctest.NORMALIZE_WHITESPACE|doctest.ELLIPSIS) sage: t = Timer().start().stop() sage: t.annotate(runner) sage: DC.timer = t sage: D = DictAsObject({'err':None}) sage: runner.update_results(D) 0 - sage: DTR.report(FDS, False, 0, (sum([len(t.examples) for t in doctests]), D), "Good tests") + sage: DTR.report(FDS, False, 0, (sum([len(t.examples) for t in doctests]), D), + ....: "Good tests") [... tests, ... s] sage: runner.failures = 1 sage: runner.update_results(D) 1 - sage: DTR.report(FDS, False, 0, (sum([len(t.examples) for t in doctests]), D), "Doctest output including the failure...") + sage: DTR.report(FDS, False, 0, (sum([len(t.examples) for t in doctests]), D), + ....: "Doctest output including the failure...") [... tests, 1 failure, ... s] Now we can show the output of finalize:: From b5d97f1116d1e34b31d29ab3818948a0137be365 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Sun, 24 Mar 2024 12:18:24 -0700 Subject: [PATCH 074/140] build/pkgs/cypari: Update to cypari2 2.1.5 --- build/pkgs/cypari/checksums.ini | 6 +++--- build/pkgs/cypari/package-version.txt | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build/pkgs/cypari/checksums.ini b/build/pkgs/cypari/checksums.ini index 3f87b3fabb8..af0affad76b 100644 --- a/build/pkgs/cypari/checksums.ini +++ b/build/pkgs/cypari/checksums.ini @@ -1,5 +1,5 @@ tarball=cypari2-VERSION.tar.gz -sha1=0af00b66e3f1b77e932ad9cade6e4e9dc6f21eaa -md5=34c919aedb0a470c8b4e4b0c0ec788e3 -cksum=2760761148 +sha1=4cb5fc43899852b7fc0c0175e610318c38f0caac +md5=e9940034c6707a3faeb416f207444e81 +cksum=361739172 upstream_url=https://github.com/sagemath/cypari2/releases/download/VERSION/cypari2-VERSION.tar.gz diff --git a/build/pkgs/cypari/package-version.txt b/build/pkgs/cypari/package-version.txt index 7d2ed7c7020..cd57a8b95d6 100644 --- a/build/pkgs/cypari/package-version.txt +++ b/build/pkgs/cypari/package-version.txt @@ -1 +1 @@ -2.1.4 +2.1.5 From b8e911f83a32e97a696b2b99e396c8de1427f946 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Sun, 24 Mar 2024 12:18:36 -0700 Subject: [PATCH 075/140] build/pkgs/memory_allocator: Update to 0.1.4 --- build/pkgs/memory_allocator/checksums.ini | 6 +++--- build/pkgs/memory_allocator/package-version.txt | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build/pkgs/memory_allocator/checksums.ini b/build/pkgs/memory_allocator/checksums.ini index c907031eac5..76e62a79758 100644 --- a/build/pkgs/memory_allocator/checksums.ini +++ b/build/pkgs/memory_allocator/checksums.ini @@ -1,5 +1,5 @@ tarball=memory_allocator-VERSION.tar.gz -sha1=1a874de2674a1948797de109adfd1f56193e153a -md5=c3a5d0f5acf896eec84266964a8aec0e -cksum=3431157422 +sha1=21661580dd3f41aac0f2090033d8804e6ff495d9 +md5=2a5e087c686b04996ccb88ce56cad9f0 +cksum=3481909016 upstream_url=https://pypi.io/packages/source/m/memory_allocator/memory_allocator-VERSION.tar.gz diff --git a/build/pkgs/memory_allocator/package-version.txt b/build/pkgs/memory_allocator/package-version.txt index b1e80bb2480..845639eef26 100644 --- a/build/pkgs/memory_allocator/package-version.txt +++ b/build/pkgs/memory_allocator/package-version.txt @@ -1 +1 @@ -0.1.3 +0.1.4 From 14df13795fd4af47178a2b0b5f4ba174ff9261f8 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Sun, 24 Mar 2024 12:46:02 -0700 Subject: [PATCH 076/140] build/pkgs/cypari: Fix upstream_url --- build/pkgs/cypari/checksums.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/pkgs/cypari/checksums.ini b/build/pkgs/cypari/checksums.ini index af0affad76b..27a680da968 100644 --- a/build/pkgs/cypari/checksums.ini +++ b/build/pkgs/cypari/checksums.ini @@ -2,4 +2,4 @@ tarball=cypari2-VERSION.tar.gz sha1=4cb5fc43899852b7fc0c0175e610318c38f0caac md5=e9940034c6707a3faeb416f207444e81 cksum=361739172 -upstream_url=https://github.com/sagemath/cypari2/releases/download/VERSION/cypari2-VERSION.tar.gz +upstream_url=https://pypi.io/packages/source/c/cypari2/cypari2-VERSION.tar.gz From 5ca0e457b2e116fc2bd36b621f1250e806f478de Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Sun, 31 Mar 2024 20:47:29 -0700 Subject: [PATCH 077/140] build/pkgs/typing_extensions/version_requirements.txt: Use double quotes --- build/pkgs/typing_extensions/install-requires.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/pkgs/typing_extensions/install-requires.txt b/build/pkgs/typing_extensions/install-requires.txt index e1a912109ed..d10f4dffbd3 100644 --- a/build/pkgs/typing_extensions/install-requires.txt +++ b/build/pkgs/typing_extensions/install-requires.txt @@ -1,3 +1,3 @@ # According to https://github.com/python/typing_extensions/blob/main/CHANGELOG.md, # version 4.4.0 adds another Python 3.11 typing backport -typing_extensions >= 4.4.0; python_version<'3.11' +typing_extensions >= 4.4.0; python_version<"3.11" From 8f257667a8def1e7f67f7871adc2acf1cd4cf6d9 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Wed, 14 Feb 2024 21:04:55 -0800 Subject: [PATCH 078/140] .github/workflows/docker.yml: Build with 'make -j9', test with SAGE_NUM_THREADS=5 --- .github/workflows/docker.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 18910ca50a6..5a7215e8b97 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -244,7 +244,7 @@ jobs: # configuration on many platforms. run: | (sleep ${{ inputs.timeout }}; for id in $(docker ps -q); do docker exec $id find /proc -maxdepth 2 -name cmdline -exec bash -c "grep -l [m][a][k][e] {} | cut -d/ -f3 | xargs --no-run-if-empty kill" \;; done) & - set -o pipefail; EXTRA_DOCKER_BUILD_ARGS="--build-arg NUMPROC=4 --build-arg USE_MAKEFLAGS=\"-k V=0 SAGE_NUM_THREADS=3\"" tox -e $TOX_ENV -- $TARGETS 2>&1 | sed "/^configure: notice:/s|^|::warning file=artifacts/$LOGS_ARTIFACT_NAME/config.log::|;/^configure: warning:/s|^|::warning file=artifacts/$LOGS_ARTIFACT_NAME/config.log::|;/^configure: error:/s|^|::error file=artifacts/$LOGS_ARTIFACT_NAME/config.log::|;" + set -o pipefail; EXTRA_DOCKER_BUILD_ARGS="--build-arg NUMPROC=9 --build-arg USE_MAKEFLAGS=\"-k V=0 SAGE_NUM_THREADS=5\"" tox -e $TOX_ENV -- $TARGETS 2>&1 | sed "/^configure: notice:/s|^|::warning file=artifacts/$LOGS_ARTIFACT_NAME/config.log::|;/^configure: warning:/s|^|::warning file=artifacts/$LOGS_ARTIFACT_NAME/config.log::|;/^configure: error:/s|^|::error file=artifacts/$LOGS_ARTIFACT_NAME/config.log::|;" - name: Copy logs from the Docker image or build container run: | mkdir -p "artifacts/$LOGS_ARTIFACT_NAME" From 5ab502c99c5fac13c93aed4b490bbadb263bfc46 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Wed, 14 Feb 2024 21:11:30 -0800 Subject: [PATCH 079/140] tox.ini: Add ubuntu-noble, fedora-40, linuxmint-21.3, gentoo-python3.12 --- tox.ini | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/tox.ini b/tox.ini index 99d04aad388..def724fdf24 100644 --- a/tox.ini +++ b/tox.ini @@ -205,7 +205,7 @@ setenv = docker: BASE_TAG=latest # # https://hub.docker.com/_/ubuntu?tab=description - # as of 2023-05, latest=jammy=22.04, rolling=lunar=23.04, devel=mantic=23.10 + # as of 2024-02, latest=jammy=22.04, rolling=mantic=23.10, devel=noble=24.04 # ubuntu-focal does not have libgap-dev # ubuntu: SYSTEM=debian @@ -226,6 +226,7 @@ setenv = ubuntu-jammy: BASE_TAG=jammy ubuntu-lunar: BASE_TAG=lunar ubuntu-mantic: BASE_TAG=mantic + ubuntu-noble: BASE_TAG=noble # # https://hub.docker.com/_/debian # debian-buster does not have libfreetype-dev (it only has libfreetype6-dev) @@ -264,6 +265,7 @@ setenv = linuxmint-21: BASE_IMAGE=linuxmintd/mint21 linuxmint-21.1: BASE_IMAGE=linuxmintd/mint21.1 linuxmint-21.2: BASE_IMAGE=linuxmintd/mint21.2 + linuxmint-21.3: BASE_IMAGE=linuxmintd/mint21.3 # # https://hub.docker.com/_/fedora # as of 2024-01, latest=39, rawhide=40 @@ -848,14 +850,14 @@ setenv = # Master list of platforms tested in CI Linux # DEFAULT_SYSTEM_FACTORS=\ - ubuntu-{trusty-toolchain-gcc_9,xenial-toolchain-gcc_9,bionic-gcc_8,focal,jammy,lunar,mantic} \ + ubuntu-{trusty-toolchain-gcc_9,xenial-toolchain-gcc_9,bionic-gcc_8,focal,jammy,lunar,mantic,noble} \ debian-{buster-gcc_spkg,bullseye,bookworm,trixie,sid} \ - linuxmint-{20.1,20.2,20.3,21,21.1,21.2} \ - fedora-{30,31,32,33,34,35,36,37,38,39} \ + linuxmint-{20.1,20.2,20.3,21,21.1,21.2,21.3} \ + fedora-{30,31,32,33,34,35,36,37,38,39,40} \ centos-7-devtoolset-gcc_11 \ centos-stream-{8,9}-python3.9 \ almalinux-{8-python3.9,9-python3.11} \ - gentoo-python{3.10,3.11} \ + gentoo-python{3.10,3.11,3.12} \ archlinux-latest \ opensuse-{15.3-gcc_11-python3.9,15.4-gcc_11-python3.10,15.5-gcc_11-python3.11} \ opensuse-tumbleweed{-python3.10,} \ From 40b03f36eb9c712ef20f93cbfa8ee243b78bde2d Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Wed, 14 Feb 2024 21:12:24 -0800 Subject: [PATCH 080/140] tox -e update_docker_platforms --- .../devcontainer.json | 25 ++ .../portability-Dockerfile | 1 + .../devcontainer.json | 25 ++ .../portability-Dockerfile | 1 + .../devcontainer.json | 25 ++ .../portability-Dockerfile | 1 + .../devcontainer.json | 25 ++ .../portability-Dockerfile | 1 + .../devcontainer.json | 25 ++ .../portability-Dockerfile | 1 + .../devcontainer.json | 25 ++ .../portability-Dockerfile | 1 + .../devcontainer.json | 25 ++ .../portability-Dockerfile | 1 + .../devcontainer.json | 25 ++ .../portability-Dockerfile | 1 + .github/workflows/docker.yml | 4 + .../developer/portability_platform_table.rst | 260 ++++++++++++++++++ 18 files changed, 472 insertions(+) create mode 100644 .devcontainer/portability-fedora-40-minimal/devcontainer.json create mode 120000 .devcontainer/portability-fedora-40-minimal/portability-Dockerfile create mode 100644 .devcontainer/portability-fedora-40-standard/devcontainer.json create mode 120000 .devcontainer/portability-fedora-40-standard/portability-Dockerfile create mode 100644 .devcontainer/portability-gentoo-python3.12-minimal/devcontainer.json create mode 120000 .devcontainer/portability-gentoo-python3.12-minimal/portability-Dockerfile create mode 100644 .devcontainer/portability-gentoo-python3.12-standard/devcontainer.json create mode 120000 .devcontainer/portability-gentoo-python3.12-standard/portability-Dockerfile create mode 100644 .devcontainer/portability-linuxmint-21.3-minimal/devcontainer.json create mode 120000 .devcontainer/portability-linuxmint-21.3-minimal/portability-Dockerfile create mode 100644 .devcontainer/portability-linuxmint-21.3-standard/devcontainer.json create mode 120000 .devcontainer/portability-linuxmint-21.3-standard/portability-Dockerfile create mode 100644 .devcontainer/portability-ubuntu-noble-minimal/devcontainer.json create mode 120000 .devcontainer/portability-ubuntu-noble-minimal/portability-Dockerfile create mode 100644 .devcontainer/portability-ubuntu-noble-standard/devcontainer.json create mode 120000 .devcontainer/portability-ubuntu-noble-standard/portability-Dockerfile diff --git a/.devcontainer/portability-fedora-40-minimal/devcontainer.json b/.devcontainer/portability-fedora-40-minimal/devcontainer.json new file mode 100644 index 00000000000..dd037154fe3 --- /dev/null +++ b/.devcontainer/portability-fedora-40-minimal/devcontainer.json @@ -0,0 +1,25 @@ +// The command "tox -e update_docker_platforms" +// creates .devcontainer/portability-*-*/devcontainer.json +// from .devcontainer/portability-devcontainer.json.in +// See https://aka.ms/devcontainer.json for format details. +{ + "name": "fedora-40-minimal (≥ 8-core)", + "build": { + "dockerfile": "portability-Dockerfile", + // See tox.ini for definitions + "args": { + "SYSTEM_FACTOR": "fedora-40", + "PACKAGE_FACTOR": "minimal", + "DOCKER_TARGET": "with-targets", + "DOCKER_TAG": "dev" + } + }, + "containerEnv": { + "MAKE": "make -j4" + }, + "onCreateCommand": ".devcontainer/onCreate.sh", + "updateContentCommand": ".devcontainer/portability-updateContent.sh", + "extensions": [ + "ms-python.python" + ] +} diff --git a/.devcontainer/portability-fedora-40-minimal/portability-Dockerfile b/.devcontainer/portability-fedora-40-minimal/portability-Dockerfile new file mode 120000 index 00000000000..692e2a79d64 --- /dev/null +++ b/.devcontainer/portability-fedora-40-minimal/portability-Dockerfile @@ -0,0 +1 @@ +../portability-Dockerfile \ No newline at end of file diff --git a/.devcontainer/portability-fedora-40-standard/devcontainer.json b/.devcontainer/portability-fedora-40-standard/devcontainer.json new file mode 100644 index 00000000000..1f9d4a5e378 --- /dev/null +++ b/.devcontainer/portability-fedora-40-standard/devcontainer.json @@ -0,0 +1,25 @@ +// The command "tox -e update_docker_platforms" +// creates .devcontainer/portability-*-*/devcontainer.json +// from .devcontainer/portability-devcontainer.json.in +// See https://aka.ms/devcontainer.json for format details. +{ + "name": "fedora-40-standard (≥ 8-core)", + "build": { + "dockerfile": "portability-Dockerfile", + // See tox.ini for definitions + "args": { + "SYSTEM_FACTOR": "fedora-40", + "PACKAGE_FACTOR": "standard", + "DOCKER_TARGET": "with-targets", + "DOCKER_TAG": "dev" + } + }, + "containerEnv": { + "MAKE": "make -j4" + }, + "onCreateCommand": ".devcontainer/onCreate.sh", + "updateContentCommand": ".devcontainer/portability-updateContent.sh", + "extensions": [ + "ms-python.python" + ] +} diff --git a/.devcontainer/portability-fedora-40-standard/portability-Dockerfile b/.devcontainer/portability-fedora-40-standard/portability-Dockerfile new file mode 120000 index 00000000000..692e2a79d64 --- /dev/null +++ b/.devcontainer/portability-fedora-40-standard/portability-Dockerfile @@ -0,0 +1 @@ +../portability-Dockerfile \ No newline at end of file diff --git a/.devcontainer/portability-gentoo-python3.12-minimal/devcontainer.json b/.devcontainer/portability-gentoo-python3.12-minimal/devcontainer.json new file mode 100644 index 00000000000..41250ac5e74 --- /dev/null +++ b/.devcontainer/portability-gentoo-python3.12-minimal/devcontainer.json @@ -0,0 +1,25 @@ +// The command "tox -e update_docker_platforms" +// creates .devcontainer/portability-*-*/devcontainer.json +// from .devcontainer/portability-devcontainer.json.in +// See https://aka.ms/devcontainer.json for format details. +{ + "name": "gentoo-python3.12-minimal (≥ 8-core)", + "build": { + "dockerfile": "portability-Dockerfile", + // See tox.ini for definitions + "args": { + "SYSTEM_FACTOR": "gentoo-python3.12", + "PACKAGE_FACTOR": "minimal", + "DOCKER_TARGET": "with-targets", + "DOCKER_TAG": "dev" + } + }, + "containerEnv": { + "MAKE": "make -j4" + }, + "onCreateCommand": ".devcontainer/onCreate.sh", + "updateContentCommand": ".devcontainer/portability-updateContent.sh", + "extensions": [ + "ms-python.python" + ] +} diff --git a/.devcontainer/portability-gentoo-python3.12-minimal/portability-Dockerfile b/.devcontainer/portability-gentoo-python3.12-minimal/portability-Dockerfile new file mode 120000 index 00000000000..692e2a79d64 --- /dev/null +++ b/.devcontainer/portability-gentoo-python3.12-minimal/portability-Dockerfile @@ -0,0 +1 @@ +../portability-Dockerfile \ No newline at end of file diff --git a/.devcontainer/portability-gentoo-python3.12-standard/devcontainer.json b/.devcontainer/portability-gentoo-python3.12-standard/devcontainer.json new file mode 100644 index 00000000000..3193910dd6a --- /dev/null +++ b/.devcontainer/portability-gentoo-python3.12-standard/devcontainer.json @@ -0,0 +1,25 @@ +// The command "tox -e update_docker_platforms" +// creates .devcontainer/portability-*-*/devcontainer.json +// from .devcontainer/portability-devcontainer.json.in +// See https://aka.ms/devcontainer.json for format details. +{ + "name": "gentoo-python3.12-standard (≥ 8-core)", + "build": { + "dockerfile": "portability-Dockerfile", + // See tox.ini for definitions + "args": { + "SYSTEM_FACTOR": "gentoo-python3.12", + "PACKAGE_FACTOR": "standard", + "DOCKER_TARGET": "with-targets", + "DOCKER_TAG": "dev" + } + }, + "containerEnv": { + "MAKE": "make -j4" + }, + "onCreateCommand": ".devcontainer/onCreate.sh", + "updateContentCommand": ".devcontainer/portability-updateContent.sh", + "extensions": [ + "ms-python.python" + ] +} diff --git a/.devcontainer/portability-gentoo-python3.12-standard/portability-Dockerfile b/.devcontainer/portability-gentoo-python3.12-standard/portability-Dockerfile new file mode 120000 index 00000000000..692e2a79d64 --- /dev/null +++ b/.devcontainer/portability-gentoo-python3.12-standard/portability-Dockerfile @@ -0,0 +1 @@ +../portability-Dockerfile \ No newline at end of file diff --git a/.devcontainer/portability-linuxmint-21.3-minimal/devcontainer.json b/.devcontainer/portability-linuxmint-21.3-minimal/devcontainer.json new file mode 100644 index 00000000000..6350569173d --- /dev/null +++ b/.devcontainer/portability-linuxmint-21.3-minimal/devcontainer.json @@ -0,0 +1,25 @@ +// The command "tox -e update_docker_platforms" +// creates .devcontainer/portability-*-*/devcontainer.json +// from .devcontainer/portability-devcontainer.json.in +// See https://aka.ms/devcontainer.json for format details. +{ + "name": "linuxmint-21.3-minimal (≥ 8-core)", + "build": { + "dockerfile": "portability-Dockerfile", + // See tox.ini for definitions + "args": { + "SYSTEM_FACTOR": "linuxmint-21.3", + "PACKAGE_FACTOR": "minimal", + "DOCKER_TARGET": "with-targets", + "DOCKER_TAG": "dev" + } + }, + "containerEnv": { + "MAKE": "make -j4" + }, + "onCreateCommand": ".devcontainer/onCreate.sh", + "updateContentCommand": ".devcontainer/portability-updateContent.sh", + "extensions": [ + "ms-python.python" + ] +} diff --git a/.devcontainer/portability-linuxmint-21.3-minimal/portability-Dockerfile b/.devcontainer/portability-linuxmint-21.3-minimal/portability-Dockerfile new file mode 120000 index 00000000000..692e2a79d64 --- /dev/null +++ b/.devcontainer/portability-linuxmint-21.3-minimal/portability-Dockerfile @@ -0,0 +1 @@ +../portability-Dockerfile \ No newline at end of file diff --git a/.devcontainer/portability-linuxmint-21.3-standard/devcontainer.json b/.devcontainer/portability-linuxmint-21.3-standard/devcontainer.json new file mode 100644 index 00000000000..245fee17201 --- /dev/null +++ b/.devcontainer/portability-linuxmint-21.3-standard/devcontainer.json @@ -0,0 +1,25 @@ +// The command "tox -e update_docker_platforms" +// creates .devcontainer/portability-*-*/devcontainer.json +// from .devcontainer/portability-devcontainer.json.in +// See https://aka.ms/devcontainer.json for format details. +{ + "name": "linuxmint-21.3-standard (≥ 8-core)", + "build": { + "dockerfile": "portability-Dockerfile", + // See tox.ini for definitions + "args": { + "SYSTEM_FACTOR": "linuxmint-21.3", + "PACKAGE_FACTOR": "standard", + "DOCKER_TARGET": "with-targets", + "DOCKER_TAG": "dev" + } + }, + "containerEnv": { + "MAKE": "make -j4" + }, + "onCreateCommand": ".devcontainer/onCreate.sh", + "updateContentCommand": ".devcontainer/portability-updateContent.sh", + "extensions": [ + "ms-python.python" + ] +} diff --git a/.devcontainer/portability-linuxmint-21.3-standard/portability-Dockerfile b/.devcontainer/portability-linuxmint-21.3-standard/portability-Dockerfile new file mode 120000 index 00000000000..692e2a79d64 --- /dev/null +++ b/.devcontainer/portability-linuxmint-21.3-standard/portability-Dockerfile @@ -0,0 +1 @@ +../portability-Dockerfile \ No newline at end of file diff --git a/.devcontainer/portability-ubuntu-noble-minimal/devcontainer.json b/.devcontainer/portability-ubuntu-noble-minimal/devcontainer.json new file mode 100644 index 00000000000..f22b6775f74 --- /dev/null +++ b/.devcontainer/portability-ubuntu-noble-minimal/devcontainer.json @@ -0,0 +1,25 @@ +// The command "tox -e update_docker_platforms" +// creates .devcontainer/portability-*-*/devcontainer.json +// from .devcontainer/portability-devcontainer.json.in +// See https://aka.ms/devcontainer.json for format details. +{ + "name": "ubuntu-noble-minimal (≥ 8-core)", + "build": { + "dockerfile": "portability-Dockerfile", + // See tox.ini for definitions + "args": { + "SYSTEM_FACTOR": "ubuntu-noble", + "PACKAGE_FACTOR": "minimal", + "DOCKER_TARGET": "with-targets", + "DOCKER_TAG": "dev" + } + }, + "containerEnv": { + "MAKE": "make -j4" + }, + "onCreateCommand": ".devcontainer/onCreate.sh", + "updateContentCommand": ".devcontainer/portability-updateContent.sh", + "extensions": [ + "ms-python.python" + ] +} diff --git a/.devcontainer/portability-ubuntu-noble-minimal/portability-Dockerfile b/.devcontainer/portability-ubuntu-noble-minimal/portability-Dockerfile new file mode 120000 index 00000000000..692e2a79d64 --- /dev/null +++ b/.devcontainer/portability-ubuntu-noble-minimal/portability-Dockerfile @@ -0,0 +1 @@ +../portability-Dockerfile \ No newline at end of file diff --git a/.devcontainer/portability-ubuntu-noble-standard/devcontainer.json b/.devcontainer/portability-ubuntu-noble-standard/devcontainer.json new file mode 100644 index 00000000000..7acec1e29ac --- /dev/null +++ b/.devcontainer/portability-ubuntu-noble-standard/devcontainer.json @@ -0,0 +1,25 @@ +// The command "tox -e update_docker_platforms" +// creates .devcontainer/portability-*-*/devcontainer.json +// from .devcontainer/portability-devcontainer.json.in +// See https://aka.ms/devcontainer.json for format details. +{ + "name": "ubuntu-noble-standard (≥ 8-core)", + "build": { + "dockerfile": "portability-Dockerfile", + // See tox.ini for definitions + "args": { + "SYSTEM_FACTOR": "ubuntu-noble", + "PACKAGE_FACTOR": "standard", + "DOCKER_TARGET": "with-targets", + "DOCKER_TAG": "dev" + } + }, + "containerEnv": { + "MAKE": "make -j4" + }, + "onCreateCommand": ".devcontainer/onCreate.sh", + "updateContentCommand": ".devcontainer/portability-updateContent.sh", + "extensions": [ + "ms-python.python" + ] +} diff --git a/.devcontainer/portability-ubuntu-noble-standard/portability-Dockerfile b/.devcontainer/portability-ubuntu-noble-standard/portability-Dockerfile new file mode 120000 index 00000000000..692e2a79d64 --- /dev/null +++ b/.devcontainer/portability-ubuntu-noble-standard/portability-Dockerfile @@ -0,0 +1 @@ +../portability-Dockerfile \ No newline at end of file diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 5a7215e8b97..970aafd433c 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -25,6 +25,7 @@ on: "ubuntu-jammy", "ubuntu-lunar", "ubuntu-mantic", + "ubuntu-noble", "debian-buster-gcc_spkg", "debian-bullseye", "debian-bookworm", @@ -36,6 +37,7 @@ on: "linuxmint-21", "linuxmint-21.1", "linuxmint-21.2", + "linuxmint-21.3", "fedora-30", "fedora-31", "fedora-32", @@ -46,6 +48,7 @@ on: "fedora-37", "fedora-38", "fedora-39", + "fedora-40", "centos-7-devtoolset-gcc_11", "centos-stream-8-python3.9", "centos-stream-9-python3.9", @@ -53,6 +56,7 @@ on: "almalinux-9-python3.11", "gentoo-python3.10", "gentoo-python3.11", + "gentoo-python3.12", "archlinux-latest", "opensuse-15.3-gcc_11-python3.9", "opensuse-15.4-gcc_11-python3.10", diff --git a/src/doc/en/developer/portability_platform_table.rst b/src/doc/en/developer/portability_platform_table.rst index d024671c9d8..7b173a1959c 100644 --- a/src/doc/en/developer/portability_platform_table.rst +++ b/src/doc/en/developer/portability_platform_table.rst @@ -376,6 +376,60 @@ .. |codespace-ubuntu-mantic-maximal| image:: https://github.com/codespaces/badge.svg :target: https://codespaces.new/sagemath/sage?devcontainer_path=.devcontainer%2Fportability-ubuntu-mantic-maximal%2Fdevcontainer.json +.. |image-ubuntu-noble-minimal-with-system-packages| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-ubuntu-noble-minimal-with-system-packages/size?tag=dev&label=with-system-packages&color=%23696969 + :target: https://ghcr.io/sagemath/sage/sage-ubuntu-noble-minimal-with-system-packages + +.. |image-ubuntu-noble-minimal-configured| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-ubuntu-noble-minimal-configured/latest_tag?ignore=latest,dev,*-failed&label=configured&color=%23696969 + :target: https://ghcr.io/sagemath/sage/sage-ubuntu-noble-minimal-configured + +.. |image-ubuntu-noble-minimal-with-targets-pre| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-ubuntu-noble-minimal-with-targets-pre/latest_tag?ignore=latest,dev,*-failed&label=with-targets-pre&color=%23677895 + :target: https://ghcr.io/sagemath/sage/sage-ubuntu-noble-minimal-with-targets-pre + +.. |image-ubuntu-noble-minimal-with-targets| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-ubuntu-noble-minimal-with-targets/latest_tag?ignore=latest,dev,*-failed&label=with-targets&color=%236686c1 + :target: https://ghcr.io/sagemath/sage/sage-ubuntu-noble-minimal-with-targets + +.. |image-ubuntu-noble-minimal-with-targets-optional| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-ubuntu-noble-minimal-with-targets-optional/latest_tag?ignore=latest,dev,*-failed&label=with-targets-optional&color=%236495ed + :target: https://ghcr.io/sagemath/sage/sage-ubuntu-noble-minimal-with-targets-optional + +.. |codespace-ubuntu-noble-minimal| image:: https://github.com/codespaces/badge.svg + :target: https://codespaces.new/sagemath/sage?devcontainer_path=.devcontainer%2Fportability-ubuntu-noble-minimal%2Fdevcontainer.json + +.. |image-ubuntu-noble-standard-with-system-packages| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-ubuntu-noble-standard-with-system-packages/size?tag=dev&label=with-system-packages&color=%23696969 + :target: https://ghcr.io/sagemath/sage/sage-ubuntu-noble-standard-with-system-packages + +.. |image-ubuntu-noble-standard-configured| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-ubuntu-noble-standard-configured/latest_tag?ignore=latest,dev,*-failed&label=configured&color=%23696969 + :target: https://ghcr.io/sagemath/sage/sage-ubuntu-noble-standard-configured + +.. |image-ubuntu-noble-standard-with-targets-pre| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-ubuntu-noble-standard-with-targets-pre/latest_tag?ignore=latest,dev,*-failed&label=with-targets-pre&color=%235d8a4c + :target: https://ghcr.io/sagemath/sage/sage-ubuntu-noble-standard-with-targets-pre + +.. |image-ubuntu-noble-standard-with-targets| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-ubuntu-noble-standard-with-targets/latest_tag?ignore=latest,dev,*-failed&label=with-targets&color=%2350ab2e + :target: https://ghcr.io/sagemath/sage/sage-ubuntu-noble-standard-with-targets + +.. |image-ubuntu-noble-standard-with-targets-optional| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-ubuntu-noble-standard-with-targets-optional/latest_tag?ignore=latest,dev,*-failed&label=with-targets-optional&color=%2344cc11 + :target: https://ghcr.io/sagemath/sage/sage-ubuntu-noble-standard-with-targets-optional + +.. |codespace-ubuntu-noble-standard| image:: https://github.com/codespaces/badge.svg + :target: https://codespaces.new/sagemath/sage?devcontainer_path=.devcontainer%2Fportability-ubuntu-noble-standard%2Fdevcontainer.json + +.. |image-ubuntu-noble-maximal-with-system-packages| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-ubuntu-noble-maximal-with-system-packages/size?tag=dev&label=with-system-packages&color=%23696969 + :target: https://ghcr.io/sagemath/sage/sage-ubuntu-noble-maximal-with-system-packages + +.. |image-ubuntu-noble-maximal-configured| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-ubuntu-noble-maximal-configured/latest_tag?ignore=latest,dev,*-failed&label=configured&color=%23696969 + :target: https://ghcr.io/sagemath/sage/sage-ubuntu-noble-maximal-configured + +.. |image-ubuntu-noble-maximal-with-targets-pre| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-ubuntu-noble-maximal-with-targets-pre/latest_tag?ignore=latest,dev,*-failed&label=with-targets-pre&color=%238f6b8d + :target: https://ghcr.io/sagemath/sage/sage-ubuntu-noble-maximal-with-targets-pre + +.. |image-ubuntu-noble-maximal-with-targets| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-ubuntu-noble-maximal-with-targets/latest_tag?ignore=latest,dev,*-failed&label=with-targets&color=%23b46eb2 + :target: https://ghcr.io/sagemath/sage/sage-ubuntu-noble-maximal-with-targets + +.. |image-ubuntu-noble-maximal-with-targets-optional| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-ubuntu-noble-maximal-with-targets-optional/latest_tag?ignore=latest,dev,*-failed&label=with-targets-optional&color=%23da70d6 + :target: https://ghcr.io/sagemath/sage/sage-ubuntu-noble-maximal-with-targets-optional + +.. |codespace-ubuntu-noble-maximal| image:: https://github.com/codespaces/badge.svg + :target: https://codespaces.new/sagemath/sage?devcontainer_path=.devcontainer%2Fportability-ubuntu-noble-maximal%2Fdevcontainer.json + .. |image-debian-buster-gcc_spkg-minimal-with-system-packages| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-debian-buster-gcc_spkg-minimal-with-system-packages/size?tag=dev&label=with-system-packages&color=%23696969 :target: https://ghcr.io/sagemath/sage/sage-debian-buster-gcc_spkg-minimal-with-system-packages @@ -970,6 +1024,60 @@ .. |codespace-linuxmint-21.2-maximal| image:: https://github.com/codespaces/badge.svg :target: https://codespaces.new/sagemath/sage?devcontainer_path=.devcontainer%2Fportability-linuxmint-21.2-maximal%2Fdevcontainer.json +.. |image-linuxmint-21.3-minimal-with-system-packages| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-linuxmint-21.3-minimal-with-system-packages/size?tag=dev&label=with-system-packages&color=%23696969 + :target: https://ghcr.io/sagemath/sage/sage-linuxmint-21.3-minimal-with-system-packages + +.. |image-linuxmint-21.3-minimal-configured| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-linuxmint-21.3-minimal-configured/latest_tag?ignore=latest,dev,*-failed&label=configured&color=%23696969 + :target: https://ghcr.io/sagemath/sage/sage-linuxmint-21.3-minimal-configured + +.. |image-linuxmint-21.3-minimal-with-targets-pre| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-linuxmint-21.3-minimal-with-targets-pre/latest_tag?ignore=latest,dev,*-failed&label=with-targets-pre&color=%23677895 + :target: https://ghcr.io/sagemath/sage/sage-linuxmint-21.3-minimal-with-targets-pre + +.. |image-linuxmint-21.3-minimal-with-targets| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-linuxmint-21.3-minimal-with-targets/latest_tag?ignore=latest,dev,*-failed&label=with-targets&color=%236686c1 + :target: https://ghcr.io/sagemath/sage/sage-linuxmint-21.3-minimal-with-targets + +.. |image-linuxmint-21.3-minimal-with-targets-optional| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-linuxmint-21.3-minimal-with-targets-optional/latest_tag?ignore=latest,dev,*-failed&label=with-targets-optional&color=%236495ed + :target: https://ghcr.io/sagemath/sage/sage-linuxmint-21.3-minimal-with-targets-optional + +.. |codespace-linuxmint-21.3-minimal| image:: https://github.com/codespaces/badge.svg + :target: https://codespaces.new/sagemath/sage?devcontainer_path=.devcontainer%2Fportability-linuxmint-21.3-minimal%2Fdevcontainer.json + +.. |image-linuxmint-21.3-standard-with-system-packages| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-linuxmint-21.3-standard-with-system-packages/size?tag=dev&label=with-system-packages&color=%23696969 + :target: https://ghcr.io/sagemath/sage/sage-linuxmint-21.3-standard-with-system-packages + +.. |image-linuxmint-21.3-standard-configured| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-linuxmint-21.3-standard-configured/latest_tag?ignore=latest,dev,*-failed&label=configured&color=%23696969 + :target: https://ghcr.io/sagemath/sage/sage-linuxmint-21.3-standard-configured + +.. |image-linuxmint-21.3-standard-with-targets-pre| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-linuxmint-21.3-standard-with-targets-pre/latest_tag?ignore=latest,dev,*-failed&label=with-targets-pre&color=%235d8a4c + :target: https://ghcr.io/sagemath/sage/sage-linuxmint-21.3-standard-with-targets-pre + +.. |image-linuxmint-21.3-standard-with-targets| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-linuxmint-21.3-standard-with-targets/latest_tag?ignore=latest,dev,*-failed&label=with-targets&color=%2350ab2e + :target: https://ghcr.io/sagemath/sage/sage-linuxmint-21.3-standard-with-targets + +.. |image-linuxmint-21.3-standard-with-targets-optional| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-linuxmint-21.3-standard-with-targets-optional/latest_tag?ignore=latest,dev,*-failed&label=with-targets-optional&color=%2344cc11 + :target: https://ghcr.io/sagemath/sage/sage-linuxmint-21.3-standard-with-targets-optional + +.. |codespace-linuxmint-21.3-standard| image:: https://github.com/codespaces/badge.svg + :target: https://codespaces.new/sagemath/sage?devcontainer_path=.devcontainer%2Fportability-linuxmint-21.3-standard%2Fdevcontainer.json + +.. |image-linuxmint-21.3-maximal-with-system-packages| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-linuxmint-21.3-maximal-with-system-packages/size?tag=dev&label=with-system-packages&color=%23696969 + :target: https://ghcr.io/sagemath/sage/sage-linuxmint-21.3-maximal-with-system-packages + +.. |image-linuxmint-21.3-maximal-configured| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-linuxmint-21.3-maximal-configured/latest_tag?ignore=latest,dev,*-failed&label=configured&color=%23696969 + :target: https://ghcr.io/sagemath/sage/sage-linuxmint-21.3-maximal-configured + +.. |image-linuxmint-21.3-maximal-with-targets-pre| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-linuxmint-21.3-maximal-with-targets-pre/latest_tag?ignore=latest,dev,*-failed&label=with-targets-pre&color=%238f6b8d + :target: https://ghcr.io/sagemath/sage/sage-linuxmint-21.3-maximal-with-targets-pre + +.. |image-linuxmint-21.3-maximal-with-targets| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-linuxmint-21.3-maximal-with-targets/latest_tag?ignore=latest,dev,*-failed&label=with-targets&color=%23b46eb2 + :target: https://ghcr.io/sagemath/sage/sage-linuxmint-21.3-maximal-with-targets + +.. |image-linuxmint-21.3-maximal-with-targets-optional| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-linuxmint-21.3-maximal-with-targets-optional/latest_tag?ignore=latest,dev,*-failed&label=with-targets-optional&color=%23da70d6 + :target: https://ghcr.io/sagemath/sage/sage-linuxmint-21.3-maximal-with-targets-optional + +.. |codespace-linuxmint-21.3-maximal| image:: https://github.com/codespaces/badge.svg + :target: https://codespaces.new/sagemath/sage?devcontainer_path=.devcontainer%2Fportability-linuxmint-21.3-maximal%2Fdevcontainer.json + .. |image-fedora-30-minimal-with-system-packages| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-fedora-30-minimal-with-system-packages/size?tag=dev&label=with-system-packages&color=%23696969 :target: https://ghcr.io/sagemath/sage/sage-fedora-30-minimal-with-system-packages @@ -1510,6 +1618,60 @@ .. |codespace-fedora-39-maximal| image:: https://github.com/codespaces/badge.svg :target: https://codespaces.new/sagemath/sage?devcontainer_path=.devcontainer%2Fportability-fedora-39-maximal%2Fdevcontainer.json +.. |image-fedora-40-minimal-with-system-packages| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-fedora-40-minimal-with-system-packages/size?tag=dev&label=with-system-packages&color=%23696969 + :target: https://ghcr.io/sagemath/sage/sage-fedora-40-minimal-with-system-packages + +.. |image-fedora-40-minimal-configured| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-fedora-40-minimal-configured/latest_tag?ignore=latest,dev,*-failed&label=configured&color=%23696969 + :target: https://ghcr.io/sagemath/sage/sage-fedora-40-minimal-configured + +.. |image-fedora-40-minimal-with-targets-pre| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-fedora-40-minimal-with-targets-pre/latest_tag?ignore=latest,dev,*-failed&label=with-targets-pre&color=%23677895 + :target: https://ghcr.io/sagemath/sage/sage-fedora-40-minimal-with-targets-pre + +.. |image-fedora-40-minimal-with-targets| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-fedora-40-minimal-with-targets/latest_tag?ignore=latest,dev,*-failed&label=with-targets&color=%236686c1 + :target: https://ghcr.io/sagemath/sage/sage-fedora-40-minimal-with-targets + +.. |image-fedora-40-minimal-with-targets-optional| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-fedora-40-minimal-with-targets-optional/latest_tag?ignore=latest,dev,*-failed&label=with-targets-optional&color=%236495ed + :target: https://ghcr.io/sagemath/sage/sage-fedora-40-minimal-with-targets-optional + +.. |codespace-fedora-40-minimal| image:: https://github.com/codespaces/badge.svg + :target: https://codespaces.new/sagemath/sage?devcontainer_path=.devcontainer%2Fportability-fedora-40-minimal%2Fdevcontainer.json + +.. |image-fedora-40-standard-with-system-packages| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-fedora-40-standard-with-system-packages/size?tag=dev&label=with-system-packages&color=%23696969 + :target: https://ghcr.io/sagemath/sage/sage-fedora-40-standard-with-system-packages + +.. |image-fedora-40-standard-configured| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-fedora-40-standard-configured/latest_tag?ignore=latest,dev,*-failed&label=configured&color=%23696969 + :target: https://ghcr.io/sagemath/sage/sage-fedora-40-standard-configured + +.. |image-fedora-40-standard-with-targets-pre| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-fedora-40-standard-with-targets-pre/latest_tag?ignore=latest,dev,*-failed&label=with-targets-pre&color=%235d8a4c + :target: https://ghcr.io/sagemath/sage/sage-fedora-40-standard-with-targets-pre + +.. |image-fedora-40-standard-with-targets| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-fedora-40-standard-with-targets/latest_tag?ignore=latest,dev,*-failed&label=with-targets&color=%2350ab2e + :target: https://ghcr.io/sagemath/sage/sage-fedora-40-standard-with-targets + +.. |image-fedora-40-standard-with-targets-optional| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-fedora-40-standard-with-targets-optional/latest_tag?ignore=latest,dev,*-failed&label=with-targets-optional&color=%2344cc11 + :target: https://ghcr.io/sagemath/sage/sage-fedora-40-standard-with-targets-optional + +.. |codespace-fedora-40-standard| image:: https://github.com/codespaces/badge.svg + :target: https://codespaces.new/sagemath/sage?devcontainer_path=.devcontainer%2Fportability-fedora-40-standard%2Fdevcontainer.json + +.. |image-fedora-40-maximal-with-system-packages| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-fedora-40-maximal-with-system-packages/size?tag=dev&label=with-system-packages&color=%23696969 + :target: https://ghcr.io/sagemath/sage/sage-fedora-40-maximal-with-system-packages + +.. |image-fedora-40-maximal-configured| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-fedora-40-maximal-configured/latest_tag?ignore=latest,dev,*-failed&label=configured&color=%23696969 + :target: https://ghcr.io/sagemath/sage/sage-fedora-40-maximal-configured + +.. |image-fedora-40-maximal-with-targets-pre| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-fedora-40-maximal-with-targets-pre/latest_tag?ignore=latest,dev,*-failed&label=with-targets-pre&color=%238f6b8d + :target: https://ghcr.io/sagemath/sage/sage-fedora-40-maximal-with-targets-pre + +.. |image-fedora-40-maximal-with-targets| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-fedora-40-maximal-with-targets/latest_tag?ignore=latest,dev,*-failed&label=with-targets&color=%23b46eb2 + :target: https://ghcr.io/sagemath/sage/sage-fedora-40-maximal-with-targets + +.. |image-fedora-40-maximal-with-targets-optional| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-fedora-40-maximal-with-targets-optional/latest_tag?ignore=latest,dev,*-failed&label=with-targets-optional&color=%23da70d6 + :target: https://ghcr.io/sagemath/sage/sage-fedora-40-maximal-with-targets-optional + +.. |codespace-fedora-40-maximal| image:: https://github.com/codespaces/badge.svg + :target: https://codespaces.new/sagemath/sage?devcontainer_path=.devcontainer%2Fportability-fedora-40-maximal%2Fdevcontainer.json + .. |image-centos-7-devtoolset-gcc_11-minimal-with-system-packages| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-centos-7-devtoolset-gcc_11-minimal-with-system-packages/size?tag=dev&label=with-system-packages&color=%23696969 :target: https://ghcr.io/sagemath/sage/sage-centos-7-devtoolset-gcc_11-minimal-with-system-packages @@ -1888,6 +2050,60 @@ .. |codespace-gentoo-python3.11-maximal| image:: https://github.com/codespaces/badge.svg :target: https://codespaces.new/sagemath/sage?devcontainer_path=.devcontainer%2Fportability-gentoo-python3.11-maximal%2Fdevcontainer.json +.. |image-gentoo-python3.12-minimal-with-system-packages| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-gentoo-python3.12-minimal-with-system-packages/size?tag=dev&label=with-system-packages&color=%23696969 + :target: https://ghcr.io/sagemath/sage/sage-gentoo-python3.12-minimal-with-system-packages + +.. |image-gentoo-python3.12-minimal-configured| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-gentoo-python3.12-minimal-configured/latest_tag?ignore=latest,dev,*-failed&label=configured&color=%23696969 + :target: https://ghcr.io/sagemath/sage/sage-gentoo-python3.12-minimal-configured + +.. |image-gentoo-python3.12-minimal-with-targets-pre| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-gentoo-python3.12-minimal-with-targets-pre/latest_tag?ignore=latest,dev,*-failed&label=with-targets-pre&color=%23677895 + :target: https://ghcr.io/sagemath/sage/sage-gentoo-python3.12-minimal-with-targets-pre + +.. |image-gentoo-python3.12-minimal-with-targets| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-gentoo-python3.12-minimal-with-targets/latest_tag?ignore=latest,dev,*-failed&label=with-targets&color=%236686c1 + :target: https://ghcr.io/sagemath/sage/sage-gentoo-python3.12-minimal-with-targets + +.. |image-gentoo-python3.12-minimal-with-targets-optional| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-gentoo-python3.12-minimal-with-targets-optional/latest_tag?ignore=latest,dev,*-failed&label=with-targets-optional&color=%236495ed + :target: https://ghcr.io/sagemath/sage/sage-gentoo-python3.12-minimal-with-targets-optional + +.. |codespace-gentoo-python3.12-minimal| image:: https://github.com/codespaces/badge.svg + :target: https://codespaces.new/sagemath/sage?devcontainer_path=.devcontainer%2Fportability-gentoo-python3.12-minimal%2Fdevcontainer.json + +.. |image-gentoo-python3.12-standard-with-system-packages| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-gentoo-python3.12-standard-with-system-packages/size?tag=dev&label=with-system-packages&color=%23696969 + :target: https://ghcr.io/sagemath/sage/sage-gentoo-python3.12-standard-with-system-packages + +.. |image-gentoo-python3.12-standard-configured| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-gentoo-python3.12-standard-configured/latest_tag?ignore=latest,dev,*-failed&label=configured&color=%23696969 + :target: https://ghcr.io/sagemath/sage/sage-gentoo-python3.12-standard-configured + +.. |image-gentoo-python3.12-standard-with-targets-pre| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-gentoo-python3.12-standard-with-targets-pre/latest_tag?ignore=latest,dev,*-failed&label=with-targets-pre&color=%235d8a4c + :target: https://ghcr.io/sagemath/sage/sage-gentoo-python3.12-standard-with-targets-pre + +.. |image-gentoo-python3.12-standard-with-targets| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-gentoo-python3.12-standard-with-targets/latest_tag?ignore=latest,dev,*-failed&label=with-targets&color=%2350ab2e + :target: https://ghcr.io/sagemath/sage/sage-gentoo-python3.12-standard-with-targets + +.. |image-gentoo-python3.12-standard-with-targets-optional| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-gentoo-python3.12-standard-with-targets-optional/latest_tag?ignore=latest,dev,*-failed&label=with-targets-optional&color=%2344cc11 + :target: https://ghcr.io/sagemath/sage/sage-gentoo-python3.12-standard-with-targets-optional + +.. |codespace-gentoo-python3.12-standard| image:: https://github.com/codespaces/badge.svg + :target: https://codespaces.new/sagemath/sage?devcontainer_path=.devcontainer%2Fportability-gentoo-python3.12-standard%2Fdevcontainer.json + +.. |image-gentoo-python3.12-maximal-with-system-packages| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-gentoo-python3.12-maximal-with-system-packages/size?tag=dev&label=with-system-packages&color=%23696969 + :target: https://ghcr.io/sagemath/sage/sage-gentoo-python3.12-maximal-with-system-packages + +.. |image-gentoo-python3.12-maximal-configured| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-gentoo-python3.12-maximal-configured/latest_tag?ignore=latest,dev,*-failed&label=configured&color=%23696969 + :target: https://ghcr.io/sagemath/sage/sage-gentoo-python3.12-maximal-configured + +.. |image-gentoo-python3.12-maximal-with-targets-pre| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-gentoo-python3.12-maximal-with-targets-pre/latest_tag?ignore=latest,dev,*-failed&label=with-targets-pre&color=%238f6b8d + :target: https://ghcr.io/sagemath/sage/sage-gentoo-python3.12-maximal-with-targets-pre + +.. |image-gentoo-python3.12-maximal-with-targets| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-gentoo-python3.12-maximal-with-targets/latest_tag?ignore=latest,dev,*-failed&label=with-targets&color=%23b46eb2 + :target: https://ghcr.io/sagemath/sage/sage-gentoo-python3.12-maximal-with-targets + +.. |image-gentoo-python3.12-maximal-with-targets-optional| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-gentoo-python3.12-maximal-with-targets-optional/latest_tag?ignore=latest,dev,*-failed&label=with-targets-optional&color=%23da70d6 + :target: https://ghcr.io/sagemath/sage/sage-gentoo-python3.12-maximal-with-targets-optional + +.. |codespace-gentoo-python3.12-maximal| image:: https://github.com/codespaces/badge.svg + :target: https://codespaces.new/sagemath/sage?devcontainer_path=.devcontainer%2Fportability-gentoo-python3.12-maximal%2Fdevcontainer.json + .. |image-archlinux-latest-minimal-with-system-packages| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-archlinux-latest-minimal-with-system-packages/size?tag=dev&label=with-system-packages&color=%23696969 :target: https://ghcr.io/sagemath/sage/sage-archlinux-latest-minimal-with-system-packages @@ -2459,6 +2675,17 @@ * -    ‑*maximal* - |image-ubuntu-mantic-maximal-with-system-packages| |image-ubuntu-mantic-maximal-with-targets-pre| - + * - **ubuntu**-noble + +    ‑*minimal* + - |image-ubuntu-noble-minimal-with-system-packages| |image-ubuntu-noble-minimal-with-targets-pre| |image-ubuntu-noble-minimal-with-targets| |image-ubuntu-noble-minimal-with-targets-optional| + - |codespace-ubuntu-noble-minimal| + * -    ‑*standard* + - |image-ubuntu-noble-standard-with-system-packages| |image-ubuntu-noble-standard-with-targets-pre| |image-ubuntu-noble-standard-with-targets| |image-ubuntu-noble-standard-with-targets-optional| + - |codespace-ubuntu-noble-standard| + * -    ‑*maximal* + - |image-ubuntu-noble-maximal-with-system-packages| |image-ubuntu-noble-maximal-with-targets-pre| + - * - **debian**-buster-gcc_spkg    ‑*minimal* @@ -2580,6 +2807,17 @@ * -    ‑*maximal* - |image-linuxmint-21.2-maximal-with-system-packages| |image-linuxmint-21.2-maximal-with-targets-pre| - + * - **linuxmint**-21.3 + +    ‑*minimal* + - |image-linuxmint-21.3-minimal-with-system-packages| |image-linuxmint-21.3-minimal-with-targets-pre| |image-linuxmint-21.3-minimal-with-targets| |image-linuxmint-21.3-minimal-with-targets-optional| + - |codespace-linuxmint-21.3-minimal| + * -    ‑*standard* + - |image-linuxmint-21.3-standard-with-system-packages| |image-linuxmint-21.3-standard-with-targets-pre| |image-linuxmint-21.3-standard-with-targets| |image-linuxmint-21.3-standard-with-targets-optional| + - |codespace-linuxmint-21.3-standard| + * -    ‑*maximal* + - |image-linuxmint-21.3-maximal-with-system-packages| |image-linuxmint-21.3-maximal-with-targets-pre| + - * - **fedora**-30    ‑*minimal* @@ -2690,6 +2928,17 @@ * -    ‑*maximal* - |image-fedora-39-maximal-with-system-packages| |image-fedora-39-maximal-with-targets-pre| - + * - **fedora**-40 + +    ‑*minimal* + - |image-fedora-40-minimal-with-system-packages| |image-fedora-40-minimal-with-targets-pre| |image-fedora-40-minimal-with-targets| |image-fedora-40-minimal-with-targets-optional| + - |codespace-fedora-40-minimal| + * -    ‑*standard* + - |image-fedora-40-standard-with-system-packages| |image-fedora-40-standard-with-targets-pre| |image-fedora-40-standard-with-targets| |image-fedora-40-standard-with-targets-optional| + - |codespace-fedora-40-standard| + * -    ‑*maximal* + - |image-fedora-40-maximal-with-system-packages| |image-fedora-40-maximal-with-targets-pre| + - * - **centos**-7-devtoolset-gcc_11    ‑*minimal* @@ -2767,6 +3016,17 @@ * -    ‑*maximal* - |image-gentoo-python3.11-maximal-with-system-packages| |image-gentoo-python3.11-maximal-with-targets-pre| - + * - **gentoo**-python3.12 + +    ‑*minimal* + - |image-gentoo-python3.12-minimal-with-system-packages| |image-gentoo-python3.12-minimal-with-targets-pre| |image-gentoo-python3.12-minimal-with-targets| |image-gentoo-python3.12-minimal-with-targets-optional| + - |codespace-gentoo-python3.12-minimal| + * -    ‑*standard* + - |image-gentoo-python3.12-standard-with-system-packages| |image-gentoo-python3.12-standard-with-targets-pre| |image-gentoo-python3.12-standard-with-targets| |image-gentoo-python3.12-standard-with-targets-optional| + - |codespace-gentoo-python3.12-standard| + * -    ‑*maximal* + - |image-gentoo-python3.12-maximal-with-system-packages| |image-gentoo-python3.12-maximal-with-targets-pre| + - * - **archlinux**-latest    ‑*minimal* From f9fc1f7209abbeec9b63c7fece44ee5c8214bc21 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Wed, 14 Feb 2024 21:14:23 -0800 Subject: [PATCH 081/140] .github/workflows/build.yml: Use 4 instead of 2 processors --- .github/workflows/build.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5944e32a19d..ae06b6bce03 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -93,16 +93,16 @@ jobs: ./bootstrap && make build working-directory: ./worktree-image env: - MAKE: make -j2 --output-sync=recurse - SAGE_NUM_THREADS: 2 + MAKE: make -j4 --output-sync=recurse + SAGE_NUM_THREADS: 4 - name: Build modularized distributions if: (success() || failure()) && steps.worktree.outcome == 'success' run: make V=0 tox && make SAGE_CHECK=no pypi-wheels working-directory: ./worktree-image env: - MAKE: make -j2 --output-sync=recurse - SAGE_NUM_THREADS: 2 + MAKE: make -j4 --output-sync=recurse + SAGE_NUM_THREADS: 4 - name: Static code check with pyright if: (success() || failure()) && steps.worktree.outcome == 'success' @@ -137,8 +137,8 @@ jobs: ./bootstrap && make doc-clean doc-uninstall sagelib-clean && git clean -fx src/sage && ./config.status working-directory: ./worktree-image env: - MAKE: make -j2 - SAGE_NUM_THREADS: 2 + MAKE: make -j4 + SAGE_NUM_THREADS: 4 - name: Build # This step is needed because building the modularized distributions installs some optional packages, @@ -149,8 +149,8 @@ jobs: make build working-directory: ./worktree-image env: - MAKE: make -j2 --output-sync=recurse - SAGE_NUM_THREADS: 2 + MAKE: make -j4 --output-sync=recurse + SAGE_NUM_THREADS: 4 # Testing @@ -161,16 +161,16 @@ jobs: ./sage -t --new -p2 working-directory: ./worktree-image env: - MAKE: make -j2 --output-sync=recurse - SAGE_NUM_THREADS: 2 + MAKE: make -j4 --output-sync=recurse + SAGE_NUM_THREADS: 4 - name: Test modularized distributions if: (success() || failure()) && steps.build.outcome == 'success' run: make V=0 tox && make pypi-wheels-check working-directory: ./worktree-image env: - MAKE: make -j2 --output-sync=recurse - SAGE_NUM_THREADS: 2 + MAKE: make -j4 --output-sync=recurse + SAGE_NUM_THREADS: 4 - name: Check that all modules can be imported run: | From de1677b2cbdeb6f75dffbff86bd2bac62fc491ad Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Wed, 14 Feb 2024 21:16:25 -0800 Subject: [PATCH 082/140] .github/workflows/doc-build*.yml: Use 4 instead of 2 processors --- .github/workflows/doc-build-pdf.yml | 12 ++++++------ .github/workflows/doc-build.yml | 16 ++++++++-------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/doc-build-pdf.yml b/.github/workflows/doc-build-pdf.yml index 6e6e8776062..4ca81e34f6a 100644 --- a/.github/workflows/doc-build-pdf.yml +++ b/.github/workflows/doc-build-pdf.yml @@ -87,8 +87,8 @@ jobs: ./bootstrap && make build working-directory: ./worktree-image env: - MAKE: make -j2 --output-sync=recurse - SAGE_NUM_THREADS: 2 + MAKE: make -j4 --output-sync=recurse + SAGE_NUM_THREADS: 4 - name: Build (fallback to non-incremental) id: build @@ -98,8 +98,8 @@ jobs: make sagelib-clean && git clean -fx src/sage && ./config.status && make build working-directory: ./worktree-image env: - MAKE: make -j2 --output-sync=recurse - SAGE_NUM_THREADS: 2 + MAKE: make -j4 --output-sync=recurse + SAGE_NUM_THREADS: 4 - name: Build docs (PDF) id: docbuild @@ -108,8 +108,8 @@ jobs: make doc-clean doc-uninstall; make sagemath_doc_html-build-deps sagemath_doc_pdf-no-deps working-directory: ./worktree-image env: - MAKE: make -j2 --output-sync=recurse - SAGE_NUM_THREADS: 2 + MAKE: make -j4 --output-sync=recurse + SAGE_NUM_THREADS: 4 - name: Copy docs id: copy diff --git a/.github/workflows/doc-build.yml b/.github/workflows/doc-build.yml index 21e19e3859a..24c51cbd6b6 100644 --- a/.github/workflows/doc-build.yml +++ b/.github/workflows/doc-build.yml @@ -95,8 +95,8 @@ jobs: ./bootstrap && make sagemath_doc_html-build-deps working-directory: ./worktree-image env: - MAKE: make -j2 --output-sync=recurse - SAGE_NUM_THREADS: 2 + MAKE: make -j4 --output-sync=recurse + SAGE_NUM_THREADS: 4 - name: Build (fallback to non-incremental) id: build @@ -106,8 +106,8 @@ jobs: make sagelib-clean && git clean -fx src/sage && ./config.status && make sagemath_doc_html-build-deps working-directory: ./worktree-image env: - MAKE: make -j2 --output-sync=recurse - SAGE_NUM_THREADS: 2 + MAKE: make -j4 --output-sync=recurse + SAGE_NUM_THREADS: 4 - name: Build docs id: docbuild @@ -124,8 +124,8 @@ jobs: ./config.status && make sagemath_doc_html-no-deps working-directory: ./worktree-image env: - MAKE: make -j2 --output-sync=recurse - SAGE_NUM_THREADS: 2 + MAKE: make -j4 --output-sync=recurse + SAGE_NUM_THREADS: 4 - name: Copy docs id: copy @@ -169,8 +169,8 @@ jobs: ./config.status && make sagemath_doc_html-no-deps sagemath_doc_pdf-no-deps working-directory: ./worktree-image env: - MAKE: make -j2 --output-sync=recurse - SAGE_NUM_THREADS: 2 + MAKE: make -j4 --output-sync=recurse + SAGE_NUM_THREADS: 4 - name: Copy live doc id: copylivedoc From 54615a87d3a786cb19f4f8eac9508d27d0fae8dd Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Wed, 14 Feb 2024 23:15:51 -0800 Subject: [PATCH 083/140] tox.ini (ubuntu-noble): Set IGNORE_MISSING_SYSTEM_PACKAGES=yes --- tox.ini | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tox.ini b/tox.ini index def724fdf24..941df137195 100644 --- a/tox.ini +++ b/tox.ini @@ -207,6 +207,7 @@ setenv = # https://hub.docker.com/_/ubuntu?tab=description # as of 2024-02, latest=jammy=22.04, rolling=mantic=23.10, devel=noble=24.04 # ubuntu-focal does not have libgap-dev + # ubuntu-noble does not have libbrial-dev # ubuntu: SYSTEM=debian ubuntu: BASE_IMAGE=ubuntu @@ -227,6 +228,7 @@ setenv = ubuntu-lunar: BASE_TAG=lunar ubuntu-mantic: BASE_TAG=mantic ubuntu-noble: BASE_TAG=noble + ubuntu-noble: IGNORE_MISSING_SYSTEM_PACKAGES=yes # # https://hub.docker.com/_/debian # debian-buster does not have libfreetype-dev (it only has libfreetype6-dev) From 10b3238c2a75ab2d55659cb950ff4c630158c6d7 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Mon, 1 Apr 2024 00:25:56 -0700 Subject: [PATCH 084/140] tox.ini: Remove ubuntu-trusty (EOL 2024-04), opensuse-{15.3,15.4} (past EOL) --- .../devcontainer.json | 25 --- .../portability-Dockerfile | 1 - .../devcontainer.json | 25 --- .../portability-Dockerfile | 1 - .../devcontainer.json | 25 --- .../portability-Dockerfile | 1 - .../devcontainer.json | 25 --- .../portability-Dockerfile | 1 - .../devcontainer.json | 25 --- .../portability-Dockerfile | 1 - .../devcontainer.json | 25 --- .../portability-Dockerfile | 1 - .github/workflows/docker.yml | 3 - .../developer/portability_platform_table.rst | 195 ------------------ tox.ini | 4 +- 15 files changed, 2 insertions(+), 356 deletions(-) delete mode 100644 .devcontainer/portability-opensuse-15.3-gcc_11-python3.9-minimal/devcontainer.json delete mode 120000 .devcontainer/portability-opensuse-15.3-gcc_11-python3.9-minimal/portability-Dockerfile delete mode 100644 .devcontainer/portability-opensuse-15.3-gcc_11-python3.9-standard/devcontainer.json delete mode 120000 .devcontainer/portability-opensuse-15.3-gcc_11-python3.9-standard/portability-Dockerfile delete mode 100644 .devcontainer/portability-opensuse-15.4-gcc_11-python3.10-minimal/devcontainer.json delete mode 120000 .devcontainer/portability-opensuse-15.4-gcc_11-python3.10-minimal/portability-Dockerfile delete mode 100644 .devcontainer/portability-opensuse-15.4-gcc_11-python3.10-standard/devcontainer.json delete mode 120000 .devcontainer/portability-opensuse-15.4-gcc_11-python3.10-standard/portability-Dockerfile delete mode 100644 .devcontainer/portability-ubuntu-trusty-toolchain-gcc_9-minimal/devcontainer.json delete mode 120000 .devcontainer/portability-ubuntu-trusty-toolchain-gcc_9-minimal/portability-Dockerfile delete mode 100644 .devcontainer/portability-ubuntu-trusty-toolchain-gcc_9-standard/devcontainer.json delete mode 120000 .devcontainer/portability-ubuntu-trusty-toolchain-gcc_9-standard/portability-Dockerfile diff --git a/.devcontainer/portability-opensuse-15.3-gcc_11-python3.9-minimal/devcontainer.json b/.devcontainer/portability-opensuse-15.3-gcc_11-python3.9-minimal/devcontainer.json deleted file mode 100644 index f00b6b66a91..00000000000 --- a/.devcontainer/portability-opensuse-15.3-gcc_11-python3.9-minimal/devcontainer.json +++ /dev/null @@ -1,25 +0,0 @@ -// The command "tox -e update_docker_platforms" -// creates .devcontainer/portability-*-*/devcontainer.json -// from .devcontainer/portability-devcontainer.json.in -// See https://aka.ms/devcontainer.json for format details. -{ - "name": "opensuse-15.3-gcc_11-python3.9-minimal (≥ 8-core)", - "build": { - "dockerfile": "portability-Dockerfile", - // See tox.ini for definitions - "args": { - "SYSTEM_FACTOR": "opensuse-15.3-gcc_11-python3.9", - "PACKAGE_FACTOR": "minimal", - "DOCKER_TARGET": "with-targets", - "DOCKER_TAG": "dev" - } - }, - "containerEnv": { - "MAKE": "make -j4" - }, - "onCreateCommand": ".devcontainer/onCreate.sh", - "updateContentCommand": ".devcontainer/portability-updateContent.sh", - "extensions": [ - "ms-python.python" - ] -} diff --git a/.devcontainer/portability-opensuse-15.3-gcc_11-python3.9-minimal/portability-Dockerfile b/.devcontainer/portability-opensuse-15.3-gcc_11-python3.9-minimal/portability-Dockerfile deleted file mode 120000 index 692e2a79d64..00000000000 --- a/.devcontainer/portability-opensuse-15.3-gcc_11-python3.9-minimal/portability-Dockerfile +++ /dev/null @@ -1 +0,0 @@ -../portability-Dockerfile \ No newline at end of file diff --git a/.devcontainer/portability-opensuse-15.3-gcc_11-python3.9-standard/devcontainer.json b/.devcontainer/portability-opensuse-15.3-gcc_11-python3.9-standard/devcontainer.json deleted file mode 100644 index 2444967bdad..00000000000 --- a/.devcontainer/portability-opensuse-15.3-gcc_11-python3.9-standard/devcontainer.json +++ /dev/null @@ -1,25 +0,0 @@ -// The command "tox -e update_docker_platforms" -// creates .devcontainer/portability-*-*/devcontainer.json -// from .devcontainer/portability-devcontainer.json.in -// See https://aka.ms/devcontainer.json for format details. -{ - "name": "opensuse-15.3-gcc_11-python3.9-standard (≥ 8-core)", - "build": { - "dockerfile": "portability-Dockerfile", - // See tox.ini for definitions - "args": { - "SYSTEM_FACTOR": "opensuse-15.3-gcc_11-python3.9", - "PACKAGE_FACTOR": "standard", - "DOCKER_TARGET": "with-targets", - "DOCKER_TAG": "dev" - } - }, - "containerEnv": { - "MAKE": "make -j4" - }, - "onCreateCommand": ".devcontainer/onCreate.sh", - "updateContentCommand": ".devcontainer/portability-updateContent.sh", - "extensions": [ - "ms-python.python" - ] -} diff --git a/.devcontainer/portability-opensuse-15.3-gcc_11-python3.9-standard/portability-Dockerfile b/.devcontainer/portability-opensuse-15.3-gcc_11-python3.9-standard/portability-Dockerfile deleted file mode 120000 index 692e2a79d64..00000000000 --- a/.devcontainer/portability-opensuse-15.3-gcc_11-python3.9-standard/portability-Dockerfile +++ /dev/null @@ -1 +0,0 @@ -../portability-Dockerfile \ No newline at end of file diff --git a/.devcontainer/portability-opensuse-15.4-gcc_11-python3.10-minimal/devcontainer.json b/.devcontainer/portability-opensuse-15.4-gcc_11-python3.10-minimal/devcontainer.json deleted file mode 100644 index aa8549b345d..00000000000 --- a/.devcontainer/portability-opensuse-15.4-gcc_11-python3.10-minimal/devcontainer.json +++ /dev/null @@ -1,25 +0,0 @@ -// The command "tox -e update_docker_platforms" -// creates .devcontainer/portability-*-*/devcontainer.json -// from .devcontainer/portability-devcontainer.json.in -// See https://aka.ms/devcontainer.json for format details. -{ - "name": "opensuse-15.4-gcc_11-python3.10-minimal (≥ 8-core)", - "build": { - "dockerfile": "portability-Dockerfile", - // See tox.ini for definitions - "args": { - "SYSTEM_FACTOR": "opensuse-15.4-gcc_11-python3.10", - "PACKAGE_FACTOR": "minimal", - "DOCKER_TARGET": "with-targets", - "DOCKER_TAG": "dev" - } - }, - "containerEnv": { - "MAKE": "make -j4" - }, - "onCreateCommand": ".devcontainer/onCreate.sh", - "updateContentCommand": ".devcontainer/portability-updateContent.sh", - "extensions": [ - "ms-python.python" - ] -} diff --git a/.devcontainer/portability-opensuse-15.4-gcc_11-python3.10-minimal/portability-Dockerfile b/.devcontainer/portability-opensuse-15.4-gcc_11-python3.10-minimal/portability-Dockerfile deleted file mode 120000 index 692e2a79d64..00000000000 --- a/.devcontainer/portability-opensuse-15.4-gcc_11-python3.10-minimal/portability-Dockerfile +++ /dev/null @@ -1 +0,0 @@ -../portability-Dockerfile \ No newline at end of file diff --git a/.devcontainer/portability-opensuse-15.4-gcc_11-python3.10-standard/devcontainer.json b/.devcontainer/portability-opensuse-15.4-gcc_11-python3.10-standard/devcontainer.json deleted file mode 100644 index 5278ae20eac..00000000000 --- a/.devcontainer/portability-opensuse-15.4-gcc_11-python3.10-standard/devcontainer.json +++ /dev/null @@ -1,25 +0,0 @@ -// The command "tox -e update_docker_platforms" -// creates .devcontainer/portability-*-*/devcontainer.json -// from .devcontainer/portability-devcontainer.json.in -// See https://aka.ms/devcontainer.json for format details. -{ - "name": "opensuse-15.4-gcc_11-python3.10-standard (≥ 8-core)", - "build": { - "dockerfile": "portability-Dockerfile", - // See tox.ini for definitions - "args": { - "SYSTEM_FACTOR": "opensuse-15.4-gcc_11-python3.10", - "PACKAGE_FACTOR": "standard", - "DOCKER_TARGET": "with-targets", - "DOCKER_TAG": "dev" - } - }, - "containerEnv": { - "MAKE": "make -j4" - }, - "onCreateCommand": ".devcontainer/onCreate.sh", - "updateContentCommand": ".devcontainer/portability-updateContent.sh", - "extensions": [ - "ms-python.python" - ] -} diff --git a/.devcontainer/portability-opensuse-15.4-gcc_11-python3.10-standard/portability-Dockerfile b/.devcontainer/portability-opensuse-15.4-gcc_11-python3.10-standard/portability-Dockerfile deleted file mode 120000 index 692e2a79d64..00000000000 --- a/.devcontainer/portability-opensuse-15.4-gcc_11-python3.10-standard/portability-Dockerfile +++ /dev/null @@ -1 +0,0 @@ -../portability-Dockerfile \ No newline at end of file diff --git a/.devcontainer/portability-ubuntu-trusty-toolchain-gcc_9-minimal/devcontainer.json b/.devcontainer/portability-ubuntu-trusty-toolchain-gcc_9-minimal/devcontainer.json deleted file mode 100644 index 7a250c6ba02..00000000000 --- a/.devcontainer/portability-ubuntu-trusty-toolchain-gcc_9-minimal/devcontainer.json +++ /dev/null @@ -1,25 +0,0 @@ -// The command "tox -e update_docker_platforms" -// creates .devcontainer/portability-*-*/devcontainer.json -// from .devcontainer/portability-devcontainer.json.in -// See https://aka.ms/devcontainer.json for format details. -{ - "name": "ubuntu-trusty-toolchain-gcc_9-minimal (≥ 8-core)", - "build": { - "dockerfile": "portability-Dockerfile", - // See tox.ini for definitions - "args": { - "SYSTEM_FACTOR": "ubuntu-trusty-toolchain-gcc_9", - "PACKAGE_FACTOR": "minimal", - "DOCKER_TARGET": "with-targets", - "DOCKER_TAG": "dev" - } - }, - "containerEnv": { - "MAKE": "make -j4" - }, - "onCreateCommand": ".devcontainer/onCreate.sh", - "updateContentCommand": ".devcontainer/portability-updateContent.sh", - "extensions": [ - "ms-python.python" - ] -} diff --git a/.devcontainer/portability-ubuntu-trusty-toolchain-gcc_9-minimal/portability-Dockerfile b/.devcontainer/portability-ubuntu-trusty-toolchain-gcc_9-minimal/portability-Dockerfile deleted file mode 120000 index 692e2a79d64..00000000000 --- a/.devcontainer/portability-ubuntu-trusty-toolchain-gcc_9-minimal/portability-Dockerfile +++ /dev/null @@ -1 +0,0 @@ -../portability-Dockerfile \ No newline at end of file diff --git a/.devcontainer/portability-ubuntu-trusty-toolchain-gcc_9-standard/devcontainer.json b/.devcontainer/portability-ubuntu-trusty-toolchain-gcc_9-standard/devcontainer.json deleted file mode 100644 index 41d1582c950..00000000000 --- a/.devcontainer/portability-ubuntu-trusty-toolchain-gcc_9-standard/devcontainer.json +++ /dev/null @@ -1,25 +0,0 @@ -// The command "tox -e update_docker_platforms" -// creates .devcontainer/portability-*-*/devcontainer.json -// from .devcontainer/portability-devcontainer.json.in -// See https://aka.ms/devcontainer.json for format details. -{ - "name": "ubuntu-trusty-toolchain-gcc_9-standard (≥ 8-core)", - "build": { - "dockerfile": "portability-Dockerfile", - // See tox.ini for definitions - "args": { - "SYSTEM_FACTOR": "ubuntu-trusty-toolchain-gcc_9", - "PACKAGE_FACTOR": "standard", - "DOCKER_TARGET": "with-targets", - "DOCKER_TAG": "dev" - } - }, - "containerEnv": { - "MAKE": "make -j4" - }, - "onCreateCommand": ".devcontainer/onCreate.sh", - "updateContentCommand": ".devcontainer/portability-updateContent.sh", - "extensions": [ - "ms-python.python" - ] -} diff --git a/.devcontainer/portability-ubuntu-trusty-toolchain-gcc_9-standard/portability-Dockerfile b/.devcontainer/portability-ubuntu-trusty-toolchain-gcc_9-standard/portability-Dockerfile deleted file mode 120000 index 692e2a79d64..00000000000 --- a/.devcontainer/portability-ubuntu-trusty-toolchain-gcc_9-standard/portability-Dockerfile +++ /dev/null @@ -1 +0,0 @@ -../portability-Dockerfile \ No newline at end of file diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 970aafd433c..ccc2b07a02f 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -18,7 +18,6 @@ on: # 'tox -e update_docker_platforms' updates below default: >- [ - "ubuntu-trusty-toolchain-gcc_9", "ubuntu-xenial-toolchain-gcc_9", "ubuntu-bionic-gcc_8", "ubuntu-focal", @@ -58,8 +57,6 @@ on: "gentoo-python3.11", "gentoo-python3.12", "archlinux-latest", - "opensuse-15.3-gcc_11-python3.9", - "opensuse-15.4-gcc_11-python3.10", "opensuse-15.5-gcc_11-python3.11", "opensuse-tumbleweed-python3.10", "opensuse-tumbleweed", diff --git a/src/doc/en/developer/portability_platform_table.rst b/src/doc/en/developer/portability_platform_table.rst index 7b173a1959c..bf843b0a353 100644 --- a/src/doc/en/developer/portability_platform_table.rst +++ b/src/doc/en/developer/portability_platform_table.rst @@ -1,57 +1,3 @@ -.. |image-ubuntu-trusty-toolchain-gcc_9-minimal-with-system-packages| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-ubuntu-trusty-toolchain-gcc_9-minimal-with-system-packages/size?tag=dev&label=with-system-packages&color=%23696969 - :target: https://ghcr.io/sagemath/sage/sage-ubuntu-trusty-toolchain-gcc_9-minimal-with-system-packages - -.. |image-ubuntu-trusty-toolchain-gcc_9-minimal-configured| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-ubuntu-trusty-toolchain-gcc_9-minimal-configured/latest_tag?ignore=latest,dev,*-failed&label=configured&color=%23696969 - :target: https://ghcr.io/sagemath/sage/sage-ubuntu-trusty-toolchain-gcc_9-minimal-configured - -.. |image-ubuntu-trusty-toolchain-gcc_9-minimal-with-targets-pre| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-ubuntu-trusty-toolchain-gcc_9-minimal-with-targets-pre/latest_tag?ignore=latest,dev,*-failed&label=with-targets-pre&color=%23677895 - :target: https://ghcr.io/sagemath/sage/sage-ubuntu-trusty-toolchain-gcc_9-minimal-with-targets-pre - -.. |image-ubuntu-trusty-toolchain-gcc_9-minimal-with-targets| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-ubuntu-trusty-toolchain-gcc_9-minimal-with-targets/latest_tag?ignore=latest,dev,*-failed&label=with-targets&color=%236686c1 - :target: https://ghcr.io/sagemath/sage/sage-ubuntu-trusty-toolchain-gcc_9-minimal-with-targets - -.. |image-ubuntu-trusty-toolchain-gcc_9-minimal-with-targets-optional| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-ubuntu-trusty-toolchain-gcc_9-minimal-with-targets-optional/latest_tag?ignore=latest,dev,*-failed&label=with-targets-optional&color=%236495ed - :target: https://ghcr.io/sagemath/sage/sage-ubuntu-trusty-toolchain-gcc_9-minimal-with-targets-optional - -.. |codespace-ubuntu-trusty-toolchain-gcc_9-minimal| image:: https://github.com/codespaces/badge.svg - :target: https://codespaces.new/sagemath/sage?devcontainer_path=.devcontainer%2Fportability-ubuntu-trusty-toolchain-gcc_9-minimal%2Fdevcontainer.json - -.. |image-ubuntu-trusty-toolchain-gcc_9-standard-with-system-packages| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-ubuntu-trusty-toolchain-gcc_9-standard-with-system-packages/size?tag=dev&label=with-system-packages&color=%23696969 - :target: https://ghcr.io/sagemath/sage/sage-ubuntu-trusty-toolchain-gcc_9-standard-with-system-packages - -.. |image-ubuntu-trusty-toolchain-gcc_9-standard-configured| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-ubuntu-trusty-toolchain-gcc_9-standard-configured/latest_tag?ignore=latest,dev,*-failed&label=configured&color=%23696969 - :target: https://ghcr.io/sagemath/sage/sage-ubuntu-trusty-toolchain-gcc_9-standard-configured - -.. |image-ubuntu-trusty-toolchain-gcc_9-standard-with-targets-pre| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-ubuntu-trusty-toolchain-gcc_9-standard-with-targets-pre/latest_tag?ignore=latest,dev,*-failed&label=with-targets-pre&color=%235d8a4c - :target: https://ghcr.io/sagemath/sage/sage-ubuntu-trusty-toolchain-gcc_9-standard-with-targets-pre - -.. |image-ubuntu-trusty-toolchain-gcc_9-standard-with-targets| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-ubuntu-trusty-toolchain-gcc_9-standard-with-targets/latest_tag?ignore=latest,dev,*-failed&label=with-targets&color=%2350ab2e - :target: https://ghcr.io/sagemath/sage/sage-ubuntu-trusty-toolchain-gcc_9-standard-with-targets - -.. |image-ubuntu-trusty-toolchain-gcc_9-standard-with-targets-optional| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-ubuntu-trusty-toolchain-gcc_9-standard-with-targets-optional/latest_tag?ignore=latest,dev,*-failed&label=with-targets-optional&color=%2344cc11 - :target: https://ghcr.io/sagemath/sage/sage-ubuntu-trusty-toolchain-gcc_9-standard-with-targets-optional - -.. |codespace-ubuntu-trusty-toolchain-gcc_9-standard| image:: https://github.com/codespaces/badge.svg - :target: https://codespaces.new/sagemath/sage?devcontainer_path=.devcontainer%2Fportability-ubuntu-trusty-toolchain-gcc_9-standard%2Fdevcontainer.json - -.. |image-ubuntu-trusty-toolchain-gcc_9-maximal-with-system-packages| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-ubuntu-trusty-toolchain-gcc_9-maximal-with-system-packages/size?tag=dev&label=with-system-packages&color=%23696969 - :target: https://ghcr.io/sagemath/sage/sage-ubuntu-trusty-toolchain-gcc_9-maximal-with-system-packages - -.. |image-ubuntu-trusty-toolchain-gcc_9-maximal-configured| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-ubuntu-trusty-toolchain-gcc_9-maximal-configured/latest_tag?ignore=latest,dev,*-failed&label=configured&color=%23696969 - :target: https://ghcr.io/sagemath/sage/sage-ubuntu-trusty-toolchain-gcc_9-maximal-configured - -.. |image-ubuntu-trusty-toolchain-gcc_9-maximal-with-targets-pre| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-ubuntu-trusty-toolchain-gcc_9-maximal-with-targets-pre/latest_tag?ignore=latest,dev,*-failed&label=with-targets-pre&color=%238f6b8d - :target: https://ghcr.io/sagemath/sage/sage-ubuntu-trusty-toolchain-gcc_9-maximal-with-targets-pre - -.. |image-ubuntu-trusty-toolchain-gcc_9-maximal-with-targets| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-ubuntu-trusty-toolchain-gcc_9-maximal-with-targets/latest_tag?ignore=latest,dev,*-failed&label=with-targets&color=%23b46eb2 - :target: https://ghcr.io/sagemath/sage/sage-ubuntu-trusty-toolchain-gcc_9-maximal-with-targets - -.. |image-ubuntu-trusty-toolchain-gcc_9-maximal-with-targets-optional| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-ubuntu-trusty-toolchain-gcc_9-maximal-with-targets-optional/latest_tag?ignore=latest,dev,*-failed&label=with-targets-optional&color=%23da70d6 - :target: https://ghcr.io/sagemath/sage/sage-ubuntu-trusty-toolchain-gcc_9-maximal-with-targets-optional - -.. |codespace-ubuntu-trusty-toolchain-gcc_9-maximal| image:: https://github.com/codespaces/badge.svg - :target: https://codespaces.new/sagemath/sage?devcontainer_path=.devcontainer%2Fportability-ubuntu-trusty-toolchain-gcc_9-maximal%2Fdevcontainer.json - .. |image-ubuntu-xenial-toolchain-gcc_9-minimal-with-system-packages| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-ubuntu-xenial-toolchain-gcc_9-minimal-with-system-packages/size?tag=dev&label=with-system-packages&color=%23696969 :target: https://ghcr.io/sagemath/sage/sage-ubuntu-xenial-toolchain-gcc_9-minimal-with-system-packages @@ -2158,114 +2104,6 @@ .. |codespace-archlinux-latest-maximal| image:: https://github.com/codespaces/badge.svg :target: https://codespaces.new/sagemath/sage?devcontainer_path=.devcontainer%2Fportability-archlinux-latest-maximal%2Fdevcontainer.json -.. |image-opensuse-15.3-gcc_11-python3.9-minimal-with-system-packages| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-opensuse-15.3-gcc_11-python3.9-minimal-with-system-packages/size?tag=dev&label=with-system-packages&color=%23696969 - :target: https://ghcr.io/sagemath/sage/sage-opensuse-15.3-gcc_11-python3.9-minimal-with-system-packages - -.. |image-opensuse-15.3-gcc_11-python3.9-minimal-configured| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-opensuse-15.3-gcc_11-python3.9-minimal-configured/latest_tag?ignore=latest,dev,*-failed&label=configured&color=%23696969 - :target: https://ghcr.io/sagemath/sage/sage-opensuse-15.3-gcc_11-python3.9-minimal-configured - -.. |image-opensuse-15.3-gcc_11-python3.9-minimal-with-targets-pre| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-opensuse-15.3-gcc_11-python3.9-minimal-with-targets-pre/latest_tag?ignore=latest,dev,*-failed&label=with-targets-pre&color=%23677895 - :target: https://ghcr.io/sagemath/sage/sage-opensuse-15.3-gcc_11-python3.9-minimal-with-targets-pre - -.. |image-opensuse-15.3-gcc_11-python3.9-minimal-with-targets| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-opensuse-15.3-gcc_11-python3.9-minimal-with-targets/latest_tag?ignore=latest,dev,*-failed&label=with-targets&color=%236686c1 - :target: https://ghcr.io/sagemath/sage/sage-opensuse-15.3-gcc_11-python3.9-minimal-with-targets - -.. |image-opensuse-15.3-gcc_11-python3.9-minimal-with-targets-optional| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-opensuse-15.3-gcc_11-python3.9-minimal-with-targets-optional/latest_tag?ignore=latest,dev,*-failed&label=with-targets-optional&color=%236495ed - :target: https://ghcr.io/sagemath/sage/sage-opensuse-15.3-gcc_11-python3.9-minimal-with-targets-optional - -.. |codespace-opensuse-15.3-gcc_11-python3.9-minimal| image:: https://github.com/codespaces/badge.svg - :target: https://codespaces.new/sagemath/sage?devcontainer_path=.devcontainer%2Fportability-opensuse-15.3-gcc_11-python3.9-minimal%2Fdevcontainer.json - -.. |image-opensuse-15.3-gcc_11-python3.9-standard-with-system-packages| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-opensuse-15.3-gcc_11-python3.9-standard-with-system-packages/size?tag=dev&label=with-system-packages&color=%23696969 - :target: https://ghcr.io/sagemath/sage/sage-opensuse-15.3-gcc_11-python3.9-standard-with-system-packages - -.. |image-opensuse-15.3-gcc_11-python3.9-standard-configured| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-opensuse-15.3-gcc_11-python3.9-standard-configured/latest_tag?ignore=latest,dev,*-failed&label=configured&color=%23696969 - :target: https://ghcr.io/sagemath/sage/sage-opensuse-15.3-gcc_11-python3.9-standard-configured - -.. |image-opensuse-15.3-gcc_11-python3.9-standard-with-targets-pre| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-opensuse-15.3-gcc_11-python3.9-standard-with-targets-pre/latest_tag?ignore=latest,dev,*-failed&label=with-targets-pre&color=%235d8a4c - :target: https://ghcr.io/sagemath/sage/sage-opensuse-15.3-gcc_11-python3.9-standard-with-targets-pre - -.. |image-opensuse-15.3-gcc_11-python3.9-standard-with-targets| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-opensuse-15.3-gcc_11-python3.9-standard-with-targets/latest_tag?ignore=latest,dev,*-failed&label=with-targets&color=%2350ab2e - :target: https://ghcr.io/sagemath/sage/sage-opensuse-15.3-gcc_11-python3.9-standard-with-targets - -.. |image-opensuse-15.3-gcc_11-python3.9-standard-with-targets-optional| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-opensuse-15.3-gcc_11-python3.9-standard-with-targets-optional/latest_tag?ignore=latest,dev,*-failed&label=with-targets-optional&color=%2344cc11 - :target: https://ghcr.io/sagemath/sage/sage-opensuse-15.3-gcc_11-python3.9-standard-with-targets-optional - -.. |codespace-opensuse-15.3-gcc_11-python3.9-standard| image:: https://github.com/codespaces/badge.svg - :target: https://codespaces.new/sagemath/sage?devcontainer_path=.devcontainer%2Fportability-opensuse-15.3-gcc_11-python3.9-standard%2Fdevcontainer.json - -.. |image-opensuse-15.3-gcc_11-python3.9-maximal-with-system-packages| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-opensuse-15.3-gcc_11-python3.9-maximal-with-system-packages/size?tag=dev&label=with-system-packages&color=%23696969 - :target: https://ghcr.io/sagemath/sage/sage-opensuse-15.3-gcc_11-python3.9-maximal-with-system-packages - -.. |image-opensuse-15.3-gcc_11-python3.9-maximal-configured| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-opensuse-15.3-gcc_11-python3.9-maximal-configured/latest_tag?ignore=latest,dev,*-failed&label=configured&color=%23696969 - :target: https://ghcr.io/sagemath/sage/sage-opensuse-15.3-gcc_11-python3.9-maximal-configured - -.. |image-opensuse-15.3-gcc_11-python3.9-maximal-with-targets-pre| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-opensuse-15.3-gcc_11-python3.9-maximal-with-targets-pre/latest_tag?ignore=latest,dev,*-failed&label=with-targets-pre&color=%238f6b8d - :target: https://ghcr.io/sagemath/sage/sage-opensuse-15.3-gcc_11-python3.9-maximal-with-targets-pre - -.. |image-opensuse-15.3-gcc_11-python3.9-maximal-with-targets| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-opensuse-15.3-gcc_11-python3.9-maximal-with-targets/latest_tag?ignore=latest,dev,*-failed&label=with-targets&color=%23b46eb2 - :target: https://ghcr.io/sagemath/sage/sage-opensuse-15.3-gcc_11-python3.9-maximal-with-targets - -.. |image-opensuse-15.3-gcc_11-python3.9-maximal-with-targets-optional| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-opensuse-15.3-gcc_11-python3.9-maximal-with-targets-optional/latest_tag?ignore=latest,dev,*-failed&label=with-targets-optional&color=%23da70d6 - :target: https://ghcr.io/sagemath/sage/sage-opensuse-15.3-gcc_11-python3.9-maximal-with-targets-optional - -.. |codespace-opensuse-15.3-gcc_11-python3.9-maximal| image:: https://github.com/codespaces/badge.svg - :target: https://codespaces.new/sagemath/sage?devcontainer_path=.devcontainer%2Fportability-opensuse-15.3-gcc_11-python3.9-maximal%2Fdevcontainer.json - -.. |image-opensuse-15.4-gcc_11-python3.10-minimal-with-system-packages| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-opensuse-15.4-gcc_11-python3.10-minimal-with-system-packages/size?tag=dev&label=with-system-packages&color=%23696969 - :target: https://ghcr.io/sagemath/sage/sage-opensuse-15.4-gcc_11-python3.10-minimal-with-system-packages - -.. |image-opensuse-15.4-gcc_11-python3.10-minimal-configured| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-opensuse-15.4-gcc_11-python3.10-minimal-configured/latest_tag?ignore=latest,dev,*-failed&label=configured&color=%23696969 - :target: https://ghcr.io/sagemath/sage/sage-opensuse-15.4-gcc_11-python3.10-minimal-configured - -.. |image-opensuse-15.4-gcc_11-python3.10-minimal-with-targets-pre| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-opensuse-15.4-gcc_11-python3.10-minimal-with-targets-pre/latest_tag?ignore=latest,dev,*-failed&label=with-targets-pre&color=%23677895 - :target: https://ghcr.io/sagemath/sage/sage-opensuse-15.4-gcc_11-python3.10-minimal-with-targets-pre - -.. |image-opensuse-15.4-gcc_11-python3.10-minimal-with-targets| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-opensuse-15.4-gcc_11-python3.10-minimal-with-targets/latest_tag?ignore=latest,dev,*-failed&label=with-targets&color=%236686c1 - :target: https://ghcr.io/sagemath/sage/sage-opensuse-15.4-gcc_11-python3.10-minimal-with-targets - -.. |image-opensuse-15.4-gcc_11-python3.10-minimal-with-targets-optional| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-opensuse-15.4-gcc_11-python3.10-minimal-with-targets-optional/latest_tag?ignore=latest,dev,*-failed&label=with-targets-optional&color=%236495ed - :target: https://ghcr.io/sagemath/sage/sage-opensuse-15.4-gcc_11-python3.10-minimal-with-targets-optional - -.. |codespace-opensuse-15.4-gcc_11-python3.10-minimal| image:: https://github.com/codespaces/badge.svg - :target: https://codespaces.new/sagemath/sage?devcontainer_path=.devcontainer%2Fportability-opensuse-15.4-gcc_11-python3.10-minimal%2Fdevcontainer.json - -.. |image-opensuse-15.4-gcc_11-python3.10-standard-with-system-packages| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-opensuse-15.4-gcc_11-python3.10-standard-with-system-packages/size?tag=dev&label=with-system-packages&color=%23696969 - :target: https://ghcr.io/sagemath/sage/sage-opensuse-15.4-gcc_11-python3.10-standard-with-system-packages - -.. |image-opensuse-15.4-gcc_11-python3.10-standard-configured| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-opensuse-15.4-gcc_11-python3.10-standard-configured/latest_tag?ignore=latest,dev,*-failed&label=configured&color=%23696969 - :target: https://ghcr.io/sagemath/sage/sage-opensuse-15.4-gcc_11-python3.10-standard-configured - -.. |image-opensuse-15.4-gcc_11-python3.10-standard-with-targets-pre| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-opensuse-15.4-gcc_11-python3.10-standard-with-targets-pre/latest_tag?ignore=latest,dev,*-failed&label=with-targets-pre&color=%235d8a4c - :target: https://ghcr.io/sagemath/sage/sage-opensuse-15.4-gcc_11-python3.10-standard-with-targets-pre - -.. |image-opensuse-15.4-gcc_11-python3.10-standard-with-targets| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-opensuse-15.4-gcc_11-python3.10-standard-with-targets/latest_tag?ignore=latest,dev,*-failed&label=with-targets&color=%2350ab2e - :target: https://ghcr.io/sagemath/sage/sage-opensuse-15.4-gcc_11-python3.10-standard-with-targets - -.. |image-opensuse-15.4-gcc_11-python3.10-standard-with-targets-optional| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-opensuse-15.4-gcc_11-python3.10-standard-with-targets-optional/latest_tag?ignore=latest,dev,*-failed&label=with-targets-optional&color=%2344cc11 - :target: https://ghcr.io/sagemath/sage/sage-opensuse-15.4-gcc_11-python3.10-standard-with-targets-optional - -.. |codespace-opensuse-15.4-gcc_11-python3.10-standard| image:: https://github.com/codespaces/badge.svg - :target: https://codespaces.new/sagemath/sage?devcontainer_path=.devcontainer%2Fportability-opensuse-15.4-gcc_11-python3.10-standard%2Fdevcontainer.json - -.. |image-opensuse-15.4-gcc_11-python3.10-maximal-with-system-packages| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-opensuse-15.4-gcc_11-python3.10-maximal-with-system-packages/size?tag=dev&label=with-system-packages&color=%23696969 - :target: https://ghcr.io/sagemath/sage/sage-opensuse-15.4-gcc_11-python3.10-maximal-with-system-packages - -.. |image-opensuse-15.4-gcc_11-python3.10-maximal-configured| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-opensuse-15.4-gcc_11-python3.10-maximal-configured/latest_tag?ignore=latest,dev,*-failed&label=configured&color=%23696969 - :target: https://ghcr.io/sagemath/sage/sage-opensuse-15.4-gcc_11-python3.10-maximal-configured - -.. |image-opensuse-15.4-gcc_11-python3.10-maximal-with-targets-pre| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-opensuse-15.4-gcc_11-python3.10-maximal-with-targets-pre/latest_tag?ignore=latest,dev,*-failed&label=with-targets-pre&color=%238f6b8d - :target: https://ghcr.io/sagemath/sage/sage-opensuse-15.4-gcc_11-python3.10-maximal-with-targets-pre - -.. |image-opensuse-15.4-gcc_11-python3.10-maximal-with-targets| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-opensuse-15.4-gcc_11-python3.10-maximal-with-targets/latest_tag?ignore=latest,dev,*-failed&label=with-targets&color=%23b46eb2 - :target: https://ghcr.io/sagemath/sage/sage-opensuse-15.4-gcc_11-python3.10-maximal-with-targets - -.. |image-opensuse-15.4-gcc_11-python3.10-maximal-with-targets-optional| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-opensuse-15.4-gcc_11-python3.10-maximal-with-targets-optional/latest_tag?ignore=latest,dev,*-failed&label=with-targets-optional&color=%23da70d6 - :target: https://ghcr.io/sagemath/sage/sage-opensuse-15.4-gcc_11-python3.10-maximal-with-targets-optional - -.. |codespace-opensuse-15.4-gcc_11-python3.10-maximal| image:: https://github.com/codespaces/badge.svg - :target: https://codespaces.new/sagemath/sage?devcontainer_path=.devcontainer%2Fportability-opensuse-15.4-gcc_11-python3.10-maximal%2Fdevcontainer.json - .. |image-opensuse-15.5-gcc_11-python3.11-minimal-with-system-packages| image:: https://ghcr-badge.egpl.dev/sagemath/sage/sage-opensuse-15.5-gcc_11-python3.11-minimal-with-system-packages/size?tag=dev&label=with-system-packages&color=%23696969 :target: https://ghcr.io/sagemath/sage/sage-opensuse-15.5-gcc_11-python3.11-minimal-with-system-packages @@ -2598,17 +2436,6 @@ * - Platform - Images - - * - **ubuntu**-trusty-toolchain-gcc_9 - -    ‑*minimal* - - |image-ubuntu-trusty-toolchain-gcc_9-minimal-with-system-packages| |image-ubuntu-trusty-toolchain-gcc_9-minimal-with-targets-pre| |image-ubuntu-trusty-toolchain-gcc_9-minimal-with-targets| |image-ubuntu-trusty-toolchain-gcc_9-minimal-with-targets-optional| - - |codespace-ubuntu-trusty-toolchain-gcc_9-minimal| - * -    ‑*standard* - - |image-ubuntu-trusty-toolchain-gcc_9-standard-with-system-packages| |image-ubuntu-trusty-toolchain-gcc_9-standard-with-targets-pre| |image-ubuntu-trusty-toolchain-gcc_9-standard-with-targets| |image-ubuntu-trusty-toolchain-gcc_9-standard-with-targets-optional| - - |codespace-ubuntu-trusty-toolchain-gcc_9-standard| - * -    ‑*maximal* - - |image-ubuntu-trusty-toolchain-gcc_9-maximal-with-system-packages| |image-ubuntu-trusty-toolchain-gcc_9-maximal-with-targets-pre| - - * - **ubuntu**-xenial-toolchain-gcc_9    ‑*minimal* @@ -3038,28 +2865,6 @@ * -    ‑*maximal* - |image-archlinux-latest-maximal-with-system-packages| |image-archlinux-latest-maximal-with-targets-pre| - - * - **opensuse**-15.3-gcc_11-python3.9 - -    ‑*minimal* - - |image-opensuse-15.3-gcc_11-python3.9-minimal-with-system-packages| |image-opensuse-15.3-gcc_11-python3.9-minimal-with-targets-pre| |image-opensuse-15.3-gcc_11-python3.9-minimal-with-targets| |image-opensuse-15.3-gcc_11-python3.9-minimal-with-targets-optional| - - |codespace-opensuse-15.3-gcc_11-python3.9-minimal| - * -    ‑*standard* - - |image-opensuse-15.3-gcc_11-python3.9-standard-with-system-packages| |image-opensuse-15.3-gcc_11-python3.9-standard-with-targets-pre| |image-opensuse-15.3-gcc_11-python3.9-standard-with-targets| |image-opensuse-15.3-gcc_11-python3.9-standard-with-targets-optional| - - |codespace-opensuse-15.3-gcc_11-python3.9-standard| - * -    ‑*maximal* - - |image-opensuse-15.3-gcc_11-python3.9-maximal-with-system-packages| |image-opensuse-15.3-gcc_11-python3.9-maximal-with-targets-pre| - - - * - **opensuse**-15.4-gcc_11-python3.10 - -    ‑*minimal* - - |image-opensuse-15.4-gcc_11-python3.10-minimal-with-system-packages| |image-opensuse-15.4-gcc_11-python3.10-minimal-with-targets-pre| |image-opensuse-15.4-gcc_11-python3.10-minimal-with-targets| |image-opensuse-15.4-gcc_11-python3.10-minimal-with-targets-optional| - - |codespace-opensuse-15.4-gcc_11-python3.10-minimal| - * -    ‑*standard* - - |image-opensuse-15.4-gcc_11-python3.10-standard-with-system-packages| |image-opensuse-15.4-gcc_11-python3.10-standard-with-targets-pre| |image-opensuse-15.4-gcc_11-python3.10-standard-with-targets| |image-opensuse-15.4-gcc_11-python3.10-standard-with-targets-optional| - - |codespace-opensuse-15.4-gcc_11-python3.10-standard| - * -    ‑*maximal* - - |image-opensuse-15.4-gcc_11-python3.10-maximal-with-system-packages| |image-opensuse-15.4-gcc_11-python3.10-maximal-with-targets-pre| - - * - **opensuse**-15.5-gcc_11-python3.11    ‑*minimal* diff --git a/tox.ini b/tox.ini index 941df137195..71a38cfec82 100644 --- a/tox.ini +++ b/tox.ini @@ -852,7 +852,7 @@ setenv = # Master list of platforms tested in CI Linux # DEFAULT_SYSTEM_FACTORS=\ - ubuntu-{trusty-toolchain-gcc_9,xenial-toolchain-gcc_9,bionic-gcc_8,focal,jammy,lunar,mantic,noble} \ + ubuntu-{xenial-toolchain-gcc_9,bionic-gcc_8,focal,jammy,lunar,mantic,noble} \ debian-{buster-gcc_spkg,bullseye,bookworm,trixie,sid} \ linuxmint-{20.1,20.2,20.3,21,21.1,21.2,21.3} \ fedora-{30,31,32,33,34,35,36,37,38,39,40} \ @@ -861,7 +861,7 @@ setenv = almalinux-{8-python3.9,9-python3.11} \ gentoo-python{3.10,3.11,3.12} \ archlinux-latest \ - opensuse-{15.3-gcc_11-python3.9,15.4-gcc_11-python3.10,15.5-gcc_11-python3.11} \ + opensuse-15.5-gcc_11-python3.11 \ opensuse-tumbleweed{-python3.10,} \ conda-forge-python3.11 \ ubuntu-bionic-gcc_8-i386 \ From 45d394239ff983f74a25ef293324470ab709a1be Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Mon, 1 Apr 2024 10:26:30 -0700 Subject: [PATCH 085/140] .github/workflows/ci-linux.yml: Reduce systems tested with --enable-system-site-packages --- .github/workflows/ci-linux.yml | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/.github/workflows/ci-linux.yml b/.github/workflows/ci-linux.yml index 7e86f010b42..464e3112386 100644 --- a/.github/workflows/ci-linux.yml +++ b/.github/workflows/ci-linux.yml @@ -111,18 +111,11 @@ jobs: ["ubuntu-jammy", "ubuntu-lunar", "ubuntu-mantic", - "debian-bullseye", "debian-bookworm", "debian-trixie", "debian-sid", - "linuxmint-21", "linuxmint-21.1", "linuxmint-21.2", - "fedora-33", - "fedora-34", - "fedora-35", - "fedora-36", - "fedora-37", "fedora-38", "fedora-39", "centos-stream-8-python3.9", @@ -131,11 +124,9 @@ jobs: "gentoo-python3.10", "gentoo-python3.11", "archlinux-latest", - "opensuse-15.4-gcc_11-python3.10", "opensuse-15.5-gcc_11-python3.11", "opensuse-tumbleweed-python3.10", - "opensuse-tumbleweed", - "debian-bullseye-i386"] + "opensuse-tumbleweed"] docker_push_repository: ghcr.io/${{ github.repository }}/ max_parallel: 8 From 0072e85eb66b64700127179ed67a4701ca2531d1 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Mon, 1 Apr 2024 11:50:24 -0700 Subject: [PATCH 086/140] src/sage/doctest/sources.py: Fix indent --- src/sage/doctest/sources.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sage/doctest/sources.py b/src/sage/doctest/sources.py index a126a8ac288..eff2a853e2b 100644 --- a/src/sage/doctest/sources.py +++ b/src/sage/doctest/sources.py @@ -814,7 +814,7 @@ def _test_enough_doctests(self, check_extras=True, verbose=True): sage: # not tested (because the output will change when source files are changed) sage: from sage.doctest.control import DocTestDefaults sage: from sage.doctest.sources import FileDocTestSource - sage: cwd = os.getcwd() + sage: cwd = os.getcwd() sage: os.chdir(SAGE_SRC) sage: import itertools sage: for path, dirs, files in itertools.chain(os.walk('sage'), os.walk('doc')): From 634b1f29e0008f768d83ab7b7b0d41807c1686be Mon Sep 17 00:00:00 2001 From: Giacomo Pope <44242839+GiacomoPope@users.noreply.github.com> Date: Wed, 3 Apr 2024 11:47:21 +0100 Subject: [PATCH 087/140] Apply suggestions from code review Co-authored-by: grhkm21 <83517584+grhkm21@users.noreply.github.com> --- .../hyperelliptic_curves/hyperelliptic_rational_field.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sage/schemes/hyperelliptic_curves/hyperelliptic_rational_field.py b/src/sage/schemes/hyperelliptic_curves/hyperelliptic_rational_field.py index 60b9423be2b..f0e9fcb47b6 100644 --- a/src/sage/schemes/hyperelliptic_curves/hyperelliptic_rational_field.py +++ b/src/sage/schemes/hyperelliptic_curves/hyperelliptic_rational_field.py @@ -29,7 +29,7 @@ def matrix_of_frobenius(self, p, prec=20): INPUT: - - ``p`` (prime integer or pAdic ring / field ) -- if ``p`` is an integer, + - ``p`` (prime integer or pAdic ring / field) -- if ``p`` is an integer, constructs a ``pAdicField`` with ``p`` to compute the matrix of Frobenius, otherwise uses the supplied pAdic ring or field. From 2249dad97bf664098e71d08426d60b56e032fa8f Mon Sep 17 00:00:00 2001 From: Giacomo Pope <44242839+GiacomoPope@users.noreply.github.com> Date: Wed, 3 Apr 2024 12:08:47 +0100 Subject: [PATCH 088/140] add full stop --- .../hyperelliptic_curves/hyperelliptic_rational_field.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sage/schemes/hyperelliptic_curves/hyperelliptic_rational_field.py b/src/sage/schemes/hyperelliptic_curves/hyperelliptic_rational_field.py index f0e9fcb47b6..1e33f9b67fd 100644 --- a/src/sage/schemes/hyperelliptic_curves/hyperelliptic_rational_field.py +++ b/src/sage/schemes/hyperelliptic_curves/hyperelliptic_rational_field.py @@ -34,7 +34,7 @@ def matrix_of_frobenius(self, p, prec=20): Frobenius, otherwise uses the supplied pAdic ring or field. - ``prec`` (optional) -- if ``p`` is an prime integer, the `p`-adic - precision of the coefficient ring constructed + precision of the coefficient ring constructed. EXAMPLES:: From 26f132ba9d83f88f67fda20841e6f0e3f4a5b8b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20R=C3=BCth?= Date: Wed, 3 Apr 2024 23:54:11 +0300 Subject: [PATCH 089/140] Disable most documentation notifications on GitHub Previously, the documentation comment on GitHub would be removed and then recreated which creates notification emails and to some feels like it's polluting their GitHub inbox. Here, we change this behavior so that only the initial build of the documentation causes such a notification. Further updates to the documentation, do update the links in the comment but do not trigger a notification. This is meant as an alternative to #37387. See #37739 for futher ideas about a smarter behavior here. --- .github/PULL_REQUEST_TEMPLATE.md | 2 +- .github/workflows/doc-publish.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 35bc0b32282..d3bac1a015b 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -15,7 +15,7 @@ - [ ] The description explains in detail what this PR is about. - [ ] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. -- [ ] I have updated the documentation accordingly. +- [ ] I have updated the documentation and checked the generated documentation. ### :hourglass: Dependencies diff --git a/.github/workflows/doc-publish.yml b/.github/workflows/doc-publish.yml index 361dafb22e0..2e30ba0d32a 100644 --- a/.github/workflows/doc-publish.yml +++ b/.github/workflows/doc-publish.yml @@ -70,7 +70,7 @@ jobs: with: number: ${{ steps.source-run-info.outputs.pullRequestNumber }} header: preview-comment - recreate: true + recreate: false message: | [Documentation preview for this PR](${{ steps.deploy-netlify.outputs.NETLIFY_URL }}/html/en) (built with commit ${{ steps.source-run-info.outputs.sourceHeadSha }}; [changes](${{ steps.deploy-netlify.outputs.NETLIFY_URL }}/CHANGES.html)) is ready! :tada: From 0df6684949646c9845865b830077c41939ea77ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20R=C3=BCth?= Date: Thu, 4 Apr 2024 04:45:02 +0300 Subject: [PATCH 090/140] Move comment from PR template to generated post --- .github/PULL_REQUEST_TEMPLATE.md | 2 +- .github/workflows/doc-publish.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index d3bac1a015b..7c9f4e99849 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -15,7 +15,7 @@ - [ ] The description explains in detail what this PR is about. - [ ] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. -- [ ] I have updated the documentation and checked the generated documentation. +- [ ] I have updated the documentation and checked the generated documentation. ### :hourglass: Dependencies diff --git a/.github/workflows/doc-publish.yml b/.github/workflows/doc-publish.yml index 2e30ba0d32a..6cb10900554 100644 --- a/.github/workflows/doc-publish.yml +++ b/.github/workflows/doc-publish.yml @@ -72,7 +72,7 @@ jobs: header: preview-comment recreate: false message: | - [Documentation preview for this PR](${{ steps.deploy-netlify.outputs.NETLIFY_URL }}/html/en) (built with commit ${{ steps.source-run-info.outputs.sourceHeadSha }}; [changes](${{ steps.deploy-netlify.outputs.NETLIFY_URL }}/CHANGES.html)) is ready! :tada: + [Documentation preview for this PR](${{ steps.deploy-netlify.outputs.NETLIFY_URL }}/html/en) (built with commit ${{ steps.source-run-info.outputs.sourceHeadSha }}; [changes](${{ steps.deploy-netlify.outputs.NETLIFY_URL }}/CHANGES.html)) is ready! :tada: This preview will update shortly after each push to this PR. - name: Update deployment status PR check uses: myrotvorets/set-commit-status-action@v2.0.0 From 715e89ab9652860d7087541fe1cb6d66ec759779 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20R=C3=BCth?= Date: Thu, 4 Apr 2024 04:47:56 +0300 Subject: [PATCH 091/140] Refer explicitly to the documentation preview in the PR template --- .github/PULL_REQUEST_TEMPLATE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 7c9f4e99849..4afd959f108 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -15,7 +15,7 @@ - [ ] The description explains in detail what this PR is about. - [ ] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. -- [ ] I have updated the documentation and checked the generated documentation. +- [ ] I have updated the documentation and checked the documentation preview. ### :hourglass: Dependencies From a19ce19b77310d31986269ad3daafd33ea5c9caf Mon Sep 17 00:00:00 2001 From: Travis Scrimshaw Date: Sun, 25 Feb 2024 18:09:33 +0900 Subject: [PATCH 092/140] Making Temperley-Lieb algebras into cellular algebras. --- src/sage/combinat/diagram_algebras.py | 430 +++++++++++++++++++++++++- 1 file changed, 429 insertions(+), 1 deletion(-) diff --git a/src/sage/combinat/diagram_algebras.py b/src/sage/combinat/diagram_algebras.py index a5c1045028a..f6642b75740 100644 --- a/src/sage/combinat/diagram_algebras.py +++ b/src/sage/combinat/diagram_algebras.py @@ -3898,6 +3898,229 @@ def convertI(x): return self._from_dict(d, remove_zeros=True) +class HalfTemperleyLiebDiagrams(UniqueRepresentation, Parent): + r""" + Half diagrams for the Temperley-Lieb algebra cell modules. + """ + def __init__(self, order, defects): + r""" + Initialize ``self``. + + TESTS:: + + sage: import sage.combinat.diagram_algebras as da + sage: htld = da.HalfTemperleyLiebDiagrams(7, 3) + sage: TestSuite(htld).run() + """ + Parent.__init__(self, category=FiniteEnumeratedSets()) + self._order = ZZ(order) + self._defects = ZZ(defects) + if (self._order - self._defects) % 2: + raise ValueError("the number of non-defects must be even") + + def _repr_(self): + r""" + TESTS:: + + sage: import sage.combinat.diagram_algebras as da + sage: da.HalfTemperleyLiebDiagrams(7, 5) + Half Temperley-Lieb diagrams of order 7 with 5 defects + """ + return "Half Temperley-Lieb diagrams of order {} with {} defects".format(self._order, self._defects) + + def __iter__(self): + r""" + TESTS:: + + sage: import sage.combinat.diagram_algebras as da + sage: list(da.HalfTemperleyLiebDiagrams(5, 3)) + [{{1, 2}}, {{2, 3}}, {{3, 4}}, {{4, 5}}] + """ + n = self._order + k = self._defects + b = (n - k) // 2 + from sage.combinat.dyck_word import DyckWords + for dw in DyckWords(b+k, b): + ret = [] + offset = 0 + for D in dw.catalan_factorization(): + ret.extend((offset+a+1, offset+b) for (a, b) in D.tunnels()) + offset += len(D) + 1 + yield self.element_class(self, ret) + + def __contains__(self, obj): + r""" + Check containment. + + TESTS:: + + sage: import sage.combinat.diagram_algebras as da + sage: htld = da.HalfTemperleyLiebDiagrams(7, 3) + sage: htld.an_element() in htld + True + """ + return isinstance(obj, self.Element) and obj.parent() is self + + def cardinality(self): + r""" + Return the cardinality of ``self``. + + EXAMPLES:: + + sage: import sage.combinat.diagram_algebras as da + sage: htld = da.HalfTemperleyLiebDiagrams(7, 3) + sage: htld.cardinality() + 14 + """ + from sage.functions.other import binomial + n = self._order + k = self._defects + b = (n - k) // 2 + return (k + 1) * binomial(n, b) // (b + k + 1) + + def _element_constructor_(self, d): + r""" + Construct an element of ``self``. + + EXAMPLES:: + + sage: import sage.combinat.diagram_algebras as da + sage: htld = da.HalfTemperleyLiebDiagrams(7, 3) + sage: htld([[1, 4], [2, 3]]) + {{1, 4}, {2, 3}} + """ + return self.element_class(self, d) + + class Element(AbstractPartitionDiagram): + def _latex_(self): + r""" + Return a latex representation of ``self``. + + EXAMPLES:: + + sage: import sage.combinat.diagram_algebras as da + sage: htld = da.HalfTemperleyLiebDiagrams(7, 3) + sage: d = htld([[1, 2], [4, 5]]) + sage: latex(d) + \begin{tikzpicture}[scale = 0.5,thick, baseline={(0,-1ex/2)}] + \tikzstyle{vertex} = [shape = circle, minimum size = 7pt, inner sep = 1pt] + \node[vertex] (G--7) at (9.0, -1) [shape = circle, draw] {}; + \node[vertex] (G--7) at (9.0, -1) [shape = circle, draw] {}; + \node[vertex] (G--6) at (7.5, -1) [shape = circle, draw] {}; + \node[vertex] (G--6) at (7.5, -1) [shape = circle, draw] {}; + \node[vertex] (G--5) at (6.0, -1) [shape = circle, draw] {}; + \node[vertex] (G--4) at (4.5, -1) [shape = circle, draw] {}; + \node[vertex] (G--3) at (3.0, -1) [shape = circle, draw] {}; + \node[vertex] (G--3) at (3.0, -1) [shape = circle, draw] {}; + \node[vertex] (G--2) at (1.5, -1) [shape = circle, draw] {}; + \node[vertex] (G--1) at (0.0, -1) [shape = circle, draw] {}; + \draw[] (G--7) .. controls +(0.0, 0.4) and +(-0.0, 0.4) .. (G--7); + \draw[] (G--6) .. controls +(0.0, 0.4) and +(-0.0, 0.4) .. (G--6); + \draw[] (G--5) .. controls +(-0.5, 0.5) and +(0.5, 0.5) .. (G--4); + \draw[] (G--3) .. controls +(0.0, 0.4) and +(-0.0, 0.4) .. (G--3); + \draw[] (G--2) .. controls +(-0.5, 0.5) and +(0.5, 0.5) .. (G--1); + \end{tikzpicture} + """ + defects = self.defects() + temp = [[-b, -a] for (a, b) in self] + [[-d, -d] for d in defects] + temp.sort() + return diagram_latex(temp) + + def _ascii_art_(self): + r""" + Return an ascii art representation of ``self``. + + EXAMPLES:: + + sage: import sage.combinat.diagram_algebras as da + sage: htld = da.HalfTemperleyLiebDiagrams(7, 3) + sage: d = htld([[1, 2], [4, 5]]) + sage: ascii_art(d) + .-. | .-. | | + o o o o o o o + """ + defects = self.defects() + temp = [[-b, -a] for (a, b) in self] + [[-d, d] for d in defects] + temp.sort() + ret = TL_diagram_ascii_art(temp) + from sage.typeset.ascii_art import AsciiArt + return AsciiArt(ret[2:]) + + def _unicode_art_(self): + r""" + Return an ascii art representation of ``self``. + + EXAMPLES:: + + sage: import sage.combinat.diagram_algebras as da + sage: htld = da.HalfTemperleyLiebDiagrams(7, 3) + sage: d = htld([[1, 2], [4, 5]]) + sage: unicode_art(d) + ╭─╮ │ ╭─╮ │ │ + ⚬ ⚬ ⚬ ⚬ ⚬ ⚬ ⚬ + """ + defects = self.defects() + temp = [[-b, -a] for (a, b) in self] + [[-d, d] for d in defects] + temp.sort() + ret = TL_diagram_ascii_art(temp, use_unicode=True) + from sage.typeset.unicode_art import UnicodeArt + return UnicodeArt(ret[2:]) + + def defects(self): + r""" + Return the defects of ``self``. + + EXAMPLES:: + + sage: import sage.combinat.diagram_algebras as da + sage: htld = da.HalfTemperleyLiebDiagrams(7, 3) + sage: d = htld([[1, 2], [4, 5]]) + sage: d.defects() + frozenset({3, 6, 7}) + """ + order = self.parent()._order + return frozenset(range(1, order+1)) - frozenset(e for B in self for e in B) + + def check(self): + r""" + Check the validity of the input of ``self``. + + EXAMPLES:: + + sage: import sage.combinat.diagram_algebras as da + sage: htld = da.HalfTemperleyLiebDiagrams(7, 3) + sage: htld([[1,2], [3,4]]) # indirect doctest + {{1, 2}, {3, 4}} + sage: htld([[1,2], [-1, -2]]) # indirect doctest + Traceback (most recent call last): + ... + ValueError: {{-2, -1}, {1, 2}} does not represent a half TL diagram of order 7 + sage: htld([[1,2,3], [4,5]]) # indirect doctest + Traceback (most recent call last): + ... + ValueError: all blocks of {{1, 2, 3}, {4, 5}} must be of size 2 + sage: htld([[1,2], [3,4], [5,6]]) # indirect doctest + Traceback (most recent call last): + ... + ValueError: {{1, 2}, {3, 4}, {5, 6}} does not have 3 defects + sage: htld([[1,3], [2,4]]) # indirect doctest + Traceback (most recent call last): + ... + ValueError: {{1, 3}, {2, 4}} is not planar + """ + tst = frozenset(e for B in self._base_diagram for e in B) + P = self.parent() + if not (tst <= frozenset(range(1, P._order+1))): + raise ValueError("{} does not represent a half TL diagram of order {}".format( + self, self.parent()._order)) + if any(len(block) != 2 for block in self): + raise ValueError("all blocks of {} must be of size 2".format(self)) + if len(tst) != P._order - P._defects: + raise ValueError("{} does not have {} defects".format(self, P._defects)) + if not self.is_planar(): + raise ValueError("{} is not planar".format(self)) + + class TemperleyLiebAlgebra(SubPartitionAlgebra, UnitDiagramMixin): r""" A Temperley--Lieb algebra. @@ -3948,6 +4171,60 @@ class TemperleyLiebAlgebra(SubPartitionAlgebra, UnitDiagramMixin): True sage: b[0]^5 == x^4*b[0] True + + The Temperley-Lieb algebra is a cellular algebra, and we verify that + the dimensions of the simple modules at `q = 0` is given by + :oeis:`A050166`:: + + sage: for k in range(1,5): + ....: TL = TemperleyLiebAlgebra(2*k, 0, QQ) + ....: print("".join("{:3}".format(TL.cell_module(la).simple_module().dimension()) + ....: for la in reversed(TL.cell_poset()) if la != 0)) + 1 + 1 2 + 1 4 5 + 1 6 14 14 + sage: for k in range(1,4): + ....: TL = TemperleyLiebAlgebra(2*k+1, 0, QQ) + ....: print("".join("{:3}".format(TL.cell_module(la).simple_module().dimension()) + ....: for la in reversed(TL.cell_poset()) if la != 0)) + 1 2 + 1 4 5 + 1 6 14 14 + + Additional examples when the Temperley-Lieb algebra is not semisimple:: + + sage: TL = TemperleyLiebAlgebra(8, -1, QQ) + sage: for la in TL.cell_poset(): + ....: CM = TL.cell_module(la) + ....: if not CM.nonzero_bilinear_form(): + ....: continue + ....: print(la, CM.dimension(), CM.simple_module().dimension()) + ....: + 0 14 1 + 2 28 28 + 4 20 13 + 6 7 7 + 8 1 1 + sage: for k in range(1,5): + ....: TL = TemperleyLiebAlgebra(2*k, -1, QQ) + ....: print("".join("{:3}".format(TL.cell_module(la).simple_module().dimension()) + ....: for la in reversed(TL.cell_poset()) + ....: if TL.cell_module(la).nonzero_bilinear_form())) + 1 1 + 1 3 1 + 1 4 9 1 + 1 7 13 28 1 + sage: C5. = CyclotomicField(5) + sage: for k in range(1,5): + ....: TL = TemperleyLiebAlgebra(2*k, z5+~z5, C5) + ....: print("".join("{:3}".format(TL.cell_module(la).simple_module().dimension()) + ....: for la in reversed(TL.cell_poset()) + ....: if TL.cell_module(la).nonzero_bilinear_form())) + 1 1 + 1 3 2 + 1 5 8 5 + 1 7 20 21 13 """ @staticmethod def __classcall_private__(cls, k, q, base_ring=None, prefix="T"): @@ -3976,8 +4253,12 @@ def __init__(self, k, q, base_ring, prefix): sage: R. = QQ[] sage: TL = TemperleyLiebAlgebra(2, q, R) sage: TestSuite(TL).run() + + sage: TL = TemperleyLiebAlgebra(3, 0, QQ) + sage: TestSuite(TL).run() """ - SubPartitionAlgebra.__init__(self, k, q, base_ring, prefix, TemperleyLiebDiagrams(k)) + cat = AssociativeAlgebras(base_ring.category()).Unital().FiniteDimensional().WithBasis().Cellular() + SubPartitionAlgebra.__init__(self, k, q, base_ring, prefix, TemperleyLiebDiagrams(k), category=cat) def _repr_(self): """ @@ -4059,6 +4340,153 @@ def _unicode_art_term(self, diagram): """ return TL_diagram_ascii_art(diagram, use_unicode=True) + @cached_method + def cell_poset(self): + """ + Return the cell poset of ``self``. + + EXAMPLES:: + + sage: R. = QQ[] + sage: TL = TemperleyLiebAlgebra(7, q, R) + sage: TL.cell_poset().cover_relations() + [[1, 3], [3, 5], [5, 7]] + + sage: TL = TemperleyLiebAlgebra(8, q, R) + sage: TL.cell_poset().cover_relations() + [[0, 2], [2, 4], [4, 6], [6, 8]] + """ + from sage.combinat.posets.posets import Poset + return Poset({k-2: [k] for k in range(self._k, 1, -2)}) + + def cell_module_indices(self, la): + r""" + Return the indices of the cell module of ``self`` + indexed by ``la`` . + + This is the finite set `M(\lambda)`. + + EXAMPLES:: + + sage: R. = QQ[] + sage: TL = TemperleyLiebAlgebra(8, q, R) + sage: TL.cell_module_indices(4) + Half Temperley-Lieb diagrams of order 8 with 4 defects + """ + return HalfTemperleyLiebDiagrams(self._k, la) + + def _to_cellular_element(self, d): + r""" + Return the image in the cellular basis of the basis element + of ``self`` indexed by ``d``. + + EXAMPLES:: + + sage: R. = QQ[] + sage: TL = TemperleyLiebAlgebra(3, q, R) + sage: for d in TL.basis().keys(): + ....: print(d) + ....: print(TL._to_cellular_element(d)) + {{-3, 3}, {-2, -1}, {1, 2}} + C(1, {{1, 2}}, {{1, 2}}) + {{-3, 1}, {-2, -1}, {2, 3}} + C(1, {{2, 3}}, {{1, 2}}) + {{-3, -2}, {-1, 1}, {2, 3}} + C(1, {{2, 3}}, {{2, 3}}) + {{-3, -2}, {-1, 3}, {1, 2}} + C(1, {{1, 2}}, {{2, 3}}) + {{-3, 3}, {-2, 2}, {-1, 1}} + C(3, {}, {}) + """ + C = self.cellular_basis() + top = [] + bottom = [] + defects = ZZ.zero() + for (a, b) in d: + if b < 0: + bottom.append((-b, -a)) + elif a > 0: + top.append((a, b)) + else: + defects += ZZ.one() + CMI = self.cell_module_indices(defects) + tup = (defects, CMI(top), CMI(bottom)) + return C.monomial(C._indices(tup)) + + def _from_cellular_index(self, x): + r""" + Return the image in ``self`` from the index of the + cellular basis ``x``. + + EXAMPLES:: + + sage: R. = QQ[] + sage: TL = TemperleyLiebAlgebra(3, q, R) + sage: C = TL.cellular_basis() + sage: for i in C.basis().keys(): + ....: print(i) + ....: print(TL._from_cellular_index(i)) + (1, {{1, 2}}, {{1, 2}}) + T{{-3, 3}, {-2, -1}, {1, 2}} + (1, {{1, 2}}, {{2, 3}}) + T{{-3, -2}, {-1, 3}, {1, 2}} + (1, {{2, 3}}, {{1, 2}}) + T{{-3, 1}, {-2, -1}, {2, 3}} + (1, {{2, 3}}, {{2, 3}}) + T{{-3, -2}, {-1, 1}, {2, 3}} + (3, {}, {}) + T{{-3, 3}, {-2, 2}, {-1, 1}} + + sage: TL = TemperleyLiebAlgebra(4, QQ.zero(), QQ) + sage: C = TL.cellular_basis() + sage: [TL._from_cellular_index(i) for i in C.basis().keys()] + [T{{-4, -3}, {-2, -1}, {1, 2}, {3, 4}}, + T{{-4, -1}, {-3, -2}, {1, 2}, {3, 4}}, + T{{-4, -3}, {-2, -1}, {1, 4}, {2, 3}}, + T{{-4, -1}, {-3, -2}, {1, 4}, {2, 3}}, + T{{-4, 4}, {-3, 3}, {-2, -1}, {1, 2}}, + T{{-4, 4}, {-3, -2}, {-1, 3}, {1, 2}}, + T{{-4, -3}, {-2, 4}, {-1, 3}, {1, 2}}, + T{{-4, 4}, {-3, 1}, {-2, -1}, {2, 3}}, + T{{-4, 4}, {-3, -2}, {-1, 1}, {2, 3}}, + T{{-4, -3}, {-2, 4}, {-1, 1}, {2, 3}}, + T{{-4, 2}, {-3, 1}, {-2, -1}, {3, 4}}, + T{{-4, 2}, {-3, -2}, {-1, 1}, {3, 4}}, + T{{-4, -3}, {-2, 2}, {-1, 1}, {3, 4}}, + T{{-4, 4}, {-3, 3}, {-2, 2}, {-1, 1}}] + """ + _, top, bottom = x + bottom = [[-b, -a] for (a, b) in bottom] + tmiss = frozenset(range(1, self._k+1)) - frozenset(e for B in top for e in B) + bmiss = frozenset(range(-1, -self._k-1, -1)) - frozenset(e for B in bottom for e in B) + prop = list(zip(sorted(tmiss, reverse=True), sorted(bmiss))) + return self.monomial(self._indices(bottom + prop + list(top))) + + def cellular_involution(self, x): + r""" + Return the cellular involution of ``x`` in ``self``. + + EXAMPLES:: + + sage: TL = TemperleyLiebAlgebra(4, QQ.zero(), QQ) + sage: ascii_art(TL.an_element()) + o o o o o o o o + o o o o | `-` | | `-` | + 2* `-` `-` + 2* `-----` + 3* `---. | + .-. .-. .-. .-. .-. | | + o o o o o o o o o o o o + sage: ascii_art(TL.cellular_involution(TL.an_element())) + o o o o o o o o + o o o o `-` `-` `-` | | + 2* `-` `-` + 2* .-----. + 3* .---` | + .-. .-. | .-. | | .-. | + o o o o o o o o o o o o + """ + M = x.monomial_coefficients(copy=False) + I = self._indices + return self._from_dict({d.dual(): c for d, c in M.items()}, + remove_zeros=False) + class PlanarAlgebra(SubPartitionAlgebra, UnitDiagramMixin): r""" From 1d231376d0c7856d70d87ffb622cb89ed53f90ab Mon Sep 17 00:00:00 2001 From: Travis Scrimshaw Date: Sun, 25 Feb 2024 18:29:21 +0900 Subject: [PATCH 093/140] Adding ascii/unicode art and latex to the half diagrams. --- src/sage/combinat/diagram_algebras.py | 16 +++++++++++ .../modules/with_basis/indexed_element.pyx | 28 ++++++++++++++++--- 2 files changed, 40 insertions(+), 4 deletions(-) diff --git a/src/sage/combinat/diagram_algebras.py b/src/sage/combinat/diagram_algebras.py index f6642b75740..0f82ee78430 100644 --- a/src/sage/combinat/diagram_algebras.py +++ b/src/sage/combinat/diagram_algebras.py @@ -4038,9 +4038,17 @@ def _ascii_art_(self): sage: ascii_art(d) .-. | .-. | | o o o o o o o + sage: htld = da.HalfTemperleyLiebDiagrams(8, 0) + sage: d = htld([[1, 6], [2, 3], [4, 5], [7, 8]]) + sage: ascii_art(d) + .---------. + | .-. .-. | .-. + o o o o o o o o """ defects = self.defects() temp = [[-b, -a] for (a, b) in self] + [[-d, d] for d in defects] + rank = self.parent()._order + temp.append([rank, rank]) temp.sort() ret = TL_diagram_ascii_art(temp) from sage.typeset.ascii_art import AsciiArt @@ -4058,9 +4066,17 @@ def _unicode_art_(self): sage: unicode_art(d) ╭─╮ │ ╭─╮ │ │ ⚬ ⚬ ⚬ ⚬ ⚬ ⚬ ⚬ + sage: htld = da.HalfTemperleyLiebDiagrams(8, 0) + sage: d = htld([[1, 6], [2, 3], [4, 5], [7, 8]]) + sage: unicode_art(d) + ╭─────────╮ + │ ╭─╮ ╭─╮ │ ╭─╮ + ⚬ ⚬ ⚬ ⚬ ⚬ ⚬ ⚬ ⚬ """ defects = self.defects() temp = [[-b, -a] for (a, b) in self] + [[-d, d] for d in defects] + rank = self.parent()._order + temp.append([rank, rank]) temp.sort() ret = TL_diagram_ascii_art(temp, use_unicode=True) from sage.typeset.unicode_art import UnicodeArt diff --git a/src/sage/modules/with_basis/indexed_element.pyx b/src/sage/modules/with_basis/indexed_element.pyx index 43458c5fcc9..10f2ebf0dcb 100644 --- a/src/sage/modules/with_basis/indexed_element.pyx +++ b/src/sage/modules/with_basis/indexed_element.pyx @@ -372,6 +372,16 @@ cdef class IndexedFreeModuleElement(ModuleElement): sage: E2 = L.exterior_power(2) sage: ascii_art(E2.an_element()) 2*()/\(5,6,7) + 2*()/\(5,7,6) + 3*()/\(1,2)(3,4) + + We can also get the ascii art when ``one_basis`` + is ``NotImplemented``:: + + sage: TL = TemperleyLiebAlgebra(8, -1, QQ) + sage: C = TL.cellular_basis() + sage: ascii_art(list(C.basis())[0]) + C + ( .-. .-. .-. .-. .-. .-. .-. .-. ) + ( 0, o o o o o o o o, o o o o o o o o ) """ from sage.misc.repr import coeff_repr terms = self._sorted_items_for_printing() @@ -390,8 +400,8 @@ cdef class IndexedFreeModuleElement(ModuleElement): one_basis = None try: - if self.parent().one_basis is not NotImplemented: - one_basis = self.parent().one_basis() + if self._parent.one_basis is not NotImplemented: + one_basis = self._parent.one_basis() except (AttributeError, NotImplementedError, ValueError, TypeError): pass @@ -457,6 +467,16 @@ cdef class IndexedFreeModuleElement(ModuleElement): sage: E2 = L.exterior_power(2) sage: unicode_art(E2.an_element()) 2*()∧(5,6,7) + 2*()∧(5,7,6) + 3*()∧(1,2)(3,4) + + We can also get the unicode art when ``one_basis`` + is ``NotImplemented``:: + + sage: TL = TemperleyLiebAlgebra(8, -1, QQ) + sage: C = TL.cellular_basis() + sage: unicode_art(list(C.basis())[0]) + C + ⎛ ╭─╮ ╭─╮ ╭─╮ ╭─╮ ╭─╮ ╭─╮ ╭─╮ ╭─╮ ⎞ + ⎝ 0, ⚬ ⚬ ⚬ ⚬ ⚬ ⚬ ⚬ ⚬, ⚬ ⚬ ⚬ ⚬ ⚬ ⚬ ⚬ ⚬ ⎠ """ from sage.misc.repr import coeff_repr terms = self._sorted_items_for_printing() @@ -475,8 +495,8 @@ cdef class IndexedFreeModuleElement(ModuleElement): one_basis = None try: - if self.parent().one_basis is not NotImplemented: - one_basis = self.parent().one_basis() + if self._parent.one_basis is not NotImplemented: + one_basis = self._parent.one_basis() except (AttributeError, NotImplementedError, ValueError, TypeError): pass From 7dcf495af92438ebdda8e6f821905539e6793bb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20R=C3=BCth?= Date: Thu, 4 Apr 2024 14:09:38 +0300 Subject: [PATCH 094/140] Break bot message into two lines --- .github/workflows/doc-publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/doc-publish.yml b/.github/workflows/doc-publish.yml index 6cb10900554..4c0f22338af 100644 --- a/.github/workflows/doc-publish.yml +++ b/.github/workflows/doc-publish.yml @@ -72,7 +72,8 @@ jobs: header: preview-comment recreate: false message: | - [Documentation preview for this PR](${{ steps.deploy-netlify.outputs.NETLIFY_URL }}/html/en) (built with commit ${{ steps.source-run-info.outputs.sourceHeadSha }}; [changes](${{ steps.deploy-netlify.outputs.NETLIFY_URL }}/CHANGES.html)) is ready! :tada: This preview will update shortly after each push to this PR. + [Documentation preview for this PR](${{ steps.deploy-netlify.outputs.NETLIFY_URL }}/html/en) (built with commit ${{ steps.source-run-info.outputs.sourceHeadSha }}; [changes](${{ steps.deploy-netlify.outputs.NETLIFY_URL }}/CHANGES.html)) is ready! :tada: + This preview will update shortly after each push to this PR. - name: Update deployment status PR check uses: myrotvorets/set-commit-status-action@v2.0.0 @@ -134,4 +135,3 @@ jobs: - name: Report deployment url run: | echo "::notice::The live documentation has been deployed - ${{ steps.deploy-netlify.outputs.NETLIFY_URL }}" - From 3337526d0245bccd28c67d34aff35d794db9781a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Chapoton?= Date: Thu, 4 Apr 2024 15:13:07 +0200 Subject: [PATCH 095/140] clean suffix tries --- src/sage/combinat/words/suffix_trees.py | 337 +++++++++++++----------- 1 file changed, 177 insertions(+), 160 deletions(-) diff --git a/src/sage/combinat/words/suffix_trees.py b/src/sage/combinat/words/suffix_trees.py index 8375bde1a8a..bb0127b56d3 100644 --- a/src/sage/combinat/words/suffix_trees.py +++ b/src/sage/combinat/words/suffix_trees.py @@ -136,7 +136,7 @@ def _process_letter(self, letter): self._suffix_link[old_s] = self._transition_function[(r, letter)] # update the active state self._active_state = \ - self._transition_function[(self._active_state, letter)] + self._transition_function[(self._active_state, letter)] def process_letter(self, letter): r""" @@ -177,7 +177,7 @@ def process_letter(self, letter): # functionality to the class. ##### - def _repr_(self): + def _repr_(self) -> str: """ TESTS:: @@ -189,12 +189,12 @@ def _repr_(self): def node_to_word(self, state=0): r""" - Returns the word obtained by reading the edge labels from 0 to + Return the word obtained by reading the edge labels from 0 to ``state``. INPUT: - - ``state`` - (default: 0) a state + - ``state`` -- (default: 0) a state EXAMPLES:: @@ -213,18 +213,18 @@ def node_to_word(self, state=0): # Starting from the active state, # read labels along the unique path to the root. - (u,letter) = tf_inv[state] + u, letter = tf_inv[state] w = letter s = u while s != 0: - (u,letter) = tf_inv[s] + u, letter = tf_inv[s] w = letter * w s = u return w def word(self): r""" - Returns the word whose suffix tree this is. + Return the word whose suffix tree this is. EXAMPLES:: @@ -238,7 +238,7 @@ def word(self): """ return self.node_to_word(self._active_state) - def __eq__(self,other): + def __eq__(self, other) -> bool: r""" If self and other have the same transition function, the same suffix link, and the same word, then they are equal. @@ -259,7 +259,7 @@ def __eq__(self,other): sage: t == s True """ - if not isinstance(other,SuffixTrie): + if not isinstance(other, SuffixTrie): return False return self._transition_function == other._transition_function \ and self._suffix_link == other._suffix_link \ @@ -267,13 +267,13 @@ def __eq__(self,other): def transition_function(self, node, word): r""" - Returns the state reached by beginning at ``node`` and following the + Return the state reached by beginning at ``node`` and following the arrows in the transition graph labelled by the letters of ``word``. INPUT: - - ``node`` - a node - - ``word`` - a word + - ``node`` -- a node + - ``word`` -- a word EXAMPLES:: @@ -281,7 +281,7 @@ def transition_function(self, node, word): sage: w = Words([0,1])([0,1,0,1,1]) sage: t = SuffixTrie(w) sage: all(t.transition_function(u, letter) == v - ....: for ((u, letter), v) in t._transition_function.items()) + ....: for (u, letter), v in t._transition_function.items()) True """ if node == -1: @@ -316,7 +316,8 @@ def states(self): def suffix_link(self, state): r""" - Evaluates the suffix link map of the suffix trie on ``state``. + Evaluate the suffix link map of the suffix trie on ``state``. + Note that the suffix link map is not defined on -1. INPUT: @@ -351,7 +352,7 @@ def suffix_link(self, state): ... TypeError: 17 is not a state """ - if not isinstance(state, (int,Integer)): + if not isinstance(state, (int, Integer)): raise TypeError("%s is not an integer" % state) if state == -1: raise TypeError("suffix link is not defined for -1") @@ -361,8 +362,10 @@ def suffix_link(self, state): def active_state(self): r""" - Returns the active state of the suffix trie. This is the state - corresponding to the word as a suffix of itself. + Return the active state of the suffix trie. + + This is the state corresponding to the word as a suffix of + itself. EXAMPLES:: @@ -383,10 +386,11 @@ def active_state(self): def final_states(self): r""" - Returns the set of final states of the suffix trie. These are the - states corresponding to the suffixes of ``self.word()``. They are - obtained be repeatedly following the suffix link from the active - state until we reach 0. + Return the set of final states of the suffix trie. + + These are the states corresponding to the suffixes of + ``self.word()``. They are obtained be repeatedly following the + suffix link from the active state until we reach 0. EXAMPLES:: @@ -403,7 +407,7 @@ def final_states(self): F.append(s) return Set(F) - def has_suffix(self,word): + def has_suffix(self, word): r""" Return ``True`` if and only if ``word`` is a suffix of ``self.word()``. @@ -432,7 +436,7 @@ def has_suffix(self,word): def to_digraph(self): r""" - Returns a ``DiGraph`` object of the transition graph of the suffix + Return a ``DiGraph`` object of the transition graph of the suffix trie. EXAMPLES:: @@ -451,14 +455,14 @@ def to_digraph(self): [0 0 0 0 0 0] """ dag = {} - for ((u, letter), v) in self._transition_function.items(): + for (u, letter), v in self._transition_function.items(): dag.setdefault(u, {})[v] = letter return DiGraph(dag) def plot(self, layout='tree', tree_root=0, tree_orientation='up', - vertex_colors=None, edge_labels=True, *args, **kwds): + vertex_colors=None, edge_labels=True, *args, **kwds): r""" - Returns a Graphics object corresponding to the transition graph of + Return a Graphics object corresponding to the transition graph of the suffix trie. EXAMPLES:: @@ -474,20 +478,20 @@ def plot(self, layout='tree', tree_root=0, tree_orientation='up', """ tree = self.to_digraph() - for (u,v,label) in tree.edge_iterator(): + for u, v, label in tree.edge_iterator(): tree.set_edge_label(u, v, label.string_rep()) if vertex_colors is None: suffix_nodes = self.final_states() non_suffix_nodes = list(set(self.states()) - set(suffix_nodes)) - vertex_colors = {'#fec7b8':suffix_nodes,'#ffffff':non_suffix_nodes} + vertex_colors = {'#fec7b8': suffix_nodes, '#ffffff': non_suffix_nodes} return tree.plot(layout=layout, tree_root=tree_root, - tree_orientation=tree_orientation, - vertex_colors=vertex_colors, edge_labels=edge_labels, - *args, **kwds) + tree_orientation=tree_orientation, + vertex_colors=vertex_colors, edge_labels=edge_labels, + *args, **kwds) def show(self, *args, **kwds): r""" - Displays the output of ``self.plot()``. + Display the output of ``self.plot()``. EXAMPLES:: @@ -581,9 +585,9 @@ def __init__(self, word): Implicit Suffix Tree of the word: cacao """ # For constructing the suffix tree. - self._transition_function = {0:{}} - self._suffix_link = {0:-1} - self._active_state = (0,(1,1)) + self._transition_function = {0: {}} + self._suffix_link = {0: -1} + self._active_state = (0, (1, 1)) self._letters = [] for letter in word: self._letters.append(letter) @@ -631,33 +635,35 @@ def _process_letter(self, letter): sage: s Implicit Suffix Tree of the word: 01011 """ - (s,(k,i)) = self._active_state + s, (k, i) = self._active_state old_r = 0 - (end_state, r) = self._test_and_split(s,(k,i-1),letter) + end_state, r = self._test_and_split(s, (k, i-1), letter) while not end_state: # adjoin a new state rr and create a transition from r to rr rr = len(self._transition_function) self._transition_function[rr] = {} - self._transition_function[r][(i,None)] = rr + self._transition_function[r][(i, None)] = rr # update the suffix link, if necessary if old_r != 0: self._suffix_link[old_r] = r old_r = r # follow the suffix link to the next state - (s, k) = self._canonize(self._suffix_link[s], (k,i-1)) - (end_state, r) = self._test_and_split(s, (k,i-1), letter) + s, k = self._canonize(self._suffix_link[s], (k, i-1)) + end_state, r = self._test_and_split(s, (k, i-1), letter) # update the suffix link, if necessary if old_r != 0: self._suffix_link[old_r] = s # set the active state - (s,k) = self._canonize(s,(k,i)) + s, k = self._canonize(s, (k, i)) self._active_state = (s, (k, i+1)) return def _test_and_split(self, s, k_p, letter): r""" - Helper function for _process_letter. Tests to see whether an edge - needs to be split. Returns ``(True, state)``, where ``state`` is the + Helper function for _process_letter. Test to see whether an edge + needs to be split. + + This returns ``(True, state)``, where ``state`` is the next state to process (either a newly created state or the original s). TESTS:: @@ -669,15 +675,15 @@ def _test_and_split(self, s, k_p, letter): sage: t._test_and_split(0, (4,5), w.parent().alphabet().rank("o")) (False, 3) """ - (k, p) = k_p + k, p = k_p if k <= p: # find the transition from s that begins with k-th letter - ((kk,pp), ss) = self._find_transition(s, self._letters[k-1]) + (kk, pp), ss = self._find_transition(s, self._letters[k - 1]) if letter == self._letters[kk + p - k]: return (True, s) else: # replace transition above by transitions - del self._transition_function[s][(kk,pp)] + del self._transition_function[s][(kk, pp)] r = len(self._transition_function) self._transition_function[r] = {} self._transition_function[s][(kk, kk+p-k)] = r @@ -692,7 +698,7 @@ def _test_and_split(self, s, k_p, letter): def _canonize(self, s, k_p): r""" - Given an implicit or explicit reference pair for a node, returns + Given an implicit or explicit reference pair for a node, return the canonical reference pair. Recall that a node r is referenced as (s, (k,p)), where s is an @@ -709,22 +715,23 @@ def _canonize(self, s, k_p): sage: t._canonize(0,(2,5)) (5, 3) """ - (k, p) = k_p + k, p = k_p if p < k: return (s, k) else: - ((kk,pp), ss) = self._find_transition(s, self._letters[k-1]) + (kk, pp), ss = self._find_transition(s, self._letters[k - 1]) while pp is not None and pp - kk <= p - k: k = k + pp - kk + 1 s = ss if k <= p: - ((kk,pp), ss) = self._find_transition(s, self._letters[k-1]) + (kk, pp), ss = self._find_transition(s, self._letters[k-1]) return (s, k) def _find_transition(self, state, letter): r""" - Returns the transition from state that begins with letter. Returns - ``None`` if no such transition exists. + Return the transition from state that begins with letter. + + This returns ``None`` if no such transition exists. The transitions are stored as a dictionary of dictionaries: keyed by the nodes, with the corresponding dictionary keyed by pairs @@ -754,12 +761,12 @@ def _find_transition(self, state, letter): """ if state == -1: return ((0, 0), 0) - else: - if state in self._transition_function: - for ((k,p),s) in self._transition_function[state].items(): - if self._letters[k-1] == letter: - return ((k,p), s) - return None + + if state in self._transition_function: + for (k, p), s in self._transition_function[state].items(): + if self._letters[k - 1] == letter: + return ((k, p), s) + return None ##### # The following are not necessary for constructing the implicit suffix @@ -770,7 +777,7 @@ def _find_transition(self, state, letter): # Visualization ##### - def _repr_(self): + def _repr_(self) -> str: r""" TESTS:: @@ -782,7 +789,7 @@ def _repr_(self): def word(self): r""" - Returns the word whose implicit suffix tree this is. + Return the word whose implicit suffix tree this is. TESTS:: @@ -792,9 +799,10 @@ def word(self): """ return self._word - def transition_function_dictionary(self): + def transition_function_dictionary(self) -> dict: r""" - Returns the transition function as a dictionary of dictionaries. + Return the transition function as a dictionary of dictionaries. + The format is consistent with the input format for ``DiGraph``. EXAMPLES:: @@ -813,13 +821,13 @@ def transition_function_dictionary(self): {0: {1: (0, None), 2: (1, None)}} """ d = {} - for (u,v,(i,j)) in self.edge_iterator(): - d.setdefault(u, {})[v] = (i,j) + for u, v, (i, j) in self.edge_iterator(): + d.setdefault(u, {})[v] = (i, j) return d def to_digraph(self, word_labels=False): r""" - Returns a ``DiGraph`` object of the transition graph of the suffix tree. + Return a ``DiGraph`` object of the transition graph of the suffix tree. INPUT: @@ -840,18 +848,18 @@ def to_digraph(self, word_labels=False): return DiGraph(d) d = self.transition_function_dictionary() for u in d: - for (v, (i, j)) in d[u].items(): + for v, (i, j) in d[u].items(): if word_labels: d[u][v] = self._word[i:j] elif j is None: - d[u][v] = (i,len(self._letters)) + d[u][v] = (i, len(self._letters)) return DiGraph(d) def plot(self, word_labels=False, layout='tree', tree_root=0, - tree_orientation='up', vertex_colors=None, edge_labels=True, - *args, **kwds): + tree_orientation='up', vertex_colors=None, edge_labels=True, + *args, **kwds): r""" - Returns a Graphics object corresponding to the transition graph of + Return a Graphics object corresponding to the transition graph of the suffix tree. INPUT: @@ -883,14 +891,14 @@ def plot(self, word_labels=False, layout='tree', tree_root=0, """ tree = self.to_digraph(word_labels=word_labels) if word_labels: - for (u,v,label) in tree.edge_iterator(): + for u, v, label in tree.edge_iterator(): tree.set_edge_label(u, v, label.string_rep()) if vertex_colors is None: - vertex_colors = {'#fec7b8':tree.vertices(sort=True)} + vertex_colors = {'#fec7b8': tree.vertices(sort=True)} return tree.plot(layout=layout, tree_root=tree_root, - tree_orientation=tree_orientation, - vertex_colors=vertex_colors, edge_labels=edge_labels, - *args, **kwds) + tree_orientation=tree_orientation, + vertex_colors=vertex_colors, edge_labels=edge_labels, + *args, **kwds) def show(self, word_labels=None, *args, **kwds): r""" @@ -917,7 +925,7 @@ def show(self, word_labels=None, *args, **kwds): # Various methods ##### - def __eq__(self,other): + def __eq__(self, other) -> bool: r""" If self and other have the same transition function and the same word, then they are equal. @@ -930,17 +938,19 @@ def __eq__(self,other): sage: ImplicitSuffixTree(w) == ImplicitSuffixTree(u) True """ - if not isinstance(other,ImplicitSuffixTree): + if not isinstance(other, ImplicitSuffixTree): return False return self._transition_function == other._transition_function \ and self._letters == other._letters def transition_function(self, word, node=0): r""" - Returns the node obtained by starting from ``node`` and following the - edges labelled by the letters of ``word``. Returns ``("explicit", - end_node)`` if we end at ``end_node``, or ``("implicit", edge, d)`` - if we end `d` spots along an edge. + Return the node obtained by starting from ``node`` and following the + edges labelled by the letters of ``word``. + + This returns ``("explicit", end_node)`` if we end at + ``end_node``, or ``("implicit", edge, d)`` if we end `d` spots + along an edge. INPUT: @@ -963,31 +973,31 @@ def transition_function(self, word, node=0): """ if word.is_empty(): return "explicit", node - ((k,p),s) = self._find_transition(node, word[0]) + (k, p), s = self._find_transition(node, word[0]) if p is None: # test that word is a prefix of self._letters[k-1:] if word == self._word[k-1:(k-1)+word.length()]: if word.length() == len(self._letters) - k + 1: return "explicit", s else: - edge = (node,s) + edge = (node, s) return "implicit", edge, word.length() else: # find longest common prefix - m = min(p-k+1,word.length()) + m = min(p-k+1, word.length()) i = 0 while i < m and self._word[k-1+i] == word[i]: i += 1 if i == p-k+1: - return self.transition_function(word[p-k+1:],s) + return self.transition_function(word[p-k+1:], s) else: - edge = (node,s) + edge = (node, s) return "implicit", edge, i return "explicit", node - def states(self): + def states(self) -> list: r""" - Returns the states (explicit nodes) of the suffix tree. + Return the states (explicit nodes) of the suffix tree. EXAMPLES:: @@ -1001,7 +1011,8 @@ def states(self): def suffix_link(self, state): r""" - Evaluates the suffix link map of the implicit suffix tree on ``state``. + Evaluate the suffix link map of the implicit suffix tree on ``state``. + Note that the suffix link is not defined for all states. The suffix link of a state `x'` that corresponds to the suffix `x` is @@ -1030,12 +1041,11 @@ def suffix_link(self, state): """ if state in self._suffix_link: return self._suffix_link[state] - else: - raise TypeError("there is no suffix link from %s" % state) + raise TypeError("there is no suffix link from %s" % state) def active_state(self): r""" - Returns the active state of the suffix tree. + Return the active state of the suffix tree. EXAMPLES:: @@ -1049,7 +1059,7 @@ def active_state(self): def process_letter(self, letter): r""" - Modifies the current implicit suffix tree producing the implicit + Modify the current implicit suffix tree producing the implicit suffix tree for ``self.word() + letter``. EXAMPLES:: @@ -1075,10 +1085,12 @@ def process_letter(self, letter): def to_explicit_suffix_tree(self): r""" - Converts self to an explicit suffix tree. It is obtained by - processing an end of string letter as if it were a regular - letter, except that no new leaf nodes are created (thus, the only - thing that happens is that some implicit nodes become explicit). + Convert self to an explicit suffix tree. + + It is obtained by processing an end of string letter as if it + were a regular letter, except that no new leaf nodes are + created (thus, the only thing that happens is that some + implicit nodes become explicit). EXAMPLES:: @@ -1096,20 +1108,21 @@ def to_explicit_suffix_tree(self): # append a new unique symbol to the word and process the new letter end_of_string = object() self._letters.append(end_of_string) - (s,(k,i)) = self._active_state - (end_state, r) = self._test_and_split(s,(k,i-1), end_of_string) + s, (k, i) = self._active_state + end_state, r = self._test_and_split(s, (k, i-1), end_of_string) while not end_state: - (s, k) = self._canonize(self._suffix_link[s], (k,i-1)) - (end_state, r) = self._test_and_split(s, (k,i-1), end_of_string) + s, k = self._canonize(self._suffix_link[s], (k, i-1)) + end_state, r = self._test_and_split(s, (k, i-1), end_of_string) # remove the end of string symbol from the word self._letters.pop() return def edge_iterator(self): r""" - Returns an iterator over the edges of the suffix tree. The - edge from `u` to `v` labelled by `(i,j)` is returned as the tuple - `(u,v,(i,j))`. + Return an iterator over the edges of the suffix tree. + + The edge from `u` to `v` labelled by `(i,j)` is returned as + the tuple `(u,v,(i,j))`. EXAMPLES:: @@ -1124,11 +1137,11 @@ def edge_iterator(self): queue = [0] while queue: v = queue.pop() - for ((i,j),u) in self._transition_function[v].items(): - yield (v,u,(i-1,j)) + for (i, j), u in self._transition_function[v].items(): + yield (v, u, (i - 1, j)) queue.append(u) - def number_of_factors(self,n=None): + def number_of_factors(self, n=None): r""" Count the number of distinct factors of ``self.word()``. @@ -1189,7 +1202,7 @@ def number_of_factors(self,n=None): if n is None: length_word = self.word().length() num_factors = 1 # empty word - for (u, v, (i, j)) in self.edge_iterator(): + for u, v, (i, j) in self.edge_iterator(): if j is None: num_factors += length_word - i else: @@ -1198,12 +1211,12 @@ def number_of_factors(self,n=None): num_factors = 0 queue = [(0, 0)] while queue: - (v, l) = queue.pop() + v, l = queue.pop() if l == n: num_factors += 1 if l < n: - if self._transition_function[v] != {}: - for ((i, j), u) in self._transition_function[v].items(): + if self._transition_function[v]: + for (i, j), u in self._transition_function[v].items(): if j is None: j = self.word().length() if j - i >= n - l: @@ -1256,27 +1269,27 @@ def factor_iterator(self, n=None): queue = [(0, 0, -1, 0)] yield w[0:0] while queue: - (v,i,j,l) = queue.pop() - for k in range(i,j+1): + v, i, j, l = queue.pop() + for k in range(i, j+1): yield w[j-l:k] - for ((i,j),u) in self._transition_function[v].items(): + for (i, j), u in self._transition_function[v].items(): if j is None: j = wlen - queue.append((u,i,j, l+j-i+1)) + queue.append((u, i, j, l+j-i+1)) elif isinstance(n, (int, Integer)): queue = [(0, 0, -1, 0)] while queue: - (v,i,j,l) = queue.pop() + v, i, j, l = queue.pop() if l == n: yield w[j-l:j] if l < n: - for ((i,j),u) in self._transition_function[v].items(): + for (i, j), u in self._transition_function[v].items(): if j is None: j = wlen if j - i >= n - l: yield w[i-l-1:i-l+n-1] else: - queue.append((u,i,j, l+j-i+1)) + queue.append((u, i, j, l+j-i+1)) else: raise TypeError("not an integer or None: %s" % n) @@ -1319,7 +1332,7 @@ def LZ_decomposition(self): w = self.word() while i < len(w): l = 0 - ((x, y), successor) = self._find_transition(0, w[i]) + (x, y), successor = self._find_transition(0, w[i]) x = x-1 while x < i+l: if y is None: @@ -1329,7 +1342,7 @@ def LZ_decomposition(self): if i+l >= len(w): l = len(w)-i break - ((x, y), successor) = self._find_transition(successor, w[i+l]) + (x, y), successor = self._find_transition(successor, w[i+l]) x = x-1 i += max(1, l) iB.append(i) @@ -1407,14 +1420,15 @@ def suffix_walk(self, edge, l): sage: T.suffix_walk((7, 3), 1) ('implicit', (9, 4), 1) """ + start, end = edge # Select the transition that corresponds to edge - for (i, j) in self._transition_function[edge[0]]: - if self._transition_function[edge[0]][(i, j)] == edge[1]: - break + ij = next(ij for ij, target in self._transition_function[start].items() + if target == end) + # self.word()[i-1:j] is the word on the edges - i -= 1 - parent = self.suffix_link(edge[0]) - return self._count_and_skip(parent, i, i+l) + i = ij[0] - 1 + parent = self.suffix_link(start) + return self._count_and_skip(parent, i, i + l) def leftmost_covering_set(self): r""" @@ -1458,8 +1472,8 @@ def condition1_square_pairs(i): """ for k in range(1, B[i+1]-B[i]+1): q = B[i+1]-k - k1 = w.longest_forward_extension(B[i+1],q) if B[i+1] < len(w) else 0 - k2 = w.longest_backward_extension(B[i+1]-1,q-1) if q > 0 else 0 + k1 = w.longest_forward_extension(B[i+1], q) if B[i+1] < len(w) else 0 + k2 = w.longest_backward_extension(B[i+1]-1, q-1) if q > 0 else 0 start = max(q-k2, q-k+1) if k1+k2 >= k and k1 > 0 and start >= B[i]: yield (start, 2*k) @@ -1481,13 +1495,13 @@ def condition2_square_pairs(i): k2 = w.longest_backward_extension(B[i]-1, q-1) if B[i] > 0 else 0 start = max(B[i]-k2, B[i]-k+1) if k1+k2 >= k and k1 > 0 and start+k <= B[i+1] and k2 > 0: - yield (start,2*k) + yield (start, 2*k) w = self.word() B = self.LZ_decomposition() P = [[] for _ in w] - for i in range(len(B)-1): - for (i,l) in chain(condition2_square_pairs(i), condition1_square_pairs(i)): + for i in range(len(B) - 1): + for i, l in chain(condition2_square_pairs(i), condition1_square_pairs(i)): P[i].append(l) for l in P: l.reverse() @@ -1499,9 +1513,10 @@ def condition2_square_pairs(i): def uncompactify(self): r""" - Returns the tree obtained from self by splitting edges so that they - are labelled by exactly one letter. The resulting tree is - isomorphic to the suffix trie. + Return the tree obtained from self by splitting edges so that they + are labelled by exactly one letter. + + The resulting tree is isomorphic to the suffix trie. EXAMPLES:: @@ -1516,21 +1531,21 @@ def uncompactify(self): newtree = DiGraph() newtree.add_vertices(range(tree.order())) new_node = tree.order() + 1 - for (u,v,label) in tree.edge_iterator(): + for u, v, label in tree.edge_iterator(): if len(label) == 1: - newtree.add_edge(u,v) + newtree.add_edge(u, v) else: - newtree.add_edge(u,new_node,label[0]) + newtree.add_edge(u, new_node, label[0]) for w in label[1:-1]: - newtree.add_edge(new_node,new_node+1,w) + newtree.add_edge(new_node, new_node+1, w) new_node += 1 - newtree.add_edge(new_node,v,label[-1]) + newtree.add_edge(new_node, v, label[-1]) new_node += 1 return newtree def trie_type_dict(self): r""" - Returns a dictionary in a format compatible with that of the suffix + Return a dictionary in a format compatible with that of the suffix trie transition function. EXAMPLES:: @@ -1546,17 +1561,17 @@ def trie_type_dict(self): """ d = {} new_node = len(self._transition_function) - for (u, dd) in self._transition_function.items(): - for (sl, v) in dd.items(): + for u, dd in self._transition_function.items(): + for sl, v in dd.items(): w = self._word[sl[0]-1:sl[1]] if w.length() == 1: - d[u,w] = v + d[u, w] = v else: - d[u,w[0:1]] = new_node - for i in range(1,w.length()-1): + d[u, w[0:1]] = new_node + for i in range(1, w.length()-1): d[new_node, w[i:i+1]] = new_node + 1 new_node += 1 - d[new_node,w[-1:]] = v + d[new_node, w[-1:]] = v new_node += 1 return d @@ -1671,12 +1686,13 @@ def node_processing(node, parent, head): OUTPUT: ``(i, pos)``, the new head of ``P(node)`` """ i, pos = head + pano = (parent, node) while pos < len(P[i]) and P[i][pos] > string_depth[parent]: label = P[i][pos] - string_depth[parent] - if (parent, node) in labeling: - labeling[(parent, node)].append(label) + if pano in labeling: + labeling[pano].append(label) else: - labeling[(parent, node)] = [label] + labeling[pano] = [label] pos += 1 return (i, pos) @@ -1703,11 +1719,11 @@ def treat_node(current_node, parent): if current_node in D: node_list = (n, 0) for child in D[current_node]: - (i, j) = D[current_node][child] + i, j = D[current_node][child] if j is None: j = n - string_depth[child] = string_depth[current_node]+j-i - child_list = treat_node(child,current_node) + string_depth[child] = string_depth[current_node] + j - i + child_list = treat_node(child, current_node) if child_list[0] < node_list[0]: node_list = child_list else: # The node is a child @@ -1725,7 +1741,7 @@ def treat_node(current_node, parent): def _complete_labeling(self): r""" - Returns a dictionary of edges of ``self``, with marked points for the end + Return a dictionary of edges of ``self``, with marked points for the end of each distinct squares that can be found in ``self.word()``. EXAMPLES:: @@ -1759,7 +1775,7 @@ def walk_chain(u, v, l, start): successful = False if final_state[0] == 'explicit': parent = final_state[1] - transition = self._find_transition(parent,self._letters[start]) + transition = self._find_transition(parent, self._letters[start]) if transition is not None: child = transition[1] successful = True @@ -1783,7 +1799,9 @@ def walk_chain(u, v, l, start): def treat_node(current_node, i, j): r""" Execute a depth-first search on self and start a suffix walk for - labeled points on each edges of T. The function is recursive, call + labeled points on each edges of T. + + The function is recursive, call treat_node(0,0,0) to initiate the search. INPUT: @@ -1844,14 +1862,13 @@ def treat_node(current_node, i, j): pair = (square_start, edge_label[0]+l-square_start) squares.append(pair) - if output != "pair" and output != "word": - raise ValueError("``output`` should be 'pair' or 'word'; got {}".format( - output)) + if output not in ["pair", "word"]: + msg = f"output should be 'pair' or 'word'; got {output}" + raise ValueError(msg) D = self.transition_function_dictionary() Q = self.labeling squares = [(0, 0)] treat_node(0, 0, 0) if output == "pair": return squares - else: - return [self.word()[i:i+l] for (i, l) in squares] + return [self.word()[i:i + l] for i, l in squares] From 71d8184e3584aa63143fe001dda093e54dca2cff Mon Sep 17 00:00:00 2001 From: Sebastian Spindler Date: Fri, 5 Apr 2024 21:20:26 +0200 Subject: [PATCH 096/140] Implemented reviewer feedback - Blank spaces in error warning - Matrix definition - List comprehension for discriminant computation, also updated in `.discriminant()` of an order --- .../algebras/quatalg/quaternion_algebra.py | 24 ++++++------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/src/sage/algebras/quatalg/quaternion_algebra.py b/src/sage/algebras/quatalg/quaternion_algebra.py index 185fd43ff05..6e74ce80265 100644 --- a/src/sage/algebras/quatalg/quaternion_algebra.py +++ b/src/sage/algebras/quatalg/quaternion_algebra.py @@ -781,8 +781,8 @@ def maximal_order(self, take_shortcuts=True): True """ if self.base_ring() != QQ: - raise NotImplementedError("maximal order only implemented for" - " rational quaternion algebras") + raise NotImplementedError("maximal order only implemented for " + "rational quaternion algebras") d_A = self.discriminant() @@ -914,13 +914,8 @@ def maximal_order(self, take_shortcuts=True): # Since e might not define an order at this point, we need to # manually calculate the updated discriminant - L = [] - for x in e: - MM = [] - for y in e: - MM.append(x.pair(y)) - L.append(MM) - disc = (MatrixSpace(QQ, 4, 4)(L)).determinant().sqrt() + L = [[x.pair(y) for y in e] for x in e] + disc = matrix(QQ, 4, 4, L).determinant().sqrt() e_new_gens.extend(e[1:]) @@ -1826,14 +1821,9 @@ def discriminant(self): sage: type(S.discriminant()) <... 'sage.rings.rational.Rational'> """ - L = [] - for d in self.basis(): - MM = [] - for e in self.basis(): - MM.append(d.pair(e)) - L.append(MM) - - return (MatrixSpace(QQ, 4, 4)(L)).determinant().sqrt() + e = self.basis() + L = [[x.pair(y) for y in e] for x in e] + return matrix(QQ, 4, 4, L).determinant().sqrt() def is_maximal(self): r""" From bce577499188a4d519eb79de518b690e28a88d58 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Sat, 6 Apr 2024 12:04:18 -0700 Subject: [PATCH 097/140] .github/workflows: Change default platform from ubuntu-focal to ubuntu-jammy --- .github/workflows/build.yml | 4 ++-- .github/workflows/ci-conda.yml | 6 +++--- .github/workflows/ci-linux.yml | 2 +- .github/workflows/doc-build-pdf.yml | 4 ++-- .github/workflows/doc-build.yml | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ae06b6bce03..3eecd1a4666 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,7 +15,7 @@ on: platform: description: 'Platform' required: true - default: 'ubuntu-focal-standard' + default: 'ubuntu-jammy-standard' docker_tag: description: 'Docker tag' required: true @@ -52,7 +52,7 @@ jobs: build: runs-on: ubuntu-latest - container: ghcr.io/sagemath/sage/sage-${{ github.event.inputs.platform || 'ubuntu-focal-standard' }}-with-targets:${{ github.event.inputs.docker_tag || 'dev'}} + container: ghcr.io/sagemath/sage/sage-${{ github.event.inputs.platform || 'ubuntu-jammy-standard' }}-with-targets:${{ github.event.inputs.docker_tag || 'dev'}} needs: [get_ci_fixes] steps: - name: Checkout diff --git a/.github/workflows/ci-conda.yml b/.github/workflows/ci-conda.yml index 1bb08637099..a0f3c021643 100644 --- a/.github/workflows/ci-conda.yml +++ b/.github/workflows/ci-conda.yml @@ -35,12 +35,12 @@ jobs: # environment: [environment, environment-optional] conda-env: [environment] # On pull requests, only test two jobs: - # Ubuntu with Python 3.9, macOS with Python 3.10. - # Build & Test currently uses Python 3.11 (on ubuntu-focal). + # Ubuntu with Python 3.9, macOS with Python 3.11. + # Build & Test currently uses Python 3.10 (on ubuntu-jammy). # Together, they cover the supported minor Python versions. include: >- ${{ github.event_name == 'pull_request' - && fromJson('[{"os": "macos", "python": "3.10", "conda-env": "environment"}]') + && fromJson('[{"os": "macos", "python": "3.11", "conda-env": "environment"}]') || fromJson('[]') }} steps: diff --git a/.github/workflows/ci-linux.yml b/.github/workflows/ci-linux.yml index 464e3112386..6860bd6e460 100644 --- a/.github/workflows/ci-linux.yml +++ b/.github/workflows/ci-linux.yml @@ -46,7 +46,7 @@ jobs: targets: build doc-html targets_optional: ptest tox_system_factors: >- - ["ubuntu-focal"] + ["ubuntu-jammy"] tox_packages_factors: >- ["standard"] docker_push_repository: ghcr.io/${{ github.repository }}/ diff --git a/.github/workflows/doc-build-pdf.yml b/.github/workflows/doc-build-pdf.yml index 4ca81e34f6a..ee90f3a42fc 100644 --- a/.github/workflows/doc-build-pdf.yml +++ b/.github/workflows/doc-build-pdf.yml @@ -9,7 +9,7 @@ on: platform: description: 'Platform' required: true - default: 'ubuntu-focal-standard' + default: 'ubuntu-jammy-standard' docker_tag: description: 'Docker tag' required: true @@ -46,7 +46,7 @@ jobs: build-docs-pdf: runs-on: ubuntu-latest - container: ghcr.io/sagemath/sage/sage-${{ github.event.inputs.platform || 'ubuntu-focal-standard' }}-with-targets:${{ github.event.inputs.docker_tag || 'dev'}} + container: ghcr.io/sagemath/sage/sage-${{ github.event.inputs.platform || 'ubuntu-jammy-standard' }}-with-targets:${{ github.event.inputs.docker_tag || 'dev'}} needs: [get_ci_fixes] steps: - name: Checkout diff --git a/.github/workflows/doc-build.yml b/.github/workflows/doc-build.yml index 24c51cbd6b6..b3c275d8e0a 100644 --- a/.github/workflows/doc-build.yml +++ b/.github/workflows/doc-build.yml @@ -41,7 +41,7 @@ jobs: build-docs: runs-on: ubuntu-latest - container: ghcr.io/sagemath/sage/sage-ubuntu-focal-standard-with-targets:dev + container: ghcr.io/sagemath/sage/sage-ubuntu-jammy-standard-with-targets:dev needs: [get_ci_fixes] steps: - name: Checkout From ab9b6804ff82880d804920fb81d5742d0fafe1d7 Mon Sep 17 00:00:00 2001 From: Martin Rubey Date: Sun, 7 Apr 2024 20:52:50 +0200 Subject: [PATCH 098/140] Use proper reference role MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Matthias Köppe --- src/sage/combinat/sf/dual.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sage/combinat/sf/dual.py b/src/sage/combinat/sf/dual.py index aae10602f2d..207e411a2c6 100644 --- a/src/sage/combinat/sf/dual.py +++ b/src/sage/combinat/sf/dual.py @@ -292,7 +292,7 @@ def basis_name(self): Return the name of the basis of ``self``. This is used for output and, for the classical bases of - symmetric functions, to connect this basis with Symmetrica. + symmetric functions, to connect this basis with :ref:`Symmetrica `. EXAMPLES:: From 05fa213289a844c9bc2a173e46330dbc204389ef Mon Sep 17 00:00:00 2001 From: Martin Rubey Date: Sun, 7 Apr 2024 21:47:12 +0200 Subject: [PATCH 099/140] break expected output of doctest MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Matthias Köppe --- src/sage/combinat/sf/sfa.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sage/combinat/sf/sfa.py b/src/sage/combinat/sf/sfa.py index d569b6ce1dd..30ced10112c 100644 --- a/src/sage/combinat/sf/sfa.py +++ b/src/sage/combinat/sf/sfa.py @@ -641,7 +641,8 @@ def corresponding_basis_over(self, R): sage: Sym = SymmetricFunctions(P) sage: mj = Sym.macdonald().J() sage: mj.corresponding_basis_over(Integers(13)['q','t']) - Symmetric Functions over Multivariate Polynomial Ring in q, t over Ring of integers modulo 13 in the Macdonald J basis + Symmetric Functions over Multivariate Polynomial Ring in q, t over + Ring of integers modulo 13 in the Macdonald J basis TESTS: From 312e7befd554dbc4e47a9019d9d388c9d9c42f3a Mon Sep 17 00:00:00 2001 From: Martin Rubey Date: Mon, 8 Apr 2024 09:24:11 +0200 Subject: [PATCH 100/140] remove whitespace --- src/sage/combinat/sf/sfa.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sage/combinat/sf/sfa.py b/src/sage/combinat/sf/sfa.py index 30ced10112c..05abd332b08 100644 --- a/src/sage/combinat/sf/sfa.py +++ b/src/sage/combinat/sf/sfa.py @@ -641,7 +641,7 @@ def corresponding_basis_over(self, R): sage: Sym = SymmetricFunctions(P) sage: mj = Sym.macdonald().J() sage: mj.corresponding_basis_over(Integers(13)['q','t']) - Symmetric Functions over Multivariate Polynomial Ring in q, t over + Symmetric Functions over Multivariate Polynomial Ring in q, t over Ring of integers modulo 13 in the Macdonald J basis TESTS: From 947c57f9dd6dde08fbb2a1c208bbac27fa43dad5 Mon Sep 17 00:00:00 2001 From: Martin Rubey Date: Mon, 8 Apr 2024 09:24:56 +0200 Subject: [PATCH 101/140] remove unused import --- src/sage/combinat/sf/witt.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/sage/combinat/sf/witt.py b/src/sage/combinat/sf/witt.py index 37a07f8139f..c856e8fe399 100644 --- a/src/sage/combinat/sf/witt.py +++ b/src/sage/combinat/sf/witt.py @@ -23,7 +23,6 @@ from sage.arith.misc import divisors from sage.combinat.integer_lists.invlex import IntegerListsLex from sage.combinat.partitions import ZS1_iterator -from sage.matrix.constructor import matrix from sage.misc.cachefunc import cached_method From 845e37ffa40d89f3ee88c2f6a6c5ca56070e5591 Mon Sep 17 00:00:00 2001 From: Martin Rubey Date: Sun, 7 Apr 2024 21:56:23 +0200 Subject: [PATCH 102/140] break expected output of doctest MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Matthias Köppe --- src/sage/combinat/free_module.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/sage/combinat/free_module.py b/src/sage/combinat/free_module.py index d70f3539cd4..eb5e8797084 100644 --- a/src/sage/combinat/free_module.py +++ b/src/sage/combinat/free_module.py @@ -500,9 +500,11 @@ def change_ring(self, R): True sage: T = F.tensor(F); T - Free module generated by {'a', 'b', 'c'} over Integer Ring # Free module generated by {'a', 'b', 'c'} over Integer Ring + Free module generated by {'a', 'b', 'c'} over Integer Ring + # Free module generated by {'a', 'b', 'c'} over Integer Ring sage: T.change_ring(QQ) - Free module generated by {'a', 'b', 'c'} over Rational Field # Free module generated by {'a', 'b', 'c'} over Rational Field + Free module generated by {'a', 'b', 'c'} over Rational Field + # Free module generated by {'a', 'b', 'c'} over Rational Field """ if R is self.base_ring(): return self From f50ac558928ef7029864466e705f79c98ed5547f Mon Sep 17 00:00:00 2001 From: Martin Rubey Date: Mon, 8 Apr 2024 10:52:11 +0200 Subject: [PATCH 103/140] remove whitespace --- src/sage/combinat/free_module.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sage/combinat/free_module.py b/src/sage/combinat/free_module.py index eb5e8797084..2f153396fc0 100644 --- a/src/sage/combinat/free_module.py +++ b/src/sage/combinat/free_module.py @@ -500,10 +500,10 @@ def change_ring(self, R): True sage: T = F.tensor(F); T - Free module generated by {'a', 'b', 'c'} over Integer Ring + Free module generated by {'a', 'b', 'c'} over Integer Ring # Free module generated by {'a', 'b', 'c'} over Integer Ring sage: T.change_ring(QQ) - Free module generated by {'a', 'b', 'c'} over Rational Field + Free module generated by {'a', 'b', 'c'} over Rational Field # Free module generated by {'a', 'b', 'c'} over Rational Field """ if R is self.base_ring(): From 7b5826781f9008ce438217be0370642b1bbb7b11 Mon Sep 17 00:00:00 2001 From: Travis Scrimshaw Date: Tue, 2 Apr 2024 04:07:36 +0900 Subject: [PATCH 104/140] Implementing a faithful finite dimensional representation of a nilpotent Lie algebra. --- .../algebras/lie_algebras/representation.py | 208 ++++++++++++++++++ .../lie_algebras/structure_coefficients.py | 2 +- ...ite_dimensional_lie_algebras_with_basis.py | 13 ++ 3 files changed, 222 insertions(+), 1 deletion(-) diff --git a/src/sage/algebras/lie_algebras/representation.py b/src/sage/algebras/lie_algebras/representation.py index 9d96c42c6fc..997fbf10be7 100644 --- a/src/sage/algebras/lie_algebras/representation.py +++ b/src/sage/algebras/lie_algebras/representation.py @@ -16,7 +16,10 @@ # https://www.gnu.org/licenses/ # **************************************************************************** +from sage.misc.lazy_attribute import lazy_attribute +from sage.misc.cachefunc import cached_method from sage.sets.family import Family, AbstractFamily +from sage.matrix.constructor import matrix from sage.combinat.free_module import CombinatorialFreeModule from sage.categories.modules import Modules from copy import copy @@ -433,3 +436,208 @@ def _acted_upon_(self, scalar, self_on_left=False): return None return P.zero() return super()._acted_upon_(scalar, self_on_left) + + +class FaithfulRepresentationNilpotentPBW(CombinatorialFreeModule, Representation_abstract): + r""" + Return a faithful reprensetation of a nilpotent Lie algebra + constructed using the PBW basis. + + Let `L` be a `k`-step nilpotent Lie algebra. Define a weight function + on elements in `L` by the lower central series of `L`. Then a faithful + representation of `L` is `U(L) / U(L)^{k+1}`, where `U(L)^{k+1}` + is the (twosided) ideal of `U(L)` generated by all monomials + of weight at least `k + 1`. + + We consider an example of the rank 2 Heisenberg Lie algebra, + but with a non-standard basis given by `a = p_1 + z`, `b = q_1`, + and `c = q_1 + z`:: + + sage: L. = LieAlgebra(QQ, {('a','b'): {'b':-1, 'c':1}, ('a','c'): {'b':-1, 'c':1}}) + sage: TestSuite(L).run(elements=list(L.basis())) + sage: L.is_nilpotent() + True + sage: L.derived_series() + (Lie algebra on 3 generators (a, b, c) over Rational Field, + Ideal (b - c) of Lie algebra on 3 generators (a, b, c) over Rational Field, + Ideal () of Lie algebra on 3 generators (a, b, c) over Rational Field) + sage: F = L.faithful_representation() + sage: L.an_element() * F.an_element() + 2*F[1, 0, 0] + 8*F[1, 1, 0] + 3*F[2, 0, 0] + 4*F[0, 1, 0] + + 4*F[0, 2, 0] + 4*F[0, 0, 1] + + REFERENCES: + + - Dietrich Burde, Bettina Eick, and Willem de Graaf. + *Computing faithful representations for nilpotent Lie algebras*. + https://homepage.univie.ac.at/dietrich.burde/papers/burde_35_nilrep.pdf + """ + def __init__(self, L): + r""" + Initialize ``self``. + + EXAMPLES:: + + sage: H2 = lie_algebras.Heisenberg(QQ, 2) + sage: F = H2.faithful_representation() + sage: TestSuite(F).run(elements=list(F.basis())) + """ + LCS = L.lower_central_series() + if LCS[-1].dimension() != 0: + raise ValueError("the Lie algebra must be nilpotent") + # construct an appropriate basis of L + basis_by_deg = {} + self._step = len(LCS) - 1 + prev = LCS[-1] + for D in reversed(LCS[:-1]): + temp = [L(bred) for b in D.basis() if (bred := prev.reduce(b))] + basis_by_deg[self._step-len(basis_by_deg)] = L.echelon_form(temp) + prev = D + + L_basis = sum((basis_by_deg[deg] for deg in sorted(basis_by_deg)), []) + + if all(len(b.support()) == 1 for b in L_basis): + self._Lp = L + else: + cob = matrix([b._vector_() for b in L_basis]).transpose() + self._invcob = ~cob + scoeffs = {} + for i, b in enumerate(L_basis): + for j, bp in enumerate(L_basis[i+1:], start=i+1): + scoeffs[i, j] = (self._invcob * b.bracket(bp)._vector_()).dict() + index_set = tuple(range(L.dimension())) + from sage.algebras.lie_algebras.lie_algebra import LieAlgebra + self._Lp = LieAlgebra(L.base_ring(), scoeffs, index_set=index_set) + + self._pbw = self._Lp.pbw_basis() + self._degrees = tuple(sum(([deg] * len(B) for deg, B in sorted(basis_by_deg.items())), [])) + + from sage.sets.disjoint_union_enumerated_sets import DisjointUnionEnumeratedSets + from sage.combinat.integer_vector_weighted import WeightedIntegerVectors + indices = DisjointUnionEnumeratedSets([WeightedIntegerVectors(n, self._degrees) + for n in range(self._step+1)]) + + Representation_abstract.__init__(self, L) + CombinatorialFreeModule.__init__(self, L.base_ring(), indices, prefix='F', bracket=False) + + def _repr_(self): + r""" + Return a string representation of ``self``. + + EXAMPLES:: + + sage: H2 = lie_algebras.Heisenberg(QQ, 2) + sage: H2.faithful_representation() + Faithful 16 dimensional representation of Heisenberg algebra + of rank 2 over Rational Field + """ + return "Faithful {} dimensional representation of {}".format(self.dimension(), self._lie_algebra) + + def _latex_(self): + r""" + Return a string representation of ``self``. + + EXAMPLES:: + + sage: H2 = lie_algebras.Heisenberg(QQ, 2) + sage: latex(H2.faithful_representation()) + U(\text{\texttt{Heisenberg...}}) / U(\text{\texttt{Heisenberg...}})^{3} + """ + from sage.misc.latex import latex + g = latex(self._lie_algebra) + return "U({0}) / U({0})^{{{1}}}".format(g, self._step+1) + + def _project(self, elt): + r""" + The projection to ``self`` from the PBW basis. + + EXAMPLES:: + + sage: L. = LieAlgebra(QQ, {('a','b'): {'b':-1, 'c':1}, ('a','c'): {'b':-1, 'c':1}}) + sage: F = L.faithful_representation() + sage: elt = F._to_pbw(a + b + c)^2; elt + PBW[0]^2 + 4*PBW[0]*PBW[1] - 2*PBW[0]*PBW[2] + 4*PBW[1]^2 + - 4*PBW[1]*PBW[2] + PBW[2]^2 + 2*PBW[2] + sage: F._project(elt) + 2*F[0, 0, 1] + 4*F[0, 2, 0] + 4*F[1, 1, 0] + F[2, 0, 0] + sage: F._project(F._to_pbw(a + b + c)^3) + 0 + """ + ret = {} + I = self._pbw._indices._indices + for m, c in elt._monomial_coefficients.items(): + mm = m._monomial + vec = [mm[i] if i in mm else 0 for i in I] + if sum(e * d for e, d in zip(vec, self._degrees)) <= self._step: + ret[self._indices(vec)] = c + return self.element_class(self, ret) + + def _to_pbw(self, elt): + """ + Return the PBW element corresponding to ``elt``. + + EXAMPLES:: + + sage: L. = LieAlgebra(QQ, {('a','b'): {'b':-1, 'c':1}, ('a','c'): {'b':-1, 'c':1}}) + sage: F = L.faithful_representation() + sage: F._to_pbw(a) + PBW[0] + sage: F._to_pbw(b) + PBW[1] + sage: F._to_pbw(c) + PBW[1] - PBW[2] + + sage: H2 = lie_algebras.Heisenberg(QQ, 2) + sage: F = H2.faithful_representation() + sage: F._to_pbw(sum(H2.basis())) + PBW['p1'] + PBW['p2'] + PBW['q1'] + PBW['q2'] + PBW['z'] + """ + if self._Lp is self._lie_algebra: + return self._pbw(elt) + return self._pbw(self._Lp.from_vector(self._invcob * elt._vector_())) + + class Element(CombinatorialFreeModule.Element): + def _lift_pbw(self): + """ + Return ``self`` as an element of the PBW basis. + + EXAMPLES:: + + sage: H2 = lie_algebras.Heisenberg(QQ, 2) + sage: F = H2.faithful_representation() + sage: F.an_element()._lift_pbw() + 3*PBW['q1'] + 2*PBW['q2'] + 2 + """ + P = self.parent() + monoid = P._pbw._indices + I = monoid._indices + return P._pbw.element_class(P._pbw, {monoid(list(zip(I, m))): coeff + for m, coeff in self._monomial_coefficients.items()}) + + def _acted_upon_(self, scalar, self_on_left=False): + r""" + Return the action of ``scalar`` on ``self``. + + EXAMPLES:: + + sage: H2 = lie_algebras.Heisenberg(QQ, 2) + sage: F = H2.faithful_representation() + sage: H2.an_element() + p1 + sage: F.an_element() + 2*F[0, 0, 0, 0, 0] + 2*F[0, 0, 0, 1, 0] + 3*F[0, 0, 1, 0, 0] + sage: H2.an_element() * F.an_element() + 2*F[1, 0, 0, 0, 0] + 2*F[1, 0, 0, 1, 0] + 3*F[1, 0, 1, 0, 0] + sage: 5 * F.an_element() + 10*F[0, 0, 0, 0, 0] + 10*F[0, 0, 0, 1, 0] + 15*F[0, 0, 1, 0, 0] + """ + P = self.parent() + if scalar in P._lie_algebra: + if self_on_left: + return None + if not self: # we are (already) the zero vector + return self + scalar = P._lie_algebra(scalar) + return P._project(P._to_pbw(scalar) * self._lift_pbw()) + + return super()._acted_upon_(scalar, self_on_left) diff --git a/src/sage/algebras/lie_algebras/structure_coefficients.py b/src/sage/algebras/lie_algebras/structure_coefficients.py index 6c3eedd0a21..6ef1accb83b 100644 --- a/src/sage/algebras/lie_algebras/structure_coefficients.py +++ b/src/sage/algebras/lie_algebras/structure_coefficients.py @@ -133,7 +133,7 @@ def __classcall_private__(cls, R, s_coeff, names=None, index_set=None, **kwds): from sage.algebras.lie_algebras.abelian import AbelianLieAlgebra return AbelianLieAlgebra(R, names, index_set, **kwds) - if (names is None and len(index_set) <= 1) or len(names) <= 1: + if (names is None and len(index_set) <= 1) or (names is not None and len(names) <= 1): from sage.algebras.lie_algebras.abelian import AbelianLieAlgebra return AbelianLieAlgebra(R, names, index_set, **kwds) diff --git a/src/sage/categories/finite_dimensional_lie_algebras_with_basis.py b/src/sage/categories/finite_dimensional_lie_algebras_with_basis.py index 6cb7badd99a..457bbacb434 100644 --- a/src/sage/categories/finite_dimensional_lie_algebras_with_basis.py +++ b/src/sage/categories/finite_dimensional_lie_algebras_with_basis.py @@ -1927,6 +1927,19 @@ def to_prod(vec, index): return [UEA.sum(to_prod(vec, index) for index in vec.support()) for vec in tens] + def faithful_representation(self, algorithm=None): + """ + Return a faithful representation of ``self``. + """ + if self.is_nilpotent(): + if algorithm is None: + algorithm = "regular" + if algorithm == "regular": + from sage.algebras.lie_algebras.representation import FaithfulRepresentationNilpotentPBW + return FaithfulRepresentationNilpotentPBW(self) + raise ValueError("invalid algorithm") + raise NotImplementedError("only implemented for nilpotent Lie algebras") + class ElementMethods: def adjoint_matrix(self, sparse=False): # In #11111 (more or less) by using matrix of a morphism """ From aced8f4ab23436cd6ec101ca1ed1ef356500a4f2 Mon Sep 17 00:00:00 2001 From: Travis Scrimshaw Date: Tue, 2 Apr 2024 07:20:30 +0900 Subject: [PATCH 105/140] Adding the "minimal" representation construction. --- .../algebras/lie_algebras/representation.py | 138 ++++++++++++++++-- ...ite_dimensional_lie_algebras_with_basis.py | 5 +- 2 files changed, 130 insertions(+), 13 deletions(-) diff --git a/src/sage/algebras/lie_algebras/representation.py b/src/sage/algebras/lie_algebras/representation.py index 997fbf10be7..aaae72e0338 100644 --- a/src/sage/algebras/lie_algebras/representation.py +++ b/src/sage/algebras/lie_algebras/representation.py @@ -97,6 +97,44 @@ def _test_representation(self, **options): for v in S: tester.assertEqual(x.bracket(y) * v, x * (y * v) - y * (x * v)) + def representation_matrix(self, elt): + """ + Return the matrix for the action of ``elt`` on ``self``. + + EXAMPLES:: + + sage: H1 = lie_algebras.Heisenberg(QQ, 1) + sage: F = H1.faithful_representation(algorithm="minimal") + sage: P1 = F.representation_matrix(H1.gen(0)); P1 + [0 0 0] + [0 0 0] + [1 0 0] + sage: Q1 = F.representation_matrix(H1.gen(1)); Q1 + [ 0 0 0] + [ 0 0 -1] + [ 0 0 0] + sage: Z = P1.commutator(Q1); Z + [0 0 0] + [1 0 0] + [0 0 0] + sage: P1.commutator(Z) == Q1.commutator(Z) == 0 + True + sage: (H1.gen(0) * F.an_element()).to_vector() + (0, 0, 2) + sage: P1 * F.an_element().to_vector() + (0, 0, 2) + sage: (H1.gen(1) * F.an_element()).to_vector() + (0, -3, 0) + sage: Q1 * F.an_element().to_vector() + (0, -3, 0) + sage: (H1.basis()['z'] * F.an_element()).to_vector() + (0, 2, 0) + sage: Z * F.an_element().to_vector() + (0, 2, 0) + """ + B = self.basis() + return matrix([(elt * B[k]).to_vector() for k in self.get_order()]).transpose() + class RepresentationByMorphism(CombinatorialFreeModule, Representation_abstract): r""" @@ -466,13 +504,18 @@ class FaithfulRepresentationNilpotentPBW(CombinatorialFreeModule, Representation 2*F[1, 0, 0] + 8*F[1, 1, 0] + 3*F[2, 0, 0] + 4*F[0, 1, 0] + 4*F[0, 2, 0] + 4*F[0, 0, 1] + An example with ``minimal=True`` for `H_2 \oplus A_1`, where `A_1` is + a `1`-dimensional Abelian Lie algebra:: + + sage: L. = LieAlgebra(QQ, {('a','b'): {'b':-1, 'c':1}, ('a','c'): {'b':-1, 'c':1}}) + REFERENCES: - Dietrich Burde, Bettina Eick, and Willem de Graaf. *Computing faithful representations for nilpotent Lie algebras*. https://homepage.univie.ac.at/dietrich.burde/papers/burde_35_nilrep.pdf """ - def __init__(self, L): + def __init__(self, L, minimal=True): r""" Initialize ``self``. @@ -481,6 +524,10 @@ def __init__(self, L): sage: H2 = lie_algebras.Heisenberg(QQ, 2) sage: F = H2.faithful_representation() sage: TestSuite(F).run(elements=list(F.basis())) + + sage: L. = LieAlgebra(QQ, {('a','b'): {'b':-1, 'c':1}, ('a','c'): {'b':-1, 'c':1}}) + sage: F = L.faithful_representation() + sage: TestSuite(F).run() """ LCS = L.lower_central_series() if LCS[-1].dimension() != 0: @@ -488,11 +535,29 @@ def __init__(self, L): # construct an appropriate basis of L basis_by_deg = {} self._step = len(LCS) - 1 - prev = LCS[-1] - for D in reversed(LCS[:-1]): - temp = [L(bred) for b in D.basis() if (bred := prev.reduce(b))] - basis_by_deg[self._step-len(basis_by_deg)] = L.echelon_form(temp) - prev = D + self._minimal = minimal + if self._minimal: + Z = L.center() + ZB = [L(b) for b in Z.basis()] + prev = LCS[-1] + for D in reversed(LCS[:-1]): + cur = [] + for ind in range(len(ZB)-1, -1, -1): + z = ZB[ind] + if z in D: + ZB.pop(ind) + cur.append(z) + k = self._step-len(basis_by_deg) + basis_by_deg[k] = cur + temp = [bred for b in D.basis() if (bred := Z.reduce(prev.reduce(L(b))))] + basis_by_deg[k].extend(L.echelon_form(temp)) + prev = D + else: + prev = LCS[-1] + for D in reversed(LCS[:-1]): + temp = [L(bred) for b in D.basis() if (bred := prev.reduce(L(b)))] + basis_by_deg[self._step-len(basis_by_deg)] = L.echelon_form(temp) + prev = D L_basis = sum((basis_by_deg[deg] for deg in sorted(basis_by_deg)), []) @@ -517,6 +582,43 @@ def __init__(self, L): indices = DisjointUnionEnumeratedSets([WeightedIntegerVectors(n, self._degrees) for n in range(self._step+1)]) + if self._minimal: + X = set([tuple(index) for index in indices]) + monoid = self._pbw._indices + I = monoid._indices + one = L.base_ring().one() + pbw_gens = self._pbw.algebra_generators() + ZB = frozenset([L(b) for b in Z.basis()]) + Zind = [i for i, b in enumerate(L_basis) if b in ZB] + Ztup = set() + for i in Zind: + vec = [0] * L.dimension() + vec[i] = 1 + Ztup.add(tuple(vec)) + + def as_exp(s): + sm = s._monomial + return tuple([sm[i] if i in sm else 0 for i in I]) + + def test_ideal(m, X): + elt = self._pbw.element_class(self._pbw, {monoid(list(zip(I, m))): one}) + for g in pbw_gens: + gelt = g * elt + if any(as_exp(s) in X for s in gelt.support()): + return False + return True + + to_remove = set([None]) + while to_remove: + X -= to_remove + to_remove = set() + for m in X: + m = tuple(m) + if m in Ztup or not test_ideal(m, X): + continue + to_remove.add(m) + indices = sorted(X) + Representation_abstract.__init__(self, L) CombinatorialFreeModule.__init__(self, L.base_ring(), indices, prefix='F', bracket=False) @@ -531,6 +633,8 @@ def _repr_(self): Faithful 16 dimensional representation of Heisenberg algebra of rank 2 over Rational Field """ + if self._minimal: + return "Minimal faithful representation of {}".format(self._lie_algebra) return "Faithful {} dimensional representation of {}".format(self.dimension(), self._lie_algebra) def _latex_(self): @@ -545,7 +649,10 @@ def _latex_(self): """ from sage.misc.latex import latex g = latex(self._lie_algebra) - return "U({0}) / U({0})^{{{1}}}".format(g, self._step+1) + ret = "U({0}) / U({0})^{{{1}}}".format(g, self._step+1) + if self._minimal: + return "\\min " + ret + return ret def _project(self, elt): r""" @@ -565,11 +672,18 @@ def _project(self, elt): """ ret = {} I = self._pbw._indices._indices - for m, c in elt._monomial_coefficients.items(): - mm = m._monomial - vec = [mm[i] if i in mm else 0 for i in I] - if sum(e * d for e, d in zip(vec, self._degrees)) <= self._step: - ret[self._indices(vec)] = c + if self._minimal: + for m, c in elt._monomial_coefficients.items(): + mm = m._monomial + vec = tuple([mm[i] if i in mm else 0 for i in I]) + if vec in self._indices: + ret[self._indices(vec)] = c + else: + for m, c in elt._monomial_coefficients.items(): + mm = m._monomial + vec = [mm[i] if i in mm else 0 for i in I] + if sum(e * d for e, d in zip(vec, self._degrees)) <= self._step: + ret[self._indices(vec)] = c return self.element_class(self, ret) def _to_pbw(self, elt): diff --git a/src/sage/categories/finite_dimensional_lie_algebras_with_basis.py b/src/sage/categories/finite_dimensional_lie_algebras_with_basis.py index 457bbacb434..01b1638362e 100644 --- a/src/sage/categories/finite_dimensional_lie_algebras_with_basis.py +++ b/src/sage/categories/finite_dimensional_lie_algebras_with_basis.py @@ -1936,7 +1936,10 @@ def faithful_representation(self, algorithm=None): algorithm = "regular" if algorithm == "regular": from sage.algebras.lie_algebras.representation import FaithfulRepresentationNilpotentPBW - return FaithfulRepresentationNilpotentPBW(self) + return FaithfulRepresentationNilpotentPBW(self, minimal=False) + if algorithm == "minimal": + from sage.algebras.lie_algebras.representation import FaithfulRepresentationNilpotentPBW + return FaithfulRepresentationNilpotentPBW(self, minimal=True) raise ValueError("invalid algorithm") raise NotImplementedError("only implemented for nilpotent Lie algebras") From 749b9b92900ca96d57887018b59e2383010cd738 Mon Sep 17 00:00:00 2001 From: Travis Scrimshaw Date: Tue, 2 Apr 2024 21:44:19 +0900 Subject: [PATCH 106/140] Finalizing the details of faithful nilpotent representations. --- src/doc/en/reference/references/index.rst | 5 ++ .../algebras/lie_algebras/representation.py | 41 +++++++++-- ...ite_dimensional_lie_algebras_with_basis.py | 72 ++++++++++++++++++- 3 files changed, 109 insertions(+), 9 deletions(-) diff --git a/src/doc/en/reference/references/index.rst b/src/doc/en/reference/references/index.rst index 3d2aec45320..18e91c30e82 100644 --- a/src/doc/en/reference/references/index.rst +++ b/src/doc/en/reference/references/index.rst @@ -695,6 +695,11 @@ REFERENCES: *Finite hypergeometric functions*, :arxiv:`1505.02900` +.. [BEdG2009] Dietrich Burde, Bettina Eick, and Willem de Graaf. + *Computing faithful representations for nilpotent Lie algebras*. + J. Algebra, **322** no. 3 (2009) pp. 602-612. + doi:`10.1016/j.jalgebra.2009.04.041`, arxiv:`0807.2345`. + .. [Bee] Robert A. Beezer, *A First Course in Linear Algebra*, http://linear.ups.edu/. Accessed 15 July 2010. diff --git a/src/sage/algebras/lie_algebras/representation.py b/src/sage/algebras/lie_algebras/representation.py index aaae72e0338..fbce6599469 100644 --- a/src/sage/algebras/lie_algebras/representation.py +++ b/src/sage/algebras/lie_algebras/representation.py @@ -487,6 +487,12 @@ class FaithfulRepresentationNilpotentPBW(CombinatorialFreeModule, Representation is the (twosided) ideal of `U(L)` generated by all monomials of weight at least `k + 1`. + We can also expand the ideal keeping the property that `I \cap Z(L) = 0`. + The resulting quotient `U(L) / I` remains faithful and is a minimal + faithful representation of `L` in the sense that it has no faithful + submodules or quotients. (Note: this is not necessarily the smallest + dimensional faithful representation of `L`.) + We consider an example of the rank 2 Heisenberg Lie algebra, but with a non-standard basis given by `a = p_1 + z`, `b = q_1`, and `c = q_1 + z`:: @@ -504,18 +510,37 @@ class FaithfulRepresentationNilpotentPBW(CombinatorialFreeModule, Representation 2*F[1, 0, 0] + 8*F[1, 1, 0] + 3*F[2, 0, 0] + 4*F[0, 1, 0] + 4*F[0, 2, 0] + 4*F[0, 0, 1] + sage: MF = L.faithful_representation(algorithm="minimal") + sage: MF.dimension() + 3 + sage: [MF.representation_matrix(be) for be in L.basis()] + [ + [0 0 0] [ 0 0 0] [ 0 0 0] + [0 0 0] [ 0 0 -1] [ 1 0 -1] + [1 0 0], [ 0 0 0], [ 0 0 0] + ] + An example with ``minimal=True`` for `H_2 \oplus A_1`, where `A_1` is a `1`-dimensional Abelian Lie algebra:: sage: L. = LieAlgebra(QQ, {('a','b'): {'b':-1, 'c':1}, ('a','c'): {'b':-1, 'c':1}}) + sage: F = L.faithful_representation(); F + Faithful 11 dimensional representation of Lie algebra on 4 generators (a, b, c, d) over Rational Field + sage: MF = L.faithful_representation(algorithm="minimal"); MF + Minimal faithful representation of Lie algebra on 4 generators (a, b, c, d) over Rational Field + sage: MF.dimension() + 4 + + INPUT: + + - ``minimal`` -- boolean (default: ``False``); whether to construct + the minimal basis or not REFERENCES: - - Dietrich Burde, Bettina Eick, and Willem de Graaf. - *Computing faithful representations for nilpotent Lie algebras*. - https://homepage.univie.ac.at/dietrich.burde/papers/burde_35_nilrep.pdf + - [BEdG2009]_ """ - def __init__(self, L, minimal=True): + def __init__(self, L, minimal=False): r""" Initialize ``self``. @@ -524,10 +549,14 @@ def __init__(self, L, minimal=True): sage: H2 = lie_algebras.Heisenberg(QQ, 2) sage: F = H2.faithful_representation() sage: TestSuite(F).run(elements=list(F.basis())) + sage: MF = H2.faithful_representation(algorithm="minimal") + sage: TestSuite(MF).run(elements=list(MF.basis())) sage: L. = LieAlgebra(QQ, {('a','b'): {'b':-1, 'c':1}, ('a','c'): {'b':-1, 'c':1}}) sage: F = L.faithful_representation() - sage: TestSuite(F).run() + sage: TestSuite(F).run(elements=list(F.basis())) + sage: MF = L.faithful_representation(algorithm="minimal") + sage: TestSuite(MF).run(elements=list(MF.basis())) """ LCS = L.lower_central_series() if LCS[-1].dimension() != 0: @@ -546,7 +575,7 @@ def __init__(self, L, minimal=True): z = ZB[ind] if z in D: ZB.pop(ind) - cur.append(z) + cur.append(z) k = self._step-len(basis_by_deg) basis_by_deg[k] = cur temp = [bred for b in D.basis() if (bred := Z.reduce(prev.reduce(L(b))))] diff --git a/src/sage/categories/finite_dimensional_lie_algebras_with_basis.py b/src/sage/categories/finite_dimensional_lie_algebras_with_basis.py index 01b1638362e..820be753893 100644 --- a/src/sage/categories/finite_dimensional_lie_algebras_with_basis.py +++ b/src/sage/categories/finite_dimensional_lie_algebras_with_basis.py @@ -1928,8 +1928,73 @@ def to_prod(vec, index): for vec in tens] def faithful_representation(self, algorithm=None): - """ + r""" Return a faithful representation of ``self``. + + By Ado's and Iwasawa's theorems, every finite dimensional + Lie algebra has a faithful finite dimensional representation. + + INPUT: + + - ``algorithm`` -- one of the following depending on the + classification of the Lie algebra: + + Nilpotent Lie algebras: + + * ``'regular'`` -- use the universal enveloping algebra quotient + :class:`~sage.algebras.lie_algebras.representation.FaithfulRepresentationNilpotentPBW` + * ``'minimal'`` -- construct the minimal representation (for + precise details, see the documentation of + :class:`~sage.algebras.lie_algebras.representation.FaithfulRepresentationNilpotentPBW`) + + Solvable but not nilpotent: + + * Not implemented + + Semisimple: + + * Not implemented + + General case + + * Not implemented + + EXAMPLES:: + + sage: H2 = lie_algebras.Heisenberg(QQ, 2) + sage: H2.is_nilpotent() + True + sage: F = H2.faithful_representation(); F + Faithful 16 dimensional representation of Heisenberg algebra of rank 2 over Rational Field + sage: M = H2.faithful_representation(algorithm="minimal"); M + Minimal faithful representation of Heisenberg algebra of rank 2 over Rational Field + sage: M.dimension() + 4 + sage: H2.faithful_representation(algorithm="invalid") + Traceback (most recent call last): + ... + ValueError: invalid algorithm 'invalid' + + sage: scoeffs = {('a','d'): {'a':1}, ('a','e'): {'b':-1}, + ....: ('b','d'): {'b':1}, ('b','e'): {'a':1}, + ....: ('d','e'): {'c':1}} + sage: L. = LieAlgebra(QQ, scoeffs) + sage: L.is_nilpotent() + False + sage: L.is_solvable() + True + sage: L.faithful_representation() + Traceback (most recent call last): + ... + NotImplementedError: only implemented for nilpotent Lie algebras + + sage: sl3 = LieAlgebra(QQ, cartan_type=['A', 2]) + sage: sl3.is_semisimple() + True + sage: sl3.faithful_representation() + Traceback (most recent call last): + ... + NotImplementedError: only implemented for nilpotent Lie algebras """ if self.is_nilpotent(): if algorithm is None: @@ -1940,8 +2005,9 @@ def faithful_representation(self, algorithm=None): if algorithm == "minimal": from sage.algebras.lie_algebras.representation import FaithfulRepresentationNilpotentPBW return FaithfulRepresentationNilpotentPBW(self, minimal=True) - raise ValueError("invalid algorithm") - raise NotImplementedError("only implemented for nilpotent Lie algebras") + else: + raise NotImplementedError("only implemented for nilpotent Lie algebras") + raise ValueError("invalid algorithm '{}'".format(algorithm)) class ElementMethods: def adjoint_matrix(self, sparse=False): # In #11111 (more or less) by using matrix of a morphism From 4efa273b9b8a1d732e24ac6abec991ed75d17883 Mon Sep 17 00:00:00 2001 From: Travis Scrimshaw Date: Mon, 1 Apr 2024 06:32:42 +0900 Subject: [PATCH 107/140] Implementing the Jordan decomposition of a matrix. --- src/sage/matrix/matrix2.pyx | 80 +++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) diff --git a/src/sage/matrix/matrix2.pyx b/src/sage/matrix/matrix2.pyx index c3f621ec8ef..637b69c7d37 100644 --- a/src/sage/matrix/matrix2.pyx +++ b/src/sage/matrix/matrix2.pyx @@ -9964,6 +9964,33 @@ cdef class Matrix(Matrix1): chi = self.charpoly() return chi.is_monomial() + def is_semisimple(self) -> bool: + r""" + Return if ``self`` is semisimple. + + A (square) matrix `A` is *semisimple* if the + :meth:`minimal polynomial ` of `A` is sqaure-free. + + If `A` represents a linear map from `F^n \to F^n` for some field `F`, + then this is equivalent to every `A`-invariant subspace of `F^n` + has a complementary `A`-invariant subspace. This is also equivalent + to saying the matrix is diagonalizable over `\bar{F}`, the algebraic + closure of `F`. + + EXAMPLES:: + + sage: A = matrix([[0, -1], [1, 0]]); A + [ 0 -1] + [ 1 0] + sage: A.is_semisimple() + True + sage: A.change_ring(QQ).is_diagonalizable() + False + sage: A.change_ring(CyclotomicField(4)).is_diagonalizable() + True + """ + return self.minpoly().is_squarefree() + def as_sum_of_permutations(self): r""" Returns the current matrix as a sum of permutation matrices @@ -11660,6 +11687,59 @@ cdef class Matrix(Matrix1): else: return J + def jordan_decomposition(self): + r""" + Return the Jordan decomposition of ``self``. + + The Jordan decomposition of a matrix `A` is a pair of + matrices `(S, N)` such that + + - `A = S + N`, + - `S` is semisimple, + - `N` is nilpotent. + + EXAMPLES:: + + sage: A = matrix(QQ, 5, 5, {(0,1): -1, (1,0): 1, (2,3): -1}); A + [ 0 -1 0 0 0] + [ 1 0 0 0 0] + [ 0 0 0 -1 0] + [ 0 0 0 0 0] + [ 0 0 0 0 0] + sage: S, N = A.jordan_decomposition() + sage: S + [ 0 -1 0 0 0] + [ 1 0 0 0 0] + [ 0 0 0 0 0] + [ 0 0 0 0 0] + [ 0 0 0 0 0] + sage: N + [ 0 0 0 0 0] + [ 0 0 0 0 0] + [ 0 0 0 -1 0] + [ 0 0 0 0 0] + [ 0 0 0 0 0] + sage: A == S + N + True + sage: S.is_semisimple() + True + sage: N.is_nilpotent() + True + sage: A.jordan_form() + Traceback (most recent call last): + ... + RuntimeError: Some eigenvalue does not exist in Rational Field. + """ + f = self.minpoly() + h = f // f.gcd(f.diff()) + o, p, q = h.xgcd(h.diff()) + assert o.is_one() + A = self + hq = h * q + while h(A): + A -= hq(A) + return (A, self - A) + def diagonalization(self, base_field=None): """ Return a diagonal matrix similar to ``self`` along with the From 70809e993ef1cf0cb84ed231eb2781cf05750ab0 Mon Sep 17 00:00:00 2001 From: Travis Scrimshaw Date: Wed, 3 Apr 2024 14:56:31 +0900 Subject: [PATCH 108/140] Don't do inexact rings, better error messages, and cache the results --- src/sage/matrix/matrix2.pyx | 42 ++++++++++++++++++++++++++++++++++--- 1 file changed, 39 insertions(+), 3 deletions(-) diff --git a/src/sage/matrix/matrix2.pyx b/src/sage/matrix/matrix2.pyx index 637b69c7d37..9a7fdd393c5 100644 --- a/src/sage/matrix/matrix2.pyx +++ b/src/sage/matrix/matrix2.pyx @@ -11729,16 +11729,52 @@ cdef class Matrix(Matrix1): Traceback (most recent call last): ... RuntimeError: Some eigenvalue does not exist in Rational Field. + + TESTS:: + + sage: X = random_matrix(QQ, 4) + sage: S, N = X.jordan_decomposition() + sage: X == S + N + True + sage: S is X.jordan_decomposition()[0] # result is cached + True + sage: N is X.jordan_decomposition()[1] # result is cached + True + sage: A = matrix(ZZ, 5, 5, {(0,1): -1, (1,0): 1, (2,3): -1}) + sage: A.jordan_decomposition() + Traceback (most recent call last): + ... + ValueError: unable to compute Jordan decomposition + sage: B = A.change_ring(RR) + sage: B.jordan_decomposition() + Traceback (most recent call last): + ... + NotImplementedError: Jordan decomposition not implemented over inexact rings """ + if not self.base_ring().is_exact(): + raise NotImplementedError("Jordan decomposition not implemented over inexact rings") + JD = self.fetch('jordan_decomposition') + if JD is not None: + return JD f = self.minpoly() h = f // f.gcd(f.diff()) o, p, q = h.xgcd(h.diff()) - assert o.is_one() + if not o.is_one(): + raise ValueError("unable to compute Jordan decomposition") A = self hq = h * q - while h(A): + # very bad bound, but requires no extra computation + # a better bound is the maximum multiplicity in the minpoly, + # but this requires factoring the minpoly + for _ in range(self.nrows()): + if not h(A): + ret = (A, self - A) + ret[0].set_immutable() + ret[1].set_immutable() + self.cache('jordan_decomposition', ret) + return ret A -= hq(A) - return (A, self - A) + raise ValueError("Jordan decomposition does not exist") def diagonalization(self, base_field=None): """ From 643d320c1fd324c29b3c8fbdc16c318c85b011ab Mon Sep 17 00:00:00 2001 From: Travis Scrimshaw Date: Mon, 8 Apr 2024 13:17:31 +0900 Subject: [PATCH 109/140] Whitespace and long line breaks from reviewer comments. --- .../algebras/lie_algebras/representation.py | 27 ++++++++++++------- ...ite_dimensional_lie_algebras_with_basis.py | 6 +++-- 2 files changed, 21 insertions(+), 12 deletions(-) diff --git a/src/sage/algebras/lie_algebras/representation.py b/src/sage/algebras/lie_algebras/representation.py index fbce6599469..c6bd62dd0cc 100644 --- a/src/sage/algebras/lie_algebras/representation.py +++ b/src/sage/algebras/lie_algebras/representation.py @@ -497,7 +497,8 @@ class FaithfulRepresentationNilpotentPBW(CombinatorialFreeModule, Representation but with a non-standard basis given by `a = p_1 + z`, `b = q_1`, and `c = q_1 + z`:: - sage: L. = LieAlgebra(QQ, {('a','b'): {'b':-1, 'c':1}, ('a','c'): {'b':-1, 'c':1}}) + sage: scoeffs = {('a','b'): {'b':-1, 'c':1}, ('a','c'): {'b':-1, 'c':1}} + sage: L. = LieAlgebra(QQ, scoeffs) sage: TestSuite(L).run(elements=list(L.basis())) sage: L.is_nilpotent() True @@ -523,11 +524,14 @@ class FaithfulRepresentationNilpotentPBW(CombinatorialFreeModule, Representation An example with ``minimal=True`` for `H_2 \oplus A_1`, where `A_1` is a `1`-dimensional Abelian Lie algebra:: - sage: L. = LieAlgebra(QQ, {('a','b'): {'b':-1, 'c':1}, ('a','c'): {'b':-1, 'c':1}}) + sage: scoeffs = {('a','b'): {'b':-1, 'c':1}, ('a','c'): {'b':-1, 'c':1}} + sage: L. = LieAlgebra(QQ, scoeffs) sage: F = L.faithful_representation(); F - Faithful 11 dimensional representation of Lie algebra on 4 generators (a, b, c, d) over Rational Field + Faithful 11 dimensional representation of Lie algebra on 4 + generators (a, b, c, d) over Rational Field sage: MF = L.faithful_representation(algorithm="minimal"); MF - Minimal faithful representation of Lie algebra on 4 generators (a, b, c, d) over Rational Field + Minimal faithful representation of Lie algebra on 4 + generators (a, b, c, d) over Rational Field sage: MF.dimension() 4 @@ -552,7 +556,8 @@ def __init__(self, L, minimal=False): sage: MF = H2.faithful_representation(algorithm="minimal") sage: TestSuite(MF).run(elements=list(MF.basis())) - sage: L. = LieAlgebra(QQ, {('a','b'): {'b':-1, 'c':1}, ('a','c'): {'b':-1, 'c':1}}) + sage: sc = {('a','b'): {'b':-1, 'c':1}, ('a','c'): {'b':-1, 'c':1}} + sage: L. = LieAlgebra(QQ, sc) sage: F = L.faithful_representation() sage: TestSuite(F).run(elements=list(F.basis())) sage: MF = L.faithful_representation(algorithm="minimal") @@ -571,12 +576,12 @@ def __init__(self, L, minimal=False): prev = LCS[-1] for D in reversed(LCS[:-1]): cur = [] - for ind in range(len(ZB)-1, -1, -1): + for ind in range(len(ZB) - 1, -1, -1): z = ZB[ind] if z in D: ZB.pop(ind) cur.append(z) - k = self._step-len(basis_by_deg) + k = self._step - len(basis_by_deg) basis_by_deg[k] = cur temp = [bred for b in D.basis() if (bred := Z.reduce(prev.reduce(L(b))))] basis_by_deg[k].extend(L.echelon_form(temp)) @@ -594,7 +599,7 @@ def __init__(self, L, minimal=False): self._Lp = L else: cob = matrix([b._vector_() for b in L_basis]).transpose() - self._invcob = ~cob + self._invcob = cob.inverse() scoeffs = {} for i, b in enumerate(L_basis): for j, bp in enumerate(L_basis[i+1:], start=i+1): @@ -689,7 +694,8 @@ def _project(self, elt): EXAMPLES:: - sage: L. = LieAlgebra(QQ, {('a','b'): {'b':-1, 'c':1}, ('a','c'): {'b':-1, 'c':1}}) + sage: sc = {('a','b'): {'b':-1, 'c':1}, ('a','c'): {'b':-1, 'c':1}} + sage: L. = LieAlgebra(QQ, sc) sage: F = L.faithful_representation() sage: elt = F._to_pbw(a + b + c)^2; elt PBW[0]^2 + 4*PBW[0]*PBW[1] - 2*PBW[0]*PBW[2] + 4*PBW[1]^2 @@ -721,7 +727,8 @@ def _to_pbw(self, elt): EXAMPLES:: - sage: L. = LieAlgebra(QQ, {('a','b'): {'b':-1, 'c':1}, ('a','c'): {'b':-1, 'c':1}}) + sage: sc = {('a','b'): {'b':-1, 'c':1}, ('a','c'): {'b':-1, 'c':1}} + sage: L. = LieAlgebra(QQ, sc) sage: F = L.faithful_representation() sage: F._to_pbw(a) PBW[0] diff --git a/src/sage/categories/finite_dimensional_lie_algebras_with_basis.py b/src/sage/categories/finite_dimensional_lie_algebras_with_basis.py index 820be753893..63a9ef29bc4 100644 --- a/src/sage/categories/finite_dimensional_lie_algebras_with_basis.py +++ b/src/sage/categories/finite_dimensional_lie_algebras_with_basis.py @@ -1965,9 +1965,11 @@ def faithful_representation(self, algorithm=None): sage: H2.is_nilpotent() True sage: F = H2.faithful_representation(); F - Faithful 16 dimensional representation of Heisenberg algebra of rank 2 over Rational Field + Faithful 16 dimensional representation of + Heisenberg algebra of rank 2 over Rational Field sage: M = H2.faithful_representation(algorithm="minimal"); M - Minimal faithful representation of Heisenberg algebra of rank 2 over Rational Field + Minimal faithful representation of + Heisenberg algebra of rank 2 over Rational Field sage: M.dimension() 4 sage: H2.faithful_representation(algorithm="invalid") From 7420741c65e7bf8aa9a2cd8fe2b5fee727e7720a Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Mon, 8 Apr 2024 22:00:45 -0700 Subject: [PATCH 110/140] ./src/sage/modules/with_basis/representation.py: pycodestyle fix --- src/sage/modules/with_basis/representation.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/sage/modules/with_basis/representation.py b/src/sage/modules/with_basis/representation.py index 0e1e081c671..c484cd657d6 100644 --- a/src/sage/modules/with_basis/representation.py +++ b/src/sage/modules/with_basis/representation.py @@ -1420,7 +1420,6 @@ def _action_on_basis(self, g, b, vec_on_left): return self.element_class(self, data) - class RegularRepresentation(Representation): r""" The regular representation of a semigroup. @@ -1503,7 +1502,6 @@ def _right_on_basis(self, g, m): return self.monomial(m * g) - class TrivialRepresentation(Representation_abstract): """ The trivial representation of a semigroup. From ddcc8ec96a7726765edcd81d0420c060a3c7a684 Mon Sep 17 00:00:00 2001 From: Martin Rubey Date: Tue, 9 Apr 2024 08:52:02 +0200 Subject: [PATCH 111/140] also allow Cartesian products --- src/sage/combinat/free_module.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/sage/combinat/free_module.py b/src/sage/combinat/free_module.py index 2f153396fc0..5daabd153fb 100644 --- a/src/sage/combinat/free_module.py +++ b/src/sage/combinat/free_module.py @@ -505,6 +505,15 @@ def change_ring(self, R): sage: T.change_ring(QQ) Free module generated by {'a', 'b', 'c'} over Rational Field # Free module generated by {'a', 'b', 'c'} over Rational Field + + sage: G = CombinatorialFreeModule(ZZ, ['x','y']); G + Free module generated by {'x', 'y'} over Integer Ring + sage: T = F.cartesian_product(G); T + Free module generated by {'a', 'b', 'c'} over Integer Ring + (+) Free module generated by {'x', 'y'} over Integer Ring + sage: T.change_ring(QQ) + Free module generated by {'a', 'b', 'c'} over Rational Field + (+) Free module generated by {'x', 'y'} over Rational Field """ if R is self.base_ring(): return self @@ -515,7 +524,8 @@ def change_ring(self, R): if isinstance(functor, VectorFunctor): return functor(R) from sage.categories.tensor import TensorProductFunctor - if isinstance(functor, TensorProductFunctor): + from sage.categories.cartesian_product import CartesianProductFunctor + if isinstance(functor, (TensorProductFunctor, CartesianProductFunctor)): return functor([f.change_ring(R) for f in args]) raise NotImplementedError('the method change_ring() has not yet been implemented') From c8e1693c180c3a99f67907cbca91e20fda50b455 Mon Sep 17 00:00:00 2001 From: Martin Rubey Date: Tue, 9 Apr 2024 08:58:43 +0200 Subject: [PATCH 112/140] codestyle fixes --- src/sage/combinat/free_module.py | 790 ++++++++++++++++--------------- 1 file changed, 397 insertions(+), 393 deletions(-) diff --git a/src/sage/combinat/free_module.py b/src/sage/combinat/free_module.py index 5daabd153fb..12bbd4385db 100644 --- a/src/sage/combinat/free_module.py +++ b/src/sage/combinat/free_module.py @@ -1023,10 +1023,10 @@ def from_vector(self, vector, order=None, coerce=True): if order is None: order = self.get_order() if not coerce or vector.base_ring() is self.base_ring(): - return self._from_dict({order[i]: c for i,c in vector.items()}, + return self._from_dict({order[i]: c for i, c in vector.items()}, coerce=False) R = self.base_ring() - return self._from_dict({order[i]: R(c) for i,c in vector.items() if R(c)}, + return self._from_dict({order[i]: R(c) for i, c in vector.items() if R(c)}, coerce=False, remove_zeros=False) def sum(self, iter_of_elements): @@ -1263,430 +1263,434 @@ def _from_dict(self, d, coerce=False, remove_zeros=True): class CombinatorialFreeModule_Tensor(CombinatorialFreeModule): - """ - Tensor Product of Free Modules + """ + Tensor Product of Free Modules - EXAMPLES: + EXAMPLES: - We construct two free modules, assign them short names, and construct their tensor product:: + We construct two free modules, assign them short names, and construct their tensor product:: - sage: F = CombinatorialFreeModule(ZZ, [1,2]); F.rename("F") - sage: G = CombinatorialFreeModule(ZZ, [3,4]); G.rename("G") - sage: T = tensor([F, G]); T - F # G + sage: F = CombinatorialFreeModule(ZZ, [1,2]); F.rename("F") + sage: G = CombinatorialFreeModule(ZZ, [3,4]); G.rename("G") + sage: T = tensor([F, G]); T + F # G - sage: T.category() - Category of tensor products of - finite dimensional modules with basis over Integer Ring + sage: T.category() + Category of tensor products of + finite dimensional modules with basis over Integer Ring - sage: T.construction() # todo: not implemented - [tensor, ] + sage: T.construction() # todo: not implemented + [tensor, ] - T is a free module, with same base ring as F and G:: + T is a free module, with same base ring as F and G:: - sage: T.base_ring() - Integer Ring + sage: T.base_ring() + Integer Ring - The basis of T is indexed by tuples of basis indices of F and G:: + The basis of T is indexed by tuples of basis indices of F and G:: - sage: T.basis().keys() - Image of Cartesian product of {1, 2}, {3, 4} - by The map from Cartesian product of {1, 2}, {3, 4} - sage: T.basis().keys().list() - [(1, 3), (1, 4), (2, 3), (2, 4)] + sage: T.basis().keys() + Image of Cartesian product of {1, 2}, {3, 4} + by The map from Cartesian product of {1, 2}, {3, 4} + sage: T.basis().keys().list() + [(1, 3), (1, 4), (2, 3), (2, 4)] - FIXME: Should elements of a CartesianProduct be tuples (making them hashable)? + FIXME: Should elements of a CartesianProduct be tuples (making them hashable)? - Here are the basis elements themselves:: + Here are the basis elements themselves:: - sage: T.basis().cardinality() - 4 - sage: list(T.basis()) - [B[1] # B[3], B[1] # B[4], B[2] # B[3], B[2] # B[4]] + sage: T.basis().cardinality() + 4 + sage: list(T.basis()) + [B[1] # B[3], B[1] # B[4], B[2] # B[3], B[2] # B[4]] - The tensor product is associative and flattens sub tensor products:: + The tensor product is associative and flattens sub tensor products:: - sage: H = CombinatorialFreeModule(ZZ, [5,6]); H.rename("H") - sage: tensor([F, tensor([G, H])]) - F # G # H - sage: tensor([tensor([F, G]), H]) - F # G # H - sage: tensor([F, G, H]) - F # G # H + sage: H = CombinatorialFreeModule(ZZ, [5,6]); H.rename("H") + sage: tensor([F, tensor([G, H])]) + F # G # H + sage: tensor([tensor([F, G]), H]) + F # G # H + sage: tensor([F, G, H]) + F # G # H - We now compute the tensor product of elements of free modules:: + We now compute the tensor product of elements of free modules:: - sage: f = F.monomial(1) + 2 * F.monomial(2) - sage: g = 2*G.monomial(3) + G.monomial(4) - sage: h = H.monomial(5) + H.monomial(6) - sage: tensor([f, g]) - 2*B[1] # B[3] + B[1] # B[4] + 4*B[2] # B[3] + 2*B[2] # B[4] + sage: f = F.monomial(1) + 2 * F.monomial(2) + sage: g = 2*G.monomial(3) + G.monomial(4) + sage: h = H.monomial(5) + H.monomial(6) + sage: tensor([f, g]) + 2*B[1] # B[3] + B[1] # B[4] + 4*B[2] # B[3] + 2*B[2] # B[4] - Again, the tensor product is associative on elements:: + Again, the tensor product is associative on elements:: - sage: tensor([f, tensor([g, h])]) == tensor([f, g, h]) - True - sage: tensor([tensor([f, g]), h]) == tensor([f, g, h]) - True + sage: tensor([f, tensor([g, h])]) == tensor([f, g, h]) + True + sage: tensor([tensor([f, g]), h]) == tensor([f, g, h]) + True - Note further that the tensor product spaces need not preexist:: + Note further that the tensor product spaces need not preexist:: - sage: t = tensor([f, g, h]) - sage: t.parent() - F # G # H + sage: t = tensor([f, g, h]) + sage: t.parent() + F # G # H + TESTS:: + + sage: tensor([tensor([F, G]), H]) == tensor([F, G, H]) + True + sage: tensor([F, tensor([G, H])]) == tensor([F, G, H]) + True + """ + @staticmethod + def __classcall_private__(cls, modules, **options): + """ TESTS:: + sage: F = CombinatorialFreeModule(ZZ, [1,2]) + sage: G = CombinatorialFreeModule(ZZ, [3,4]) + sage: H = CombinatorialFreeModule(ZZ, [4]) sage: tensor([tensor([F, G]), H]) == tensor([F, G, H]) True sage: tensor([F, tensor([G, H])]) == tensor([F, G, H]) True + + Check that :issue:`19608` is fixed:: + + sage: T = tensor([F, G, H]) + sage: T in Modules(ZZ).FiniteDimensional() + True """ - @staticmethod - def __classcall_private__(cls, modules, **options): - """ - TESTS:: - - sage: F = CombinatorialFreeModule(ZZ, [1,2]) - sage: G = CombinatorialFreeModule(ZZ, [3,4]) - sage: H = CombinatorialFreeModule(ZZ, [4]) - sage: tensor([tensor([F, G]), H]) == tensor([F, G, H]) - True - sage: tensor([F, tensor([G, H])]) == tensor([F, G, H]) - True - - Check that :issue:`19608` is fixed:: - - sage: T = tensor([F, G, H]) - sage: T in Modules(ZZ).FiniteDimensional() - True - """ - assert (len(modules) > 0) - R = modules[0].base_ring() - assert (all(module in ModulesWithBasis(R)) for module in modules) - # should check the base ring - # flatten the list of modules so that tensor(A, tensor(B,C)) gets rewritten into tensor(A, B, C) - modules = sum([module._sets if isinstance(module, CombinatorialFreeModule_Tensor) else (module,) for module in modules], ()) - if all('FiniteDimensional' in M.category().axioms() for M in modules): - options['category'] = options['category'].FiniteDimensional() - return super(CombinatorialFreeModule.Tensor, cls).__classcall__(cls, modules, **options) - - def __init__(self, modules, **options): - """ - TESTS:: - - sage: F = CombinatorialFreeModule(ZZ, [1,2]); F - F - """ - self._sets = modules - indices = CartesianProduct_iters(*[module.basis().keys() - for module in modules]).map(tuple) - CombinatorialFreeModule.__init__(self, modules[0].base_ring(), indices, **options) - # the following is not the best option, but it's better than nothing. - if 'tensor_symbol' in options: - self._print_options['tensor_symbol'] = options['tensor_symbol'] - - def _repr_(self): - r""" - This is customizable by setting - ``self.print_options('tensor_symbol'=...)``. - - TESTS:: - - sage: F = CombinatorialFreeModule(ZZ, [1,2,3]) - sage: G = CombinatorialFreeModule(ZZ, [1,2,3,8]) - sage: F.rename("F") - sage: G.rename("G") - sage: T = tensor([F, G]) - sage: T # indirect doctest - F # G - sage: T.print_options(tensor_symbol=' @ ') # note the spaces - sage: T # indirect doctest - F @ G - - To avoid a side\--effect on another doctest, we revert the change:: - - sage: T.print_options(tensor_symbol=' # ') - """ - from sage.categories.tensor import tensor - if hasattr(self, "_print_options"): - symb = self._print_options['tensor_symbol'] - if symb is None: - symb = tensor.symbol - else: + assert (len(modules) > 0) + R = modules[0].base_ring() + assert (all(module in ModulesWithBasis(R)) for module in modules) + # should check the base ring + # flatten the list of modules so that tensor(A, tensor(B,C)) gets rewritten into tensor(A, B, C) + modules = sum([module._sets if isinstance(module, CombinatorialFreeModule_Tensor) else (module,) for module in modules], ()) + if all('FiniteDimensional' in M.category().axioms() for M in modules): + options['category'] = options['category'].FiniteDimensional() + return super(CombinatorialFreeModule.Tensor, cls).__classcall__(cls, modules, **options) + + def __init__(self, modules, **options): + """ + TESTS:: + + sage: F = CombinatorialFreeModule(ZZ, [1,2]); F + F + """ + self._sets = modules + indices = CartesianProduct_iters(*[module.basis().keys() + for module in modules]).map(tuple) + CombinatorialFreeModule.__init__(self, modules[0].base_ring(), indices, **options) + # the following is not the best option, but it's better than nothing. + if 'tensor_symbol' in options: + self._print_options['tensor_symbol'] = options['tensor_symbol'] + + def _repr_(self): + r""" + This is customizable by setting + ``self.print_options('tensor_symbol'=...)``. + + TESTS:: + + sage: F = CombinatorialFreeModule(ZZ, [1,2,3]) + sage: G = CombinatorialFreeModule(ZZ, [1,2,3,8]) + sage: F.rename("F") + sage: G.rename("G") + sage: T = tensor([F, G]) + sage: T # indirect doctest + F # G + sage: T.print_options(tensor_symbol=' @ ') # note the spaces + sage: T # indirect doctest + F @ G + + To avoid a side\--effect on another doctest, we revert the change:: + + sage: T.print_options(tensor_symbol=' # ') + """ + from sage.categories.tensor import tensor + if hasattr(self, "_print_options"): + symb = self._print_options['tensor_symbol'] + if symb is None: symb = tensor.symbol - return symb.join("%s" % module for module in self._sets) - # TODO: make this overridable by setting _name - - def tensor_factors(self): - """ - Return the tensor factors of this tensor product. - - EXAMPLES:: - - sage: F = CombinatorialFreeModule(ZZ, [1,2]) - sage: F.rename("F") - sage: G = CombinatorialFreeModule(ZZ, [3,4]) - sage: G.rename("G") - sage: T = tensor([F, G]); T - F # G - sage: T.tensor_factors() - (F, G) - """ - return self._sets - - def _ascii_art_(self, term): - """ - TESTS:: - - sage: R = NonCommutativeSymmetricFunctions(QQ).R() # needs sage.combinat - sage: Partitions.options(diagram_str="#", convention="french") # needs sage.combinat - sage: s = ascii_art(tensor((R[1,2], R[3,1,2]))); s # needs sage.combinat - R # R - # ### - ## # - ## - - Check that the breakpoints are correct (:issue:`29202`):: - - sage: s._breakpoints # needs sage.combinat - [6] - """ - if hasattr(self, "_print_options"): - symb = self._print_options['tensor_symbol'] - if symb is None: - symb = tensor.symbol - else: + else: + symb = tensor.symbol + return symb.join("%s" % module for module in self._sets) + # TODO: make this overridable by setting _name + + def tensor_factors(self): + """ + Return the tensor factors of this tensor product. + + EXAMPLES:: + + sage: F = CombinatorialFreeModule(ZZ, [1,2]) + sage: F.rename("F") + sage: G = CombinatorialFreeModule(ZZ, [3,4]) + sage: G.rename("G") + sage: T = tensor([F, G]); T + F # G + sage: T.tensor_factors() + (F, G) + """ + return self._sets + + def _ascii_art_(self, term): + """ + TESTS:: + + sage: R = NonCommutativeSymmetricFunctions(QQ).R() # needs sage.combinat + sage: Partitions.options(diagram_str="#", convention="french") # needs sage.combinat + sage: s = ascii_art(tensor((R[1,2], R[3,1,2]))); s # needs sage.combinat + R # R + # ### + ## # + ## + + Check that the breakpoints are correct (:issue:`29202`):: + + sage: s._breakpoints # needs sage.combinat + [6] + """ + if hasattr(self, "_print_options"): + symb = self._print_options['tensor_symbol'] + if symb is None: symb = tensor.symbol - return ascii_art(*(module._ascii_art_term(t) - for module, t in zip(self._sets, term)), - sep=AsciiArt([symb], breakpoints=[len(symb)])) - - _ascii_art_term = _ascii_art_ - - def _unicode_art_(self, term): - """ - TESTS:: - - sage: R = NonCommutativeSymmetricFunctions(QQ).R() # needs sage.combinat - sage: Partitions.options(diagram_str="#", convention="french") # needs sage.combinat - sage: s = unicode_art(tensor((R[1,2], R[3,1,2]))); s # needs sage.combinat - R ⊗ R - ┌┐ ┌┬┬┐ - ├┼┐ └┴┼┤ - └┴┘ ├┼┐ - └┴┘ - - Check that the breakpoints are correct (:issue:`29202`):: - - sage: s._breakpoints # needs sage.combinat - [7] - """ - if hasattr(self, "_print_options"): - symb = self._print_options['tensor_symbol'] - if symb is None: - symb = tensor.unicode_symbol - else: + else: + symb = tensor.symbol + return ascii_art(*(module._ascii_art_term(t) + for module, t in zip(self._sets, term)), + sep=AsciiArt([symb], breakpoints=[len(symb)])) + + _ascii_art_term = _ascii_art_ + + def _unicode_art_(self, term): + """ + TESTS:: + + sage: R = NonCommutativeSymmetricFunctions(QQ).R() # needs sage.combinat + sage: Partitions.options(diagram_str="#", convention="french") # needs sage.combinat + sage: s = unicode_art(tensor((R[1,2], R[3,1,2]))); s # needs sage.combinat + R ⊗ R + ┌┐ ┌┬┬┐ + ├┼┐ └┴┼┤ + └┴┘ ├┼┐ + └┴┘ + + Check that the breakpoints are correct (:issue:`29202`):: + + sage: s._breakpoints # needs sage.combinat + [7] + """ + if hasattr(self, "_print_options"): + symb = self._print_options['tensor_symbol'] + if symb is None: symb = tensor.unicode_symbol - return unicode_art(*(module._unicode_art_term(t) - for module, t in zip(self._sets, term)), - sep=UnicodeArt([symb], breakpoints=[len(symb)])) - - _unicode_art_term = _unicode_art_ - - def _latex_(self): - r""" - TESTS:: - - sage: F = CombinatorialFreeModule(ZZ, [1,2,3]) - sage: G = CombinatorialFreeModule(ZZ, [1,2,3,8]) - sage: F.rename("F") - sage: G.rename("G") - sage: latex(tensor([F, F, G])) # indirect doctest - \text{\texttt{F}} \otimes \text{\texttt{F}} \otimes \text{\texttt{G}} - sage: F._latex_ = lambda : "F" - sage: G._latex_ = lambda : "G" - sage: latex(tensor([F, F, G])) # indirect doctest - F \otimes F \otimes G - """ - from sage.misc.latex import latex - symb = " \\otimes " - return symb.join("%s" % latex(module) for module in self._sets) - - def _repr_term(self, term): - """ - TESTS:: - - sage: F = CombinatorialFreeModule(ZZ, [1,2,3], prefix="F") - sage: G = CombinatorialFreeModule(ZZ, [1,2,3,4], prefix="G") - sage: f = F.monomial(1) + 2 * F.monomial(2) - sage: g = 2*G.monomial(3) + G.monomial(4) - sage: tensor([f, g]) # indirect doctest - 2*F[1] # G[3] + F[1] # G[4] + 4*F[2] # G[3] + 2*F[2] # G[4] - """ - if hasattr(self, "_print_options"): - symb = self._print_options['tensor_symbol'] - if symb is None: - symb = tensor.symbol - else: + else: + symb = tensor.unicode_symbol + return unicode_art(*(module._unicode_art_term(t) + for module, t in zip(self._sets, term)), + sep=UnicodeArt([symb], breakpoints=[len(symb)])) + + _unicode_art_term = _unicode_art_ + + def _latex_(self): + r""" + TESTS:: + + sage: F = CombinatorialFreeModule(ZZ, [1,2,3]) + sage: G = CombinatorialFreeModule(ZZ, [1,2,3,8]) + sage: F.rename("F") + sage: G.rename("G") + sage: latex(tensor([F, F, G])) # indirect doctest + \text{\texttt{F}} \otimes \text{\texttt{F}} \otimes \text{\texttt{G}} + sage: F._latex_ = lambda : "F" + sage: G._latex_ = lambda : "G" + sage: latex(tensor([F, F, G])) # indirect doctest + F \otimes F \otimes G + """ + from sage.misc.latex import latex + symb = " \\otimes " + return symb.join("%s" % latex(module) for module in self._sets) + + def _repr_term(self, term): + """ + TESTS:: + + sage: F = CombinatorialFreeModule(ZZ, [1,2,3], prefix="F") + sage: G = CombinatorialFreeModule(ZZ, [1,2,3,4], prefix="G") + sage: f = F.monomial(1) + 2 * F.monomial(2) + sage: g = 2*G.monomial(3) + G.monomial(4) + sage: tensor([f, g]) # indirect doctest + 2*F[1] # G[3] + F[1] # G[4] + 4*F[2] # G[3] + 2*F[2] # G[4] + """ + if hasattr(self, "_print_options"): + symb = self._print_options['tensor_symbol'] + if symb is None: symb = tensor.symbol - return symb.join(module._repr_term(t) for (module, t) in zip(self._sets, term)) - - def _latex_term(self, term): - r""" - TESTS:: - - sage: F = CombinatorialFreeModule(ZZ, [1,2,3], prefix='x') - sage: G = CombinatorialFreeModule(ZZ, [1,2,3,4], prefix='y') - sage: f = F.monomial(1) + 2 * F.monomial(2) - sage: g = 2*G.monomial(3) + G.monomial(4) - sage: latex(tensor([f, g])) # indirect doctest - 2 x_{1} \otimes y_{3} + x_{1} \otimes y_{4} + 4 x_{2} \otimes y_{3} + 2 x_{2} \otimes y_{4} - """ - symb = " \\otimes " - return symb.join(module._latex_term(t) for (module, t) in zip(self._sets, term)) - - @cached_method - def tensor_constructor(self, modules): - r""" - INPUT: - - - ``modules`` -- a tuple `(F_1,\dots,F_n)` of - free modules whose tensor product is self - - Returns the canonical multilinear morphism from - `F_1 \times \dots \times F_n` to `F_1 \otimes \dots \otimes F_n` - - EXAMPLES:: - - sage: F = CombinatorialFreeModule(ZZ, [1,2]); F.rename("F") - sage: G = CombinatorialFreeModule(ZZ, [3,4]); G.rename("G") - sage: H = CombinatorialFreeModule(ZZ, [5,6]); H.rename("H") - - sage: f = F.monomial(1) + 2*F.monomial(2) - sage: g = 2*G.monomial(3) + G.monomial(4) - sage: h = H.monomial(5) + H.monomial(6) - sage: FG = tensor([F, G]) - sage: phi_fg = FG.tensor_constructor((F, G)) - sage: phi_fg(f, g) - 2*B[1] # B[3] + B[1] # B[4] + 4*B[2] # B[3] + 2*B[2] # B[4] - - sage: FGH = tensor([F, G, H]) - sage: phi_fgh = FGH.tensor_constructor((F, G, H)) - sage: phi_fgh(f, g, h) - 2*B[1] # B[3] # B[5] + 2*B[1] # B[3] # B[6] + B[1] # B[4] # B[5] - + B[1] # B[4] # B[6] + 4*B[2] # B[3] # B[5] + 4*B[2] # B[3] # B[6] - + 2*B[2] # B[4] # B[5] + 2*B[2] # B[4] # B[6] - - sage: phi_fg_h = FGH.tensor_constructor((FG, H)) - sage: phi_fg_h(phi_fg(f, g), h) - 2*B[1] # B[3] # B[5] + 2*B[1] # B[3] # B[6] + B[1] # B[4] # B[5] - + B[1] # B[4] # B[6] + 4*B[2] # B[3] # B[5] + 4*B[2] # B[3] # B[6] - + 2*B[2] # B[4] # B[5] + 2*B[2] # B[4] # B[6] - """ - assert (module in ModulesWithBasis(self.base_ring()) for module in modules) - assert (tensor(modules) == self) - # a list l such that l[i] is True if modules[i] is readily a tensor product - is_tensor = [isinstance(module, CombinatorialFreeModule_Tensor) for module in modules] - # the tensor_constructor, on basis elements - result = self.monomial * CartesianProductWithFlattening(is_tensor) - # TODO: make this into an element of Hom( A x B, C ) when those will exist - for i in range(len(modules)): - result = modules[i]._module_morphism(result, position=i, - codomain=self) - return result - - def _tensor_of_elements(self, elements): - """ - Returns the tensor product of the specified elements. - The result should be in ``self``. - - EXAMPLES:: - - sage: F = CombinatorialFreeModule(ZZ, [1,2]); F.rename("F") - sage: G = CombinatorialFreeModule(ZZ, [3,4]); G.rename("G") - sage: H = CombinatorialFreeModule(ZZ, [5,6]); H.rename("H") - - sage: f = F.monomial(1) + 2 * F.monomial(2) - sage: g = 2*G.monomial(3) + G.monomial(4) - sage: h = H.monomial(5) + H.monomial(6) - - sage: GH = tensor([G, H]) - sage: gh = GH._tensor_of_elements([g, h]); gh - 2*B[3] # B[5] + 2*B[3] # B[6] + B[4] # B[5] + B[4] # B[6] - - sage: FGH = tensor([F, G, H]) - sage: FGH._tensor_of_elements([f, g, h]) - 2*B[1] # B[3] # B[5] + 2*B[1] # B[3] # B[6] + B[1] # B[4] # B[5] + B[1] # B[4] # B[6] + 4*B[2] # B[3] # B[5] + 4*B[2] # B[3] # B[6] + 2*B[2] # B[4] # B[5] + 2*B[2] # B[4] # B[6] - - sage: FGH._tensor_of_elements([f, gh]) - 2*B[1] # B[3] # B[5] + 2*B[1] # B[3] # B[6] + B[1] # B[4] # B[5] + B[1] # B[4] # B[6] + 4*B[2] # B[3] # B[5] + 4*B[2] # B[3] # B[6] + 2*B[2] # B[4] # B[5] + 2*B[2] # B[4] # B[6] - """ - return self.tensor_constructor(tuple(element.parent() for element in elements))(*elements) - - def _coerce_map_from_(self, R): - """ - Return ``True`` if there is a coercion from ``R`` into ``self`` and - ``False`` otherwise. The things that coerce into ``self`` are: - - - Anything with a coercion into ``self.base_ring()``. - - - A tensor algebra whose factors have a coercion into the - corresponding factors of ``self``. - - TESTS:: - - sage: C = CombinatorialFreeModule(ZZ, ZZ) - sage: C2 = CombinatorialFreeModule(ZZ, NN) - sage: M = C.module_morphism(lambda x: C2.monomial(abs(x)), codomain=C2) - sage: M.register_as_coercion() - sage: C2(C.basis()[3]) - B[3] - sage: C2(C.basis()[3] + C.basis()[-3]) - 2*B[3] - sage: S = C.tensor(C) - sage: S2 = C2.tensor(C2) - sage: S2.has_coerce_map_from(S) - True - sage: S.has_coerce_map_from(S2) - False - sage: S.an_element() - 3*B[0] # B[-1] + 2*B[0] # B[0] + 2*B[0] # B[1] - sage: S2(S.an_element()) - 2*B[0] # B[0] + 5*B[0] # B[1] - - :: - - sage: C = CombinatorialFreeModule(ZZ, Set([1,2])) - sage: D = CombinatorialFreeModule(ZZ, Set([2,4])) - sage: f = C.module_morphism(on_basis=lambda x: D.monomial(2*x), codomain=D) - sage: f.register_as_coercion() - sage: T = tensor((C,C)) - sage: p = D.an_element() - sage: T(tensor((p,p))) - Traceback (most recent call last): - ... - NotImplementedError - sage: T = tensor((D,D)) - sage: p = C.an_element() - sage: T(tensor((p,p))) - 4*B[2] # B[2] + 4*B[2] # B[4] + 4*B[4] # B[2] + 4*B[4] # B[4] - """ - if ((R in ModulesWithBasis(self.base_ring()).TensorProducts() or - R in GradedAlgebrasWithBasis(self.base_ring()).SignedTensorProducts()) - and isinstance(R, CombinatorialFreeModule_Tensor) - and len(R._sets) == len(self._sets) - and all(self._sets[i].has_coerce_map_from(M) - for i, M in enumerate(R._sets))): - modules = R._sets - vector_map = [self._sets[i]._internal_coerce_map_from(M) - for i, M in enumerate(modules)] - return R.module_morphism(lambda x: self._tensor_of_elements( - [vector_map[i](M.monomial(x[i])) - for i, M in enumerate(modules)]), codomain=self) - - return super()._coerce_map_from_(R) + else: + symb = tensor.symbol + return symb.join(module._repr_term(t) for (module, t) in zip(self._sets, term)) + + def _latex_term(self, term): + r""" + TESTS:: + + sage: F = CombinatorialFreeModule(ZZ, [1,2,3], prefix='x') + sage: G = CombinatorialFreeModule(ZZ, [1,2,3,4], prefix='y') + sage: f = F.monomial(1) + 2 * F.monomial(2) + sage: g = 2*G.monomial(3) + G.monomial(4) + sage: latex(tensor([f, g])) # indirect doctest + 2 x_{1} \otimes y_{3} + x_{1} \otimes y_{4} + 4 x_{2} \otimes y_{3} + 2 x_{2} \otimes y_{4} + """ + symb = " \\otimes " + return symb.join(module._latex_term(t) for (module, t) in zip(self._sets, term)) + + @cached_method + def tensor_constructor(self, modules): + r""" + INPUT: + + - ``modules`` -- a tuple `(F_1,\dots,F_n)` of + free modules whose tensor product is self + + Returns the canonical multilinear morphism from + `F_1 \times \dots \times F_n` to `F_1 \otimes \dots \otimes F_n` + + EXAMPLES:: + + sage: F = CombinatorialFreeModule(ZZ, [1,2]); F.rename("F") + sage: G = CombinatorialFreeModule(ZZ, [3,4]); G.rename("G") + sage: H = CombinatorialFreeModule(ZZ, [5,6]); H.rename("H") + + sage: f = F.monomial(1) + 2*F.monomial(2) + sage: g = 2*G.monomial(3) + G.monomial(4) + sage: h = H.monomial(5) + H.monomial(6) + sage: FG = tensor([F, G]) + sage: phi_fg = FG.tensor_constructor((F, G)) + sage: phi_fg(f, g) + 2*B[1] # B[3] + B[1] # B[4] + 4*B[2] # B[3] + 2*B[2] # B[4] + + sage: FGH = tensor([F, G, H]) + sage: phi_fgh = FGH.tensor_constructor((F, G, H)) + sage: phi_fgh(f, g, h) + 2*B[1] # B[3] # B[5] + 2*B[1] # B[3] # B[6] + B[1] # B[4] # B[5] + + B[1] # B[4] # B[6] + 4*B[2] # B[3] # B[5] + 4*B[2] # B[3] # B[6] + + 2*B[2] # B[4] # B[5] + 2*B[2] # B[4] # B[6] + + sage: phi_fg_h = FGH.tensor_constructor((FG, H)) + sage: phi_fg_h(phi_fg(f, g), h) + 2*B[1] # B[3] # B[5] + 2*B[1] # B[3] # B[6] + B[1] # B[4] # B[5] + + B[1] # B[4] # B[6] + 4*B[2] # B[3] # B[5] + 4*B[2] # B[3] # B[6] + + 2*B[2] # B[4] # B[5] + 2*B[2] # B[4] # B[6] + """ + assert (module in ModulesWithBasis(self.base_ring()) for module in modules) + assert (tensor(modules) == self) + # a list l such that l[i] is True if modules[i] is readily a tensor product + is_tensor = [isinstance(module, CombinatorialFreeModule_Tensor) for module in modules] + # the tensor_constructor, on basis elements + result = self.monomial * CartesianProductWithFlattening(is_tensor) + # TODO: make this into an element of Hom( A x B, C ) when those will exist + for i in range(len(modules)): + result = modules[i]._module_morphism(result, position=i, + codomain=self) + return result + + def _tensor_of_elements(self, elements): + """ + Returns the tensor product of the specified elements. + The result should be in ``self``. + + EXAMPLES:: + + sage: F = CombinatorialFreeModule(ZZ, [1,2]); F.rename("F") + sage: G = CombinatorialFreeModule(ZZ, [3,4]); G.rename("G") + sage: H = CombinatorialFreeModule(ZZ, [5,6]); H.rename("H") + + sage: f = F.monomial(1) + 2 * F.monomial(2) + sage: g = 2*G.monomial(3) + G.monomial(4) + sage: h = H.monomial(5) + H.monomial(6) + + sage: GH = tensor([G, H]) + sage: gh = GH._tensor_of_elements([g, h]); gh + 2*B[3] # B[5] + 2*B[3] # B[6] + B[4] # B[5] + B[4] # B[6] + + sage: FGH = tensor([F, G, H]) + sage: FGH._tensor_of_elements([f, g, h]) + 2*B[1] # B[3] # B[5] + 2*B[1] # B[3] # B[6] + B[1] # B[4] # B[5] + + B[1] # B[4] # B[6] + 4*B[2] # B[3] # B[5] + 4*B[2] # B[3] # B[6] + + 2*B[2] # B[4] # B[5] + 2*B[2] # B[4] # B[6] + + sage: FGH._tensor_of_elements([f, gh]) + 2*B[1] # B[3] # B[5] + 2*B[1] # B[3] # B[6] + B[1] # B[4] # B[5] + + B[1] # B[4] # B[6] + 4*B[2] # B[3] # B[5] + 4*B[2] # B[3] # B[6] + + 2*B[2] # B[4] # B[5] + 2*B[2] # B[4] # B[6] + """ + return self.tensor_constructor(tuple(element.parent() for element in elements))(*elements) + + def _coerce_map_from_(self, R): + """ + Return ``True`` if there is a coercion from ``R`` into ``self`` and + ``False`` otherwise. The things that coerce into ``self`` are: + + - Anything with a coercion into ``self.base_ring()``. + + - A tensor algebra whose factors have a coercion into the + corresponding factors of ``self``. + + TESTS:: + + sage: C = CombinatorialFreeModule(ZZ, ZZ) + sage: C2 = CombinatorialFreeModule(ZZ, NN) + sage: M = C.module_morphism(lambda x: C2.monomial(abs(x)), codomain=C2) + sage: M.register_as_coercion() + sage: C2(C.basis()[3]) + B[3] + sage: C2(C.basis()[3] + C.basis()[-3]) + 2*B[3] + sage: S = C.tensor(C) + sage: S2 = C2.tensor(C2) + sage: S2.has_coerce_map_from(S) + True + sage: S.has_coerce_map_from(S2) + False + sage: S.an_element() + 3*B[0] # B[-1] + 2*B[0] # B[0] + 2*B[0] # B[1] + sage: S2(S.an_element()) + 2*B[0] # B[0] + 5*B[0] # B[1] + + :: + + sage: C = CombinatorialFreeModule(ZZ, Set([1,2])) + sage: D = CombinatorialFreeModule(ZZ, Set([2,4])) + sage: f = C.module_morphism(on_basis=lambda x: D.monomial(2*x), codomain=D) + sage: f.register_as_coercion() + sage: T = tensor((C,C)) + sage: p = D.an_element() + sage: T(tensor((p,p))) + Traceback (most recent call last): + ... + NotImplementedError + sage: T = tensor((D,D)) + sage: p = C.an_element() + sage: T(tensor((p,p))) + 4*B[2] # B[2] + 4*B[2] # B[4] + 4*B[4] # B[2] + 4*B[4] # B[4] + """ + if ((R in ModulesWithBasis(self.base_ring()).TensorProducts() or + R in GradedAlgebrasWithBasis(self.base_ring()).SignedTensorProducts()) + and isinstance(R, CombinatorialFreeModule_Tensor) + and len(R._sets) == len(self._sets) + and all(self._sets[i].has_coerce_map_from(M) + for i, M in enumerate(R._sets))): + modules = R._sets + vector_map = [self._sets[i]._internal_coerce_map_from(M) + for i, M in enumerate(modules)] + return R.module_morphism(lambda x: self._tensor_of_elements( + [vector_map[i](M.monomial(x[i])) + for i, M in enumerate(modules)]), codomain=self) + + return super()._coerce_map_from_(R) class CartesianProductWithFlattening: From 9ba3ea3e0fb495c2a8deea509ffc3e965bbdf265 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Chapoton?= Date: Tue, 9 Apr 2024 09:36:45 +0200 Subject: [PATCH 113/140] some C4 fixes in combinat folder --- .../algebras/quatalg/quaternion_algebra.py | 9 +++-- src/sage/combinat/sloane_functions.py | 2 +- .../combinat/species/partition_species.py | 2 +- src/sage/combinat/subset.py | 3 +- src/sage/combinat/subword_complex.py | 12 +++---- src/sage/combinat/superpartition.py | 2 +- src/sage/combinat/tableau_residues.py | 4 +-- src/sage/combinat/tableau_tuple.py | 9 +++-- src/sage/combinat/tamari_lattices.py | 8 ++--- src/sage/combinat/tiling.py | 33 +++++++++---------- src/sage/combinat/tuple.py | 4 +-- src/sage/combinat/words/finite_word.py | 6 ++-- src/sage/combinat/words/morphism.py | 24 +++++++------- src/sage/combinat/yang_baxter_graph.py | 4 +-- 14 files changed, 63 insertions(+), 59 deletions(-) diff --git a/src/sage/algebras/quatalg/quaternion_algebra.py b/src/sage/algebras/quatalg/quaternion_algebra.py index 02d0ccf0326..c5860eec5a1 100644 --- a/src/sage/algebras/quatalg/quaternion_algebra.py +++ b/src/sage/algebras/quatalg/quaternion_algebra.py @@ -1190,9 +1190,12 @@ def ramified_primes(self): if not is_RationalField(self.base_ring()): raise ValueError("base field must be the rational numbers") - return sorted([p for p in set([2]).union(prime_divisors(self._a.numerator()), - prime_divisors(self._a.denominator()), prime_divisors(self._b.numerator()), - prime_divisors(self._b.denominator())) if hilbert_symbol(self._a, self._b, p) == -1]) + a, b = self._a, self._b + return sorted(p for p in {2}.union(prime_divisors(a.numerator()), + prime_divisors(a.denominator()), + prime_divisors(b.numerator()), + prime_divisors(b.denominator())) + if hilbert_symbol(self._a, self._b, p) == -1) def is_isomorphic(self, A) -> bool: """ diff --git a/src/sage/combinat/sloane_functions.py b/src/sage/combinat/sloane_functions.py index e9911d47506..808bcfd849d 100644 --- a/src/sage/combinat/sloane_functions.py +++ b/src/sage/combinat/sloane_functions.py @@ -859,7 +859,7 @@ def _eval(self, n): sage: [sloane.A003418._eval(n) for n in range(1,11)] [1, 2, 6, 12, 60, 60, 420, 840, 2520, 2520] """ - return arith.lcm([i for i in range(1, n+1)]) + return arith.lcm(list(range(1, n + 1))) class A007318(SloaneSequence): diff --git a/src/sage/combinat/species/partition_species.py b/src/sage/combinat/species/partition_species.py index dea38378a7a..8d9a83d1e00 100644 --- a/src/sage/combinat/species/partition_species.py +++ b/src/sage/combinat/species/partition_species.py @@ -182,7 +182,7 @@ def _structures(self, structure_class, labels): yield structure_class(self, labels, []) return - u = [i for i in reversed(range(1, n + 1))] + u = list(range(n, 0, -1)) s0 = u.pop() # Reconstruct the set partitions from diff --git a/src/sage/combinat/subset.py b/src/sage/combinat/subset.py index 822420d6514..4d036ad6c93 100644 --- a/src/sage/combinat/subset.py +++ b/src/sage/combinat/subset.py @@ -741,7 +741,8 @@ def last(self): if self._k > self._s.cardinality(): raise EmptySetError - return self.element_class([i for i in itertools.islice(reversed(self._s), int(self._k))]) + return self.element_class(list(itertools.islice(reversed(self._s), + int(self._k)))) def _fast_iterator(self): r""" diff --git a/src/sage/combinat/subword_complex.py b/src/sage/combinat/subword_complex.py index 0439d7f72f0..f280a5901f3 100644 --- a/src/sage/combinat/subword_complex.py +++ b/src/sage/combinat/subword_complex.py @@ -1854,8 +1854,8 @@ def cover_relations(self, label=False): """ N = len(self.group().long_element(as_word=True)) F = self.greedy_facet(side="positive") - Fs = set([F]) - seen = set([F]) + Fs = {F} + seen = {F} covers = [] while Fs: F = Fs.pop() @@ -1895,7 +1895,7 @@ def increasing_flip_graph(self, label=True): from sage.graphs.digraph import DiGraph return DiGraph(self.cover_relations(label=label)) - def interval(self, I, J): + def interval(self, I, J) -> set: """ Return the interval [I,J] in the increasing flip graph subword complex. @@ -1924,7 +1924,7 @@ def interval(self, I, J): """ G = self.increasing_flip_graph() paths = G.all_paths(I, J) - return set(K for path in paths for K in path) + return {K for path in paths for K in path} def increasing_flip_poset(self): """ @@ -2125,8 +2125,8 @@ def _greedy_flip_algorithm(Q, w): flip_to_ancestors.append(j) next_index = i + 1 has_new_child = True - facet_list.append([x for x in F]) - extended_root_conf_indices_list.append([x for x in R]) + facet_list.append(list(F)) + extended_root_conf_indices_list.append(list(R)) if not has_new_child: i = flip_to_ancestors.pop() if i != -1: diff --git a/src/sage/combinat/superpartition.py b/src/sage/combinat/superpartition.py index a2e77f8a5b1..e16e87fa9f0 100644 --- a/src/sage/combinat/superpartition.py +++ b/src/sage/combinat/superpartition.py @@ -691,7 +691,7 @@ def add_horizontal_border_strip_star(self, h) -> list: # TODO: Check that this is not supposed to be # a tuple of size 1 + [(i) for i in circ_list if row_changed[i[0]] == 0]] - if len(set([k for (j, k) in new_sp[1]])) == len(new_sp[1]): + if len({k for j, k in new_sp[1]}) == len(new_sp[1]): out += [SuperPartition.from_circled_diagram(*new_sp)] return out diff --git a/src/sage/combinat/tableau_residues.py b/src/sage/combinat/tableau_residues.py index ae3f65e7196..db94461f6ef 100644 --- a/src/sage/combinat/tableau_residues.py +++ b/src/sage/combinat/tableau_residues.py @@ -340,7 +340,7 @@ def __getitem__(self, k): except (IndexError, KeyError): raise IndexError('k must be in the range 1, 2, ..., {}'.format(len(self))) - def residues(self): + def residues(self) -> list: r""" Return a list of the residue sequence. @@ -350,7 +350,7 @@ def residues(self): sage: ResidueSequence(3,(0,0,1),[0,0,1,1,2,2,3,3]).residues() [0, 0, 1, 1, 2, 2, 0, 0] """ - return [r for r in self] + return list(self) def restrict(self, m): r""" diff --git a/src/sage/combinat/tableau_tuple.py b/src/sage/combinat/tableau_tuple.py index 1568175325e..511b98d3e1b 100644 --- a/src/sage/combinat/tableau_tuple.py +++ b/src/sage/combinat/tableau_tuple.py @@ -597,7 +597,7 @@ def components(self): 6 7 8 9 """ - return [t for t in self] + return list(self) def to_list(self): """ @@ -2371,9 +2371,8 @@ def list(self): ([[3, 5], [4]], [[1, 2]])] """ if self.is_finite(): - return [y for y in self] - else: - raise NotImplementedError('this is an infinite set of tableaux') + return list(self) + raise NotImplementedError('this is an infinite set of tableaux') class TableauTuples_all(TableauTuples): @@ -2666,7 +2665,7 @@ def an_element(self): if self.size() == 0: return self.element_class(self, [[] for _ in range(self.level())]) - tab = [[[m for m in range(1, self.size() + 1)]]] + tab = [[list(range(1, self.size() + 1))]] for _ in range(self.level() - 1): tab.append([]) return self.element_class(self, tab) diff --git a/src/sage/combinat/tamari_lattices.py b/src/sage/combinat/tamari_lattices.py index b84b587e1b3..f3e4de13a28 100644 --- a/src/sage/combinat/tamari_lattices.py +++ b/src/sage/combinat/tamari_lattices.py @@ -92,11 +92,11 @@ def paths_in_triangle(i, j, a, b) -> list[tuple[int, ...]]: return [tuple([1] * j)] if (j - 1) * a >= (i) * b: - result = [u + tuple([1]) for u in paths_in_triangle(i, j - 1, a, b)] - result += [u + tuple([0]) for u in paths_in_triangle(i - 1, j, a, b)] + result = [u + (1,) for u in paths_in_triangle(i, j - 1, a, b)] + result += [u + (0,) for u in paths_in_triangle(i - 1, j, a, b)] return result - return [u + tuple([0]) for u in paths_in_triangle(i - 1, j, a, b)] + return [u + (0,) for u in paths_in_triangle(i - 1, j, a, b)] def swap(p, i, m=1) -> tuple[int, ...]: @@ -156,7 +156,7 @@ def swap(p, i, m=1) -> tuple[int, ...]: height -= 1 if height <= 0: found = True - q = [k for k in p] + q = list(p) for k in range(i, j): q[k] = p[k + 1] q[j] = 0 diff --git a/src/sage/combinat/tiling.py b/src/sage/combinat/tiling.py index a6284b83e1b..2190c5b2119 100644 --- a/src/sage/combinat/tiling.py +++ b/src/sage/combinat/tiling.py @@ -991,12 +991,13 @@ def canonical_isometric_copies(self, orientation_preserving=True, """ if mod_box_isometries: L = ncube_isometry_group_cosets(self._dimension, orientation_preserving) - P_cosets = set(frozenset((m * self).canonical() for m in coset) for coset in L) + P_cosets = {frozenset((m * self).canonical() for m in coset) + for coset in L} P_cosets_representents = [min(s, key=lambda a: a.sorted_list()) for s in P_cosets] - return sorted(P_cosets_representents, key=lambda a:a.sorted_list()) + return sorted(P_cosets_representents, key=lambda a: a.sorted_list()) else: L = ncube_isometry_group(self._dimension, orientation_preserving) - P_images = set((m * self).canonical() for m in L) + P_images = {(m * self).canonical() for m in L} return sorted(P_images, key=lambda a: a.sorted_list()) def translated_copies(self, box): @@ -1222,8 +1223,8 @@ def isometric_copies(self, box, orientation_preserving=True, raise ValueError("Dimension of input box must match the " "dimension of the polyomino") box_min_coords, box_max_coords = box.bounding_box() - if mod_box_isometries and len(set(b-a for (a,b) in zip(box_min_coords, - box_max_coords))) < box._dimension: + if mod_box_isometries and len({b - a for a, b in zip(box_min_coords, + box_max_coords)}) < box._dimension: raise NotImplementedError("The code below assumes that the" " sizes of the box (={}) are all distinct when" " argument `mod_box_isometries` is True.".format(box)) @@ -1267,8 +1268,8 @@ def isometric_copies_intersection(self, box, orientation_preserving=True): """ all_distinct_cano = self.canonical_isometric_copies(orientation_preserving, mod_box_isometries=False) - return set([t for cano in all_distinct_cano - for t in cano.translated_copies_intersection(box=box)]) + return {t for cano in all_distinct_cano + for t in cano.translated_copies_intersection(box=box)} def neighbor_edges(self): r""" @@ -1766,11 +1767,10 @@ def coord_to_int_dict(self): ((2, 0), 4), ((2, 1), 5)] """ if self._reusable: - return dict((c, i) for i, c in enumerate(self.space())) - else: - number_of_pieces = len(self._pieces) - return dict((c, i+number_of_pieces) - for i, c in enumerate(self.space())) + return {c: i for i, c in enumerate(self.space())} + + number_of_pieces = len(self._pieces) + return {c: i + number_of_pieces for i, c in enumerate(self.space())} @cached_method def int_to_coord_dict(self): @@ -1814,11 +1814,10 @@ def int_to_coord_dict(self): """ if self._reusable: - return dict((i, c) for i, c in enumerate(self.space())) - else: - number_of_pieces = len(self._pieces) - return dict((i+number_of_pieces, c) - for i, c in enumerate(self.space())) + return dict(enumerate(self.space())) + + number_of_pieces = len(self._pieces) + return {i + number_of_pieces: c for i, c in enumerate(self.space())} @cached_method def rows_for_piece(self, i, mod_box_isometries=False): diff --git a/src/sage/combinat/tuple.py b/src/sage/combinat/tuple.py index 54d1caf9181..196d869769d 100644 --- a/src/sage/combinat/tuple.py +++ b/src/sage/combinat/tuple.py @@ -77,7 +77,7 @@ def __init__(self, S, k): """ self.S = S self.k = k - self._index_list = list(set(S.index(s) for s in S)) + self._index_list = list({S.index(s) for s in S}) category = FiniteEnumeratedSets() Parent.__init__(self, category=category) @@ -168,7 +168,7 @@ def __init__(self, S, k): """ self.S = S self.k = k - self._index_list = list(set(S.index(s) for s in S)) + self._index_list = list({S.index(s) for s in S}) category = FiniteEnumeratedSets() Parent.__init__(self, category=category) diff --git a/src/sage/combinat/words/finite_word.py b/src/sage/combinat/words/finite_word.py index b596f87e56d..1bdd38e92c7 100644 --- a/src/sage/combinat/words/finite_word.py +++ b/src/sage/combinat/words/finite_word.py @@ -1426,7 +1426,7 @@ def factor_set(self, n=None, algorithm='suffix tree'): return Set(self.factor_iterator(n)) elif algorithm == 'naive': if n is None: - S = set([self[0:0]]) + S = {self[0:0]} for n in range(1, self.length()+1): for i in range(self.length()-n+1): S.add(self[i:i+n]) @@ -3006,7 +3006,7 @@ def palindromes(self, f=None): [word: , word: ab, word: abbabaab, word: ba, word: baba, word: bbabaa] """ LPS = self.lps_lengths(f) - return set(self[i - LPS[i]: i] for i in range(len(self) + 1)) + return {self[i - LPS[i]: i] for i in range(len(self) + 1)} def palindromic_complexity(self, n): r""" @@ -6415,7 +6415,7 @@ def delta(self): return Words()([]) ss = self[0] c = 0 - v = list() + v = [] max_c = 0 for s in self: if s == ss: diff --git a/src/sage/combinat/words/morphism.py b/src/sage/combinat/words/morphism.py index f490ac96cd0..abd66da0650 100644 --- a/src/sage/combinat/words/morphism.py +++ b/src/sage/combinat/words/morphism.py @@ -401,7 +401,7 @@ def __init__(self, data, domain=None, codomain=None): self._morph = {} - dom_alph = list() + dom_alph = [] for key, val in data.items(): dom_alph.append(key) if val in codomain.alphabet(): @@ -950,7 +950,8 @@ def __mul__(self, other): sage: m * WordMorphism('') WordMorphism: """ - return WordMorphism(dict((key, self(w)) for key, w in other._morph.items()), codomain=self.codomain()) + return WordMorphism({key: self(w) for key, w in other._morph.items()}, + codomain=self.codomain()) def __pow__(self, exp): r""" @@ -1090,7 +1091,8 @@ def restrict_domain(self, alphabet): ... TypeError: 'sage.rings.integer.Integer' object is not iterable """ - return WordMorphism(dict((a, self(a)) for a in alphabet if a in self.domain().alphabet())) + return WordMorphism({a: self(a) for a in alphabet + if a in self.domain().alphabet()}) def _matrix_(self, R=None): r""" @@ -1276,7 +1278,7 @@ def image(self, letter): """ return self._morph[letter] - def images(self): + def images(self) -> list: r""" Return the list of all the images of the letters of the alphabet under ``self``. @@ -1727,9 +1729,8 @@ def is_uniform(self, k=None): True """ if k is None: - return len(set(w.length() for w in self.images())) == 1 - else: - return all(w.length() == k for w in self.images()) + k = self.images()[0].length() + return all(w.length() == k for w in self.images()) def fixed_point(self, letter): r""" @@ -1980,7 +1981,7 @@ def periodic_points(self): raise NotImplementedError("f should be non erasing") A = self.domain().alphabet() - d = dict((letter, self(letter)[0]) for letter in A) + d = {letter: self(letter)[0] for letter in A} G = set(self.growing_letters()) res = [] @@ -2173,7 +2174,8 @@ def conjugate(self, pos): sage: m.conjugate(2) WordMorphism: a->cdeab, b->zxy """ - return WordMorphism(dict((key, w.conjugate(pos)) for (key, w) in self._morph.items())) + return WordMorphism({key: w.conjugate(pos) + for (key, w) in self._morph.items()}) def has_left_conjugate(self): r""" @@ -3785,7 +3787,7 @@ def try_create_h(f, k): h = {letter: [letter] if image else [] for letter, image in f.items()} elif len(Y) < len(X): # Trivial case #2. k = {x: [y] for x, y in zip(X, Y)} - k_inverse = {y: x for y, x in zip(Y, X)} + k_inverse = dict(zip(Y, X)) h = {x: [k_inverse[y] for y in image] for x, image in f.items()} elif not self.is_injective(): # Non-trivial but a fast case. k = dict(f) @@ -3822,7 +3824,7 @@ def try_create_h(f, k): for comb in combinations(factors, len(X) - 1): if any(x.is_proper_prefix(y) for x in comb for y in comb): continue - k = {x: image for x, image in zip(X, comb)} + k = dict(zip(X, comb)) h = try_create_h(f, k) if h: break diff --git a/src/sage/combinat/yang_baxter_graph.py b/src/sage/combinat/yang_baxter_graph.py index bcfac20fdb3..f2fdb7a5a47 100644 --- a/src/sage/combinat/yang_baxter_graph.py +++ b/src/sage/combinat/yang_baxter_graph.py @@ -335,7 +335,7 @@ def _edges_in_bfs(self): seen[self._root] = True while queue: u = queue.pop() - l = sorted(list(digraph.neighbor_out_iterator(u))) + l = sorted(digraph.neighbor_out_iterator(u)) for w in l: if w not in seen: seen[w] = True @@ -585,7 +585,7 @@ def __init__(self, partition): """ self._partition = partition beta = sorted(self._partition, reverse=True) - root = sum([tuple(range(b)) for b in beta], tuple())[::-1] + root = sum((tuple(range(b)) for b in beta), ())[::-1] operators = [SwapIncreasingOperator(i) for i in range(sum(partition) - 1)] super().__init__(root, operators) From 25593e729378b9b89610425af6e049bee37a7e08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Chapoton?= Date: Tue, 9 Apr 2024 09:44:36 +0200 Subject: [PATCH 114/140] a few suggested details --- src/sage/combinat/words/suffix_trees.py | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/src/sage/combinat/words/suffix_trees.py b/src/sage/combinat/words/suffix_trees.py index bb0127b56d3..dd0dabe36a8 100644 --- a/src/sage/combinat/words/suffix_trees.py +++ b/src/sage/combinat/words/suffix_trees.py @@ -407,7 +407,7 @@ def final_states(self): F.append(s) return Set(F) - def has_suffix(self, word): + def has_suffix(self, word) -> bool: r""" Return ``True`` if and only if ``word`` is a suffix of ``self.word()``. @@ -427,11 +427,11 @@ def has_suffix(self, word): q = self._active_state if q == s: return True - else: - while q != 0: - q = self._suffix_link[q] - if q == s: - return True + + while q != 0: + q = self._suffix_link[q] + if q == s: + return True return False def to_digraph(self): @@ -491,7 +491,7 @@ def plot(self, layout='tree', tree_root=0, tree_orientation='up', def show(self, *args, **kwds): r""" - Display the output of ``self.plot()``. + Display the output of :meth:`plot`. EXAMPLES:: @@ -902,7 +902,7 @@ def plot(self, word_labels=False, layout='tree', tree_root=0, def show(self, word_labels=None, *args, **kwds): r""" - Displays the output of ``self.plot()``. + Display the output of :meth:`plot`. INPUT: @@ -1654,13 +1654,15 @@ def __repr__(self): """ w = self.word() if len(w) > 40: - w = str(w[:40])+'...' - return "Decorated suffix tree of : {}".format(w) + w = str(w[:40]) + '...' + return f"Decorated suffix tree of : {w}" def _partial_labeling(self): r""" Make a depth-first search in the suffix tree and mark some squares of a - leftmost covering set of the tree. Used by ``self._complete_labeling``. + leftmost covering set of the tree. + + This is used by :meth:`_complete_labeling`. EXAMPLES:: From b7fea7cb44813643ffeb2ab4ee85ab42243cb381 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Chapoton?= Date: Tue, 9 Apr 2024 11:59:51 +0200 Subject: [PATCH 115/140] add links to standard errors in toric folder --- src/sage/schemes/toric/chow_group.py | 10 ++- src/sage/schemes/toric/divisor.py | 4 +- src/sage/schemes/toric/divisor_class.pyx | 4 +- src/sage/schemes/toric/ideal.py | 2 +- src/sage/schemes/toric/morphism.py | 33 ++++---- src/sage/schemes/toric/variety.py | 85 +++++++++----------- src/sage/schemes/toric/weierstrass.py | 38 ++++----- src/sage/schemes/toric/weierstrass_higher.py | 2 +- 8 files changed, 88 insertions(+), 90 deletions(-) diff --git a/src/sage/schemes/toric/chow_group.py b/src/sage/schemes/toric/chow_group.py index 9b612ece0eb..482bd5ce81b 100644 --- a/src/sage/schemes/toric/chow_group.py +++ b/src/sage/schemes/toric/chow_group.py @@ -230,12 +230,14 @@ def _repr_(self) -> str: def degree(self) -> int: r""" - The degree of the Chow cycle. + Return the degree of the Chow cycle. OUTPUT: Integer. The complex dimension of the subvariety representing - the Chow cycle. Raises a ``ValueError`` if the Chow cycle is a + the Chow cycle. + + This raises a :class:`ValueError` if the Chow cycle is a sum of mixed degree cycles. EXAMPLES:: @@ -354,7 +356,7 @@ def intersection_with_divisor(self, divisor): OUTPUT: A new :class:`ChowCycle`. If the divisor is not Cartier then - this method potentially raises a ``ValueError``, indicating + this method potentially raises a :class:`ValueError`, indicating that the divisor cannot be made transversal to the Chow cycle. EXAMPLES:: @@ -471,7 +473,7 @@ def cohomology_class(self): If the toric variety is not simplicial, that is, has worse than orbifold singularities, there is no way to associate a cohomology class of the correct degree. In this case, - :meth:`cohomology_class` raises a ``ValueError``. + :meth:`cohomology_class` raises a :class:`ValueError`. EXAMPLES:: diff --git a/src/sage/schemes/toric/divisor.py b/src/sage/schemes/toric/divisor.py index a67312516fa..3a72638ac2d 100644 --- a/src/sage/schemes/toric/divisor.py +++ b/src/sage/schemes/toric/divisor.py @@ -567,7 +567,7 @@ def m(self, cone): returned. - If there is no such vector (i.e. ``self`` is not even a - `\QQ`-Cartier divisor), a ``ValueError`` is raised. + `\QQ`-Cartier divisor), a :class:`ValueError` is raised. EXAMPLES:: @@ -773,7 +773,7 @@ def move_away_from(self, cone): .. NOTE:: A divisor that is Weil but not Cartier might be impossible - to move away. In this case, a ``ValueError`` is raised. + to move away. In this case, a :class:`ValueError` is raised. EXAMPLES:: diff --git a/src/sage/schemes/toric/divisor_class.pyx b/src/sage/schemes/toric/divisor_class.pyx index 5a92fe5b38d..a0334faee88 100644 --- a/src/sage/schemes/toric/divisor_class.pyx +++ b/src/sage/schemes/toric/divisor_class.pyx @@ -204,7 +204,7 @@ cdef class ToricRationalDivisorClass(Vector_rational_dense): cpdef _dot_product_(self, Vector right): r""" - Raise a ``TypeError`` exception. + Raise a :class:`TypeError` exception. Dot product is not defined on toric rational divisor classes. @@ -214,7 +214,7 @@ cdef class ToricRationalDivisorClass(Vector_rational_dense): OUTPUT: - - ``TypeError`` exception is raised. + A :class:`TypeError` exception is raised. TESTS:: diff --git a/src/sage/schemes/toric/ideal.py b/src/sage/schemes/toric/ideal.py index 6d611719c14..8feca9114ad 100644 --- a/src/sage/schemes/toric/ideal.py +++ b/src/sage/schemes/toric/ideal.py @@ -161,7 +161,7 @@ class ToricIdeal(MPolynomialIdeal): You may specify the ambient polynomial ring via the ``polynomial_ring`` parameter or via the ``names`` and - ``base_ring`` parameter. A ``ValueError`` is raised if you + ``base_ring`` parameter. A :class:`ValueError` is raised if you specify both. - ``algorithm`` -- string (optional). The algorithm to use. For diff --git a/src/sage/schemes/toric/morphism.py b/src/sage/schemes/toric/morphism.py index b5d11c0d808..d5b61a651f1 100644 --- a/src/sage/schemes/toric/morphism.py +++ b/src/sage/schemes/toric/morphism.py @@ -521,7 +521,8 @@ def as_fan_morphism(self): OUTPUT: A :class:`SchemeMorphism_polynomial_toric_variety`. - Raises a ``TypeError`` if the morphism cannot be written in such a way. + This raises a :class:`TypeError` if the morphism cannot be written + in such a way. EXAMPLES:: @@ -680,9 +681,10 @@ def as_polynomial_map(self): OUTPUT: - A :class:`SchemeMorphism_polynomial_toric_variety`. Raises a - ``TypeError`` if the morphism cannot be written in terms of - homogeneous polynomials. + A :class:`SchemeMorphism_polynomial_toric_variety`. + + This raises a :class:`TypeError` if the morphism cannot be + written in terms of homogeneous polynomials. The defining polynomials are not necessarily unique. There are choices if multiple ambient space ray generators project to @@ -716,7 +718,7 @@ def as_polynomial_map(self): orbit = self.domain() codomain_fan = self.codomain().fan() R = orbit.coordinate_ring() - polys = [ R.one() ] * codomain_fan.nrays() + polys = [R.one()] * codomain_fan.nrays() for i in self._defining_cone.ambient_ray_indices(): polys[i] = R.zero() ray_index_map = self._reverse_ray_map() @@ -1070,8 +1072,8 @@ def as_polynomial_map(self): OUTPUT: A :class:`SchemeMorphism_polynomial_toric_variety`. - Raises a ``TypeError`` if the morphism cannot be written in terms of - homogeneous polynomials. + This raises a :class:`TypeError` if the morphism cannot be written + in terms of homogeneous polynomials. EXAMPLES:: @@ -1104,8 +1106,8 @@ def as_polynomial_map(self): 'homogeneous polynomials') polys[i] *= x**d if phi.domain_fan().virtual_rays(): - raise NotImplementedError("polynomial representations for fans " - "with virtual rays are not implemented yet") + raise NotImplementedError("polynomial representations for fans with" + " virtual rays are not implemented yet") return SchemeMorphism_polynomial_toric_variety(self.parent(), polys) def is_bundle(self): @@ -1477,7 +1479,7 @@ def fiber_component(self, domain_cone, multiplicity=False): embedding = SchemeMorphism_fan_fiber_component_toric_variety(self, domain_cone) if multiplicity: return embedding.domain(), \ - self.fan_morphism().index(embedding.base_cone()) + self.fan_morphism().index(embedding.base_cone()) else: return embedding.domain() @@ -1609,7 +1611,7 @@ def is_union_in_fan(self, c0, c1): except ValueError: return False - m = matrix(ZZ, n, n, lambda i,j:is_union_in_fan(self,prim[i], prim[j])) + m = matrix(ZZ, n, n, lambda i, j: is_union_in_fan(self, prim[i], prim[j])) for i in range(n): m[i, i] = 0 @@ -1727,9 +1729,10 @@ def as_polynomial_map(self): OUTPUT: - A :class:`SchemeMorphism_polynomial_toric_variety`. Raises a - ``ValueError`` if the morphism cannot be written in terms of - homogeneous polynomials. + A :class:`SchemeMorphism_polynomial_toric_variety`. + + This raises a :class:`ValueError` if the morphism cannot be + written in terms of homogeneous polynomials. EXAMPLES:: @@ -1830,7 +1833,7 @@ def projection(ray): star_rays = set() for cone in fm.relative_star_generators(defining_cone): star_rays.update(cone.rays()) - projected_rays = [ projection(r) for r in cone.rays() ] + projected_rays = [projection(r) for r in cone.rays()] cones.append(Cone(projected_rays)) fiber_fan = Fan(cones) diff --git a/src/sage/schemes/toric/variety.py b/src/sage/schemes/toric/variety.py index ac2adcfdb30..db471da729b 100644 --- a/src/sage/schemes/toric/variety.py +++ b/src/sage/schemes/toric/variety.py @@ -666,7 +666,8 @@ def _check_satisfies_equations(self, coordinates): OUTPUT: - ``True`` if ``coordinates`` do define a valid point of ``self``, - otherwise a ``TypeError`` or ``ValueError`` exception is raised. + otherwise a :class:`TypeError` or :class:`ValueError` exception + is raised. TESTS:: @@ -927,7 +928,7 @@ def _validate(self, polynomials): - ``polynomials`` (the input parameter without any modifications) if ``polynomials`` do define valid polynomial functions on ``self``, - otherwise a ``ValueError`` exception is raised. + otherwise a :class:`ValueError` exception is raised. TESTS: @@ -1102,7 +1103,7 @@ def embedding_morphism(self): - :class:`scheme morphism ` if the default embedding morphism was defined for ``self``, - otherwise a ``ValueError`` exception is raised. + otherwise a :class:`ValueError` exception is raised. EXAMPLES:: @@ -1196,7 +1197,7 @@ def inject_coefficients(self, scope=None, verbose=True): while True: scope = sys._getframe(depth).f_globals if (scope["__name__"] == "__main__" - and scope.get("__package__", None) is None): + and scope.get("__package__", None) is None): break depth += 1 try: @@ -1216,7 +1217,7 @@ def dimension_singularities(self): this method will return the dimension of the largest-dimensional component. - Returns -1 if the toric variety is smooth. + This returns -1 if the toric variety is smooth. EXAMPLES:: @@ -1227,7 +1228,7 @@ def dimension_singularities(self): sage: toric_varieties.P2().dimension_singularities() -1 """ - for codim in range(self.dimension()+1): + for codim in range(self.dimension() + 1): if any(not cone.is_smooth() for cone in self.fan(codim)): return self.dimension() - codim return -1 @@ -1291,7 +1292,7 @@ def is_homogeneous(self, polynomial): from sage.modules.free_module import FreeModule rays = fan.rays() + fan.virtual_rays() degrees_group = FreeModule(ZZ, len(rays)).quotient( - rays.matrix().columns()) + rays.matrix().columns()) self._homogeneous_degrees_group = degrees_group degrees_group = self._homogeneous_degrees_group S = self.coordinate_ring() @@ -1303,9 +1304,9 @@ def is_homogeneous(self, polynomial): monomials = polynomial.monomials() if not monomials: return True - degree = degrees_group(vector(ZZ,monomials[0].degrees())) + degree = degrees_group(vector(ZZ, monomials[0].degrees())) for monomial in monomials: - if degrees_group(vector(ZZ,monomial.degrees())) != degree: + if degrees_group(vector(ZZ, monomial.degrees())) != degree: return False return True @@ -1464,12 +1465,12 @@ def Kaehler_cone(self): from sage.schemes.toric.divisor import \ ToricRationalDivisorClassGroup_basis_lattice L = ToricRationalDivisorClassGroup_basis_lattice( - self.rational_class_group()) + self.rational_class_group()) n = fan.nrays() K = None for cone in fan: sigma = Cone([GT[i] for i in range(n) - if i not in cone.ambient_ray_indices()], + if i not in cone.ambient_ray_indices()], lattice=L) K = K.intersection(sigma) if K is not None else sigma return K @@ -1477,7 +1478,7 @@ def Kaehler_cone(self): @cached_method def Mori_cone(self): r""" - Returns the Mori cone of ``self``. + Return the Mori cone of ``self``. OUTPUT: :class:`cone `. @@ -1515,7 +1516,7 @@ def Mori_cone(self): # so far this is not the case. rays = (ray * self._fan.Gale_transform() for ray in self.Kaehler_cone().dual().rays()) - return Cone(rays, lattice=ZZ**(self._fan.nrays()+1)) + return Cone(rays, lattice=ZZ**(self._fan.nrays() + 1)) def plot(self, **options): r""" @@ -1604,7 +1605,7 @@ def Chow_group(self, base_ring=ZZ): (( 0 | 0 | 1 ), ( 0 | 1 | 0 ), ( 1 | 0 | 0 )) """ from sage.schemes.toric.chow_group import ChowGroup - return ChowGroup(self,base_ring) + return ChowGroup(self, base_ring) def cartesian_product(self, other, coordinate_names=None, coordinate_indices=None): @@ -2001,7 +2002,7 @@ def volume_class(self): A :class:`CohomologyClass`. If it exists, it is the class of the (properly normalized) volume form, that is, it is the Poincaré dual of a single point. If it does not exist, a - ``ValueError`` is raised. + :class:`ValueError` is raised. EXAMPLES:: @@ -2177,11 +2178,9 @@ def Chern_class(self, deg=None): True """ assert self.is_orbifold(), "Requires the toric variety to be an orbifold." - c = prod([ 1+self.cohomology_ring().gen(i) for i in range(self._fan.nrays()) ]) - if deg is None: - return c - else: - return c.part_of_degree(deg) + c = prod([1 + self.cohomology_ring().gen(i) + for i in range(self._fan.nrays())]) + return c if deg is None else c.part_of_degree(deg) @cached_method def Chern_character(self, deg=None): @@ -2218,12 +2217,9 @@ def Chern_character(self, deg=None): """ assert self.is_orbifold(), "Requires the toric variety to be an orbifold." n_rels = self._fan.nrays() - self.dimension() - ch = sum([ self.cohomology_ring().gen(i).exp() - for i in range(self._fan.nrays()) ]) - n_rels - if deg is None: - return ch - else: - return ch.part_of_degree(deg) + ch = sum([self.cohomology_ring().gen(i).exp() + for i in range(self._fan.nrays())]) - n_rels + return ch if deg is None else ch.part_of_degree(deg) @cached_method def Todd_class(self, deg=None): @@ -2265,17 +2261,14 @@ def Todd_class(self, deg=None): c2 = self.Chern_class(2) Td += QQ.one() / 12 * (c1**2 + c2) if dim >= 3: - Td += QQ.one() / 24 * c1*c2 + Td += QQ.one() / 24 * c1 * c2 if dim >= 4: c3 = self.Chern_class(3) c4 = self.Chern_class(4) Td += -QQ.one() / 720 * (c1**4 - 4*c1**2*c2 - 3*c2**2 - c1*c3 + c4) if dim >= 5: raise NotImplementedError('Todd class is currently only implemented up to degree 4') - if deg is None: - return Td - else: - return Td.part_of_degree(deg) + return Td if deg is None else Td.part_of_degree(deg) c = Chern_class ch = Chern_character @@ -2308,7 +2301,7 @@ def Euler_number(self): else: chi = 0 H = self.cohomology_basis() - for d in range(self.dimension()+1): + for d in range(self.dimension() + 1): chi += (-1)**d * len(H[d]) self._chi = chi return self._chi @@ -2317,7 +2310,7 @@ def Euler_number(self): def K(self): r""" - Returns the canonical divisor of the toric variety. + Return the canonical divisor of the toric variety. EXAMPLES: @@ -2331,7 +2324,7 @@ def K(self): 6 """ from sage.schemes.toric.divisor import ToricDivisor - return ToricDivisor(self, [-1]*self._fan.nrays()) + return ToricDivisor(self, [-1] * self._fan.nrays()) def divisor(self, arg, base_ring=None, check=True, reduce=True): r""" @@ -2632,8 +2625,8 @@ def _orbit_closure_projection(self, cone, x): This quotient lattice is the ambient lattice for the fan of the orbit closure corresponding to ``cone``. - If ``x`` is a cone not in the star of ``cone``, an ``IndexError`` is - raised. + If ``x`` is a cone not in the star of ``cone``, an :class:`IndexError` + is raised. See :meth:`orbit_closure` for more details. @@ -2719,11 +2712,10 @@ def orbit_closure(self, cone): sage: A2.orbit_closure(A2.fan(2)[0]) 0-d affine toric variety """ - cone = self.fan().embed(cone) - cones = [] - for star_cone in cone.star_generators(): - cones.append( self._orbit_closure_projection(cone, star_cone) ) from sage.geometry.fan import discard_faces + cone = self.fan().embed(cone) + cones = [self._orbit_closure_projection(cone, star_cone) + for star_cone in cone.star_generators()] fan = Fan(discard_faces(cones), check=False) orbit_closure = ToricVariety(fan) @@ -2809,7 +2801,7 @@ def Demazure_roots(self): antiK = -self.K() fan_rays = self.fan().rays() roots = [m for m in antiK.sections() - if [ray*m for ray in fan_rays].count(-1) == 1] + if [ray * m for ray in fan_rays].count(-1) == 1] return tuple(roots) def Aut_dimension(self): @@ -2984,7 +2976,7 @@ def normalize_names(names=None, ngens=None, prefix=None, indices=None, names = list(names) except TypeError: raise TypeError( - "names must be a string or a list or tuple of them") + "names must be a string or a list or tuple of them") for name in names: if not isinstance(name, str): raise TypeError( @@ -3137,7 +3129,7 @@ def _latex_(self): """ return fr'H^\ast\left({self._variety._latex_()},{latex(QQ)}\right)' - def _element_constructor_(self,x): + def _element_constructor_(self, x): r""" Construct a :class:`CohomologyClass`. @@ -3260,7 +3252,8 @@ def gens(self): ([z], [z], [z]) """ if "_gens" not in self.__dict__: - self._gens = tuple( self.gen(i) for i in range(self._variety.fan().nrays()) ) + self._gens = tuple(self.gen(i) + for i in range(self._variety.fan().nrays())) return self._gens def gen(self, i): @@ -3469,7 +3462,7 @@ def exp(self): OUTPUT: The cohomology class `\exp(` ``self`` `)` if the constant part - vanishes, otherwise a ``ValueError`` is raised. + vanishes, otherwise a :class:`ValueError` is raised. EXAMPLES:: @@ -3484,6 +3477,6 @@ def exp(self): if not self.part_of_degree(0).is_zero(): raise ValueError('must not have a constant part') exp_x = self.parent().one() - for d in range(1, self.parent()._variety.dimension()+1): + for d in range(1, self.parent()._variety.dimension() + 1): exp_x += self**d / factorial(d) return exp_x diff --git a/src/sage/schemes/toric/weierstrass.py b/src/sage/schemes/toric/weierstrass.py index b727e586141..2fb34dc0d59 100644 --- a/src/sage/schemes/toric/weierstrass.py +++ b/src/sage/schemes/toric/weierstrass.py @@ -176,8 +176,8 @@ def Discriminant(polynomial, variables=None): sage: Discriminant([quadratic1, quadratic2]) -1/16 """ - (f, g) = WeierstrassForm(polynomial, variables) - return 4*f**3+27*g**2 + f, g = WeierstrassForm(polynomial, variables) + return 4 * f**3 + 27 * g**2 ###################################################################### @@ -199,7 +199,7 @@ def j_invariant(polynomial, variables=None): * A nodal cubic: `j(-y^2 + x^2 + x^3) = \infty` * A cuspidal cubic `y^2=x^3` has undefined `j`-invariant. In this - case, a ``ValueError`` is raised. + case, a :class:`ValueError` is raised. EXAMPLES:: @@ -220,10 +220,10 @@ def j_invariant(polynomial, variables=None): ... ValueError: curve is singular and has no well-defined j-invariant """ - (f, g) = WeierstrassForm(polynomial, variables) - disc = 4*f**3+27*g**2 + f, g = WeierstrassForm(polynomial, variables) + disc = 4 * f**3 + 27 * g**2 if disc != 0: - return 1728 * 4*f**3/disc + return 1728 * 4 * f**3 / disc if f != 0: return Infinity raise ValueError('curve is singular and has no well-defined j-invariant') @@ -286,7 +286,7 @@ def Newton_polytope_vars_coeffs(polynomial, variables): e = m.exponents()[0] v = tuple([e[i] for i in var_indices]) m_red = m // prod(x**i for x, i in zip(variables, v)) - result[v] = result.get(v, R.zero()) + c*m_red + result[v] = result.get(v, R.zero()) + c * m_red return result @@ -505,7 +505,7 @@ def WeierstrassForm(polynomial, variables=None, transformation=False): ###################################################################### def _check_homogeneity(polynomial, variables, weights, total_weight=None): """ - Raise ``ValueError`` if the polynomial is not weighted + Raise :class:`ValueError` if the polynomial is not weighted homogeneous. INPUT: @@ -526,7 +526,7 @@ def _check_homogeneity(polynomial, variables, weights, total_weight=None): OUTPUT: This function returns nothing. If the polynomial is not weighted - homogeneous, a ``ValueError`` is raised. + homogeneous, a :class:`ValueError` is raised. EXAMPLES:: @@ -553,7 +553,7 @@ def _check_homogeneity(polynomial, variables, weights, total_weight=None): else: if weight_e != total_weight: raise ValueError('the polynomial is not homogeneous with ' - 'weights '+str(weights)) + 'weights ' + str(weights)) ###################################################################### @@ -599,7 +599,7 @@ def index(monomial): coeffs = {} for c, m in polynomial: i = index(m) - coeffs[i] = c*m + coeffs.pop(i, R.zero()) + coeffs[i] = c * m + coeffs.pop(i, R.zero()) result = tuple(coeffs.pop(index(m), R.zero()) // m for m in monomials) if coeffs: raise ValueError('the polynomial contains more monomials than ' @@ -623,7 +623,7 @@ def _check_polynomial_P2(cubic, variables): OUTPUT: This functions returns ``variables``, potentially guessed from the - polynomial ring. A ``ValueError`` is raised if the polynomial is + polynomial ring. A :class:`ValueError` is raised if the polynomial is not homogeneous. EXAMPLES:: @@ -757,7 +757,7 @@ def WeierstrassForm_P2(polynomial, variables=None): F = polynomial.base_ring() S = cubic.S_invariant() T = cubic.T_invariant() - return (27*S, -27/F(4)*T) + return (27 * S, -27 / F(4) * T) ###################################################################### @@ -780,7 +780,7 @@ def _check_polynomial_P1xP1(biquadric, variables): OUTPUT: This functions returns ``variables``, potentially guessed from the - polynomial ring. A ``ValueError`` is raised if the polynomial is + polynomial ring. A :class:`ValueError` is raised if the polynomial is not homogeneous. EXAMPLES:: @@ -853,10 +853,10 @@ def _partial_discriminant(quadric, y0, y1=None): monomials = (quadric.parent().one(), y0, y0**2) variables = [y0] else: - monomials = (y1**2, y0*y1, y0**2) + monomials = (y1**2, y0 * y1, y0**2) variables = [y0, y1] c = _extract_coefficients(quadric, monomials, variables) - return c[1]**2 - 4*c[0]*c[2] + return c[1]**2 - 4 * c[0] * c[2] ###################################################################### @@ -941,7 +941,7 @@ def WeierstrassForm_P1xP1(biquadric, variables=None): Q = invariant_theory.binary_quartic(delta, x, y) g2 = Q.EisensteinD() g3 = -Q.EisensteinE() - return (-g2/4, -g3/4) + return (-g2 / 4, -g3 / 4) ###################################################################### @@ -964,7 +964,7 @@ def _check_polynomial_P2_112(polynomial, variables): OUTPUT: This functions returns ``variables``, potentially guessed from the - polynomial ring. A ``ValueError`` is raised if the polynomial is + polynomial ring. A :class:`ValueError` is raised if the polynomial is not homogeneous. EXAMPLES:: @@ -1076,4 +1076,4 @@ def WeierstrassForm_P2_112(polynomial, variables=None): Q = invariant_theory.binary_quartic(delta, x, z) g2 = Q.EisensteinD() g3 = -Q.EisensteinE() - return (-g2/4, -g3/4) + return (-g2 / 4, -g3 / 4) diff --git a/src/sage/schemes/toric/weierstrass_higher.py b/src/sage/schemes/toric/weierstrass_higher.py index 6e2cc57e59d..48d683d53a4 100644 --- a/src/sage/schemes/toric/weierstrass_higher.py +++ b/src/sage/schemes/toric/weierstrass_higher.py @@ -81,7 +81,7 @@ def _check_polynomials_P3(quadratic1, quadratic2, variables): OUTPUT: This function returns ``variables``, potentially guessed from the - polynomial ring. A ``ValueError`` is raised if the polynomial is + polynomial ring. A :class:`ValueError` is raised if the polynomial is not homogeneous. EXAMPLES:: From af67a2aa23a840b1968bfdc48be60d04c9ee3981 Mon Sep 17 00:00:00 2001 From: Travis Scrimshaw Date: Thu, 28 Mar 2024 00:31:13 +0900 Subject: [PATCH 116/140] Implement the normalizer of a finite dimensional Lie algebra. --- ...ite_dimensional_lie_algebras_with_basis.py | 94 ++++++++++++++++++- 1 file changed, 92 insertions(+), 2 deletions(-) diff --git a/src/sage/categories/finite_dimensional_lie_algebras_with_basis.py b/src/sage/categories/finite_dimensional_lie_algebras_with_basis.py index 6cb7badd99a..3504bbf9dab 100644 --- a/src/sage/categories/finite_dimensional_lie_algebras_with_basis.py +++ b/src/sage/categories/finite_dimensional_lie_algebras_with_basis.py @@ -445,7 +445,7 @@ def centralizer_basis(self, S): sage: H.centralizer_basis(H) [z] - sage: # needs sage.combinat sage.groupssage.modules + sage: # needs sage.combinat sage.groups sage.modules sage: D = DescentAlgebra(QQ, 4).D() sage: L = LieAlgebra(associative=D) sage: L.centralizer_basis(L) @@ -456,6 +456,15 @@ def centralizer_basis(self, S): (D{}, D{1} + D{1, 2} + D{2, 3} + D{3}, D{1, 2, 3} + D{1, 3} + D{2}) + + sage: scoeffs = {('a','d'): {'a':1}, ('a','e'): {'b':-1}, + ....: ('b','d'): {'b':1}, ('b','e'): {'a':1}, + ....: ('d','e'): {'c':1}} + sage: L. = LieAlgebra(QQ, scoeffs) + sage: L.centralizer_basis([a, c]) + [a, b, c] + sage: L.centralizer_basis([a, e]) + [c] """ from sage.matrix.constructor import matrix @@ -481,7 +490,7 @@ def centralizer_basis(self, S): [[sum(m[i,j] * sc[x,xp][k] for j,xp in enumerate(X) if (x, xp) in sc) for x in X] - for i in range(d) for k in range(d)]) + for i in range(m.nrows()) for k in range(d)]) C = c_mat.right_kernel().basis_matrix() return [self.from_vector(c) for c in C] @@ -531,6 +540,87 @@ def center(self): """ return self.centralizer(self) + def normalizer_basis(self, S): + r""" + Return a basis of the normalizer of ``S`` in ``self``. + + INPUT: + + - ``S`` -- a subalgebra of ``self`` or a list of elements that + represent generators for a subalgebra + + .. SEEALSO:: + + :meth:`normalizer` + + EXAMPLES:: + + sage: scoeffs = {('a','d'): {'a':1}, ('a','e'): {'b':-1}, + ....: ('b','d'): {'b':1}, ('b','e'): {'a':1}, + ....: ('d','e'): {'c':1}} + sage: L. = LieAlgebra(QQ, scoeffs) + sage: L.normalizer_basis([a, e]) + [b, c] + """ + from sage.matrix.constructor import matrix + + if S is self: + return self.basis() + if isinstance(S, (list, tuple)): + m = matrix([v.to_vector() for v in self.echelon_form(S)]) + else: + m = self.subalgebra(S).basis_matrix() + + if m.nrows() == self.dimension(): + return self.basis() + + S = self.structure_coefficients() + sc = {} + for k in S.keys(): + v = S[k].to_vector() + sc[k] = v + sc[k[1], k[0]] = -v + X = self.basis().keys() + d = len(X) + ret = [] + t = m.nrows() + c_mat = matrix(self.base_ring(), + [[sum(m[i,j] * sc[x,xp][k] for j, xp in enumerate(X) + if (x, xp) in sc) + for x in X] + + [0]*(i*t) + [-m[j,k] for j in range(t)] + [0]*((t-i-1)*t) + for i in range(t) for k in range(d)]) + C = c_mat.right_kernel().basis_matrix() + return [self.from_vector(c[:d]) for c in C] + + def normalizer(self, S): + r""" + Return the normalizer of ``S`` in ``self``. + + INPUT: + + - ``S`` -- a subalgebra of ``self`` or a list of elements that + represent generators for a subalgebra + + .. SEEALSO:: + + :meth:`normalizer_basis` + + EXAMPLES:: + + sage: scoeffs = {('a','d'): {'a':1}, ('a','e'): {'b':-1}, + ....: ('b','d'): {'b':1}, ('b','e'): {'a':1}, + ....: ('d','e'): {'c':1}} + sage: L. = LieAlgebra(QQ, scoeffs) + sage: L.normalizer([a, e]) + Subalgebra generated by (b, c) of Lie algebra on + 5 generators (a, b, c, d, e) over Rational Field + sage: L.normalizer([a, c, e]) + Subalgebra generated by (b, c, d) of Lie algebra on + 5 generators (a, b, c, d, e) over Rational Field + """ + return self.subalgebra(self.normalizer_basis(S)) + @cached_method def derivations_basis(self): r""" From 1fe570ce6fbb4e48e529aced138c916c22404c86 Mon Sep 17 00:00:00 2001 From: Travis Scrimshaw Date: Fri, 29 Mar 2024 15:52:58 +0900 Subject: [PATCH 117/140] Allow more general input to subalgebras of finite dimensional Lie algebras; more doctests. --- src/sage/algebras/lie_algebras/subalgebra.py | 53 +++++++++++++++---- ...ite_dimensional_lie_algebras_with_basis.py | 12 +++++ 2 files changed, 54 insertions(+), 11 deletions(-) diff --git a/src/sage/algebras/lie_algebras/subalgebra.py b/src/sage/algebras/lie_algebras/subalgebra.py index 441b55a9fad..aee197edbbb 100644 --- a/src/sage/algebras/lie_algebras/subalgebra.py +++ b/src/sage/algebras/lie_algebras/subalgebra.py @@ -163,7 +163,6 @@ class LieSubalgebra_finite_dimensional_with_basis(Parent, UniqueRepresentation): sage: J.reduce(I(Z) + I(W)) W """ - @staticmethod def __classcall_private__(cls, ambient, gens, ideal=False, order=None, category=None): @@ -193,10 +192,42 @@ def __classcall_private__(cls, ambient, gens, ideal=False, sage: T3 = L.subalgebra([0, 0]) sage: T1 is T2 and T2 is T3 True + + Subalgebras generated by a subalgebra returns the same subalgebra:: + + sage: S1 = L.subalgebra(X) + sage: S2 = L.subalgebra(S1) + sage: S1 is S2 + True + + We can have subalgebras generated by subalgebras:: + + sage: scoeffs = {('a','d'): {'a':1}, ('a','e'): {'b':-1}, + ....: ('b','d'): {'b':1}, ('b','e'): {'a':1}, + ....: ('d','e'): {'c':1}} + sage: L. = LieAlgebra(QQ, scoeffs) + sage: S1 = L.subalgebra(a) + sage: S2 = L.subalgebra([b, e]) + sage: S = L.subalgebra([S1, S2]) + sage: S + Subalgebra generated by (a, a, b, e) of Lie algebra on + 5 generators (a, b, c, d, e) over Rational Field + sage: S.basis() + Family (a, b, e) """ + if isinstance(gens, LieSubalgebra_finite_dimensional_with_basis): + if not ideal or gens._is_ideal: + return gens + gens = gens.lie_algebra_generators() if not isinstance(gens, (list, tuple)): gens = [gens] - gens = tuple(ambient(gen) for gen in gens if not gen.is_zero()) + new_gens = [] + for gen in gens: + if isinstance(gen, LieSubalgebra_finite_dimensional_with_basis): + new_gens.extend(ambient(b) for b in gen.basis()) + elif not gen.is_zero(): + new_gens.append(ambient(gen)) + gens = tuple(new_gens) if not ideal and isinstance(ambient, LieSubalgebra_finite_dimensional_with_basis): @@ -281,8 +312,8 @@ def __contains__(self, x): True """ - if x in self.ambient(): - x = self.ambient()(x) + if x in self._ambient: + x = self._ambient(x) return x.to_vector() in self.module() return super().__contains__(x) @@ -398,7 +429,7 @@ def _element_constructor_(self, x): P = x.parent() if P is self: return x - if P == self.ambient(): + if P == self._ambient: return self.retract(x) except AttributeError: pass @@ -448,7 +479,7 @@ def _to_m(self, X): (2, 3, 1) """ mc = X.monomial_coefficients() - M = self.ambient().module() + M = self._ambient.module() R = M.base_ring() B = M.basis() return M.sum(R(mc[self._reversed_indices[i]]) * B[i] @@ -767,8 +798,8 @@ def from_vector(self, v, order=None, coerce=False): sage: el.parent() == S True """ - if len(v) == self.ambient().dimension(): - return self.retract(self.ambient().from_vector(v)) + if len(v) == self._ambient.dimension(): + return self.retract(self._ambient.from_vector(v)) return super().from_vector(v) def basis_matrix(self): @@ -811,9 +842,9 @@ def module(self, sparse=False): [0 0 3] """ try: - m = self.ambient().module(sparse=sparse) + m = self._ambient.module(sparse=sparse) except TypeError: - m = self.ambient().module() + m = self._ambient.module() ambientbasis = [self.lift(X).to_vector() for X in self.basis()] return m.submodule_with_basis(ambientbasis) @@ -853,7 +884,7 @@ def is_ideal(self, A): sage: L.is_ideal(I) False """ - if A == self.ambient() and self._is_ideal: + if A == self._ambient and self._is_ideal: return True return super().is_ideal(A) diff --git a/src/sage/categories/finite_dimensional_lie_algebras_with_basis.py b/src/sage/categories/finite_dimensional_lie_algebras_with_basis.py index 3504bbf9dab..6e25e4be153 100644 --- a/src/sage/categories/finite_dimensional_lie_algebras_with_basis.py +++ b/src/sage/categories/finite_dimensional_lie_algebras_with_basis.py @@ -561,6 +561,18 @@ def normalizer_basis(self, S): sage: L. = LieAlgebra(QQ, scoeffs) sage: L.normalizer_basis([a, e]) [b, c] + + sage: S = L.subalgebra([a, e]) + sage: L.normalizer_basis(S) + [a, b, c, e] + + When the subalgebra is the ambient Lie algebra, we return the + basis of the ambient Lie algebra:: + + sage: L.normalizer_basis(L) + Finite family {'a': a, 'b': b, 'c': c, 'd': d, 'e': e} + sage: L.normalizer_basis([a,b,c,a,d+e,a+e]) + Finite family {'a': a, 'b': b, 'c': c, 'd': d, 'e': e} """ from sage.matrix.constructor import matrix From a01b42ab7fd74262629330c442aeacf6d27637a0 Mon Sep 17 00:00:00 2001 From: Travis Scrimshaw Date: Wed, 3 Apr 2024 19:21:24 +0900 Subject: [PATCH 118/140] Update spacing in doctest from review. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Matthias Köppe --- .../categories/finite_dimensional_lie_algebras_with_basis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sage/categories/finite_dimensional_lie_algebras_with_basis.py b/src/sage/categories/finite_dimensional_lie_algebras_with_basis.py index 6e25e4be153..01bd7fefb85 100644 --- a/src/sage/categories/finite_dimensional_lie_algebras_with_basis.py +++ b/src/sage/categories/finite_dimensional_lie_algebras_with_basis.py @@ -571,7 +571,7 @@ def normalizer_basis(self, S): sage: L.normalizer_basis(L) Finite family {'a': a, 'b': b, 'c': c, 'd': d, 'e': e} - sage: L.normalizer_basis([a,b,c,a,d+e,a+e]) + sage: L.normalizer_basis([a, b, c, a, d + e, a + e]) Finite family {'a': a, 'b': b, 'c': c, 'd': d, 'e': e} """ from sage.matrix.constructor import matrix From 403b794add445fe48586004cde6338b2b0d2c45d Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Sat, 9 Mar 2024 00:07:41 -0800 Subject: [PATCH 119/140] build/pkgs/singular: Update to 4.3.2p16 --- build/pkgs/singular/checksums.ini | 6 +++--- build/pkgs/singular/package-version.txt | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build/pkgs/singular/checksums.ini b/build/pkgs/singular/checksums.ini index 40ba7b3153f..34e88e385b4 100644 --- a/build/pkgs/singular/checksums.ini +++ b/build/pkgs/singular/checksums.ini @@ -1,5 +1,5 @@ tarball=singular-VERSION.tar.gz -sha1=0dd736f26935ed72999bb9a4bbb98c6df18ab9ea -md5=0f9368193bad9a0c3dc84545b2404761 -cksum=1698641648 +sha1=8353ecad136806922061e4e13ce34ec7c8689719 +md5=c14594039817cd77ae74c75901262dbb +cksum=3489246459 upstream_url=ftp://jim.mathematik.uni-kl.de/pub/Math/Singular/SOURCES/4-3-2/singular-VERSION.tar.gz diff --git a/build/pkgs/singular/package-version.txt b/build/pkgs/singular/package-version.txt index 7801ff9a882..935ba26c9ba 100644 --- a/build/pkgs/singular/package-version.txt +++ b/build/pkgs/singular/package-version.txt @@ -1 +1 @@ -4.3.2p8 +4.3.2p16 From 1a899c236fbb8b6eef9518b71dbbf64af11beada Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Chapoton?= Date: Wed, 10 Apr 2024 08:24:01 +0200 Subject: [PATCH 120/140] detail in doc of toric/variety.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Matthias Köppe --- src/sage/schemes/toric/variety.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sage/schemes/toric/variety.py b/src/sage/schemes/toric/variety.py index db471da729b..aee10319916 100644 --- a/src/sage/schemes/toric/variety.py +++ b/src/sage/schemes/toric/variety.py @@ -1217,7 +1217,7 @@ def dimension_singularities(self): this method will return the dimension of the largest-dimensional component. - This returns -1 if the toric variety is smooth. + This returns `-1` if the toric variety is smooth. EXAMPLES:: From e75b2c544ca3a362d37e5723253e5fc9bcd9c0ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Chapoton?= Date: Wed, 10 Apr 2024 09:19:57 +0200 Subject: [PATCH 121/140] as suggested, unfix some pycodestyle warnings --- src/sage/schemes/toric/weierstrass.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/sage/schemes/toric/weierstrass.py b/src/sage/schemes/toric/weierstrass.py index 2fb34dc0d59..492f6b41126 100644 --- a/src/sage/schemes/toric/weierstrass.py +++ b/src/sage/schemes/toric/weierstrass.py @@ -177,7 +177,7 @@ def Discriminant(polynomial, variables=None): -1/16 """ f, g = WeierstrassForm(polynomial, variables) - return 4 * f**3 + 27 * g**2 + return 4*f**3 + 27*g**2 ###################################################################### @@ -221,7 +221,7 @@ def j_invariant(polynomial, variables=None): ValueError: curve is singular and has no well-defined j-invariant """ f, g = WeierstrassForm(polynomial, variables) - disc = 4 * f**3 + 27 * g**2 + disc = 4*f**3 + 27*g**2 if disc != 0: return 1728 * 4 * f**3 / disc if f != 0: @@ -286,7 +286,7 @@ def Newton_polytope_vars_coeffs(polynomial, variables): e = m.exponents()[0] v = tuple([e[i] for i in var_indices]) m_red = m // prod(x**i for x, i in zip(variables, v)) - result[v] = result.get(v, R.zero()) + c * m_red + result[v] = result.get(v, R.zero()) + c*m_red return result @@ -552,8 +552,8 @@ def _check_homogeneity(polynomial, variables, weights, total_weight=None): total_weight = weight_e else: if weight_e != total_weight: - raise ValueError('the polynomial is not homogeneous with ' - 'weights ' + str(weights)) + msg = f'the polynomial is not homogeneous with weights {weights}' + raise ValueError(msg) ###################################################################### @@ -599,11 +599,11 @@ def index(monomial): coeffs = {} for c, m in polynomial: i = index(m) - coeffs[i] = c * m + coeffs.pop(i, R.zero()) + coeffs[i] = c*m + coeffs.pop(i, R.zero()) result = tuple(coeffs.pop(index(m), R.zero()) // m for m in monomials) if coeffs: - raise ValueError('the polynomial contains more monomials than ' - 'given: ' + str(coeffs)) + msg = f'the polynomial contains more monomials than given: {coeffs}' + raise ValueError(msg) return result @@ -856,7 +856,7 @@ def _partial_discriminant(quadric, y0, y1=None): monomials = (y1**2, y0 * y1, y0**2) variables = [y0, y1] c = _extract_coefficients(quadric, monomials, variables) - return c[1]**2 - 4 * c[0] * c[2] + return c[1]**2 - 4*c[0]*c[2] ###################################################################### From 6e73c11e5f6e4de90b141d7d01dc6f143e2ce088 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Chapoton?= Date: Wed, 10 Apr 2024 09:30:10 +0200 Subject: [PATCH 122/140] fix suggestions --- src/sage/arith/functions.pyx | 4 ++-- src/sage/combinat/sloane_functions.py | 2 +- src/sage/combinat/tiling.py | 5 +---- src/sage/combinat/words/morphism.py | 11 ++++++++++- 4 files changed, 14 insertions(+), 8 deletions(-) diff --git a/src/sage/arith/functions.pyx b/src/sage/arith/functions.pyx index f0c7c03220e..a3a9c4ae216 100644 --- a/src/sage/arith/functions.pyx +++ b/src/sage/arith/functions.pyx @@ -30,7 +30,7 @@ def lcm(a, b=None): - ``a,b`` -- two elements of a ring with lcm or - - ``a`` -- a list or tuple of elements of a ring with lcm + - ``a`` -- a list, tuple or iterable of elements of a ring with lcm OUTPUT: @@ -135,7 +135,7 @@ cpdef LCM_list(v): INPUT: - - ``v`` -- an iterable + - ``v`` -- an iterable OUTPUT: integer diff --git a/src/sage/combinat/sloane_functions.py b/src/sage/combinat/sloane_functions.py index 808bcfd849d..76a05d6dc18 100644 --- a/src/sage/combinat/sloane_functions.py +++ b/src/sage/combinat/sloane_functions.py @@ -859,7 +859,7 @@ def _eval(self, n): sage: [sloane.A003418._eval(n) for n in range(1,11)] [1, 2, 6, 12, 60, 60, 420, 840, 2520, 2520] """ - return arith.lcm(list(range(1, n + 1))) + return arith.lcm(range(1, n + 1)) class A007318(SloaneSequence): diff --git a/src/sage/combinat/tiling.py b/src/sage/combinat/tiling.py index 2190c5b2119..43c7817f13a 100644 --- a/src/sage/combinat/tiling.py +++ b/src/sage/combinat/tiling.py @@ -1811,13 +1811,10 @@ def int_to_coord_dict(self): True sage: all(B[A[i]] == i for i in A) True - """ if self._reusable: return dict(enumerate(self.space())) - - number_of_pieces = len(self._pieces) - return {i + number_of_pieces: c for i, c in enumerate(self.space())} + return dict(enumerate(self.space(), start=len(self._pieces))) @cached_method def rows_for_piece(self, i, mod_box_isometries=False): diff --git a/src/sage/combinat/words/morphism.py b/src/sage/combinat/words/morphism.py index abd66da0650..24f22dad7e4 100644 --- a/src/sage/combinat/words/morphism.py +++ b/src/sage/combinat/words/morphism.py @@ -1727,9 +1727,18 @@ def is_uniform(self, k=None): False sage: tau.is_uniform(k=2) True + + TESTS: + + sage: phi = WordMorphism('') + sage: phi.is_uniform() + False """ if k is None: - k = self.images()[0].length() + try: + k = self.images()[0].length() + except IndexError: + return False return all(w.length() == k for w in self.images()) def fixed_point(self, letter): From c693fcd967ab4e99e6ae73d58666f7af4d76df47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Chapoton?= Date: Wed, 10 Apr 2024 09:35:48 +0200 Subject: [PATCH 123/140] fix suggestions --- src/sage/combinat/words/suffix_trees.py | 45 +++++++++++++------------ 1 file changed, 24 insertions(+), 21 deletions(-) diff --git a/src/sage/combinat/words/suffix_trees.py b/src/sage/combinat/words/suffix_trees.py index dd0dabe36a8..8c56ba3d4b3 100644 --- a/src/sage/combinat/words/suffix_trees.py +++ b/src/sage/combinat/words/suffix_trees.py @@ -240,8 +240,8 @@ def word(self): def __eq__(self, other) -> bool: r""" - If self and other have the same transition function, the same - suffix link, and the same word, then they are equal. + If ``self`` and ``other`` have the same transition function, + the same suffix link, and the same word, then they are equal. TESTS:: @@ -660,11 +660,13 @@ def _process_letter(self, letter): def _test_and_split(self, s, k_p, letter): r""" - Helper function for _process_letter. Test to see whether an edge - needs to be split. + Helper function for :meth:`_process_letter`. Test to see + whether an edge needs to be split. - This returns ``(True, state)``, where ``state`` is the - next state to process (either a newly created state or the original s). + OUTPUT: + + ``(True, state)``, where ``state`` is the next state to + process (either a newly created state or the original ``s``). TESTS:: @@ -927,8 +929,8 @@ def show(self, word_labels=None, *args, **kwds): def __eq__(self, other) -> bool: r""" - If self and other have the same transition function and the - same word, then they are equal. + If ``self`` and ``other`` have the same transition function + and the same word, then they are equal. TESTS:: @@ -948,14 +950,15 @@ def transition_function(self, word, node=0): Return the node obtained by starting from ``node`` and following the edges labelled by the letters of ``word``. - This returns ``("explicit", end_node)`` if we end at - ``end_node``, or ``("implicit", edge, d)`` if we end `d` spots - along an edge. + OUTPUT: + + ``("explicit", end_node)`` if we end at ``end_node``, or + ``("implicit", edge, d)`` if we end `d` spots along an edge. INPUT: - - ``word`` - a word - - ``node`` - (default: 0) starting node + - ``word`` -- a word + - ``node`` -- (default: 0) starting node EXAMPLES:: @@ -1085,7 +1088,7 @@ def process_letter(self, letter): def to_explicit_suffix_tree(self): r""" - Convert self to an explicit suffix tree. + Convert ``self`` to an explicit suffix tree. It is obtained by processing an end of string letter as if it were a regular letter, except that no new leaf nodes are @@ -1121,7 +1124,7 @@ def edge_iterator(self): r""" Return an iterator over the edges of the suffix tree. - The edge from `u` to `v` labelled by `(i,j)` is returned as + The edge from `u` to `v` labelled by `(i,j)` is yielded as the tuple `(u,v,(i,j))`. EXAMPLES:: @@ -1513,7 +1516,7 @@ def condition2_square_pairs(i): def uncompactify(self): r""" - Return the tree obtained from self by splitting edges so that they + Return the tree obtained from ``self`` by splitting edges so that they are labelled by exactly one letter. The resulting tree is isomorphic to the suffix trie. @@ -1800,16 +1803,16 @@ def walk_chain(u, v, l, start): def treat_node(current_node, i, j): r""" - Execute a depth-first search on self and start a suffix walk for - labeled points on each edges of T. + Execute a depth-first search on ``self`` and start a suffix walk + for labeled points on each edges of T. The function is recursive, call - treat_node(0,0,0) to initiate the search. + ``treat_node(0,0,0)`` to initiate the search. INPUT: - - ``current_node`` - The node to treat - - ``(i, j)`` - Pair of index such that the path from 0 to + - ``current_node`` -- The node to treat + - ``(i, j)`` -- Pair of index such that the path from 0 to ``current_node`` reads ``self.word()[i:j]`` """ From b9ae35b104c07b046ab1a4b12f2a1f1a9b797ea1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Chapoton?= Date: Wed, 10 Apr 2024 20:10:18 +0200 Subject: [PATCH 124/140] fix suggested details --- src/sage/combinat/words/morphism.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/sage/combinat/words/morphism.py b/src/sage/combinat/words/morphism.py index 24f22dad7e4..9424a3370b7 100644 --- a/src/sage/combinat/words/morphism.py +++ b/src/sage/combinat/words/morphism.py @@ -1700,7 +1700,7 @@ def is_prolongable(self, letter): def is_uniform(self, k=None): r""" - Return True if self is a `k`-uniform morphism. + Return ``True`` if ``self`` is a `k`-uniform morphism. Let `k` be a positive integer. A morphism `\phi` is called `k`-uniform if for every letter `\alpha`, we have `|\phi(\alpha)| = k`. In other @@ -1709,9 +1709,10 @@ def is_uniform(self, k=None): INPUT: - - ``k`` - a positive integer or None. If set to a positive integer, - then the function return True if self is `k`-uniform. If set to - None, then the function return True if self is uniform. + - ``k`` - a positive integer or ``None``. If set to a positive integer, + then the function return ``True`` if ``self`` is `k`-uniform. + If set to ``None``, then the function return ``True`` if ``self`` + is uniform. EXAMPLES:: @@ -1728,17 +1729,17 @@ def is_uniform(self, k=None): sage: tau.is_uniform(k=2) True - TESTS: + TESTS:: sage: phi = WordMorphism('') sage: phi.is_uniform() - False + True """ if k is None: try: k = self.images()[0].length() except IndexError: - return False + return True return all(w.length() == k for w in self.images()) def fixed_point(self, letter): From 2b80f9947c871a6fd95269bacda1b32d8b0f3045 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Sun, 4 Feb 2024 09:07:11 -0500 Subject: [PATCH 125/140] configure.ac: disable tzdata with --disable-r The tzdata package is only needed by pytz_deprecation_shim, which is already disabled when --disable-r is used. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 96cb9926ff0..c8df21c35d4 100644 --- a/configure.ac +++ b/configure.ac @@ -426,7 +426,7 @@ AC_ARG_ENABLE([notebook], AC_ARG_ENABLE([r], AS_HELP_STRING([--disable-r], [disable build of the R package and related packages]), [ - for pkg in r rpy2 r_jupyter tzlocal pytz_deprecation_shim; do + for pkg in r rpy2 r_jupyter tzlocal pytz_deprecation_shim tzdata; do AS_VAR_SET([SAGE_ENABLE_$pkg], [$enableval]) done ]) From 73c632d260bbd03407d82f8237eca1b99814ed65 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Sun, 4 Feb 2024 09:43:16 -0500 Subject: [PATCH 126/140] build/pkgs/exceptiongroup: add python version constraint --- build/pkgs/exceptiongroup/version_requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/pkgs/exceptiongroup/version_requirements.txt b/build/pkgs/exceptiongroup/version_requirements.txt index 341183a94c9..2fffd03311e 100644 --- a/build/pkgs/exceptiongroup/version_requirements.txt +++ b/build/pkgs/exceptiongroup/version_requirements.txt @@ -1 +1 @@ -exceptiongroup +exceptiongroup; python_version<"3.11" From d2cf618f76855da7a870d07ee9890d7a103b173a Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Sun, 4 Feb 2024 09:44:43 -0500 Subject: [PATCH 127/140] build/pkgs/exceptiongroup: standard python spkg-configure.m4 --- build/pkgs/exceptiongroup/spkg-configure.m4 | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 build/pkgs/exceptiongroup/spkg-configure.m4 diff --git a/build/pkgs/exceptiongroup/spkg-configure.m4 b/build/pkgs/exceptiongroup/spkg-configure.m4 new file mode 100644 index 00000000000..22383688321 --- /dev/null +++ b/build/pkgs/exceptiongroup/spkg-configure.m4 @@ -0,0 +1,3 @@ +SAGE_SPKG_CONFIGURE([exceptiongroup],[ + SAGE_PYTHON_PACKAGE_CHECK([exceptiongroup]) +]) From 00de6aedccf5cbdd36a169e738a30184f351951c Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Sun, 4 Feb 2024 10:11:47 -0500 Subject: [PATCH 128/140] configure.ac: disable jupyterlab_{pygments,server} with --disable-notebook --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index c8df21c35d4..7816aca796e 100644 --- a/configure.ac +++ b/configure.ac @@ -418,7 +418,7 @@ AC_ARG_ENABLE([cvxopt], AC_ARG_ENABLE([notebook], AS_HELP_STRING([--disable-notebook], [disable build of the Jupyter notebook and related packages]), [ - for pkg in notebook nbconvert beautifulsoup4 sagenb_export nbformat nbclient terminado send2trash prometheus_client mistune pandocfilters bleach defusedxml jsonschema jupyter_jsmol argon2_cffi argon2_cffi_bindings webencodings tinycss2 ipympl soupsieve fastjsonschema anyio arrow async_lru fqdn isoduration json5 jsonpointer jsonschema_specifications jupyter_events jupyter_lsp jupyter_server jupyter_server_terminals jupyterlab jupyterlab_mathjax2 notebook_shim overrides python_json_logger pyyaml referencing rfc3339_validator rfc3986_validator sniffio types_python_dateutil uri_template webcolors websocket_client; do + for pkg in notebook nbconvert beautifulsoup4 sagenb_export nbformat nbclient terminado send2trash prometheus_client mistune pandocfilters bleach defusedxml jsonschema jupyter_jsmol argon2_cffi argon2_cffi_bindings webencodings tinycss2 ipympl soupsieve fastjsonschema anyio arrow async_lru fqdn isoduration json5 jsonpointer jsonschema_specifications jupyter_events jupyter_lsp jupyter_server jupyter_server_terminals jupyterlab jupyterlab_server jupyterlab_pygments jupyterlab_mathjax2 notebook_shim overrides python_json_logger pyyaml referencing rfc3339_validator rfc3986_validator sniffio types_python_dateutil uri_template webcolors websocket_client; do AS_VAR_SET([SAGE_ENABLE_$pkg], [$enableval]) done ]) From 7c3e864ed095b83cf4a20f5a9128006b425fb5a2 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Sun, 4 Feb 2024 10:33:33 -0500 Subject: [PATCH 129/140] build/pkgs/appnope: skip when not on macOS --- build/pkgs/appnope/spkg-configure.m4 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build/pkgs/appnope/spkg-configure.m4 b/build/pkgs/appnope/spkg-configure.m4 index 059e63eb4fd..86ae64da07b 100644 --- a/build/pkgs/appnope/spkg-configure.m4 +++ b/build/pkgs/appnope/spkg-configure.m4 @@ -1,3 +1,7 @@ SAGE_SPKG_CONFIGURE([appnope], [ SAGE_PYTHON_PACKAGE_CHECK([appnope]) +], [dnl REQUIRED-CHECK + dnl Only required on macOS + sage_require_appnope=no + AS_CASE([$host], [*-*-darwin*], [sage_require_appnope=yes]) ]) From 491b1634a6ea74eea4d80d074e3478be88d2f8f5 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Sun, 4 Feb 2024 18:50:08 -0500 Subject: [PATCH 130/140] src/sage/groups/abelian_gps/abelian_group.py: add optional polycyclic tags --- src/sage/groups/abelian_gps/abelian_group.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sage/groups/abelian_gps/abelian_group.py b/src/sage/groups/abelian_gps/abelian_group.py index 90cdcaa42fd..73fbd379358 100644 --- a/src/sage/groups/abelian_gps/abelian_group.py +++ b/src/sage/groups/abelian_gps/abelian_group.py @@ -981,8 +981,8 @@ def gens_orders(self): TESTS:: sage: G, (g0, g1) = AbelianGroup(2, [48, 0]).objgens() - sage: G0 = G.subgroup([g0]) - sage: len(G0.gens()) == len(G0.gens_orders()) + sage: G0 = G.subgroup([g0]) # optional - gap_package_polycyclic + sage: len(G0.gens()) == len(G0.gens_orders()) # optional - gap_package_polycyclic True sage: F = AbelianGroup(3, [2], names='abc') sage: list(map(type, F.gens_orders())) From 15fcf52fbd6a72f0d0f226c02fe1a74b21bbfaf5 Mon Sep 17 00:00:00 2001 From: Release Manager Date: Sat, 13 Apr 2024 00:39:00 +0200 Subject: [PATCH 131/140] Updated SageMath version to 10.4.beta3 --- CITATION.cff | 4 ++-- VERSION.txt | 2 +- build/pkgs/configure/checksums.ini | 6 +++--- build/pkgs/configure/package-version.txt | 2 +- build/pkgs/sage_conf/version_requirements.txt | 2 +- build/pkgs/sage_docbuild/version_requirements.txt | 2 +- build/pkgs/sage_setup/version_requirements.txt | 2 +- build/pkgs/sage_sws2rst/version_requirements.txt | 2 +- build/pkgs/sagelib/version_requirements.txt | 2 +- build/pkgs/sagemath_bliss/version_requirements.txt | 2 +- build/pkgs/sagemath_categories/version_requirements.txt | 2 +- build/pkgs/sagemath_coxeter3/version_requirements.txt | 2 +- build/pkgs/sagemath_environment/version_requirements.txt | 2 +- build/pkgs/sagemath_mcqd/version_requirements.txt | 2 +- build/pkgs/sagemath_meataxe/version_requirements.txt | 2 +- build/pkgs/sagemath_objects/version_requirements.txt | 2 +- build/pkgs/sagemath_repl/version_requirements.txt | 2 +- build/pkgs/sagemath_sirocco/version_requirements.txt | 2 +- build/pkgs/sagemath_tdlib/version_requirements.txt | 2 +- pkgs/sage-conf/VERSION.txt | 2 +- pkgs/sage-conf_conda/VERSION.txt | 2 +- pkgs/sage-conf_pypi/VERSION.txt | 2 +- pkgs/sage-docbuild/VERSION.txt | 2 +- pkgs/sage-setup/VERSION.txt | 2 +- pkgs/sage-sws2rst/VERSION.txt | 2 +- pkgs/sagemath-bliss/VERSION.txt | 2 +- pkgs/sagemath-categories/VERSION.txt | 2 +- pkgs/sagemath-coxeter3/VERSION.txt | 2 +- pkgs/sagemath-environment/VERSION.txt | 2 +- pkgs/sagemath-mcqd/VERSION.txt | 2 +- pkgs/sagemath-meataxe/VERSION.txt | 2 +- pkgs/sagemath-objects/VERSION.txt | 2 +- pkgs/sagemath-repl/VERSION.txt | 2 +- pkgs/sagemath-sirocco/VERSION.txt | 2 +- pkgs/sagemath-tdlib/VERSION.txt | 2 +- src/VERSION.txt | 2 +- src/bin/sage-version.sh | 6 +++--- src/sage/version.py | 7 +++---- 38 files changed, 45 insertions(+), 46 deletions(-) diff --git a/CITATION.cff b/CITATION.cff index 9e0beb8bcc1..78059fdc091 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -4,8 +4,8 @@ title: SageMath abstract: SageMath is a free open-source mathematics software system. authors: - name: "The SageMath Developers" -version: 10.4.beta2 +version: 10.4.beta3 doi: 10.5281/zenodo.593563 -date-released: 2024-04-08 +date-released: 2024-04-12 repository-code: "https://github.com/sagemath/sage" url: "https://www.sagemath.org/" diff --git a/VERSION.txt b/VERSION.txt index 2a439e4ca37..fa9d32fec7a 100644 --- a/VERSION.txt +++ b/VERSION.txt @@ -1 +1 @@ -SageMath version 10.4.beta2, Release Date: 2024-04-08 +SageMath version 10.4.beta3, Release Date: 2024-04-12 diff --git a/build/pkgs/configure/checksums.ini b/build/pkgs/configure/checksums.ini index 00d28996cfd..872b435c579 100644 --- a/build/pkgs/configure/checksums.ini +++ b/build/pkgs/configure/checksums.ini @@ -1,4 +1,4 @@ tarball=configure-VERSION.tar.gz -sha1=e00d37668d4c323478c575234b3e8513923c09f6 -md5=19845ef8465f120fb16811052483c0b1 -cksum=3911910914 +sha1=b9d9a4bb2d949d8f6fffe63c77ff069d59ca6e8c +md5=95f8a1d22f684e3f61019ae82111e639 +cksum=3352815196 diff --git a/build/pkgs/configure/package-version.txt b/build/pkgs/configure/package-version.txt index e59bb70b672..a4012527648 100644 --- a/build/pkgs/configure/package-version.txt +++ b/build/pkgs/configure/package-version.txt @@ -1 +1 @@ -86cd345f191738d8b40af5f0772173ff5ae49515 +4dd66116b58babf05bb8e4b30282638e2c0b82c3 diff --git a/build/pkgs/sage_conf/version_requirements.txt b/build/pkgs/sage_conf/version_requirements.txt index b2352d17cd7..a9fc6b33c1e 100644 --- a/build/pkgs/sage_conf/version_requirements.txt +++ b/build/pkgs/sage_conf/version_requirements.txt @@ -1,2 +1,2 @@ # This file is updated on every release by the sage-update-version script -sage-conf ~= 10.4b2 +sage-conf ~= 10.4b3 diff --git a/build/pkgs/sage_docbuild/version_requirements.txt b/build/pkgs/sage_docbuild/version_requirements.txt index 5fe49b28bc6..6392017efee 100644 --- a/build/pkgs/sage_docbuild/version_requirements.txt +++ b/build/pkgs/sage_docbuild/version_requirements.txt @@ -1,2 +1,2 @@ # This file is updated on every release by the sage-update-version script -sage-docbuild ~= 10.4b2 +sage-docbuild ~= 10.4b3 diff --git a/build/pkgs/sage_setup/version_requirements.txt b/build/pkgs/sage_setup/version_requirements.txt index ebca92ad49d..fa79fc9374b 100644 --- a/build/pkgs/sage_setup/version_requirements.txt +++ b/build/pkgs/sage_setup/version_requirements.txt @@ -1,2 +1,2 @@ # This file is updated on every release by the sage-update-version script -sage-setup ~= 10.4b2 +sage-setup ~= 10.4b3 diff --git a/build/pkgs/sage_sws2rst/version_requirements.txt b/build/pkgs/sage_sws2rst/version_requirements.txt index 9956ef5ccfb..012366aac27 100644 --- a/build/pkgs/sage_sws2rst/version_requirements.txt +++ b/build/pkgs/sage_sws2rst/version_requirements.txt @@ -1,2 +1,2 @@ # This file is updated on every release by the sage-update-version script -sage-sws2rst ~= 10.4b2 +sage-sws2rst ~= 10.4b3 diff --git a/build/pkgs/sagelib/version_requirements.txt b/build/pkgs/sagelib/version_requirements.txt index 4d5da1cfa32..958d7998ec8 100644 --- a/build/pkgs/sagelib/version_requirements.txt +++ b/build/pkgs/sagelib/version_requirements.txt @@ -1,2 +1,2 @@ # This file is updated on every release by the sage-update-version script -sagemath-standard ~= 10.4b2 +sagemath-standard ~= 10.4b3 diff --git a/build/pkgs/sagemath_bliss/version_requirements.txt b/build/pkgs/sagemath_bliss/version_requirements.txt index 0e6bc0c0cbd..f140cad57dd 100644 --- a/build/pkgs/sagemath_bliss/version_requirements.txt +++ b/build/pkgs/sagemath_bliss/version_requirements.txt @@ -1,2 +1,2 @@ # This file is updated on every release by the sage-update-version script -sagemath-bliss ~= 10.4b2 +sagemath-bliss ~= 10.4b3 diff --git a/build/pkgs/sagemath_categories/version_requirements.txt b/build/pkgs/sagemath_categories/version_requirements.txt index 6e24614039e..15b52d809bf 100644 --- a/build/pkgs/sagemath_categories/version_requirements.txt +++ b/build/pkgs/sagemath_categories/version_requirements.txt @@ -1,2 +1,2 @@ # This file is updated on every release by the sage-update-version script -sagemath-categories ~= 10.4b2 +sagemath-categories ~= 10.4b3 diff --git a/build/pkgs/sagemath_coxeter3/version_requirements.txt b/build/pkgs/sagemath_coxeter3/version_requirements.txt index 3949915c19a..db035aacdca 100644 --- a/build/pkgs/sagemath_coxeter3/version_requirements.txt +++ b/build/pkgs/sagemath_coxeter3/version_requirements.txt @@ -1,2 +1,2 @@ # This file is updated on every release by the sage-update-version script -sagemath-coxeter3 ~= 10.4b2 +sagemath-coxeter3 ~= 10.4b3 diff --git a/build/pkgs/sagemath_environment/version_requirements.txt b/build/pkgs/sagemath_environment/version_requirements.txt index e0afddbcc32..80fd875a7e4 100644 --- a/build/pkgs/sagemath_environment/version_requirements.txt +++ b/build/pkgs/sagemath_environment/version_requirements.txt @@ -1,2 +1,2 @@ # This file is updated on every release by the sage-update-version script -sagemath-environment ~= 10.4b2 +sagemath-environment ~= 10.4b3 diff --git a/build/pkgs/sagemath_mcqd/version_requirements.txt b/build/pkgs/sagemath_mcqd/version_requirements.txt index 228e1ac3b7f..58a3e31ff65 100644 --- a/build/pkgs/sagemath_mcqd/version_requirements.txt +++ b/build/pkgs/sagemath_mcqd/version_requirements.txt @@ -1,2 +1,2 @@ # This file is updated on every release by the sage-update-version script -sagemath-mcqd ~= 10.4b2 +sagemath-mcqd ~= 10.4b3 diff --git a/build/pkgs/sagemath_meataxe/version_requirements.txt b/build/pkgs/sagemath_meataxe/version_requirements.txt index e4cbc453d92..b46a8c93c1e 100644 --- a/build/pkgs/sagemath_meataxe/version_requirements.txt +++ b/build/pkgs/sagemath_meataxe/version_requirements.txt @@ -1,2 +1,2 @@ # This file is updated on every release by the sage-update-version script -sagemath-meataxe ~= 10.4b2 +sagemath-meataxe ~= 10.4b3 diff --git a/build/pkgs/sagemath_objects/version_requirements.txt b/build/pkgs/sagemath_objects/version_requirements.txt index 722c2a6bf92..56948780fe6 100644 --- a/build/pkgs/sagemath_objects/version_requirements.txt +++ b/build/pkgs/sagemath_objects/version_requirements.txt @@ -1,2 +1,2 @@ # This file is updated on every release by the sage-update-version script -sagemath-objects ~= 10.4b2 +sagemath-objects ~= 10.4b3 diff --git a/build/pkgs/sagemath_repl/version_requirements.txt b/build/pkgs/sagemath_repl/version_requirements.txt index 7f3c89386bf..230c8f95374 100644 --- a/build/pkgs/sagemath_repl/version_requirements.txt +++ b/build/pkgs/sagemath_repl/version_requirements.txt @@ -1,2 +1,2 @@ # This file is updated on every release by the sage-update-version script -sagemath-repl ~= 10.4b2 +sagemath-repl ~= 10.4b3 diff --git a/build/pkgs/sagemath_sirocco/version_requirements.txt b/build/pkgs/sagemath_sirocco/version_requirements.txt index 757e0e89c19..d04d2ab48b0 100644 --- a/build/pkgs/sagemath_sirocco/version_requirements.txt +++ b/build/pkgs/sagemath_sirocco/version_requirements.txt @@ -1,2 +1,2 @@ # This file is updated on every release by the sage-update-version script -sagemath-sirocco ~= 10.4b2 +sagemath-sirocco ~= 10.4b3 diff --git a/build/pkgs/sagemath_tdlib/version_requirements.txt b/build/pkgs/sagemath_tdlib/version_requirements.txt index 4445572b5fd..53da30e01ec 100644 --- a/build/pkgs/sagemath_tdlib/version_requirements.txt +++ b/build/pkgs/sagemath_tdlib/version_requirements.txt @@ -1,2 +1,2 @@ # This file is updated on every release by the sage-update-version script -sagemath-tdlib ~= 10.4b2 +sagemath-tdlib ~= 10.4b3 diff --git a/pkgs/sage-conf/VERSION.txt b/pkgs/sage-conf/VERSION.txt index 770c88a80e6..af343da123a 100644 --- a/pkgs/sage-conf/VERSION.txt +++ b/pkgs/sage-conf/VERSION.txt @@ -1 +1 @@ -10.4.beta2 +10.4.beta3 diff --git a/pkgs/sage-conf_conda/VERSION.txt b/pkgs/sage-conf_conda/VERSION.txt index 770c88a80e6..af343da123a 100644 --- a/pkgs/sage-conf_conda/VERSION.txt +++ b/pkgs/sage-conf_conda/VERSION.txt @@ -1 +1 @@ -10.4.beta2 +10.4.beta3 diff --git a/pkgs/sage-conf_pypi/VERSION.txt b/pkgs/sage-conf_pypi/VERSION.txt index 770c88a80e6..af343da123a 100644 --- a/pkgs/sage-conf_pypi/VERSION.txt +++ b/pkgs/sage-conf_pypi/VERSION.txt @@ -1 +1 @@ -10.4.beta2 +10.4.beta3 diff --git a/pkgs/sage-docbuild/VERSION.txt b/pkgs/sage-docbuild/VERSION.txt index 770c88a80e6..af343da123a 100644 --- a/pkgs/sage-docbuild/VERSION.txt +++ b/pkgs/sage-docbuild/VERSION.txt @@ -1 +1 @@ -10.4.beta2 +10.4.beta3 diff --git a/pkgs/sage-setup/VERSION.txt b/pkgs/sage-setup/VERSION.txt index 770c88a80e6..af343da123a 100644 --- a/pkgs/sage-setup/VERSION.txt +++ b/pkgs/sage-setup/VERSION.txt @@ -1 +1 @@ -10.4.beta2 +10.4.beta3 diff --git a/pkgs/sage-sws2rst/VERSION.txt b/pkgs/sage-sws2rst/VERSION.txt index 770c88a80e6..af343da123a 100644 --- a/pkgs/sage-sws2rst/VERSION.txt +++ b/pkgs/sage-sws2rst/VERSION.txt @@ -1 +1 @@ -10.4.beta2 +10.4.beta3 diff --git a/pkgs/sagemath-bliss/VERSION.txt b/pkgs/sagemath-bliss/VERSION.txt index 770c88a80e6..af343da123a 100644 --- a/pkgs/sagemath-bliss/VERSION.txt +++ b/pkgs/sagemath-bliss/VERSION.txt @@ -1 +1 @@ -10.4.beta2 +10.4.beta3 diff --git a/pkgs/sagemath-categories/VERSION.txt b/pkgs/sagemath-categories/VERSION.txt index 770c88a80e6..af343da123a 100644 --- a/pkgs/sagemath-categories/VERSION.txt +++ b/pkgs/sagemath-categories/VERSION.txt @@ -1 +1 @@ -10.4.beta2 +10.4.beta3 diff --git a/pkgs/sagemath-coxeter3/VERSION.txt b/pkgs/sagemath-coxeter3/VERSION.txt index 770c88a80e6..af343da123a 100644 --- a/pkgs/sagemath-coxeter3/VERSION.txt +++ b/pkgs/sagemath-coxeter3/VERSION.txt @@ -1 +1 @@ -10.4.beta2 +10.4.beta3 diff --git a/pkgs/sagemath-environment/VERSION.txt b/pkgs/sagemath-environment/VERSION.txt index 770c88a80e6..af343da123a 100644 --- a/pkgs/sagemath-environment/VERSION.txt +++ b/pkgs/sagemath-environment/VERSION.txt @@ -1 +1 @@ -10.4.beta2 +10.4.beta3 diff --git a/pkgs/sagemath-mcqd/VERSION.txt b/pkgs/sagemath-mcqd/VERSION.txt index 770c88a80e6..af343da123a 100644 --- a/pkgs/sagemath-mcqd/VERSION.txt +++ b/pkgs/sagemath-mcqd/VERSION.txt @@ -1 +1 @@ -10.4.beta2 +10.4.beta3 diff --git a/pkgs/sagemath-meataxe/VERSION.txt b/pkgs/sagemath-meataxe/VERSION.txt index 770c88a80e6..af343da123a 100644 --- a/pkgs/sagemath-meataxe/VERSION.txt +++ b/pkgs/sagemath-meataxe/VERSION.txt @@ -1 +1 @@ -10.4.beta2 +10.4.beta3 diff --git a/pkgs/sagemath-objects/VERSION.txt b/pkgs/sagemath-objects/VERSION.txt index 770c88a80e6..af343da123a 100644 --- a/pkgs/sagemath-objects/VERSION.txt +++ b/pkgs/sagemath-objects/VERSION.txt @@ -1 +1 @@ -10.4.beta2 +10.4.beta3 diff --git a/pkgs/sagemath-repl/VERSION.txt b/pkgs/sagemath-repl/VERSION.txt index 770c88a80e6..af343da123a 100644 --- a/pkgs/sagemath-repl/VERSION.txt +++ b/pkgs/sagemath-repl/VERSION.txt @@ -1 +1 @@ -10.4.beta2 +10.4.beta3 diff --git a/pkgs/sagemath-sirocco/VERSION.txt b/pkgs/sagemath-sirocco/VERSION.txt index 770c88a80e6..af343da123a 100644 --- a/pkgs/sagemath-sirocco/VERSION.txt +++ b/pkgs/sagemath-sirocco/VERSION.txt @@ -1 +1 @@ -10.4.beta2 +10.4.beta3 diff --git a/pkgs/sagemath-tdlib/VERSION.txt b/pkgs/sagemath-tdlib/VERSION.txt index 770c88a80e6..af343da123a 100644 --- a/pkgs/sagemath-tdlib/VERSION.txt +++ b/pkgs/sagemath-tdlib/VERSION.txt @@ -1 +1 @@ -10.4.beta2 +10.4.beta3 diff --git a/src/VERSION.txt b/src/VERSION.txt index 770c88a80e6..af343da123a 100644 --- a/src/VERSION.txt +++ b/src/VERSION.txt @@ -1 +1 @@ -10.4.beta2 +10.4.beta3 diff --git a/src/bin/sage-version.sh b/src/bin/sage-version.sh index b15410a73db..ec030052a09 100644 --- a/src/bin/sage-version.sh +++ b/src/bin/sage-version.sh @@ -4,6 +4,6 @@ # which stops "setup.py develop" from rewriting it as a Python file. : # This file is auto-generated by the sage-update-version script, do not edit! -SAGE_VERSION='10.4.beta2' -SAGE_RELEASE_DATE='2024-04-08' -SAGE_VERSION_BANNER='SageMath version 10.4.beta2, Release Date: 2024-04-08' +SAGE_VERSION='10.4.beta3' +SAGE_RELEASE_DATE='2024-04-12' +SAGE_VERSION_BANNER='SageMath version 10.4.beta3, Release Date: 2024-04-12' diff --git a/src/sage/version.py b/src/sage/version.py index 994df3ec306..c398930ba19 100644 --- a/src/sage/version.py +++ b/src/sage/version.py @@ -1,6 +1,5 @@ -# sage_setup: distribution = sagemath-environment # Sage version information for Python scripts # This file is auto-generated by the sage-update-version script, do not edit! -version = '10.4.beta2' -date = '2024-04-08' -banner = 'SageMath version 10.4.beta2, Release Date: 2024-04-08' +version = '10.4.beta3' +date = '2024-04-12' +banner = 'SageMath version 10.4.beta3, Release Date: 2024-04-12' From 336257a8aa990274227913006fb5bf3d684353da Mon Sep 17 00:00:00 2001 From: Antonio Rojas Date: Sun, 25 Feb 2024 20:27:47 +0100 Subject: [PATCH 132/140] Adapt to singular 4.4 API changes --- src/sage/interfaces/singular.py | 7 +++++-- src/sage/libs/singular/decl.pxd | 7 ++++++- src/sage/libs/singular/function.pyx | 12 +++++++----- src/sage/libs/singular/ring.pyx | 4 ++-- src/sage/libs/singular/singular.pxd | 3 ++- src/sage/libs/singular/singular.pyx | 19 +++++++++++++++++++ .../multi_polynomial_libsingular.pyx | 6 +++--- src/sage/rings/polynomial/term_order.py | 2 +- 8 files changed, 45 insertions(+), 15 deletions(-) diff --git a/src/sage/interfaces/singular.py b/src/sage/interfaces/singular.py index dedbebab99c..a8217314506 100644 --- a/src/sage/interfaces/singular.py +++ b/src/sage/interfaces/singular.py @@ -1211,14 +1211,14 @@ def current_ring(self): polynomial ring, over a field, global ordering // coefficients: ZZ/127 // number of vars : 3 - // block 1 : ordering rp + // block 1 : ordering ip // : names x y z // block 2 : ordering C sage: singular.current_ring() polynomial ring, over a field, global ordering // coefficients: ZZ/127 // number of vars : 3 - // block 1 : ordering rp + // block 1 : ordering ip // : names x y z // block 2 : ordering C """ @@ -2040,6 +2040,9 @@ def _sage_(self, R=None): elif typ == 'intvec': from sage.modules.free_module_element import vector return vector([sage.rings.integer.Integer(str(e)) for e in self]) + elif typ == 'bigintvec': + from sage.modules.free_module_element import vector + return vector([sage.rings.rational.Rational(str(e)) for e in self]) elif typ == 'intmat': from sage.matrix.constructor import matrix from sage.rings.integer_ring import ZZ diff --git a/src/sage/libs/singular/decl.pxd b/src/sage/libs/singular/decl.pxd index 27ddad438fc..f8cc683f209 100644 --- a/src/sage/libs/singular/decl.pxd +++ b/src/sage/libs/singular/decl.pxd @@ -244,7 +244,7 @@ cdef extern from "singular/Singular/libsingular.h": ringorder_s ringorder_lp ringorder_dp - ringorder_rp + ringorder_ip ringorder_Dp ringorder_wp ringorder_Wp @@ -292,6 +292,10 @@ cdef extern from "singular/Singular/libsingular.h": int row int col + cdef cppclass bigintmat: + int (*length)() + number* (*get)(int i) + # omalloc bins ctypedef struct omBin "omBin_s" @@ -922,6 +926,7 @@ cdef extern from "singular/Singular/libsingular.h": cdef int MATRIX_CMD cdef int LIST_CMD cdef int INTVEC_CMD + cdef int BIGINTVEC_CMD cdef int NONE cdef int RESOLUTION_CMD cdef int PACKAGE_CMD diff --git a/src/sage/libs/singular/function.pyx b/src/sage/libs/singular/function.pyx index 4d551b3a82f..ba4af333359 100644 --- a/src/sage/libs/singular/function.pyx +++ b/src/sage/libs/singular/function.pyx @@ -99,7 +99,7 @@ from sage.rings.polynomial.multi_polynomial_sequence import PolynomialSequence_g from sage.libs.singular.decl cimport * from sage.libs.singular.option import opt_ctx from sage.libs.singular.polynomial cimport singular_vector_maximal_component -from sage.libs.singular.singular cimport sa2si, si2sa, si2sa_intvec +from sage.libs.singular.singular cimport sa2si, si2sa, si2sa_intvec, si2sa_bigintvec from sage.libs.singular.singular import error_messages from sage.interfaces.singular import get_docstring @@ -955,6 +955,8 @@ cdef class Converter(SageObject): return si2sa(to_convert.data, self._singular_ring, self._sage_ring.base_ring()) elif rtyp == INTVEC_CMD: return si2sa_intvec( to_convert.data) + elif rtyp == BIGINTVEC_CMD: + return si2sa_bigintvec( to_convert.data) elif rtyp == STRING_CMD: # TODO: Need to determine what kind of data can be returned by a # STRING_CMD--is it just ASCII strings or can it be an arbitrary @@ -1232,7 +1234,7 @@ cdef class SingularFunction(SageObject): Traceback (most recent call last): ... RuntimeError: error in Singular function call 'size': - Wrong number of arguments (got 2 arguments, arity code is 302) + Wrong number of arguments (got 2 arguments, arity code is 303) sage: size('foobar', ring=P) 6 @@ -1635,17 +1637,17 @@ def singular_function(name): Traceback (most recent call last): ... RuntimeError: error in Singular function call 'factorize': - Wrong number of arguments (got 0 arguments, arity code is 305) + Wrong number of arguments (got 0 arguments, arity code is 306) sage: factorize(f, 1, 2) Traceback (most recent call last): ... RuntimeError: error in Singular function call 'factorize': - Wrong number of arguments (got 3 arguments, arity code is 305) + Wrong number of arguments (got 3 arguments, arity code is 306) sage: factorize(f, 1, 2, 3) Traceback (most recent call last): ... RuntimeError: error in Singular function call 'factorize': - Wrong number of arguments (got 4 arguments, arity code is 305) + Wrong number of arguments (got 4 arguments, arity code is 306) The Singular function ``list`` can be called with any number of arguments:: diff --git a/src/sage/libs/singular/ring.pyx b/src/sage/libs/singular/ring.pyx index 73bd0a07ce4..837f9906151 100644 --- a/src/sage/libs/singular/ring.pyx +++ b/src/sage/libs/singular/ring.pyx @@ -25,7 +25,7 @@ from sage.libs.gmp.mpz cimport mpz_init_set_ui from sage.libs.singular.decl cimport ring, currRing from sage.libs.singular.decl cimport rChangeCurrRing, rComplete, rDelete, idInit from sage.libs.singular.decl cimport omAlloc0, omStrDup, omAlloc -from sage.libs.singular.decl cimport ringorder_dp, ringorder_Dp, ringorder_lp, ringorder_rp, ringorder_ds, ringorder_Ds, ringorder_ls, ringorder_M, ringorder_c, ringorder_C, ringorder_wp, ringorder_Wp, ringorder_ws, ringorder_Ws, ringorder_a, rRingOrder_t +from sage.libs.singular.decl cimport ringorder_dp, ringorder_Dp, ringorder_lp, ringorder_ip, ringorder_ds, ringorder_Ds, ringorder_ls, ringorder_M, ringorder_c, ringorder_C, ringorder_wp, ringorder_Wp, ringorder_ws, ringorder_Ws, ringorder_a, rRingOrder_t from sage.libs.singular.decl cimport prCopyR from sage.libs.singular.decl cimport n_unknown, n_algExt, n_transExt, n_Z, n_Zn, n_Znm, n_Z2m from sage.libs.singular.decl cimport n_coeffType @@ -61,7 +61,7 @@ order_dict = { "dp": ringorder_dp, "Dp": ringorder_Dp, "lp": ringorder_lp, - "rp": ringorder_rp, + "ip": ringorder_ip, "ds": ringorder_ds, "Ds": ringorder_Ds, "ls": ringorder_ls, diff --git a/src/sage/libs/singular/singular.pxd b/src/sage/libs/singular/singular.pxd index bb7686dea30..03825b13b42 100644 --- a/src/sage/libs/singular/singular.pxd +++ b/src/sage/libs/singular/singular.pxd @@ -1,5 +1,5 @@ # sage_setup: distribution = sagemath-singular -from sage.libs.singular.decl cimport ring, poly, number, intvec +from sage.libs.singular.decl cimport ring, poly, number, intvec, bigintmat from sage.libs.singular.function cimport Resolution from sage.rings.rational cimport Rational @@ -30,6 +30,7 @@ cdef object si2sa_ZZmod(number *n, ring *_ring, object base) cdef object si2sa_NF(number *n, ring *_ring, object base) cdef object si2sa_intvec(intvec *v) +cdef object si2sa_bigintvec(bigintmat *v) # dispatches to all the above. cdef object si2sa(number *n, ring *_ring, object base) diff --git a/src/sage/libs/singular/singular.pyx b/src/sage/libs/singular/singular.pyx index 79aa1e15aac..5db1b008ed9 100644 --- a/src/sage/libs/singular/singular.pyx +++ b/src/sage/libs/singular/singular.pyx @@ -1700,6 +1700,25 @@ cdef object si2sa_intvec(intvec *v): l.append(v.get(r)) return tuple(l) +cdef object si2sa_bigintvec(bigintmat *v) noexcept: + r""" + create a sage tuple from a singular vector of big integers + + INPUT: + + - ``v`` -- a (pointer to) singular bigintmat + + OUTPUT: + + a sage tuple + """ + cdef int r + cdef list l = list() + for r in range(v.length()): + n = v.get(r) + l.append(si2sa_QQ(n, &n, currRing)) + return tuple(l) + # ============== # Initialisation # ============== diff --git a/src/sage/rings/polynomial/multi_polynomial_libsingular.pyx b/src/sage/rings/polynomial/multi_polynomial_libsingular.pyx index c314072f338..b13500f8f89 100644 --- a/src/sage/rings/polynomial/multi_polynomial_libsingular.pyx +++ b/src/sage/rings/polynomial/multi_polynomial_libsingular.pyx @@ -1286,7 +1286,7 @@ cdef class MPolynomialRing_libsingular(MPolynomialRing_base): polynomial ring, over a field, global ordering // coefficients: ZZ/2[a]/(a^8+a^4+a^3+a^2+1) // number of vars : 10 - // block 1 : ordering rp + // block 1 : ordering ip // : names x0 x1 x2 x3 x4 x5 x6 x7 x8 x9 // block 2 : ordering C @@ -1295,7 +1295,7 @@ cdef class MPolynomialRing_libsingular(MPolynomialRing_base): polynomial ring, over a field, global ordering // coefficients: ZZ/127 // number of vars : 2 - // block 1 : ordering rp + // block 1 : ordering ip // : names x0 x1 // block 2 : ordering C @@ -1304,7 +1304,7 @@ cdef class MPolynomialRing_libsingular(MPolynomialRing_base): polynomial ring, over a field, global ordering // coefficients: QQ // number of vars : 2 - // block 1 : ordering rp + // block 1 : ordering ip // : names x0 x1 // block 2 : ordering C diff --git a/src/sage/rings/polynomial/term_order.py b/src/sage/rings/polynomial/term_order.py index b8cd7e3615e..567c3c0eeaf 100644 --- a/src/sage/rings/polynomial/term_order.py +++ b/src/sage/rings/polynomial/term_order.py @@ -389,7 +389,7 @@ singular_name_mapping = { 'lex' : 'lp', - 'invlex' : 'rp', + 'invlex' : 'ip', 'degrevlex' : 'dp', 'deglex' : 'Dp', 'neglex' : 'ls', From 2f5a5a1392ca7a5f7a5cee17ce54ad8afe4498b2 Mon Sep 17 00:00:00 2001 From: Antonio Rojas Date: Sun, 31 Mar 2024 22:54:20 +0200 Subject: [PATCH 133/140] Support singular older than 4.3.2.p15 too --- src/sage/interfaces/singular.py | 21 +++++++++++++++++-- src/sage/libs/singular/decl.pxd | 1 + src/sage/libs/singular/function.pyx | 8 +++---- src/sage/libs/singular/ring.pyx | 14 ++++++------- .../multi_polynomial_libsingular.pyx | 12 ++++++++--- src/sage/rings/polynomial/term_order.py | 8 ++++++- 6 files changed, 47 insertions(+), 17 deletions(-) diff --git a/src/sage/interfaces/singular.py b/src/sage/interfaces/singular.py index a8217314506..ca20b90f648 100644 --- a/src/sage/interfaces/singular.py +++ b/src/sage/interfaces/singular.py @@ -1206,15 +1206,18 @@ def current_ring(self): EXAMPLES:: + sage: import re sage: r = PolynomialRing(GF(127),3,'xyz', order='invlex') - sage: r._singular_() + sage: rsing = r._singular_() + sage: print(re.sub('ordering rp', 'ordering ip', rsing._repr_())) polynomial ring, over a field, global ordering // coefficients: ZZ/127 // number of vars : 3 // block 1 : ordering ip // : names x y z // block 2 : ordering C - sage: singular.current_ring() + sage: curring = singular.current_ring() + sage: print(re.sub('ordering rp', 'ordering ip', curring._repr_())) polynomial ring, over a field, global ordering // coefficients: ZZ/127 // number of vars : 3 @@ -2469,6 +2472,20 @@ def singular_version(): return singular.eval('system("--version");') +def singular_version_number(): + """ + Return the version number of Singular being used as a string. + + EXAMPLES:: + + sage: singular.version_number() + '4...' + """ + import re + r = re.compile(r"\((\d+),") + return r.findall(singular_version())[0] + + class SingularGBLogPrettyPrinter: """ A device which prints Singular Groebner basis computation logs diff --git a/src/sage/libs/singular/decl.pxd b/src/sage/libs/singular/decl.pxd index f8cc683f209..018f4dea806 100644 --- a/src/sage/libs/singular/decl.pxd +++ b/src/sage/libs/singular/decl.pxd @@ -244,6 +244,7 @@ cdef extern from "singular/Singular/libsingular.h": ringorder_s ringorder_lp ringorder_dp + ringorder_rp ringorder_ip ringorder_Dp ringorder_wp diff --git a/src/sage/libs/singular/function.pyx b/src/sage/libs/singular/function.pyx index ba4af333359..1e835b436e9 100644 --- a/src/sage/libs/singular/function.pyx +++ b/src/sage/libs/singular/function.pyx @@ -1234,7 +1234,7 @@ cdef class SingularFunction(SageObject): Traceback (most recent call last): ... RuntimeError: error in Singular function call 'size': - Wrong number of arguments (got 2 arguments, arity code is 303) + Wrong number of arguments (got 2 arguments, arity code is 30...) sage: size('foobar', ring=P) 6 @@ -1637,17 +1637,17 @@ def singular_function(name): Traceback (most recent call last): ... RuntimeError: error in Singular function call 'factorize': - Wrong number of arguments (got 0 arguments, arity code is 306) + Wrong number of arguments (got 0 arguments, arity code is 30...) sage: factorize(f, 1, 2) Traceback (most recent call last): ... RuntimeError: error in Singular function call 'factorize': - Wrong number of arguments (got 3 arguments, arity code is 306) + Wrong number of arguments (got 3 arguments, arity code is 30...) sage: factorize(f, 1, 2, 3) Traceback (most recent call last): ... RuntimeError: error in Singular function call 'factorize': - Wrong number of arguments (got 4 arguments, arity code is 306) + Wrong number of arguments (got 4 arguments, arity code is 30...) The Singular function ``list`` can be called with any number of arguments:: diff --git a/src/sage/libs/singular/ring.pyx b/src/sage/libs/singular/ring.pyx index 837f9906151..350395fc6df 100644 --- a/src/sage/libs/singular/ring.pyx +++ b/src/sage/libs/singular/ring.pyx @@ -25,7 +25,7 @@ from sage.libs.gmp.mpz cimport mpz_init_set_ui from sage.libs.singular.decl cimport ring, currRing from sage.libs.singular.decl cimport rChangeCurrRing, rComplete, rDelete, idInit from sage.libs.singular.decl cimport omAlloc0, omStrDup, omAlloc -from sage.libs.singular.decl cimport ringorder_dp, ringorder_Dp, ringorder_lp, ringorder_ip, ringorder_ds, ringorder_Ds, ringorder_ls, ringorder_M, ringorder_c, ringorder_C, ringorder_wp, ringorder_Wp, ringorder_ws, ringorder_Ws, ringorder_a, rRingOrder_t +from sage.libs.singular.decl cimport ringorder_dp, ringorder_Dp, ringorder_lp, ringorder_ip, ringorder_rp, ringorder_ds, ringorder_Ds, ringorder_ls, ringorder_M, ringorder_c, ringorder_C, ringorder_wp, ringorder_Wp, ringorder_ws, ringorder_Ws, ringorder_a, rRingOrder_t from sage.libs.singular.decl cimport prCopyR from sage.libs.singular.decl cimport n_unknown, n_algExt, n_transExt, n_Z, n_Zn, n_Znm, n_Z2m from sage.libs.singular.decl cimport n_coeffType @@ -51,17 +51,12 @@ from cpython.object cimport Py_EQ, Py_NE from collections import defaultdict - - - - - # mapping str --> SINGULAR representation + order_dict = { "dp": ringorder_dp, "Dp": ringorder_Dp, "lp": ringorder_lp, - "ip": ringorder_ip, "ds": ringorder_ds, "Ds": ringorder_Ds, "ls": ringorder_ls, @@ -72,6 +67,11 @@ order_dict = { "a": ringorder_a, } +from sage.interfaces.singular import singular_version_number +if int(singular_version_number()[0:3]) < 432 or (int(singular_version_number()[0:3]) == 432 and int(singular_version_number()[3:]) < 15): + order_dict["rp"] = ringorder_rp +else: + order_dict["ip"] = ringorder_ip ############################################################################# cdef ring *singular_ring_new(base_ring, n, names, term_order) except NULL: diff --git a/src/sage/rings/polynomial/multi_polynomial_libsingular.pyx b/src/sage/rings/polynomial/multi_polynomial_libsingular.pyx index b13500f8f89..ba53cabb912 100644 --- a/src/sage/rings/polynomial/multi_polynomial_libsingular.pyx +++ b/src/sage/rings/polynomial/multi_polynomial_libsingular.pyx @@ -1281,8 +1281,10 @@ cdef class MPolynomialRing_libsingular(MPolynomialRing_base): // : names x y // block 2 : ordering C + sage: import re sage: R = PolynomialRing(GF(2**8,'a'),10,'x', order='invlex') # needs sage.rings.finite_rings - sage: singular(R) # needs sage.rings.finite_rings + sage: out = singular(R) # needs sage.rings.finite_rings + sage: print(re.sub('ordering rp', 'ordering ip', out._repr_())) # needs sage.rings.finite_rings polynomial ring, over a field, global ordering // coefficients: ZZ/2[a]/(a^8+a^4+a^3+a^2+1) // number of vars : 10 @@ -1290,8 +1292,10 @@ cdef class MPolynomialRing_libsingular(MPolynomialRing_base): // : names x0 x1 x2 x3 x4 x5 x6 x7 x8 x9 // block 2 : ordering C + sage: import re sage: R = PolynomialRing(GF(127),2,'x', order='invlex') - sage: singular(R) # needs sage.rings.finite_rings + sage: out = singular(R) # needs sage.rings.finite_rings + sage: print(re.sub('ordering rp', 'ordering ip', out._repr_())) # needs sage.rings.finite_rings polynomial ring, over a field, global ordering // coefficients: ZZ/127 // number of vars : 2 @@ -1299,8 +1303,10 @@ cdef class MPolynomialRing_libsingular(MPolynomialRing_base): // : names x0 x1 // block 2 : ordering C + sage: import re sage: R = PolynomialRing(QQ,2,'x', order='invlex') - sage: singular(R) # needs sage.rings.function_field + sage: out = singular(R) # needs sage.rings.function_field + sage: print(re.sub('ordering rp', 'ordering ip', out._repr_())) # needs sage.rings.function_field polynomial ring, over a field, global ordering // coefficients: QQ // number of vars : 2 diff --git a/src/sage/rings/polynomial/term_order.py b/src/sage/rings/polynomial/term_order.py index 567c3c0eeaf..54471dda652 100644 --- a/src/sage/rings/polynomial/term_order.py +++ b/src/sage/rings/polynomial/term_order.py @@ -387,9 +387,15 @@ 'negwdeglex' : 'Negative weighted degree lexicographic', } +from sage.interfaces.singular import singular_version_number +if int(singular_version_number()[0:3]) < 432 or (int(singular_version_number()[0:3]) == 432 and int(singular_version_number()[3:]) < 15): + invlex_singular_name = 'rp' +else: + invlex_singular_name = 'ip' + singular_name_mapping = { 'lex' : 'lp', - 'invlex' : 'ip', + 'invlex' : invlex_singular_name, 'degrevlex' : 'dp', 'deglex' : 'Dp', 'neglex' : 'ls', From da650bf076834a9b8291e43bf2599482308a2d04 Mon Sep 17 00:00:00 2001 From: Antonio Rojas Date: Sun, 31 Mar 2024 22:58:36 +0200 Subject: [PATCH 134/140] Remove noexcept keyword MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Gonzalo Tornaría --- src/sage/libs/singular/singular.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sage/libs/singular/singular.pyx b/src/sage/libs/singular/singular.pyx index 5db1b008ed9..357742b0151 100644 --- a/src/sage/libs/singular/singular.pyx +++ b/src/sage/libs/singular/singular.pyx @@ -1700,7 +1700,7 @@ cdef object si2sa_intvec(intvec *v): l.append(v.get(r)) return tuple(l) -cdef object si2sa_bigintvec(bigintmat *v) noexcept: +cdef object si2sa_bigintvec(bigintmat *v): r""" create a sage tuple from a singular vector of big integers From 0a83a695bcff7733ca6c7fa74f4b70579b4f8345 Mon Sep 17 00:00:00 2001 From: Antonio Rojas Date: Tue, 9 Apr 2024 09:11:05 +0200 Subject: [PATCH 135/140] Revert "Support singular older than 4.3.2.p15 too" This reverts commit ad3aa564986cb33468c341a18f70ff3a328e38d7. --- src/sage/interfaces/singular.py | 21 ++----------------- src/sage/libs/singular/decl.pxd | 1 - src/sage/libs/singular/function.pyx | 8 +++---- src/sage/libs/singular/ring.pyx | 14 ++++++------- .../multi_polynomial_libsingular.pyx | 12 +++-------- src/sage/rings/polynomial/term_order.py | 8 +------ 6 files changed, 17 insertions(+), 47 deletions(-) diff --git a/src/sage/interfaces/singular.py b/src/sage/interfaces/singular.py index ca20b90f648..a8217314506 100644 --- a/src/sage/interfaces/singular.py +++ b/src/sage/interfaces/singular.py @@ -1206,18 +1206,15 @@ def current_ring(self): EXAMPLES:: - sage: import re sage: r = PolynomialRing(GF(127),3,'xyz', order='invlex') - sage: rsing = r._singular_() - sage: print(re.sub('ordering rp', 'ordering ip', rsing._repr_())) + sage: r._singular_() polynomial ring, over a field, global ordering // coefficients: ZZ/127 // number of vars : 3 // block 1 : ordering ip // : names x y z // block 2 : ordering C - sage: curring = singular.current_ring() - sage: print(re.sub('ordering rp', 'ordering ip', curring._repr_())) + sage: singular.current_ring() polynomial ring, over a field, global ordering // coefficients: ZZ/127 // number of vars : 3 @@ -2472,20 +2469,6 @@ def singular_version(): return singular.eval('system("--version");') -def singular_version_number(): - """ - Return the version number of Singular being used as a string. - - EXAMPLES:: - - sage: singular.version_number() - '4...' - """ - import re - r = re.compile(r"\((\d+),") - return r.findall(singular_version())[0] - - class SingularGBLogPrettyPrinter: """ A device which prints Singular Groebner basis computation logs diff --git a/src/sage/libs/singular/decl.pxd b/src/sage/libs/singular/decl.pxd index 018f4dea806..f8cc683f209 100644 --- a/src/sage/libs/singular/decl.pxd +++ b/src/sage/libs/singular/decl.pxd @@ -244,7 +244,6 @@ cdef extern from "singular/Singular/libsingular.h": ringorder_s ringorder_lp ringorder_dp - ringorder_rp ringorder_ip ringorder_Dp ringorder_wp diff --git a/src/sage/libs/singular/function.pyx b/src/sage/libs/singular/function.pyx index 1e835b436e9..ba4af333359 100644 --- a/src/sage/libs/singular/function.pyx +++ b/src/sage/libs/singular/function.pyx @@ -1234,7 +1234,7 @@ cdef class SingularFunction(SageObject): Traceback (most recent call last): ... RuntimeError: error in Singular function call 'size': - Wrong number of arguments (got 2 arguments, arity code is 30...) + Wrong number of arguments (got 2 arguments, arity code is 303) sage: size('foobar', ring=P) 6 @@ -1637,17 +1637,17 @@ def singular_function(name): Traceback (most recent call last): ... RuntimeError: error in Singular function call 'factorize': - Wrong number of arguments (got 0 arguments, arity code is 30...) + Wrong number of arguments (got 0 arguments, arity code is 306) sage: factorize(f, 1, 2) Traceback (most recent call last): ... RuntimeError: error in Singular function call 'factorize': - Wrong number of arguments (got 3 arguments, arity code is 30...) + Wrong number of arguments (got 3 arguments, arity code is 306) sage: factorize(f, 1, 2, 3) Traceback (most recent call last): ... RuntimeError: error in Singular function call 'factorize': - Wrong number of arguments (got 4 arguments, arity code is 30...) + Wrong number of arguments (got 4 arguments, arity code is 306) The Singular function ``list`` can be called with any number of arguments:: diff --git a/src/sage/libs/singular/ring.pyx b/src/sage/libs/singular/ring.pyx index 350395fc6df..837f9906151 100644 --- a/src/sage/libs/singular/ring.pyx +++ b/src/sage/libs/singular/ring.pyx @@ -25,7 +25,7 @@ from sage.libs.gmp.mpz cimport mpz_init_set_ui from sage.libs.singular.decl cimport ring, currRing from sage.libs.singular.decl cimport rChangeCurrRing, rComplete, rDelete, idInit from sage.libs.singular.decl cimport omAlloc0, omStrDup, omAlloc -from sage.libs.singular.decl cimport ringorder_dp, ringorder_Dp, ringorder_lp, ringorder_ip, ringorder_rp, ringorder_ds, ringorder_Ds, ringorder_ls, ringorder_M, ringorder_c, ringorder_C, ringorder_wp, ringorder_Wp, ringorder_ws, ringorder_Ws, ringorder_a, rRingOrder_t +from sage.libs.singular.decl cimport ringorder_dp, ringorder_Dp, ringorder_lp, ringorder_ip, ringorder_ds, ringorder_Ds, ringorder_ls, ringorder_M, ringorder_c, ringorder_C, ringorder_wp, ringorder_Wp, ringorder_ws, ringorder_Ws, ringorder_a, rRingOrder_t from sage.libs.singular.decl cimport prCopyR from sage.libs.singular.decl cimport n_unknown, n_algExt, n_transExt, n_Z, n_Zn, n_Znm, n_Z2m from sage.libs.singular.decl cimport n_coeffType @@ -51,12 +51,17 @@ from cpython.object cimport Py_EQ, Py_NE from collections import defaultdict -# mapping str --> SINGULAR representation + + + + +# mapping str --> SINGULAR representation order_dict = { "dp": ringorder_dp, "Dp": ringorder_Dp, "lp": ringorder_lp, + "ip": ringorder_ip, "ds": ringorder_ds, "Ds": ringorder_Ds, "ls": ringorder_ls, @@ -67,11 +72,6 @@ order_dict = { "a": ringorder_a, } -from sage.interfaces.singular import singular_version_number -if int(singular_version_number()[0:3]) < 432 or (int(singular_version_number()[0:3]) == 432 and int(singular_version_number()[3:]) < 15): - order_dict["rp"] = ringorder_rp -else: - order_dict["ip"] = ringorder_ip ############################################################################# cdef ring *singular_ring_new(base_ring, n, names, term_order) except NULL: diff --git a/src/sage/rings/polynomial/multi_polynomial_libsingular.pyx b/src/sage/rings/polynomial/multi_polynomial_libsingular.pyx index ba53cabb912..b13500f8f89 100644 --- a/src/sage/rings/polynomial/multi_polynomial_libsingular.pyx +++ b/src/sage/rings/polynomial/multi_polynomial_libsingular.pyx @@ -1281,10 +1281,8 @@ cdef class MPolynomialRing_libsingular(MPolynomialRing_base): // : names x y // block 2 : ordering C - sage: import re sage: R = PolynomialRing(GF(2**8,'a'),10,'x', order='invlex') # needs sage.rings.finite_rings - sage: out = singular(R) # needs sage.rings.finite_rings - sage: print(re.sub('ordering rp', 'ordering ip', out._repr_())) # needs sage.rings.finite_rings + sage: singular(R) # needs sage.rings.finite_rings polynomial ring, over a field, global ordering // coefficients: ZZ/2[a]/(a^8+a^4+a^3+a^2+1) // number of vars : 10 @@ -1292,10 +1290,8 @@ cdef class MPolynomialRing_libsingular(MPolynomialRing_base): // : names x0 x1 x2 x3 x4 x5 x6 x7 x8 x9 // block 2 : ordering C - sage: import re sage: R = PolynomialRing(GF(127),2,'x', order='invlex') - sage: out = singular(R) # needs sage.rings.finite_rings - sage: print(re.sub('ordering rp', 'ordering ip', out._repr_())) # needs sage.rings.finite_rings + sage: singular(R) # needs sage.rings.finite_rings polynomial ring, over a field, global ordering // coefficients: ZZ/127 // number of vars : 2 @@ -1303,10 +1299,8 @@ cdef class MPolynomialRing_libsingular(MPolynomialRing_base): // : names x0 x1 // block 2 : ordering C - sage: import re sage: R = PolynomialRing(QQ,2,'x', order='invlex') - sage: out = singular(R) # needs sage.rings.function_field - sage: print(re.sub('ordering rp', 'ordering ip', out._repr_())) # needs sage.rings.function_field + sage: singular(R) # needs sage.rings.function_field polynomial ring, over a field, global ordering // coefficients: QQ // number of vars : 2 diff --git a/src/sage/rings/polynomial/term_order.py b/src/sage/rings/polynomial/term_order.py index 54471dda652..567c3c0eeaf 100644 --- a/src/sage/rings/polynomial/term_order.py +++ b/src/sage/rings/polynomial/term_order.py @@ -387,15 +387,9 @@ 'negwdeglex' : 'Negative weighted degree lexicographic', } -from sage.interfaces.singular import singular_version_number -if int(singular_version_number()[0:3]) < 432 or (int(singular_version_number()[0:3]) == 432 and int(singular_version_number()[3:]) < 15): - invlex_singular_name = 'rp' -else: - invlex_singular_name = 'ip' - singular_name_mapping = { 'lex' : 'lp', - 'invlex' : invlex_singular_name, + 'invlex' : 'ip', 'degrevlex' : 'dp', 'deglex' : 'Dp', 'neglex' : 'ls', From 747d4173733f2de40d9e40373aa025ab8fdeeb6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= Date: Sat, 6 Apr 2024 19:28:44 -0300 Subject: [PATCH 136/140] singular: add a doctest for bigintvec coercion Function `hilb` now returns a `bigintvec` object and the coercion to a sage vector was implemented in the previous commit. Here we add a doctest for this coercion. --- src/sage/interfaces/singular.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/sage/interfaces/singular.py b/src/sage/interfaces/singular.py index a8217314506..6fa786c7d7e 100644 --- a/src/sage/interfaces/singular.py +++ b/src/sage/interfaces/singular.py @@ -2025,6 +2025,10 @@ def _sage_(self, R=None): sage: type(singular(int(5)).sage()) + Test that bigintvec can be coerced:: + + sage: singular('hilb((ideal(x)), 1)').sage() + (1, -1, 0, 0, -1, 1, 0) """ typ = self.type() if typ == 'poly': From c33a96b5f7e8591c978373cc155f20cb88a82d0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= Date: Sat, 6 Apr 2024 19:29:15 -0300 Subject: [PATCH 137/140] singular: print arity as a symbol name This makes the output independent of changes in the version of singular --- src/sage/libs/singular/function.pyx | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/src/sage/libs/singular/function.pyx b/src/sage/libs/singular/function.pyx index ba4af333359..b7bcd8cdad1 100644 --- a/src/sage/libs/singular/function.pyx +++ b/src/sage/libs/singular/function.pyx @@ -1051,6 +1051,17 @@ cdef class LibraryCallHandler(BaseCallHandler): """ return False +# mapping int --> string for function arity +arity_dict = { + CMD_1: "CMD_1", + CMD_2: "CMD_2", + CMD_3: "CMD_3", + CMD_12: "CMD_12", + CMD_13: "CMD_13", + CMD_23: "CMD_23", + CMD_123: "CMD_123", + CMD_M: "CMD_M" +} cdef class KernelCallHandler(BaseCallHandler): """ @@ -1128,8 +1139,9 @@ cdef class KernelCallHandler(BaseCallHandler): errorreported += 1 error_messages.append( - "Wrong number of arguments (got {} arguments, arity code is {})" - .format(number_of_arguments, self.arity)) + "Wrong number of arguments (got {} arguments, arity is {})" + .format(number_of_arguments, + arity_dict.get(self.arity) or self.arity)) return NULL cdef bint free_res(self) noexcept: @@ -1234,7 +1246,7 @@ cdef class SingularFunction(SageObject): Traceback (most recent call last): ... RuntimeError: error in Singular function call 'size': - Wrong number of arguments (got 2 arguments, arity code is 303) + Wrong number of arguments (got 2 arguments, arity is CMD_1) sage: size('foobar', ring=P) 6 @@ -1637,17 +1649,17 @@ def singular_function(name): Traceback (most recent call last): ... RuntimeError: error in Singular function call 'factorize': - Wrong number of arguments (got 0 arguments, arity code is 306) + Wrong number of arguments (got 0 arguments, arity is CMD_12) sage: factorize(f, 1, 2) Traceback (most recent call last): ... RuntimeError: error in Singular function call 'factorize': - Wrong number of arguments (got 3 arguments, arity code is 306) + Wrong number of arguments (got 3 arguments, arity is CMD_12) sage: factorize(f, 1, 2, 3) Traceback (most recent call last): ... RuntimeError: error in Singular function call 'factorize': - Wrong number of arguments (got 4 arguments, arity code is 306) + Wrong number of arguments (got 4 arguments, arity is CMD_12) The Singular function ``list`` can be called with any number of arguments:: From bb5b360b1d5eddab45fbb26de8879667eaa45162 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= Date: Sat, 6 Apr 2024 19:29:21 -0300 Subject: [PATCH 138/140] singular: compatibility for 4.3.2p10 and before Add two fallback compatibility `#define`s: - `ringorder_ip` - `BIGINTVEC_CMD` Also for old singular: - patch the term_order mappings to send `rp` to singular instead of `ip` - patch the display of a ring so it prints `ip` instead of `rp` --- src/sage/interfaces/singular.py | 7 +++++++ src/sage/libs/singular/decl.pxd | 7 +++++++ src/sage/libs/singular/ring.pyx | 12 +++++++++++- 3 files changed, 25 insertions(+), 1 deletion(-) diff --git a/src/sage/interfaces/singular.py b/src/sage/interfaces/singular.py index 6fa786c7d7e..5e5463dbb83 100644 --- a/src/sage/interfaces/singular.py +++ b/src/sage/interfaces/singular.py @@ -1402,6 +1402,13 @@ def _repr_(self): if self._name in s: if self.get_custom_name() is None and self.type() == 'matrix': s = self.parent().eval('pmat(%s,20)' % (self.name())) + # compatibility for singular 4.3.2p10 and before + if s.startswith("polynomial ring,"): + from sage.rings.polynomial.term_order import singular_name_mapping + # this is our cue that singular uses `rp` instead of `ip` + if singular_name_mapping['invlex'] == 'rp': + s = re.sub('^(// .*block.* : ordering )rp$', '\\1ip', + s, 0, re.MULTILINE); return s def __copy__(self): diff --git a/src/sage/libs/singular/decl.pxd b/src/sage/libs/singular/decl.pxd index f8cc683f209..4a0e508e932 100644 --- a/src/sage/libs/singular/decl.pxd +++ b/src/sage/libs/singular/decl.pxd @@ -49,6 +49,13 @@ cdef extern from "factory/factory.h": cdef int SW_USE_NTL_SORT cdef extern from "singular/Singular/libsingular.h": + """ + // compatibility for singular 4.3.2p10 and before + #if SINGULAR_VERSION <= 4330 + #define ringorder_ip ringorder_rp + #define BIGINTVEC_CMD INTVEC_CMD + #endif + """ # # OPTIONS diff --git a/src/sage/libs/singular/ring.pyx b/src/sage/libs/singular/ring.pyx index 837f9906151..13a89be28f2 100644 --- a/src/sage/libs/singular/ring.pyx +++ b/src/sage/libs/singular/ring.pyx @@ -17,7 +17,7 @@ AUTHORS: # https://www.gnu.org/licenses/ # **************************************************************************** -from sage.cpython.string cimport str_to_bytes +from sage.cpython.string cimport str_to_bytes, bytes_to_str from sage.libs.gmp.types cimport __mpz_struct from sage.libs.gmp.mpz cimport mpz_init_set_ui @@ -72,6 +72,16 @@ order_dict = { "a": ringorder_a, } +cdef extern from "singular/Singular/libsingular.h": + cdef char * rSimpleOrdStr(rRingOrder_t) + +if bytes_to_str(rSimpleOrdStr(ringorder_ip)) == "rp": + # compatibility for singular 4.3.2p10 and before + order_dict["rp"] = ringorder_ip + # also patch term_order mappings + from sage.rings.polynomial import term_order + term_order.singular_name_mapping['invlex'] = 'rp' + term_order.inv_singular_name_mapping['rp'] = 'invlex' ############################################################################# cdef ring *singular_ring_new(base_ring, n, names, term_order) except NULL: From a9c5a504f1e54f546727d2743ed3ea89a64a6587 Mon Sep 17 00:00:00 2001 From: Antonio Rojas Date: Sun, 14 Apr 2024 14:20:26 +0200 Subject: [PATCH 139/140] Only replace the Singular ordering string in doctests --- src/sage/interfaces/singular.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sage/interfaces/singular.py b/src/sage/interfaces/singular.py index 5e5463dbb83..59cd9a8afcd 100644 --- a/src/sage/interfaces/singular.py +++ b/src/sage/interfaces/singular.py @@ -1405,8 +1405,9 @@ def _repr_(self): # compatibility for singular 4.3.2p10 and before if s.startswith("polynomial ring,"): from sage.rings.polynomial.term_order import singular_name_mapping + from sage.repl.rich_output import get_display_manager # this is our cue that singular uses `rp` instead of `ip` - if singular_name_mapping['invlex'] == 'rp': + if singular_name_mapping['invlex'] == 'rp' and 'doctest' in str(get_display_manager()): s = re.sub('^(// .*block.* : ordering )rp$', '\\1ip', s, 0, re.MULTILINE); return s From 8f10ebcbf493dcb000e8409e68b1b89459912b80 Mon Sep 17 00:00:00 2001 From: Antonio Rojas Date: Sun, 14 Apr 2024 14:22:37 +0200 Subject: [PATCH 140/140] Drop semicolon MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Gonzalo Tornaría --- src/sage/interfaces/singular.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sage/interfaces/singular.py b/src/sage/interfaces/singular.py index 59cd9a8afcd..4697b9763d3 100644 --- a/src/sage/interfaces/singular.py +++ b/src/sage/interfaces/singular.py @@ -1409,7 +1409,7 @@ def _repr_(self): # this is our cue that singular uses `rp` instead of `ip` if singular_name_mapping['invlex'] == 'rp' and 'doctest' in str(get_display_manager()): s = re.sub('^(// .*block.* : ordering )rp$', '\\1ip', - s, 0, re.MULTILINE); + s, 0, re.MULTILINE) return s def __copy__(self):