2021-04-20 15:41:09 -04:00
|
|
|
.PHONY: install tools lint test test-unit test-unit-coverage test-integration idea
|
2019-12-07 23:38:54 -05:00
|
|
|
|
2019-06-20 15:26:54 -04:00
|
|
|
install:
|
2020-02-24 17:46:52 -03:00
|
|
|
pip install https://s3.amazonaws.com/files.lbry.io/python_libtorrent-1.2.4-py3-none-any.whl
|
2019-12-08 03:21:43 -03:00
|
|
|
CFLAGS="-DSQLITE_MAX_VARIABLE_NUMBER=2500000" pip install -U https://github.com/rogerbinns/apsw/releases/download/3.30.1-r1/apsw-3.30.1-r1.zip \
|
2019-12-07 17:45:04 -05:00
|
|
|
--global-option=fetch \
|
|
|
|
--global-option=--version --global-option=3.30.1 --global-option=--all \
|
|
|
|
--global-option=build --global-option=--enable --global-option=fts5
|
2019-12-31 18:57:48 -05:00
|
|
|
pip install -e .
|
2019-12-07 23:38:54 -05:00
|
|
|
|
|
|
|
tools:
|
2020-04-27 10:18:39 -04:00
|
|
|
pip install mypy==0.701 pylint==2.4.4
|
2019-06-21 11:39:35 -04:00
|
|
|
pip install coverage astroid pylint
|
2019-06-20 15:26:54 -04:00
|
|
|
|
|
|
|
lint:
|
2019-12-31 18:57:48 -05:00
|
|
|
pylint --rcfile=setup.cfg lbry
|
|
|
|
#mypy --ignore-missing-imports lbry
|
2019-06-21 11:26:58 -04:00
|
|
|
|
2021-04-20 15:41:09 -04:00
|
|
|
test: test-unit test-integration
|
|
|
|
|
|
|
|
test-unit:
|
|
|
|
python -m unittest discover tests.unit
|
|
|
|
|
|
|
|
test-unit-coverage:
|
|
|
|
coverage run -p --source=lbry -m unittest discover -vv tests.unit
|
|
|
|
|
|
|
|
test-integration:
|
2019-12-31 18:57:48 -05:00
|
|
|
tox
|
2019-06-26 03:54:54 -03:00
|
|
|
|
2019-06-21 11:26:58 -04:00
|
|
|
idea:
|
|
|
|
mkdir -p .idea
|
2019-12-31 18:57:48 -05:00
|
|
|
cp -r scripts/idea/* .idea
|