From e28dcc31fa4a5bc3d7d9484195356d95b98d1bbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Eckel?= Date: Mon, 28 Nov 2022 14:11:07 +0100 Subject: [PATCH] adjusted to neweest transaction package MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jürgen Eckel --- Dockerfile | 1 - Dockerfile-all-in-one | 3 --- Dockerfile-dev | 3 +-- acceptance/python/Dockerfile | 2 -- integration/python/Dockerfile | 2 -- setup.py | 9 +-------- tests/assets/test_zenroom_signing.py | 4 ++-- 7 files changed, 4 insertions(+), 20 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3c2de9b..e7daeea 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,6 @@ RUN apt-get -qq update \ && apt-get -y upgrade \ && apt-get install -y jq vim zsh build-essential cmake\ && pip install . \ - && pip install pynacl==1.4.0 base58==2.1.1 pyasn1==0.4.8 zenroom==2.1.0.dev1655293214 cryptography==3.4.7\ && apt-get autoremove \ && apt-get clean diff --git a/Dockerfile-all-in-one b/Dockerfile-all-in-one index 44d6fb8..5c807a7 100644 --- a/Dockerfile-all-in-one +++ b/Dockerfile-all-in-one @@ -46,7 +46,4 @@ VOLUME /data/db /data/configdb /tendermint EXPOSE 27017 28017 9984 9985 26656 26657 26658 -RUN pip install pynacl==1.4.0 base58==2.1.1 pyasn1==0.4.8 zenroom==2.1.0.dev1655293214 cryptography==3.4.7 - - WORKDIR $HOME \ No newline at end of file diff --git a/Dockerfile-dev b/Dockerfile-dev index e4bd022..b9ccdd3 100644 --- a/Dockerfile-dev +++ b/Dockerfile-dev @@ -33,5 +33,4 @@ RUN mkdir -p /usr/src/app COPY . /usr/src/app/ WORKDIR /usr/src/app RUN pip install -e .[dev] -RUN pip install flask-cors -RUN pip install pynacl==1.4.0 base58==2.1.1 pyasn1==0.4.8 zenroom==2.1.0.dev1655293214 cryptography==3.4.7 \ No newline at end of file +RUN pip install flask-cors \ No newline at end of file diff --git a/acceptance/python/Dockerfile b/acceptance/python/Dockerfile index 8ddb3f4..67f053e 100644 --- a/acceptance/python/Dockerfile +++ b/acceptance/python/Dockerfile @@ -13,8 +13,6 @@ RUN pip install --upgrade \ pycco \ websocket-client~=0.47.0 \ pytest~=3.0 \ - planetmint-cryptoconditions>=0.10.0\ planetmint-driver>=0.9.2 \ blns -RUN pip install base58>=2.1.1 pynacl==1.4.0 zenroom==2.1.0.dev1655293214 pyasn1==0.4.8 cryptography==3.4.7 RUN pip install planetmint-ipld>=0.0.3 diff --git a/integration/python/Dockerfile b/integration/python/Dockerfile index c710550..77ac208 100644 --- a/integration/python/Dockerfile +++ b/integration/python/Dockerfile @@ -15,7 +15,5 @@ RUN pip install --upgrade \ pytest~=6.2.5 \ pycco \ websocket-client~=0.47.0 \ - planetmint-cryptoconditions>=0.10.0 \ planetmint-driver>=9.2.0 \ blns -RUN pip install base58 pynacl==1.4.0 zenroom==2.1.0.dev1655293214 pyasn1==0.4.8 cryptography==3.4.7 diff --git a/setup.py b/setup.py index aecfb9f..f41e21a 100644 --- a/setup.py +++ b/setup.py @@ -111,7 +111,6 @@ install_requires = [ "base58==2.1.1", "aiohttp==3.8.1", "abci==0.8.3", - "planetmint-cryptoconditions>=0.10.0", "flask-cors==3.0.10", "flask-restful==0.3.9", "flask==2.1.2", @@ -119,7 +118,6 @@ install_requires = [ "jsonschema==4.16.0", "logstats==0.3.0", "packaging>=20.9", - # TODO Consider not installing the db drivers, or putting them in extras. "pymongo==3.11.4", "tarantool==0.7.1", "python-rapidjson>=1.0", @@ -130,14 +128,9 @@ install_requires = [ "nest-asyncio==1.5.5", "protobuf==3.20.1", "planetmint-ipld>=0.0.3", - "pyasn1", - "zenroom==2.1.0.dev1655293214", - "base58>=2.1.0", - "PyNaCl==1.4.0", "pyasn1>=0.4.8", - "cryptography==3.4.7", "python-decouple", - "planetmint-transactions==0.2.0", + "planetmint-transactions>=0.2.2", ] setup( diff --git a/tests/assets/test_zenroom_signing.py b/tests/assets/test_zenroom_signing.py index 3711bc7..8b75677 100644 --- a/tests/assets/test_zenroom_signing.py +++ b/tests/assets/test_zenroom_signing.py @@ -3,7 +3,7 @@ import base58 from hashlib import sha3_256 from zenroom import zencode_exec -from cryptoconditions.types.zenroom import ZenroomSha256 +from planetmint_cryptoconditions.types.zenroom import ZenroomSha256 from transactions.common.crypto import generate_key_pair from ipld import multihash, marshal @@ -32,7 +32,7 @@ GENERATE_KEYPAIR = """Scenario 'ecdh': Create the keypair Given that I am known as 'Pippo' When I create the ecdh key When I create the bitcoin key - Then print data""" + Then print keyring""" INITIAL_STATE = {"also": "more data"} SCRIPT_INPUT = {