From d7125bb4f1770b358305959a0b8553f72ea47bd2 Mon Sep 17 00:00:00 2001 From: Earle Lowe <30607889+emlowe@users.noreply.github.com> Date: Mon, 13 Mar 2023 11:48:06 -0700 Subject: [PATCH 1/2] Update README.md Update readme to include some more directions on creating the venv and updating pip This matches more closely with instructions for chia-dev-tools --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 00e2e3a..4a09c32 100644 --- a/README.md +++ b/README.md @@ -3,9 +3,13 @@ ## Setup Instructions - Stop any running wallet/node instances: `chia stop -d all` -- Clone this repo, create/activate a new virtual environment +- Clone this repo, create/activate a new virtual environment and update pip. Note instructions for createing the python venv may vary depending on your OS ```bash git clone https://github.com/Chia-Network/chia-nft-minting-tool.git +cd chia-nft-minting-tool +python3 -m venv venv +source ./venv/bin/activate +pip install --upgrade pip ``` - Install chianft and the necessary chia-blockchain branch (make sure to include the '.' at the end): From 92eb32eb2afa3fd19ffad053375c69b3d5bb38fc Mon Sep 17 00:00:00 2001 From: Earle Lowe <30607889+emlowe@users.noreply.github.com> Date: Tue, 14 Mar 2023 11:31:56 -0700 Subject: [PATCH 2/2] Fix instructions for how to run the tests --- README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4a09c32..76296ca 100644 --- a/README.md +++ b/README.md @@ -83,7 +83,16 @@ Tests are located in the tests directory. To run them, make sure to install the pip install --extra-index https://pypi.chia.net/simple/ --editable .[dev] ``` -To run the tests use: +Then you need to setup the simulator, run the wallet, and create a DID: +``` +chia init +cdv sim create +export CHIA_ROOT=~/.chia/simulator/main/ +chia start wallet +chia wallet did create +``` + +Now, you can run the tests: ```bash pytest tests/test_mint.py ```