devpi list -v doesn't show all the available packages versions
![](https://secure.gravatar.com/avatar/fb28b3e094353d3054c1cbb80279da1d.jpg?s=120&d=mm&r=g)
Hello everybody, I'm using devpi-server to upload multiple versions the same package. I wanted to create an script that uploads the versions of the packages that are not present, so it will run really fast if the cache is already up to date. I tried using 'devpi list -v' to check the available versions but it only shows the latest. When I try to delete the package, it shows what I need. If this is the intended behavior, it's very confusing. Any help on this matter will be ver appreciated. ------------------------------------------------------------------------------------------------------------------------------------ (env)[devpi@s0m3s3rv3r-203 wheels2]$ devpi list -v | grep numpy (env)[devpi@s0m3s3rv3r-203 wheels2]$ ls -al numpy-1.* -rw-rw-r-- 1 devpi devpi 16499335 Mar 30 18:46 numpy-1.12.1-cp27-cp27mu-manylinux1_x86_64.whl -rw-rw-r-- 1 devpi devpi 14700818 Mar 30 18:46 numpy-1.9.0-cp27-cp27mu-manylinux1_x86_64.whl -rw-rw-r-- 1 devpi devpi 14711385 Mar 30 18:46 numpy-1.9.1-cp27-cp27mu-manylinux1_x86_64.whl -rw-rw-r-- 1 devpi devpi 14735595 Mar 30 18:45 numpy-1.9.2-cp27-cp27mu-manylinux1_x86_64.whl (env)[devpi@s0m3s3rv3r-203 wheels2]$ devpi upload numpy-1.* register numpy-1.9.2 to http://localhost:3141/root/prod/ file_upload of numpy-1.9.2-cp27-cp27mu-manylinux1_x86_64.whl to http://localhost:3141/root/prod/ register numpy-1.12.1 to http://localhost:3141/root/prod/ file_upload of numpy-1.12.1-cp27-cp27mu-manylinux1_x86_64.whl to http://localhost:3141/root/prod/ register numpy-1.9.0 to http://localhost:3141/root/prod/ file_upload of numpy-1.9.0-cp27-cp27mu-manylinux1_x86_64.whl to http://localhost:3141/root/prod/ register numpy-1.9.1 to http://localhost:3141/root/prod/ file_upload of numpy-1.9.1-cp27-cp27mu-manylinux1_x86_64.whl to http://localhost:3141/root/prod/ (env)[devpi@s0m3s3rv3r-203 wheels2]$ devpi list -v | grep numpy numpy-1.12.1 (env)[devpi@s0m3s3rv3r-203 wheels2]$ devpi remove numpy -y About to remove the following releases and distributions version: 1.9.1 - http://localhost:3141/root/prod/+f/74c/b491e6a11e843/numpy-1.9.1-cp27-cp27mu... version: 1.9.0 - http://localhost:3141/root/prod/+f/ff6/4c4a6d588ebac/numpy-1.9.0-cp27-cp27mu... version: 1.9.2 - http://localhost:3141/root/prod/+f/425/cc2d1f8326e28/numpy-1.9.2-cp27-cp27mu... version: 1.12.1 - http://localhost:3141/root/prod/+f/cd7/892f7d644d1b4/numpy-1.12.1-cp27-cp27m... Are you sure (yes/no)? yes (autoset from -y option) deleting release 1.9.1 of numpy deleting release 1.9.0 of numpy deleting release 1.9.2 of numpy deleting release 1.12.1 of numpy (env)[devpi@s0m3s3rv3r-203 wheels2]$ devpi --version devpi-client 2.7.0 ------------------------------------------------------------------------------------------------------------------------------------ Thanks in advance, Alfredo
![](https://secure.gravatar.com/avatar/7f1a0b5a9424e7a2293b96dd89477cda.jpg?s=120&d=mm&r=g)
On Thu, Mar 30, 2017 at 20:55 -0000, Alfredo Cambera wrote:
Hello everybody,
I'm using devpi-server to upload multiple versions the same package. I wanted to create an script that uploads the versions of the packages that are not present, so it will run really fast if the cache is already up to date.
I tried using 'devpi list -v' to check the available versions but it only shows the latest. When I try to delete the package, it shows what I need.
did you try "devpi list -v --all" to see if it better fits your purposes? holger
If this is the intended behavior, it's very confusing. Any help on this matter will be ver appreciated.
------------------------------------------------------------------------------------------------------------------------------------ (env)[devpi@s0m3s3rv3r-203 wheels2]$ devpi list -v | grep numpy (env)[devpi@s0m3s3rv3r-203 wheels2]$ ls -al numpy-1.* -rw-rw-r-- 1 devpi devpi 16499335 Mar 30 18:46 numpy-1.12.1-cp27-cp27mu-manylinux1_x86_64.whl -rw-rw-r-- 1 devpi devpi 14700818 Mar 30 18:46 numpy-1.9.0-cp27-cp27mu-manylinux1_x86_64.whl -rw-rw-r-- 1 devpi devpi 14711385 Mar 30 18:46 numpy-1.9.1-cp27-cp27mu-manylinux1_x86_64.whl -rw-rw-r-- 1 devpi devpi 14735595 Mar 30 18:45 numpy-1.9.2-cp27-cp27mu-manylinux1_x86_64.whl (env)[devpi@s0m3s3rv3r-203 wheels2]$ devpi upload numpy-1.* register numpy-1.9.2 to http://localhost:3141/root/prod/ file_upload of numpy-1.9.2-cp27-cp27mu-manylinux1_x86_64.whl to http://localhost:3141/root/prod/ register numpy-1.12.1 to http://localhost:3141/root/prod/ file_upload of numpy-1.12.1-cp27-cp27mu-manylinux1_x86_64.whl to http://localhost:3141/root/prod/ register numpy-1.9.0 to http://localhost:3141/root/prod/ file_upload of numpy-1.9.0-cp27-cp27mu-manylinux1_x86_64.whl to http://localhost:3141/root/prod/ register numpy-1.9.1 to http://localhost:3141/root/prod/ file_upload of numpy-1.9.1-cp27-cp27mu-manylinux1_x86_64.whl to http://localhost:3141/root/prod/ (env)[devpi@s0m3s3rv3r-203 wheels2]$ devpi list -v | grep numpy numpy-1.12.1 (env)[devpi@s0m3s3rv3r-203 wheels2]$ devpi remove numpy -y About to remove the following releases and distributions version: 1.9.1 - http://localhost:3141/root/prod/+f/74c/b491e6a11e843/numpy-1.9.1-cp27-cp27mu... version: 1.9.0 - http://localhost:3141/root/prod/+f/ff6/4c4a6d588ebac/numpy-1.9.0-cp27-cp27mu... version: 1.9.2 - http://localhost:3141/root/prod/+f/425/cc2d1f8326e28/numpy-1.9.2-cp27-cp27mu... version: 1.12.1 - http://localhost:3141/root/prod/+f/cd7/892f7d644d1b4/numpy-1.12.1-cp27-cp27m... Are you sure (yes/no)? yes (autoset from -y option) deleting release 1.9.1 of numpy deleting release 1.9.0 of numpy deleting release 1.9.2 of numpy deleting release 1.12.1 of numpy (env)[devpi@s0m3s3rv3r-203 wheels2]$ devpi --version devpi-client 2.7.0
------------------------------------------------------------------------------------------------------------------------------------
Thanks in advance,
Alfredo _______________________________________________ devpi-dev mailing list devpi-dev@python.org https://mail.python.org/mm3/mailman3/lists/devpi-dev.python.org/
![](https://secure.gravatar.com/avatar/fb28b3e094353d3054c1cbb80279da1d.jpg?s=120&d=mm&r=g)
Hello Holger, Thanks for your suggestion. I tried it but I got the same results: ---------------------------------------------------------------------------------------------------------------------------- (env)[devpi@li840-203 wheels2]$ devpi list -v --all |grep numpy numpy-1.12.1 (env)[devpi@li840-203 wheels2]$ devpi remove numpy -y About to remove the following releases and distributions version: 1.9.1 - http://localhost:3141/root/prod/+f/74c/b491e6a11e843/numpy-1.9.1-cp27-cp27mu... version: 1.9.0 - http://localhost:3141/root/prod/+f/ff6/4c4a6d588ebac/numpy-1.9.0-cp27-cp27mu... version: 1.9.2 - http://localhost:3141/root/prod/+f/425/cc2d1f8326e28/numpy-1.9.2-cp27-cp27mu... version: 1.12.1 - http://localhost:3141/root/prod/+f/cd7/892f7d644d1b4/numpy-1.12.1-cp27-cp27m... Are you sure (yes/no)? yes (autoset from -y option) deleting release 1.9.1 of numpy deleting release 1.9.0 of numpy deleting release 1.9.2 of numpy deleting release 1.12.1 of numpy ---------------------------------------------------------------------------------------------------------------------------- I think the default behavior should be to list all the versions of the packages, this is much more intuitive. In my opinion, showing the latest versions should be configured by a parameter. Greetings,
participants (2)
-
Alfredo Cambera
-
holger krekel