Skip to content

Commit f4f555c

Browse files
author
Release Manager
committed
Trac #32508: Eliminate use of __init__.py files for supplying package docstrings
... as in `src/sage/categories/__init__.py` or `src/sage/combinat/__init__.py` (part of #32501) URL: https://trac.sagemath.org/32508 Reported by: mkoeppe Ticket author(s): Kwankyu Lee Reviewer(s): Matthias Koeppe
2 parents 29a9c27 + ee4367d commit f4f555c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+548
-549
lines changed

src/doc/en/reference/categories/index.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
Category Framework
22
==================
33

4+
Introduction
5+
------------
6+
7+
.. toctree::
8+
:maxdepth: 2
9+
10+
sage/categories
11+
412
The Sage Category Framework
513
---------------------------
614

src/doc/en/reference/combinat/index.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ Combinatorics
33

44
.. automodule:: sage.combinat
55

6-
76
Comprehensive Module List
87
-------------------------
98

src/doc/en/reference/combinat/module_list.rst

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Comprehensive Module list
1+
Comprehensive Module List
22
=========================
33

44
.. NOTE::
@@ -15,7 +15,6 @@ Comprehensive Module list
1515
.. toctree::
1616
:maxdepth: 1
1717

18-
sage/combinat/__init__
1918
sage/combinat/abstract_tree
2019
sage/combinat/affine_permutation
2120
sage/combinat/algebraic_combinatorics
@@ -28,10 +27,9 @@ Comprehensive Module list
2827
sage/combinat/blob_algebra
2928
sage/combinat/cartesian_product
3029
sage/combinat/catalog_partitions
31-
sage/combinat/chas/__init__
30+
sage/combinat/chas/all
3231
sage/combinat/chas/fsym
3332
sage/combinat/chas/wqsym
34-
sage/combinat/cluster_algebra_quiver/__init__
3533
sage/combinat/cluster_algebra_quiver/all
3634
sage/combinat/cluster_algebra_quiver/cluster_seed
3735
sage/combinat/cluster_algebra_quiver/mutation_class
@@ -50,7 +48,6 @@ Comprehensive Module list
5048
sage/combinat/constellation
5149
sage/combinat/core
5250
sage/combinat/counting
53-
sage/combinat/crystals/__init__
5451
sage/combinat/crystals/affine
5552
sage/combinat/crystals/affine_factorization
5653
sage/combinat/crystals/affinization
@@ -90,7 +87,6 @@ Comprehensive Module list
9087
sage/combinat/degree_sequences
9188
sage/combinat/derangements
9289
sage/combinat/descent_algebra
93-
sage/combinat/designs/__init__
9490
sage/combinat/designs/all
9591
sage/combinat/designs/bibd
9692
sage/combinat/designs/resolvable_bibd
@@ -149,22 +145,19 @@ Comprehensive Module list
149145
sage/combinat/k_tableau
150146
sage/combinat/kazhdan_lusztig
151147
sage/combinat/knutson_tao_puzzles
152-
sage/combinat/matrices/__init__
153148
sage/combinat/matrices/all
154149
sage/combinat/matrices/dancing_links
155150
sage/combinat/matrices/dlxcpp
156151
sage/combinat/matrices/hadamard_matrix
157152
sage/combinat/matrices/latin
158153
sage/combinat/misc
159154
sage/combinat/multiset_partition_into_sets_ordered
160-
sage/combinat/ncsf_qsym/__init__
161155
sage/combinat/ncsf_qsym/all
162156
sage/combinat/ncsf_qsym/combinatorics
163157
sage/combinat/ncsf_qsym/generic_basis_code
164158
sage/combinat/ncsf_qsym/ncsf
165159
sage/combinat/ncsf_qsym/qsym
166160
sage/combinat/ncsf_qsym/tutorial
167-
sage/combinat/ncsym/__init__
168161
sage/combinat/ncsym/all
169162
sage/combinat/ncsym/bases
170163
sage/combinat/ncsym/dual
@@ -190,7 +183,6 @@ Comprehensive Module list
190183
sage/combinat/perfect_matching
191184
sage/combinat/permutation
192185
sage/combinat/permutation_cython
193-
sage/combinat/posets/__init__
194186
sage/combinat/posets/all
195187
sage/combinat/posets/cartesian_product
196188
sage/combinat/posets/d_complete
@@ -213,7 +205,6 @@ Comprehensive Module list
213205
sage/combinat/ribbon
214206
sage/combinat/ribbon_shaped_tableau
215207
sage/combinat/ribbon_tableau
216-
sage/combinat/rigged_configurations/__init__
217208
sage/combinat/rigged_configurations/all
218209
sage/combinat/rigged_configurations/bij_abstract_class
219210
sage/combinat/rigged_configurations/bij_infinity
@@ -236,7 +227,6 @@ Comprehensive Module list
236227
sage/combinat/rigged_configurations/rigged_partition
237228
sage/combinat/rigged_configurations/tensor_product_kr_tableaux
238229
sage/combinat/rigged_configurations/tensor_product_kr_tableaux_element
239-
sage/combinat/root_system/__init__
240230
sage/combinat/root_system/all
241231
sage/combinat/root_system/ambient_space
242232
sage/combinat/root_system/associahedron
@@ -298,7 +288,6 @@ Comprehensive Module list
298288
sage/combinat/schubert_polynomial
299289
sage/combinat/set_partition
300290
sage/combinat/set_partition_ordered
301-
sage/combinat/sf/__init__
302291
sage/combinat/sf/all
303292
sage/combinat/sf/character
304293
sage/combinat/sf/classical
@@ -334,7 +323,6 @@ Comprehensive Module list
334323
sage/combinat/skew_partition
335324
sage/combinat/skew_tableau
336325
sage/combinat/sloane_functions
337-
sage/combinat/species/__init__
338326
sage/combinat/species/all
339327
sage/combinat/species/characteristic_species
340328
sage/combinat/species/composition_species
@@ -375,9 +363,8 @@ Comprehensive Module list
375363
sage/combinat/tuple
376364
sage/combinat/tutorial
377365
sage/combinat/vector_partition
378-
sage/combinat/words/__init__
379366
sage/combinat/words/abstract_word
380-
sage/combinat/words/all
367+
sage/combinat/words
381368
sage/combinat/words/alphabet
382369
sage/combinat/words/finite_word
383370
sage/combinat/words/infinite_word

src/sage/categories/__init__.py

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +0,0 @@
1-
r"""
2-
Sage categories quickref
3-
------------------------
4-
5-
- sage.categories.primer? A primer on Elements, Parents, and Categories
6-
- sage.categories.tutorial? A tutorial on Elements, Parents, and Categories
7-
- Category? Technical background on categories
8-
- Sets() Semigroups() Algebras(QQ) Some categories
9-
- SemiGroups().example()?? Sample implementation of a semigroup
10-
- Hom(A, B), End(A, Algebras()) Homomorphisms sets
11-
- tensor, cartesian_product Functorial constructions
12-
13-
Module layout:
14-
15-
- sage.categories.basic: the basic categories
16-
- sage.categories.all: all categories
17-
- sage.categories.semigroups: the Semigroups() category
18-
- sage.categories.examples.semigroups the example of Semigroups()
19-
- sage.categories.homset, map,
20-
morphism, functors: morphisms, ...
21-
- sage.categories.cartesian_product, tensor,
22-
dual: functorial constructions
23-
24-
25-
Todo: put the quickref in quickref.py, and only some pointers here?
26-
27-
"""
28-
29-
from . import primer

src/sage/categories/all.py

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,34 @@
1+
r"""
2+
Sage categories quickref
3+
4+
- ``sage.categories.primer?`` a primer on Elements, Parents, and Categories
5+
- ``sage.categories.tutorial?`` a tutorial on Elements, Parents, and Categories
6+
- ``Category?`` technical background on categories
7+
- ``Sets()``, ``Semigroups()``, ``Algebras(QQ)`` some categories
8+
- ``SemiGroups().example()??`` sample implementation of a semigroup
9+
- ``Hom(A, B)``, ``End(A, Algebras())`` homomorphisms sets
10+
- ``tensor``, ``cartesian_product`` functorial constructions
11+
12+
Module layout:
13+
14+
- :mod:`sage.categories.basic` the basic categories
15+
- :mod:`sage.categories.all` all categories
16+
- :mod:`sage.categories.semigroups` the ``Semigroups()`` category
17+
- :mod:`sage.categories.examples.semigroups` the example of ``Semigroups()``
18+
- :mod:`sage.categories.homset` morphisms, ...
19+
- :mod:`sage.categories.map`
20+
- :mod:`sage.categories.morphism`
21+
- :mod:`sage.categories.functors`
22+
- :mod:`sage.categories.cartesian_product` functorial constructions
23+
- :mod:`sage.categories.tensor`
24+
- :mod:`sage.categories.dual`
25+
"""
26+
# install the docstring of this module to the containing package
27+
from sage.misc.namespace_package import install_doc
28+
install_doc(__package__, __doc__)
29+
30+
from . import primer
31+
132
from sage.misc.lazy_import import lazy_import
233

334
from .category import Category

src/sage/combinat/__init__.py

Lines changed: 0 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +0,0 @@
1-
r"""
2-
Combinatorics
3-
=============
4-
5-
Introductory material
6-
---------------------
7-
8-
- :ref:`sage.combinat.quickref`
9-
- :ref:`sage.combinat.tutorial`
10-
11-
Thematic indexes
12-
----------------
13-
14-
- :ref:`sage.combinat.algebraic_combinatorics`
15-
16-
- :ref:`sage.combinat.chas`
17-
- :ref:`sage.combinat.cluster_algebra_quiver`
18-
- :ref:`sage.combinat.crystals`
19-
- :ref:`sage.combinat.root_system`
20-
- :ref:`sage.combinat.sf`
21-
- :class:`~sage.combinat.fully_commutative_elements.FullyCommutativeElements`
22-
23-
- :ref:`sage.combinat.counting`
24-
- :ref:`sage.combinat.enumerated_sets`
25-
- :ref:`sage.combinat.catalog_partitions`
26-
- :ref:`sage.combinat.finite_state_machine`
27-
- :ref:`sage.combinat.species`
28-
- :ref:`sage.combinat.designs`
29-
- :ref:`sage.combinat.posets`
30-
- :ref:`sage.combinat.words`
31-
32-
Utilities
33-
---------
34-
35-
- :ref:`sage.combinat.output`
36-
- :ref:`sage.combinat.ranker`
37-
- :func:`Combinatorial maps <sage.combinat.combinatorial_map.combinatorial_map>`
38-
- :ref:`sage.combinat.misc`
39-
40-
Related topics
41-
--------------
42-
43-
- :ref:`sage.coding`
44-
- :ref:`sage.dynamics`
45-
- :ref:`sage.graphs`
46-
47-
"""
48-
from . import quickref
49-
from . import tutorial

src/sage/combinat/algebraic_combinatorics.py

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,9 @@
11
r"""
22
Algebraic combinatorics
3-
=======================
4-
5-
Quickref
6-
--------
7-
8-
.. TODO:: write it!
93
104
Thematic tutorials
115
------------------
126
13-
.. TODO:: get Sphinx to create those cross links properly
14-
157
- `Algebraic Combinatorics in Sage <../../../../thematic_tutorials/algebraic_combinatorics.html>`_
168
- `Lie Methods and Related Combinatorics in Sage <../../../../thematic_tutorials/lie.html>`_
179
- `Linear Programming (Mixed Integer) <../../../../thematic_tutorials/linear_programming.html>`_
@@ -41,10 +33,10 @@
4133
Combinatorial Representation Theory
4234
-----------------------------------
4335
44-
- :ref:`sage.combinat.root_system`
45-
- :ref:`sage.combinat.crystals`
46-
- :ref:`sage.combinat.rigged_configurations`
47-
- :ref:`sage.combinat.cluster_algebra_quiver`
36+
- :ref:`sage.combinat.root_system.all`
37+
- :ref:`sage.combinat.crystals.all`
38+
- :ref:`sage.combinat.rigged_configurations.all`
39+
- :ref:`sage.combinat.cluster_algebra_quiver.all`
4840
- :class:`~sage.combinat.kazhdan_lusztig.KazhdanLusztigPolynomial`
4941
- :class:`~sage.combinat.symmetric_group_representations.SymmetricGroupRepresentation`
5042
- :ref:`sage.combinat.yang_baxter_graph`

src/sage/combinat/all.py

Lines changed: 50 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,54 @@
1+
r"""
2+
Combinatorics
3+
4+
Introductory material
5+
---------------------
6+
7+
- :ref:`sage.combinat.quickref`
8+
- :ref:`sage.combinat.tutorial`
9+
10+
Thematic indexes
11+
----------------
12+
13+
- :ref:`sage.combinat.algebraic_combinatorics`
14+
15+
- :ref:`sage.combinat.chas.all`
16+
- :ref:`sage.combinat.cluster_algebra_quiver.all`
17+
- :ref:`sage.combinat.crystals.all`
18+
- :ref:`sage.combinat.root_system.all`
19+
- :ref:`sage.combinat.sf.all`
20+
- :class:`~sage.combinat.fully_commutative_elements.FullyCommutativeElements`
21+
22+
- :ref:`sage.combinat.counting`
23+
- :ref:`sage.combinat.enumerated_sets`
24+
- :ref:`sage.combinat.catalog_partitions`
25+
- :ref:`sage.combinat.finite_state_machine`
26+
- :ref:`sage.combinat.species.all`
27+
- :ref:`sage.combinat.designs.all`
28+
- :ref:`sage.combinat.posets.all`
29+
- :ref:`sage.combinat.words`
30+
31+
Utilities
32+
---------
33+
34+
- :ref:`sage.combinat.output`
35+
- :ref:`sage.combinat.ranker`
36+
- :func:`Combinatorial maps <sage.combinat.combinatorial_map.combinatorial_map>`
37+
- :ref:`sage.combinat.misc`
38+
39+
Related topics
40+
--------------
41+
42+
- :ref:`sage.coding`
43+
- :ref:`sage.dynamics`
44+
- :ref:`sage.graphs`
45+
146
"""
2-
Combinatorics features that are imported by default in the interpreter namespace
3-
"""
47+
# install the docstring of this module to the containing package
48+
from sage.misc.namespace_package import install_doc
49+
install_doc(__package__, __doc__)
50+
51+
from . import quickref, tutorial
452

553
from sage.misc.lazy_import import lazy_import
654

src/sage/combinat/catalog_partitions.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
r"""
22
Enumerated sets of partitions, tableaux, ...
3-
============================================
43
54
Partitions
65
----------

src/sage/combinat/chas/__init__.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1 @@
1-
"""
2-
Combinatorial Hopf algebras
3-
===========================
41

5-
- :ref:`sage.combinat.sf`
6-
- :ref:`sage.combinat.ncsf_qsym`
7-
- :ref:`sage.combinat.ncsym`
8-
- :ref:`sage.combinat.schubert_polynomial`
9-
- :ref:`sage.combinat.chas.fsym`
10-
- :ref:`sage.combinat.fqsym`
11-
- :ref:`sage.combinat.grossman_larson_algebras`
12-
- :ref:`sage.combinat.chas.wqsym`
13-
"""

src/sage/combinat/chas/all.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,21 @@
11
"""
2-
Combinatorial Hopf Algebras
2+
Combinatorial Hopf algebras
3+
4+
- :ref:`sage.combinat.sf.all`
5+
- :ref:`sage.combinat.ncsf_qsym.all`
6+
- :ref:`sage.combinat.ncsym.all`
7+
- :ref:`sage.combinat.schubert_polynomial`
8+
- :ref:`sage.combinat.chas.fsym`
9+
- :ref:`sage.combinat.fqsym`
10+
- :ref:`sage.combinat.grossman_larson_algebras`
11+
- :ref:`sage.combinat.chas.wqsym`
312
"""
13+
# install the docstring of this module to the containing package
14+
from sage.misc.namespace_package import install_doc
15+
install_doc(__package__, __doc__)
16+
417
from sage.misc.lazy_import import lazy_import
518

619
lazy_import('sage.combinat.chas.fsym', ['FreeSymmetricFunctions'])
720
lazy_import('sage.combinat.chas.wqsym', ['WordQuasiSymmetricFunctions'])
21+
Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +0,0 @@
1-
r"""
2-
Cluster Algebras and Quivers
3-
============================
4-
5-
- A compendium on the cluster algebra and quiver package in Sage [MS2011]_
6-
7-
- :ref:`sage.combinat.cluster_algebra_quiver.quiver_mutation_type`
8-
- :ref:`sage.combinat.cluster_algebra_quiver.quiver`
9-
- :ref:`sage.combinat.cluster_algebra_quiver.cluster_seed`
10-
"""

0 commit comments

Comments
 (0)