Implement --local flag for deploy command#165
Merged
Merged
Conversation
virtuald
commented
Jun 14, 2026
| main_file = tmp_path / "robot.py" | ||
| main_file.write_text("print('robot')") | ||
|
|
||
| fake_installer = MagicMock() |
virtuald
force-pushed
the
local-deploy
branch
3 times, most recently
from
June 14, 2026 05:35
e273ffb to
d42a754
Compare
alan412
reviewed
Jun 18, 2026
alan412
left a comment
There was a problem hiding this comment.
I didn't review the code for correctness, but I can say that it works along with blocks for our use case.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In support of #164. This is 100% slop courtesy of GPT 5.5, but it works. Will need to do some refactoring.
This was tested with a venv on systemcore using Python 3.11. It expects a fully loaded robotpy cache on the robot. Run the following commands to create the cache:
robotpy installer download-python --cache-root /path/to/cacherobotpy installer download robotpy --cache-root /path/to/cacheCopy the
/path/to/cacheto/opt/blocks/cacheon systemcore.To perform a local deploy, as the systemcore user run
robotpy deploy --localon systemcore from the robot project's directory.