-
-
Notifications
You must be signed in to change notification settings - Fork 544
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
Prepare sage.doctest for namespace packages #33033
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Commit: |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Author: Matthias Koeppe |
This comment has been minimized.
This comment has been minimized.
comment:6
A few nitpicks from my side, otherwise looks good (codewise, didn't try it locally). The explicit bool in sagemath/sagetrac-mirror@develop...u/mkoeppe/prepare_sage_doctest_for_namespace_packages#diff-944be831a2285f89611252d94988abde763acd41fd84353c5b46c01df443dc82L680-L683 can probably be removed (at least according to the comment that had been there).
For readability, I would propose to use |
comment:8
Thanks, the changes look good to me! |
Reviewer: Tobias Diez, ... |
Branch pushed to git repo; I updated commit sha1. New commits:
|
This comment has been minimized.
This comment has been minimized.
comment:12
Turns out that this module is not the best place for the new function because the function will need to be packaged in the distribution sagemath-environment. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
This comment has been minimized.
This comment has been minimized.
comment:15
Ready for review |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:21
LGTM. |
Changed reviewer from Tobias Diez, ... to Tobias Diez, Kwankyu Lee |
comment:22
Thank you! |
Changed branch from u/mkoeppe/prepare_sage_doctest_for_namespace_packages to |
The Sage doctester decides whether a Python file is part of a package based on the presence of
__init__.py
files. This is no longer appropriate because PEP 420 implicit namespace packages do not have__init__.py
files; see #32501.We implement a new function
sage.misc.package_dir.is_package_or_sage_namespace_package_dir
, which we will also use in #28925.This change also removes a runtime dependency of the doctester on Cython, see #33029.
CC: @tobiasdiez @kwankyu @kiwifb @antonio-rojas @seblabbe
Component: doctest framework
Author: Matthias Koeppe
Branch/Commit:
5adae47
Reviewer: Tobias Diez, Kwankyu Lee
Issue created by migration from https://trac.sagemath.org/ticket/33033
The text was updated successfully, but these errors were encountered: