#19213: For packages listed in build/pkgs/piprules, allow 'sage --optional' to
list
them
-------------------------------------+-------------------------------------
Reporter: jhpalmieri | Owner:
Type: enhancement | Status: needs_review
Priority: minor | Milestone: sage-6.9
Component: packages: | Resolution:
optional | Merged in:
Keywords: | Reviewers:
Authors: John Palmieri | Work issues:
Report Upstream: N/A | Commit:
Branch: | 00224aafc17efcb3a4d5504bdbcf036fae5bca57
u/jhpalmieri/pip_packages | Stopgaps:
Dependencies: #19187 |
-------------------------------------+-------------------------------------
Changes (by vdelecroix):
* commit: => 00224aafc17efcb3a4d5504bdbcf036fae5bca57
Comment:
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
{{{
import urllib2
import json
def pip_version(package_name):
url = "https://pypi.python.org/pypi/{}/json".format(package_name)
try:
data = json.load(urllib2.urlopen(urllib2.Request(url)))
except urllib2.HTTPError:
return None
try:
return data["info"]["version"]
except KeyError:
return None
}}}
The last version available might differ from what is installed. And it is
worth mentioning that an update is available.
----
New commits:
||[http://git.sagemath.org/sage.git/commit/?id=93ec09bd798f00db8f1e7a767c33870c27d769c0
93ec09b]||{{{Change sage -p to always install a package}}}||
||[http://git.sagemath.org/sage.git/commit/?id=c6ddd0eb033c4aae465839e07b83d8ea3c266b86
c6ddd0e]||{{{Better help}}}||
||[http://git.sagemath.org/sage.git/commit/?id=f3d7ef381ebdc0e3eb41d11f8ad67b148ae73bd0
f3d7ef3]||{{{Remove -f option to sage-spkg when running sage -i}}}||
||[http://git.sagemath.org/sage.git/commit/?id=752e269ffb0f5417353815af6cb593a461b135e4
752e269]||{{{Use PKG-clean target to implement sage -f PKG}}}||
||[http://git.sagemath.org/sage.git/commit/?id=1812e4fb1e39565446bfe6aa0e4c9d38173618fb
1812e4f]||{{{Merge tag '6.9.beta6' into t/19119/ticket/19119}}}||
||[http://git.sagemath.org/sage.git/commit/?id=adef308eaf6a6c478301471c3c2350260b39a5fe
adef308]||{{{Add rules for installing packages with pip}}}||
||[http://git.sagemath.org/sage.git/commit/?id=fdba3ee0772b1885c3f60cb35f850fee576a7f9a
fdba3ee]||{{{Add mercurial and sqlalchemy (ex-standard packages)}}}||
||[http://git.sagemath.org/sage.git/commit/?id=00224aafc17efcb3a4d5504bdbcf036fae5bca57
00224aa]||{{{trac 19213: include packages from build/pkgs/piprules in
'sage --optional'}}}||
--
Ticket URL: <http://trac.sagemath.org/ticket/19213#comment:3>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.