Merge pull request #20 from kornpow/build/fix-tests
Fix tox build and tests
This commit is contained in:
commit
b19f776e68
1
.gitignore
vendored
1
.gitignore
vendored
@ -9,6 +9,7 @@ libbdkffi.dylib
|
||||
*.swp
|
||||
|
||||
src/bdkpython/bdk.py
|
||||
src/bdkpython/*.so
|
||||
*.whl
|
||||
build/
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
7
pyproject.toml
Normal file
@ -0,0 +1,7 @@
|
||||
[build-system]
|
||||
requires = ["setuptools", "wheel", "setuptools-rust"]
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
pythonpath = [
|
||||
"."
|
||||
]
|
2
requirements-dev.txt
Normal file
2
requirements-dev.txt
Normal file
@ -0,0 +1,2 @@
|
||||
pytest==7.1.2
|
||||
tox==3.25.1
|
12
tox.ini
12
tox.ini
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user