-
-
Notifications
You must be signed in to change notification settings - Fork 491
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Meta-ticket: Clear out __init__.py files in preparation for namespace packages #32501
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
comment:6
A serious case:
We need to get rid of this one -- |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
comment:9
Replying to @mkoeppe:
This one was added it #25848 ("Some preparations for binding=True") for a stalled effort in #22747/#26254 |
This comment has been minimized.
This comment has been minimized.
comment:11
We can close this meta-ticket because it only tracks one open ticket. |
comment:12
I think it would be good to keep it open until the final ticket is done. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Author: Michael Orlitzky |
comment:18
Everything in the "Tickets:" list has been closed: fixed. |
Reviewer: Michael Orlitzky |
Changed author from Michael Orlitzky to none |
(Part of the modularization effort, #29705)
Whenever there are two distribution packages that provide modules with a common prefix of Python packages, that prefix needs to be a native namespace package, i.e., there cannot be an
__init__.py
file.For example,
sage.graphs.graph_decompositions.tdlib
,sage.graphs.graph_decompositions.rankwidth
,sage.graphs.graph_decompositions
(and most ofsage.graphs
).Then, none of
sage
,sage.graphs
,sage.graphs.graph_decomposition
can be an ordinary Python package (with
__init__.py
file), but rather each of them has to be a native namespace package (no__init__.py
file).In this meta-ticket, we make sure that all such
__init__.py
files are empty. (The actual removal of empty__init__.py
files will be done in #28925.)Not all
__init__.py
files need to be empty. For example,sage.cpython
andsage.structure
(after Move sage.structure.formal_sum to sage.modules #29870) is intended to be in one distribution package, sagemath-objects. Hencesage.cpython
andsage.structure
keep their nonempty__init__.py
files, and we may even add a comment that documents that they are intended to stay ordinary packages. (Remove some monkey patching in src/sage/__init__.py #31420 clearssage.__init__
and adds such a comment tosage.cpython.__init__
)sage.libs.giac
is intended to be in one distribution package, sagemath-giac. Hencesage.libs.giac
will keep its nonempty__init__.py
file (butsage.libs
will not).With positively-reviewed tickets #31420/#32479/#32506/#32507
Tickets:
sage
__init__.py
files__init__.py
files__init__.py
files for supplying package docstrings__init__.py
insage.rings.polynomial
unpickle_global
whenregister_unpickle_override
appears in a module not loaded at startupRelated:
CC: @tscrim @pjbruin @kiwifb @kliem @dcoudert
Component: refactoring
Reviewer: Michael Orlitzky
Issue created by migration from https://trac.sagemath.org/ticket/32501
The text was updated successfully, but these errors were encountered: