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
|
*.swp
|
||||||
|
|
||||||
src/bdkpython/bdk.py
|
src/bdkpython/bdk.py
|
||||||
|
src/bdkpython/*.so
|
||||||
*.whl
|
*.whl
|
||||||
build/
|
build/
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -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
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
|
10
tox.ini
10
tox.ini
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user