-
-
Notifications
You must be signed in to change notification settings - Fork 481
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
sage -t --installed #33407
Comments
This comment has been minimized.
This comment has been minimized.
Author: Matthias Koeppe |
This comment has been minimized.
This comment has been minimized.
Commit: |
This comment has been minimized.
This comment has been minimized.
New commits:
|
comment:5
I think the move makes some sense especially in the context of the elimination of The only thing I am not sure is introducing a new option. Why not make it the default instead? What workflow would that prevent? |
comment:6
Replying to @kiwifb:
I think the default is valuable because doctests can be written / updated and immediately tested without having to build the Sage library. |
comment:7
Valid for pure python files but not |
comment:8
Replying to @kiwifb:
When you are done changing code, you can still edit doctests and in this phase you don't need to recompile in order to tests the doctests. |
comment:9
Replying to @mkoeppe:
More to the point, it is a pain in the workflow to recompile in that case. But you should explicitly test a file or directory in that case. But let's go with a developer focused for now. We may want to suggest not to use |
comment:10
Replying to @kiwifb:
Yes, they are mutually exclusive options |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:13
Replying to @kiwifb:
I have added |
comment:14
No, I don't install SAGE_DOC_SRC. But as I said it points to the installed |
comment:15
Ah, I see, in the |
comment:16
I looked at these files but they do not seem useful |
comment:17
What else do you test in |
comment:18
None of these files have
|
comment:19
Yes, my mistake |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:30
Well, I'll be going for the school run in 20-25 minutes, I'll try to wrap my head around what this commit is about before going. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:32
Good spotting that last commit. The previous commit is neat, it almost negates the need for having the It feels like I won my first point about making it the default without you really conceding anything. Really well done. The code reorganisation around it is also quite good. It is all more clear about what each part does. |
comment:33
Replying to @kiwifb:
Yes, for the Sage-on-distro use case, but not for my use case (doctesting a modularized subset distribution like sagemath-polyhedra). |
This comment has been minimized.
This comment has been minimized.
comment:36
Thank you! |
comment:37
Test fail |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:40
Apologies, that was very sloppy of me. |
comment:41
Patchbots have been on strike, hard to see failures. |
comment:42
I have now run a full doctest on sage-on-gentoo with |
comment:43
While it is unrelated to eliminating There are two issues with that. First it may leave unwanted files all over the place. Second it fails miserably if you try to test something that is read-only.
There seem to be some option to change where the cache is created ( |
comment:45
Follow up for |
Changed reviewer from François Bissey to François Bissey, Antonio Rojas |
comment:46
Working fine here. |
comment:47
Thanks all for the review! |
Changed branch from u/mkoeppe/sage__t___all_installed to |
This new option is similar to
--all
butSAGE_LIB
) instead ofSAGE_SRC
. (This will be useful for testing modularized distributions such as Modularization of sagelib: Break out a separate package sagemath-standard-no-symbolics #32601.).rst.txt
files installed inhtml/**/_sources
) instead ofSAGE_DOC_SRC
.(Actually, because portions of namespace packages can be installed in separate locations, the variable
sage.env.SAGE_LIB
is no longer meaningful. Instead, we make use of the__path__
attribute of packages, https://python.readthedocs.io/en/stable/reference/import.html#module-path, which in the case of namespace packages is an iterable.)This would also make sense for distribution packaging, which no longer would have to rely on the fallbacks
SAGE_SRC
->SAGE_LIB
andSAGE_DOC_SRC -> SAGE_DOC
.Part of Meta-ticket #33037.
CC: @kiwifb @antonio-rojas @tobiasdiez
Component: doctest framework
Author: Matthias Koeppe
Branch/Commit:
b4d2b8e
Reviewer: François Bissey, Antonio Rojas
Issue created by migration from https://trac.sagemath.org/ticket/33407
The text was updated successfully, but these errors were encountered: