Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: upgrade to our latest version of pytezos #148

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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/[email protected]
if: matrix.python-version == '3.11'
if: matrix.python-version == '3.12'
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: aleph-im/aleph-sdk-python
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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/"
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/test_chain_tezos.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
Loading