-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow some commands to run without a board connected #68
Comments
The CircuitPython version is read from boot_out.txt. The version determines the bundle to query against. What are thoughts on adding a BOARDLESS_COMMANDS list and testing ctx.invoked_subcommand against that list. (Currently only show would be present.) The CPY_VERSION would be set to get_latest_release_from_url (currently 6.3.0, even with 7.0.0-alpha in flight) If a board is detected, use the version in boot_out.txt |
I think when I opened this we may only have supported one bundle, but regardless, I like both of your ideas. How about a PR and we try it? |
Submitted #121 for just the boardless show against the latest. I'm thinking a cleaner approach might be another subcommand. Maybe |
Modules are not versioned by Circuitpython version (currently), the CPY version is only used to chose the MPY format to install, or test if there is a new core update, it really doesn't matter otherwise. The show command would do the exact same thing, no matter what version you give, it always uses the The install command however requires a CPY version, I would like for
|
I see. After allowing 'show' to run without a board, I got a ValueError on CPY_VERSION and set it to latest to fix that. Took another peek at the code and see that the error was coming from the code block checking if the board version is older than latest. If that check is only performed when a device_path is specified/detected, there is no reason to set CPY_VERSION for the show command. I'll update the PR. I can take a shot at the Thanks for your patience. I'm relatively new to python and am just trying to give back to the community where I can. |
I don't know that there is a great source for actual version numbers, maybe get the release tags from the github API ? That might be slow (and rate limited - but that's unlikely to be an issue) though it could be cached.
Your involvement is welcome, I'm happy to see more activity on circup. |
I actually solved the problem for me. I keep my sources per project below
This allows me to update the libs on my PC. During development, I then use rsync to copy the contents of |
I didn't test every command, but I think this is fixed now. Should we close this? With no board connected... circup show adafruit_requests
Downloading latest version for adafruit/Adafruit_CircuitPython_Bundle.
[####################################] 100%
[####################################] 100%
[####################################] 100%
OK
adafruit_requests
1 shown of 396 packages.
circup --version
CircUp, A CircuitPython module updater. Version 1.1.4
circup install adafruit_requests
Could not find a connected CircuitPython device.
circup freeze
Could not find a connected CircuitPython device. |
Hi, currently the The backend( My use case is packaging all code and essential libraries to a tarball for redistribution. |
Have you seen my workaround posted above? #68 (comment) Your tar-command must then explicitly exclude the |
@bablokb Yeah I've read it. Thanks. It's just a strange thought in my mind for I have to generate/keep one |
True, I have it in all of my projects and in all of my |
Now that you can use
circup show <query>
to find things, it would be nice not to have to have a board attached to do so.The text was updated successfully, but these errors were encountered: