-
Notifications
You must be signed in to change notification settings - Fork 26
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
Add requirements.txt and update readme in wheel #488
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,12 @@ | ||
The `chia_rs` wheel contains python bindings for code from the `chia` crate. | ||
|
||
To run the tests: | ||
``` | ||
cd wheel | ||
python -m venv venv | ||
. ./venv/bin/activate | ||
python -m pip install -r requirements.txt | ||
maturin develop | ||
python -m pytest ../tests | ||
``` | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Now, when you're doing development, you probably do want So to do development, I guess ideally what you want
The Also, for obvious reasons, I'm not happy with the This comment is very dense with information, so feel free to ask for clarification if I'm not being clear. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the python dependencies are all There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I guess you're talking about https://github.com/Chia-Network/chia_rs/blob/main/README.md#python-tests ? Looks good. It might be helpful to note in the README that this mechanism to run the tests is a hack that is necessary because the In any case, I think we can close this PR without merging it now. Thanks to @matt-o-how for bringing up this discussion. Prior to this, I hadn't internalized the cyclic dependency with |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
iniconfig>=2.0.0 | ||
maturin>=1.4.0 | ||
chia-blockchain>=2.1.4 | ||
packaging>=23.2 | ||
pluggy>=1.4.0 | ||
pytest>=8.0.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider instead
python -m pip install -e .
(for a "development install" which points to the python files in the repo rather than making a pristine own copy that can let you "try out" python changes without reinstalling) orpython -m pip install .
(to make a pristine own copy that ignore further repo changes).