Changes between Version 1 and Version 5 of Ticket #18581
- Timestamp:
- 06/04/15 06:07:55 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #18581
-
Property
Status
changed from
new
toneeds_work
-
Property
Authors
changed from
to
John Palmieri
-
Property
Summary
changed from
standard_packages()... should output installed and available versions
to_package_lists_from_sage_output() should output installed and available versions
-
Property
Branch
changed from
to
u/jhpalmieri/versions
-
Property
Commit
changed from
to
17bc8fad32020a978d940694edba35b46e81389f
-
Property
Status
changed from
-
Ticket #18581 – Description
v1 v5 1 Currently, the function `_package_lists_from_sage_output` only gives the latest available version of a package, not the version which is installed. I propose to actually return a list of triples 1 Currently, the function `_package_lists_from_sage_output` only gives the latest available version of a package, not the version which is installed. 2 3 I propose to define a new function `package_versions(local=False)` which returns a dictionary with key:value pairs of the form 2 4 {{{ 3 (package_name,installed_version, latest_version)5 package_name: (installed_version, latest_version) 4 6 }}} 5 7 where `installed_version` is `None` if the package is not installed and `latest_version` is the newest available version. 6 8 7 If, for example, arb-2.5.0 is installed but arb-2.6.0 is availble, then one such triplewould be9 If, for example, arb-2.5.0 is installed but arb-2.6.0 is availble, then one such key:value pair would be 8 10 {{{ 9 ('arb','2.5.0', '2.6.0')11 'arb': ('2.5.0', '2.6.0') 10 12 }}} 11 13 12 14 If arb is not installed, this would be: 13 15 {{{ 14 ('arb',None, '2.6.0')16 'arb': (None, '2.6.0') 15 17 }}}