Add Cloud Agent development environment config - #19
Draft
ZenulAbidin wants to merge 1 commit into
Draft
ZenulAbidin wants to merge 1 commit into
ZenulAbidin wants to merge 1 commit into
Conversation
Co-authored-by: Ali Sherief <ali@zenulabidin.com>
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.
Summary
Adds a
.cursor/environment.jsonso Cursor Cloud Agents get a ready-to-use development environment forzpywalletwith zero manual setup.The project is a pure-Python HD wallet library (no runtime services/daemons), so the environment only needs an
installphase — nostart/terminals.What the
installcommand does~/.local):python3 -m pip install --user --break-system-packages -r requirements-dev.txt(mirrors the CI step in.github/workflows/commit.yml).pip install -e .) soimport zpywalletworks from any directory.~/.local/bin(wheretox/pytest/flake8land) is onPATH, so the documented commands inAGENTS.md(tox,python -m pytest ...,tox -e flake8,tox -e docs) work verbatim.--user/--break-system-packagesis used because the Ubuntu 24.04 base image ships an externally-managed (PEP 668) Python; a globalsudo pipinstall collides with Debian-managed packages, and the repo already tracks a committed.venv, so the home-based user site keeps setup clean and repo-path independent.Validation
tox -e py312(pytest suite)tox -e flake8tox -e docs(Sphinx-W+ rstcheck)Notes
create_keypair()(acoincurve21.x API mismatch, unrelated to the environment) was noted but intentionally left out of scope.