-
-
Notifications
You must be signed in to change notification settings - Fork 480
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
remove (or clean up) SAGE_ROOT/examples #7494
Comments
comment:1
#298 would be invalidated by doing this ticket. |
comment:2
I was wondering about that directory too a few months ago. So we don't do anything with it currently? Here are comments. I think it would be worth linking at least a few of the top-level ones to the wiki, and perhaps put in one of the documentation places, as some of the examples files there are definitely useful for templates. I bet some of the programming (Pyrex/SageX/Cython) examples might be useful too. I am cc:ing wdj to see if he thinks all his examples/routines from calculus are now in the main Sage library. The linalg folder is definitely pointless, as permanents are now in the main library. The worksheets folder seems pretty pointless in its current state. The tests directory has some things that should be added as random doctests for those things, though. The modsym directory stuff likely is already tested in that area, given how important it is to Sage! The latex_embed is obviously superfluous at this point. Fortran was has already discussed above. Finance is really pointless. The Groebner basis thing seems intriguing - perhaps should be incorporated in doctests for that elsewhere? Is the Ajax thing now very very superfluous, given how much we use it? It's not (that) old. The GSL folder is quite large compared to the rest and perhaps has some examples which should be combined into one big file which is doctested, if those sorts of tests aren't. It would seem valuable not to lose this many doctests -does it currently pass? |
comment:3
See #7936 for this - we can delete this one, at least. |
comment:4
The last nontrivial commit was 1.5 years before this ticket was created, but now it's been 1.5 years since this ticket was created! Can we get rid of this directory yet? |
comment:5
I have asked about this a lot. In order to give this, it would be really nice to move a few of the examples to other places - wiki, wherever.
Anyway, we shouldn't just completely delete in case there are useful tests. But I totally agree on the overall strategy. |
comment:6
Delete it!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! I wrote almost everything in there, and it should just go. I give "delete the examples directory" a positive review. To merge this ticket, do
|
comment:8
For future reference, I've put that directory here:
|
comment:9
I just realized that there is one thing that has to be done. Observe:
So the stuff in examples that are used in doctests need to be moved to the SAGE_ROOT/data/ directory. Thus one needs to attach a patch that does this to this ticket, and that patch will need to be reviewed. |
Attachment: trac_7494.patch.gz |
comment:10
The patch trac_7494.patch should change the core sage library so it doesn't depend on anything in the SAGE_ROOT/examples directory for testing. It also does not put anything in the SAGE_ROOT/data directory, since that is not needed. |
comment:12
So the Groebner, gsl, etc. tests aren't really useful? Ok by me. Nice - thanks for looking at this "officially". Since there is a Sage Days going on and today is my first day of classes, I think someone will beat me to the review, but thanks for looking at this a bit more carefully. In some sense, you are the only person who can check it, since you're one of the few who really knows why these things were in in the first place :) |
Author: William Stein |
Changed keywords from none to sd32 |
This comment has been minimized.
This comment has been minimized.
Reviewer: Karl-Dieter Crisman, Rob Beezer |
comment:14
Trash it. There's too much old misleading stuff about as is. I renamed the examples directory, applied the patch, ran tests and got no failures. I guess we need to alert the release manager somehow to actually delete the directory in the next distribution? I'll put a note above, edit as necessary. |
Changed author from William Stein to William Stein, John Palmieri |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Changed work issues from Add a patch for the root repo. to none |
comment:19
I think this searches through all of the relevant files:
I'm attaching a patch for this. In addition to the two files you found, it also patches libdist_filelist, which looks like it is completely out of date, but it doesn't hurt to patch it anyway. |
root repo |
Changed reviewer from Karl-Dieter Crisman, Rob Beezer to Karl-Dieter Crisman, Rob Beezer, Leif Leonhardy |
comment:20
Attachment: trac_7494-root-repo.patch.gz Ok, I've As expected, I got rid of the Upgrading from a path without an examples spkg shouldTM IMHO also work; haven't tried that [yet]. Don't know yet whether Jeroen's merger is "prepared" for such an operation, and since Sage 4.7.2.alpha3 is almost out, I don't think I'll attempt to merge this ticket into this release. There'll certainly be an alpha4, or we could try with the next release candidate. Unfortunately we don't win much regarding the size; the current examples spkg is just 2.0 MB, 3.9 MB uncompressed on my disk (i.e., the size of the |
comment:21
Problems while building the documentation:
|
comment:22
I believe this referee patch should fix the documentation problem. |
This comment has been minimized.
This comment has been minimized.
Attachment: trac_7494-ref.patch.gz Sage library: fix docbuilding problem |
comment:23
Replying to @jhpalmieri:
Belief is not a technical category. Nice patch by the way. |
Merged: sage-4.7.2.alpha4 |
comment:25
See #11907 for a followup. |
Did you know there is a directory SAGE_ROOT/examples? Do you care? Because if nobody seriously cares, I'm going to delete it from future versions of Sage, since it is still a mess, and the last nontrivial commit was 1.5 years ago (!):
I can put the same directory online somewhere, and move the fortran file that is used in one doctest out. I'm just really curious if anybody knows about this directory and cares.
Apply:
Release Manager:
Delete
$SAGE_ROOT/examples/
as part of this ticket.(This should happen automatically, i.e., the directory should vanish, when
sdist
ing.)CC: @wdjoyner
Component: misc
Keywords: sd32
Author: William Stein, John Palmieri
Reviewer: Karl-Dieter Crisman, Rob Beezer, Leif Leonhardy
Merged: sage-4.7.2.alpha4
Issue created by migration from https://trac.sagemath.org/ticket/7494
The text was updated successfully, but these errors were encountered: