2019-12-08 05:38:54 +01:00
|
|
|
.PHONY: install tools lint test idea
|
|
|
|
|
2019-06-20 21:26:54 +02:00
|
|
|
install:
|
2020-02-24 21:46:52 +01:00
|
|
|
pip install https://s3.amazonaws.com/files.lbry.io/python_libtorrent-1.2.4-py3-none-any.whl
|
2019-12-08 07:21:43 +01: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 23:45:04 +01:00
|
|
|
--global-option=fetch \
|
|
|
|
--global-option=--version --global-option=3.30.1 --global-option=--all \
|
|
|
|
--global-option=build --global-option=--enable --global-option=fts5
|
2020-01-01 00:57:48 +01:00
|
|
|
pip install -e .
|
2019-12-08 05:38:54 +01:00
|
|
|
|
|
|
|
tools:
|
2020-04-27 16:18:39 +02:00
|
|
|
pip install mypy==0.701 pylint==2.4.4
|
2019-06-21 17:39:35 +02:00
|
|
|
pip install coverage astroid pylint
|
2019-06-20 21:26:54 +02:00
|
|
|
|
|
|
|
lint:
|
2020-01-01 00:57:48 +01:00
|
|
|
pylint --rcfile=setup.cfg lbry
|
|
|
|
#mypy --ignore-missing-imports lbry
|
2019-06-21 17:26:58 +02:00
|
|
|
|
2019-06-26 08:54:54 +02:00
|
|
|
test:
|
2020-01-01 00:57:48 +01:00
|
|
|
tox
|
2019-06-26 08:54:54 +02:00
|
|
|
|
2019-06-21 17:26:58 +02:00
|
|
|
idea:
|
|
|
|
mkdir -p .idea
|
2020-01-01 00:57:48 +01:00
|
|
|
cp -r scripts/idea/* .idea
|