Skip to content

Commit

Permalink
Fix build with using Hatch
Browse files Browse the repository at this point in the history
  • Loading branch information
MHHukiewitz committed Apr 8, 2024
1 parent a6b7077 commit 80b6d22
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,23 +50,20 @@ jobs:
sudo apt-get -y upgrade
sudo apt-get install -y libsecp256k1-dev
- name: Install required Python packages
- name: Install Hatch and activate Hatch shell
run: |
python3 -m pip install --upgrade build
python3 -m pip install --user --upgrade twine
python3 -m pip install --upgrade hatch
python3 -m hatch shell
- name: Build source and wheel packages
run: |
python3 -m pip install .
python3 -m build
hatch build
- name: Install the Python wheel
run: |
python3 -m pip install dist/aleph_sdk_python-*.whl
- name: Import and use the package
# macos tests fail this step because they use Python 3.11, which is not yet supported by our dependencies
if: startsWith(matrix.os, 'ubuntu-')
run: |
python3 -c "import aleph.sdk"
python3 -c "from aleph.sdk.chains.ethereum import get_fallback_account; get_fallback_account()"

0 comments on commit 80b6d22

Please sign in to comment.