-
-
Notifications
You must be signed in to change notification settings - Fork 454
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
Cleaning sage-package-list #19213
Comments
Branch: u/jhpalmieri/pip_packages |
Commit: |
comment:3
To my mind, it would nice to also list non installed pip packages as well as the last version available. The pip version can be obtained from Python with the json API
The last version available might differ from what is installed. And it is worth mentioning that an update is available. New commits:
|
comment:4
Replying to @videlec:
One disadvantage to this is that it requires internet access, which Do we want to list these as optional packages or in another category? |
comment:5
I do not want these pip packages to be treated like optional packages. If anything, they are closer to "experimental" than to "optional". We don't have control over them, so they are more likely to break when the upstream package gets upgraded. |
comment:6
Replying to @jdemeyer:
Do you mean
or both? |
comment:7
Replying to @jhpalmieri:
The default for |
comment:8
Wait, if an (old-style) optional package is listed in |
comment:9
Replying to @jdemeyer:
I see several solutions to deal with "pip packages":
Very simple to maintain! I agree that it would be hard to prevent a pip package to just break because versions are not backward compatible. So solution 2 looks appropriate to me. Otherwise, we can have a more precise tagging system for python-optional packages
It is more flexible than the piprules strict versioning solution but the cost of maintenance is much higher. Vincent |
comment:10
I have a working version of
The only problem is that it is relatively long to get the information from the pip json API for all the packages. Perhaps, one can be smarter with John, am I free to change the branch in order to make my proposition publicly available? Vincent |
comment:11
Furthermore, could we separate the issues of:
Vincent |
comment:12
Replying to @videlec:
Please do so. |
comment:13
I have a few questions and comments:
I'm not really sure, though.
|
Changed commit from |
Changed branch from u/jhpalmieri/pip_packages to public/pip_packages |
Commit: |
New commits:
|
Changed branch from public/pip_packages to public/19213 |
comment:16
What is the status on this? |
comment:49
Replying to @jdemeyer:
Since the lists are built with |
comment:50
Replying to @videlec:
Unless I'm missing something, in the old version, the list of packages was not computed every time that Sage starts. |
comment:51
Replying to @jdemeyer:
It was the very same. All of |
comment:52
I see a significant difference in startup time: on one OS X machine it takes about 800ms longer on average with this branch. (I ran |
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
comment:54
Indeed... I was wrong the variables I rebased and added some deprecations to all of |
This comment has been minimized.
This comment has been minimized.
comment:56
Replying to @videlec:
Yes, that's what I meant. |
comment:57
I don't see why |
comment:58
Anyway, I don't really care much about this. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:60
I don't care either. But a pair of lists is not a lot more friendly than a dictionary. |
This comment has been minimized.
This comment has been minimized.
Changed branch from u/vdelecroix/19213 to |
Changed commit from |
This ticket enhances the module
sage.misc.package
and the scriptsage-list-packages
:sage.misc.package
to list the (new style) packagessage.misc.package
sage.misc.packages
insage-list-packages
pip type packages were created in #19187. This ticket is such that these packages will be listed with
sage -optional
. Sadly, it will still not be possible for these packages to be used in optional doctests. The reason for that is that we do not have proper version control for them.CC: @videlec @jdemeyer @vbraun @embray
Component: scripts
Author: Vincent Delecroix
Branch:
f054998
Reviewer: Matthias Koeppe, Jeroen Demeyer
Issue created by migration from https://trac.sagemath.org/ticket/19213
The text was updated successfully, but these errors were encountered: