--- a/requirements.txt Fri Feb 28 16:53:33 2025 +0100
+++ b/requirements.txt Fri Feb 28 16:56:53 2025 +0100
@@ -1,42 +1,43 @@
asyncua @ git+https://github.com/FreeOpcUa/opcua-asyncio.git@98a64897a2d171653353de2f36d33085aef65e82
+autobahn @ git+https://github.com/crossbario/autobahn-python.git@7bc85b34e200640ab98a41cfddb38267f39bc92e
erpc @ git+https://git@github.com/beremiz/erpc.git@d8fff72b15274b5f2a8f7895d9bc5c91eef584ec#subdirectory=erpc_python
Nevow @ git+https://git@github.com/beremiz/nevow-py3.git@81c2eaeaaa20022540a98a3106f72e0199fbcc1b
python-dateutil==2.9.0.post0
sslpsk @ git+https://git@github.com/beremiz/sslpsk.git@9cb31986629b382f7427eec29ddc168ad21c7d7c
typing_extensions==4.12.2
--- a/requirements_latest.txt Fri Feb 28 16:53:33 2025 +0100
+++ b/requirements_latest.txt Fri Feb 28 16:56:53 2025 +0100
@@ -8,6 +8,7 @@
Nevow @ git+https://git@github.com/beremiz/nevow-py3.git@81c2eaeaaa20022540a98a3106f72e0199fbcc1b
sslpsk @ git+https://git@github.com/beremiz/sslpsk.git@9cb31986629b382f7427eec29ddc168ad21c7d7c
--- a/tests/tools/Docker/Dockerfile Fri Feb 28 16:53:33 2025 +0100
+++ b/tests/tools/Docker/Dockerfile Fri Feb 28 16:56:53 2025 +0100
@@ -85,17 +85,35 @@
RUN virtualenv ~/beremizenv
+# beremiz python requirements +# file is placed here by build_docker_image.sh COPY requirements.txt /home/$UNAME
-# beremiz python requirements
RUN ~/beremizenv/bin/pip install -r /home/$UNAME/requirements.txt
-# tests python requirements
-RUN ~/beremizenv/bin/pip install \
- pytest pytest-timeout ddt
-#TODO sslpsk posix_spawn
+# tests specific python requirements : pytest pytest-timeout ddt crossbar +## How to upgrade requirements and test requirements together: +# pip install -r beremiz/requirements_latest.txt +# pip freeze > beremiz/requirements.txt +# pip install pytest pytest-timeout ddt crossbar +# pip freeze > requirements_all.txt +# sort requirements_all.txt -o requirements_all_sorted.txt +# sort beremiz/requirements.txt -o requirements_sorted.txt +# comm -13 requirements_sorted.txt requirements_all_sorted.txt > beremiz/tests/tools/Docker/test_requirements.txt +# rm requirements_all.txt requirements_sorted.txt requirements_all_sorted.txt +COPY test_requirements.txt /home/$UNAME +RUN ~/beremizenv/bin/pip install -r /home/$UNAME/test_requirements.txt --no-deps +# - Mandatory because crossbar's dependencies are expressed with github url, +# targeting master branch or specific tags. This is not reproducable, and +# test has to be reproducible. +# - pip freeze generates dependencies pointing to particular commity hash, +# the way to go for reproducible test +# - because of broken crossbar requirements, 'pip install -r' fails meeting +# requirement expressed on a branch or tag with a commit hash based install cd /home/$UNAME && mkdir tessdata && \
wget -q https://github.com/tesseract-ocr/tessdata/archive/refs/tags/4.1.0.tar.gz \
@@ -108,4 +126,6 @@
# Points to python binary that test will use
ENV BEREMIZPYTHONPATH /home/$UNAME/beremizenv/bin/python
+# use venv python and installed command by default +ENV PATH="/home/$UNAME/beremizenv/bin:$PATH" --- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/tools/Docker/test_requirements.txt Fri Feb 28 16:56:53 2025 +0100
@@ -0,0 +1,130 @@
+argon2-cffi-bindings==21.2.0 +cfxdb @ git+https://github.com/crossbario/cfxdb.git@c54a8043865abb29726daf6565693265e8830e33 +charset-normalizer==3.4.1 +crossbar @ git+https://git@github.com/crossbario/crossbar.git@c1a78363866be39e9e624226980bbe2d90e9fd65 +importlib_resources==6.5.2 +jsonschema-specifications==2024.10.1 +py-cid @ git+https://github.com/crossbario/py-cid.git@e1dc52a43ced53845679405f78d92fb18f093653 +py-multihash @ git+https://github.com/crossbario/py-multihash.git@86b54b8f9f0cf14c7370f38ae32f2b4b14f5b5e0 +service-identity==24.2.0 +types-python-dateutil==2.9.0.20241206 +types-requests==2.31.0.6 +types-urllib3==1.26.25.14 +zlmdb @ git+https://github.com/crossbario/zlmdb.git@16270e41d5fadd2615cd735723cb629700fa12e8