Opened 7 years ago

Closed 3 years ago

#20104 closed enhancement (fixed)

sage --package: Add commands "list :standard:", "update-latest" (for packages from PyPI), "upload"

Reported by: vbraun Owned by:
Priority: major Milestone: sage-9.2
Component: packages: optional Keywords:
Cc: Merged in:
Authors: Volker Braun Reviewers: Matthias Koeppe
Report Upstream: N/A Work issues:
Branch: u/mkoeppe/automatic_updates_of_pip_type_packages (Commits, GitHub, GitLab) Commit: a91ecab65c741c5305d4e4061e89e4da04a30aeb
Dependencies: #29890 Stopgaps:

Status badges

Description (last modified by vbraun)

For pip-type packages we can get version information automatically from PyPI. This new subcommand downloads the latest tarball and updates package-version.txt and checksums.ini in one go:

$ sage --package update-latest matplotlib
Updating matplotlib: 1.5.0 -> 1.5.1
Downloading tarball to /home/vbraun/Code/sage.git/upstream/matplotlib-1.5.1.tar.bz2
[......................................................................]

Change History (14)

comment:1 Changed 7 years ago by vbraun

Branch: u/vbraun/automatic_updates_of_pip_type_packages

comment:2 Changed 7 years ago by vbraun

Authors: Volker Braun
Commit: 55e6e027c9a77349634d94005e8dcab94e0893c3
Component: PLEASE CHANGEpackages: optional
Description: modified (diff)
Status: newneeds_review
Type: PLEASE CHANGEenhancement

New commits:

6852d4cUse argparse in sage_bootstrap
8a6c664Add sage --package download and fix-checksum
7332d26Fix and deprecate sage-fix-pkg-checksums
443cf39Correct helpstring
8fe1549Also test sage --package update
0d7bd01Merge #19984 into #20104
55e6e02Add sage --package update-latest command

comment:3 Changed 7 years ago by vbraun

Dependencies: #19984

comment:4 Changed 7 years ago by mkoeppe

Milestone: sage-7.1sage-7.3

needs rebase

comment:5 Changed 7 years ago by mkoeppe

Status: needs_reviewneeds_work

comment:6 Changed 3 years ago by mkoeppe

Branch: u/vbraun/automatic_updates_of_pip_type_packagesu/mkoeppe/automatic_updates_of_pip_type_packages

comment:7 Changed 3 years ago by mkoeppe

Commit: 55e6e027c9a77349634d94005e8dcab94e0893c394ec3c934e855a92b698f58ab169f0f29b8c9808

Rebased on 9.2.beta1, not tested


New commits:

94ec3c9Add sage --package update-latest command

comment:8 Changed 3 years ago by mkoeppe

Milestone: sage-7.3sage-9.2

comment:9 Changed 3 years ago by mkoeppe

Summary: Automatic updates of pip-type packagesAutomatic updates of packages from PyPI (sage --package update-latest), add command sage --package upload

comment:10 Changed 3 years ago by mkoeppe

Summary: Automatic updates of packages from PyPI (sage --package update-latest), add command sage --package uploadsage --package: Add commands "list :standard:", "update-latest" (for packages from PyPI), "upload"

comment:11 Changed 3 years ago by mkoeppe

Dependencies: #19984#19984, #29890

comment:12 Changed 3 years ago by git

Commit: 94ec3c934e855a92b698f58ab169f0f29b8c9808a91ecab65c741c5305d4e4061e89e4da04a30aeb

Branch pushed to git repo; I updated commit sha1. New commits:

cb7a291Fixup rebase
1d36a2ebuild/bin/sage-system-python: Try python first
a91ecabMerge branch 't/29890/build_bin_sage_system_python__try__python__first' into t/20104/automatic_updates_of_pip_type_packages

comment:13 Changed 3 years ago by mkoeppe

Dependencies: #19984, #29890#29890
Reviewers: Matthias Koeppe
Status: needs_workpositive_review

comment:14 Changed 3 years ago by mkoeppe

Resolution: fixed
Status: positive_reviewclosed

These have been merged into 9.2.beta4

Note: See TracTickets for help on using tickets.