Fix Python readme and integrate new scripts

This commit is contained in:
thunderbiscuit 2023-06-30 16:18:27 -04:00
parent 7cc08f1d6f
commit dc79b78b2d
No known key found for this signature in database
GPG Key ID: 88253696EB836462

View File

@ -12,9 +12,9 @@ pip install bdkpython
## Run the tests ## Run the tests
```shell ```shell
pip install --requirement requirements.txt pip install --requirement requirements.txt
bash ./generate.sh bash ./scripts/generate-linux.sh # here you should run the script appropriate for your platform
python setup.py bdist_wheel --verbose python setup.py bdist_wheel --verbose
pip install ./dist/bdkpython-<yourversion>-py3-none-any.whl --force-reinstall pip install ./dist/bdkpython-<yourversion>.whl --force-reinstall
python -m unittest --verbose tests/test_bdk.py python -m unittest --verbose tests/test_bdk.py
``` ```
@ -23,26 +23,14 @@ python -m unittest --verbose tests/test_bdk.py
# Install dependencies # Install dependencies
pip install --requirement requirements.txt pip install --requirement requirements.txt
# Generate the bindings # Generate the bindings (use the script appropriate for your platform)
bash generate.sh bash ./scripts/generate-linux.sh
# Build the wheel # Build the wheel
python setup.py --verbose bdist_wheel python setup.py --verbose bdist_wheel
``` ```
## Run tox to build and test locally
```shell
# install dev requirements
pip install --requirement requirements-dev.txt
# build bindings glue code (located at ./src/bdkpython/bdk.py)
source ./generate.sh
# build and test
tox -vv
```
## Install locally ## Install locally
```shell ```shell
pip install ./dist/bdkpython-<yourversion>-py3-none-any.whl pip install ./dist/bdkpython-<yourversion>.whl
``` ```