Skip to content
Merged
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
5 changes: 2 additions & 3 deletions .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 Expand Up @@ -64,9 +64,8 @@ jobs:
run: |
/tmp/venv/bin/python3 -m pip install dist/aleph_sdk_python-*.whl

- name: Install `setuptools` on systems where it is missing by default
- name: Install/upgrade `setuptools`
run: /tmp/venv/bin/python3 -m pip install --upgrade setuptools
if: matrix.os == 'ubuntu-24.04'

- name: Import and use the package
run: |
Expand Down
14 changes: 6 additions & 8 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,19 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [ "3.9", "3.10", "3.11" ]
# An issue with secp256k1 prevents Python 3.12 from working
# See https://github.com/baking-bad/pytezos/issues/370
runs-on: ubuntu-latest
python-version: [ "3.9", "3.10", "3.11", "3.12" ]
os: [ubuntu-22.04, ubuntu-24.04]
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- run: sudo apt-get install -y python3-pip libsecp256k1-dev
- run: |
sudo apt-get update
sudo apt-get install -y python3-pip libsodium-dev

- run: |
python3 -m venv /tmp/venv
Expand All @@ -37,13 +38,10 @@ 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'

- run: /tmp/venv/bin/hatch run testing:cov
if: matrix.python-version == '3.11'

- uses: codecov/[email protected]
if: matrix.python-version == '3.11'
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