toxygen_wrapper/Makefile

59 lines
1.5 KiB
Makefile
Raw Normal View History

2024-02-02 03:14:37 +00:00
PREFIX=/usr/local
2024-02-05 13:11:36 +00:00
PYTHON_EXE_MSYS=${PREFIX}/bin/python3.sh
PIP_EXE_MSYS=${PREFIX}/bin/pip3.sh
2024-02-04 01:07:37 +00:00
iTEST_TIMEOUT=60
fSOCKET_TIMEOUT=15.0
2024-02-05 13:11:36 +00:00
PYTHON_MINOR=`python3 --version 2>&1 | sed -e 's@^.* @@' -e 's@\.[0-9]*$$@@'`
2023-12-15 14:24:07 +00:00
prepare::
bash .pylint.sh
check::
2024-02-02 03:14:37 +00:00
PYTHONPATH=$${PWD}/src pyanalyze \
2024-02-05 21:04:33 +00:00
src/toxygen_wrapper/tox.py src/toxygen_wrapper/tests/tests_wrapper.py \
2023-12-15 14:24:07 +00:00
> .pyanal.out 2>&1
install::
2024-02-05 13:11:36 +00:00
${PIP_EXE_MSYS} --python ${PYTHON_EXE_MSYS} install \
2024-02-17 20:33:51 +00:00
--no-deps --no-index --find-links=. \
2024-02-05 13:11:36 +00:00
--target ${PREFIX}/lib/python${PYTHON_MINOR}/site-packages/ \
--upgrade .
2024-02-02 03:14:37 +00:00
rsync::
bash .rsync.sh
2023-12-15 14:24:07 +00:00
2023-12-16 23:23:00 +00:00
help::
2024-02-02 03:14:37 +00:00
PYTHONPATH=$${PWD}/src \
2024-02-05 21:04:33 +00:00
$(PYTHON) src/toxygen_wrapper/tests/tests_wrapper.py --help
2023-12-16 23:23:00 +00:00
test::
2024-02-04 01:07:37 +00:00
test_direct::
2024-02-13 20:38:57 +00:00
cp -p ${HOME}/.config/tox/DHTnodes.json /tmp/toxygen_nodes.json||true
2024-02-02 03:14:37 +00:00
PYTHONPATH=$${PWD}/src \
2024-02-10 20:43:34 +00:00
TOR_CONTROLLER_PASSWORD=${PASS} \
2024-02-05 21:04:33 +00:00
sudo -u bin $(PYTHON_EXE_MSYS) src/toxygen_wrapper/tests/tests_wrapper.py \
2024-02-10 20:43:34 +00:00
--norequest=True \
2024-02-05 07:50:00 +00:00
--socket_timeout=10.0 \
2024-02-04 01:07:37 +00:00
--test_timeout=${iTEST_TIMEOUT} \
--nodes_json=/tmp/toxygen_nodes.json \
--udp_enabled=True \
2024-02-10 20:43:34 +00:00
--trace_enabled=False --loglevel=10
2024-02-04 01:07:37 +00:00
test_proxy::
PYTHONPATH=$${PWD}/src \
2024-02-10 20:43:34 +00:00
TOR_CONTROLLER_PASSWORD=${PASS} \
2024-02-05 21:04:33 +00:00
${PYTHON_EXE_MSYS} src/toxygen_wrapper/tests/tests_wrapper.py \
2024-02-10 20:43:34 +00:00
--norequest=True \
2024-02-05 07:50:00 +00:00
--socket_timeout=15.0 \
2024-02-04 01:07:37 +00:00
--test_timeout=${iTEST_TIMEOUT} \
--proxy_host=127.0.0.1 \
--proxy_port=9050 \
--proxy_type=2 \
--nodes_json=$$HOME/.config/tox/DHTnodes.json \
--trace_enabled=False --loglevel=10
2023-12-15 14:24:07 +00:00
clean::
2024-02-05 21:04:33 +00:00
rm -f .[a-z]*~ *~ */*~ */*/*~
2023-12-15 14:24:07 +00:00
rm -rf *.egg-info