Merge pull request #20 from kornpow/build/fix-tests

Fix tox build and tests
This commit is contained in:
thunderbiscuit 2022-08-04 15:12:47 -04:00 committed by GitHub
commit b19f776e68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 29 additions and 3 deletions

1
.gitignore vendored
View File

@ -9,6 +9,7 @@ libbdkffi.dylib
*.swp
src/bdkpython/bdk.py
src/bdkpython/*.so
*.whl
build/

View File

@ -20,6 +20,7 @@ The format is based on [Keep a Changelog], and this project adheres to [Semantic
- Add sqlite database support
- Fix memory database configuration enum, remove junk field
- Remove hard coded sync progress value (was always returning 21.0)
- Fix tests and tox build workflow
## [0.0.1-0.0.5]
### Added

View File

@ -34,6 +34,15 @@ python3 setup.py --verbose bdist_wheel
```
<br/>
## Run tox to build and test
```shell
# install dev requirements
pip install --requirement requirements-dev.txt
# build and test
tox
```
## Install locally
```shell
pip install ./dist/bdkpython-<yourversion>-py3-none-any.whl

7
pyproject.toml Normal file
View File

@ -0,0 +1,7 @@
[build-system]
requires = ["setuptools", "wheel", "setuptools-rust"]
[tool.pytest.ini_options]
pythonpath = [
"."
]

2
requirements-dev.txt Normal file
View File

@ -0,0 +1,2 @@
pytest==7.1.2
tox==3.25.1

12
tox.ini
View File

@ -1,10 +1,16 @@
[tox]
envlist =
py38
py39
[testenv]
deps =
pytest
bdk
usedevelop=true
deps =
-rrequirements.txt
-rrequirements-dev.txt
commands =
python3 setup.py -v build
python3 setup.py -v install
pytest --verbose --override-ini console_output_style=count
python3 setup.py --verbose bdist_wheel