fix tox build and tests

Signed-off-by: Sam Korn <korn94sam@gmail.com>
This commit is contained in:
Sam Korn committed 2022-08-04 12:13:05 -06:00
1 parent d50e2a6832
commit 4396ebaa72
6 files changed
+28 -2

No files matched your search

+1
View File
@@ -9,6 +9,7 @@ libbdkffi.dylib
*.swp *.swp
src/bdkpython/bdk.py src/bdkpython/bdk.py
src/bdkpython/*.so
*.whl *.whl
build/ build/
+1
View File
@@ -20,6 +20,7 @@ The format is based on [Keep a Changelog], and this project adheres to [Semantic
- Add sqlite database support - Add sqlite database support
- Fix memory database configuration enum, remove junk field - Fix memory database configuration enum, remove junk field
- Remove hard coded sync progress value (was always returning 21.0) - Remove hard coded sync progress value (was always returning 21.0)
- Fix tests and tox build workflow
## [0.0.1-0.0.5] ## [0.0.1-0.0.5]
### Added ### Added
+9
View File
@@ -34,6 +34,15 @@ python3 setup.py --verbose bdist_wheel
``` ```
<br/> <br/>
## Run tox to build and test
```shell
# install dev requirements
pip install --requirement requirements-dev.txt
# build and test
tox
```
## Install locally ## Install locally
```shell ```shell
pip install ./dist/bdkpython-<yourversion>-py3-none-any.whl pip install ./dist/bdkpython-<yourversion>-py3-none-any.whl
+7
View File
@@ -0,0 +1,7 @@
[build-system]
requires = ["setuptools", "wheel", "setuptools-rust"]
[tool.pytest.ini_options]
pythonpath = [
"."
]
+2
View File
@@ -0,0 +1,2 @@
pytest==7.1.2
tox==3.25.1
+8 -2
View File
@@ -1,10 +1,16 @@
[tox] [tox]
envlist = envlist =
py38
py39 py39
[testenv] [testenv]
usedevelop=true
deps = deps =
pytest -rrequirements.txt
bdk -rrequirements-dev.txt
commands = commands =
python3 setup.py -v build
python3 setup.py -v install
pytest --verbose --override-ini console_output_style=count pytest --verbose --override-ini console_output_style=count
python3 setup.py --verbose bdist_wheel