37 lines
878 B
Makefile
37 lines
878 B
Makefile
# to run the tests, run make PASS=controllerpassword test
|
|
|
|
PREFIX=/usr/local
|
|
PYTHON_EXE_MSYS=${PREFIX}/bin/python3.sh
|
|
PIP_EXE_MSYS=${PREFIX}/bin/pip3.sh
|
|
LOCAL_DOCTEST=${PREFIX}/bin/toxcore_run_doctest3.bash
|
|
DOCTEST=${LOCAL_DOCTEST}
|
|
MOD=phantompy
|
|
|
|
check::
|
|
sh ${PYTHON_EXE_MSYS} -c "import ${MOD}"
|
|
|
|
lint::
|
|
sh .pylint.sh
|
|
|
|
install::
|
|
PYTHONPATH=${PWD}/src \
|
|
${PIP_EXE_MSYS} install --target ${PREFIX}/lib/python3.11/site-packages/ --upgrade .
|
|
|
|
rsync::
|
|
bash .rsync.sh
|
|
|
|
install::
|
|
PYTHONPATH=${PWD}/src \
|
|
${PIP_EXE_MSYS} --timeout=30 --disable-pip-version-check --proxy http://127.0.0.1:9128 install --only-binary :none: --progress-bar=off --target /usr/local/lib/python3.11/site-packages --upgrade .
|
|
|
|
# execute these tests as: make test PASS=password
|
|
test::
|
|
|
|
doctest:
|
|
|
|
veryclean:: clean
|
|
rm -rf build dist __pycache__ .pylint.err .pylint.out
|
|
|
|
clean::
|
|
find . -name \*~ -delete
|