From 95b7a4950c396640df3ccd5cd3541bdf5f052544 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Wed, 14 Aug 2024 15:57:41 +0200 Subject: [PATCH 1/2] feat: upgrade to our latest version of pytezos --- pyproject.toml | 2 +- tests/unit/test_chain_tezos.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 409694cf..bd9d8b40 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -80,7 +80,7 @@ optional-dependencies.substrate = [ "substrate-interface", ] optional-dependencies.tezos = [ - "aleph-pytezos==0.1.1", + "aleph-pytezos==3.13.4", "pynacl", ] urls.Documentation = "https://aleph.im/" diff --git a/tests/unit/test_chain_tezos.py b/tests/unit/test_chain_tezos.py index 0beaffc9..96e52ca3 100644 --- a/tests/unit/test_chain_tezos.py +++ b/tests/unit/test_chain_tezos.py @@ -31,7 +31,7 @@ async def test_tezos_account(tezos_account: TezosAccount): message = Message("TEZOS", tezos_account.get_address(), "SomeType", "ItemHash") signed = await tezos_account.sign_message(asdict(message)) assert signed["signature"] - assert len(signed["signature"]) == 188 + assert len(signed["signature"]) == 187 address = tezos_account.get_address() assert address is not None @@ -40,7 +40,7 @@ async def test_tezos_account(tezos_account: TezosAccount): pubkey = tezos_account.get_public_key() assert isinstance(pubkey, str) - assert len(pubkey) == 55 + assert len(pubkey) == 54 @pytest.mark.asyncio From 183fde6583d4be5243311024709f7580c0c9cb2b Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Wed, 14 Aug 2024 16:50:04 +0200 Subject: [PATCH 2/2] ci: use python 3.12 as the reference version for tests --- .github/workflows/build-wheels.yml | 2 +- .github/workflows/pytest.yml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-wheels.yml b/.github/workflows/build-wheels.yml index 4e32a239..a3f3e845 100644 --- a/.github/workflows/build-wheels.yml +++ b/.github/workflows/build-wheels.yml @@ -27,7 +27,7 @@ jobs: if: startsWith(matrix.os, 'macos') uses: actions/setup-python@v2 with: - python-version: 3.11 + python-version: 3.12 - name: Cache dependencies uses: actions/cache@v4 diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index b4fecc57..0d0b3f20 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -16,7 +16,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: [ "3.9", "3.10", "3.11" ] + python-version: [ "3.9", "3.10", "3.11", "3.12" ] # An issue with secp256k1 prevents Python 3.12 from working # See https://github.com/baking-bad/pytezos/issues/370 runs-on: ubuntu-latest @@ -37,13 +37,13 @@ jobs: /tmp/venv/bin/pip freeze /tmp/venv/bin/hatch run testing:pip freeze /tmp/venv/bin/hatch run testing:test - if: matrix.python-version != '3.11' + if: matrix.python-version != '3.12' - run: /tmp/venv/bin/hatch run testing:cov - if: matrix.python-version == '3.11' + if: matrix.python-version == '3.12' - uses: codecov/codecov-action@v4.0.1 - if: matrix.python-version == '3.11' + if: matrix.python-version == '3.12' with: token: ${{ secrets.CODECOV_TOKEN }} slug: aleph-im/aleph-sdk-python