diff --git a/pyproject.toml b/pyproject.toml index fbe94434..7ec88f35 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,7 +25,7 @@ dependencies = [ "aiohttp>=3.8.3", "aleph-message>=0.4.8", "coincurve; python_version<\"3.11\"", - "coincurve>=19.0.0; python_version>=\"3.11\"", + "coincurve>=20.0.0; python_version>=\"3.11\"", "eth_abi>=4.0.0; python_version>=\"3.11\"", "eth_account>=0.4.0,<0.11.0", "jwcrypto==1.5.6", diff --git a/tests/test-ubuntu-24.04-docker.sh b/tests/test-ubuntu-24.04-docker.sh new file mode 100644 index 00000000..cae05d27 --- /dev/null +++ b/tests/test-ubuntu-24.04-docker.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +set -euo pipefail + +podman build -t aleph-sdk-ubuntu:24.04 -f tests/ubuntu-24.04.dockerfile . +podman run -ti --rm -v $(pwd):/mnt aleph-sdk-ubuntu:24.04 bash diff --git a/tests/ubuntu-24.04.dockerfile b/tests/ubuntu-24.04.dockerfile new file mode 100644 index 00000000..f74c5c1e --- /dev/null +++ b/tests/ubuntu-24.04.dockerfile @@ -0,0 +1,19 @@ +FROM ubuntu:24.04 + +RUN apt-get update && apt-get install -y \ + python3 \ + python3-pip \ + python3-venv \ + libsecp256k1-dev \ + git \ + && rm -rf /var/lib/apt/lists/* + +# Create a working virtual environment \ +RUN python3 -m venv /opt/venv +RUN /opt/venv/bin/python -m pip install --upgrade pip hatch + +WORKDIR /mnt +VOLUME /mnt + +# Make it easy to run the tests with the upper arrow +RUN echo "/opt/venv/bin/hatch run testing:test" >> /root/.bash_history