Open chabala opened 2 years ago
FYI : circup freeze
lists all the modules and versions currently on the board.
Note that the way freeze works is similar to pip freeze
, it is reasonable not to create a file by default in my opinion, but I get that the format is not as good to read as the tabulated list of list
.
On the other hand circup list
does not follow pip list
, and is specifically comparing versions, but I guess we could have something like a --all option. I like the idea of having circup help fully diagnose the status of the libraries.
Something like that maybe ?
Module Version Latest Update Status
------------------ -------- ------- --------------
adafruit_pixelbuf 1.1.5 1.1.5 Up To Date
neopixel 6.3.0 6.3.3 Minor Version
Further, if I remove all my modules and reinstall from requirements.txt, circup doesn't say what version is being installed
Well you could run freeze to look at the versions afterward, but we could add the version in the install verbose print, like it is in the update verbose print. Or since the verbose flag is really verbose, we can add it in the normal run of install and update. Something like that:
'adafruit_pixelbuf' (1.1.5) is already installed.
Installed 'neopixel' (6.3.3).
Update 'neopixel'? (6.3.2 to 6.3.3) [y/N]:
I too would like something akin to a circup list --all
or circup list --installed
.
The list command as defined right now only provides useful output if it finds out of date modules. If I want to see the list of installed modules and what versions they are, that isn't available. Using the
--verbose
flag doesn't help, but it does add a lot of noise.Further, if I remove all my modules and reinstall from requirements.txt, circup doesn't say what version is being installed, e.g. from README:
We assume it's the current version from the bundle, but it's difficult to verify.
Feature request: list should list all installed modules, and their versions; install should show version being installed.
I see also that freeze provides a list with versions. I find that counterintuitive, as I might expect freeze to have a side-effect like updating my requirement.txt, where I'd expect list to be purely informative.
Platform/operating system (i.e. Raspberry Pi with Raspbian operating system, Windows 32-bit, Windows 64-bit, Mac OSX 64-bit, etc.): Ubuntu 21.10 x86_64
Python version (run
python -version
orpython3 -version
): Python 3.9.7Error message you are receiving, including any Python exception traces:
$ circup --path CIRCUITPY list