Skip to content

Commit 80b6d22

Browse files
committed
Fix build with using Hatch
1 parent a6b7077 commit 80b6d22

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/build-wheels.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,23 +50,20 @@ jobs:
5050
sudo apt-get -y upgrade
5151
sudo apt-get install -y libsecp256k1-dev
5252
53-
- name: Install required Python packages
53+
- name: Install Hatch and activate Hatch shell
5454
run: |
55-
python3 -m pip install --upgrade build
56-
python3 -m pip install --user --upgrade twine
55+
python3 -m pip install --upgrade hatch
56+
python3 -m hatch shell
5757
5858
- name: Build source and wheel packages
5959
run: |
60-
python3 -m pip install .
61-
python3 -m build
60+
hatch build
6261
6362
- name: Install the Python wheel
6463
run: |
6564
python3 -m pip install dist/aleph_sdk_python-*.whl
6665
6766
- name: Import and use the package
68-
# macos tests fail this step because they use Python 3.11, which is not yet supported by our dependencies
69-
if: startsWith(matrix.os, 'ubuntu-')
7067
run: |
7168
python3 -c "import aleph.sdk"
7269
python3 -c "from aleph.sdk.chains.ethereum import get_fallback_account; get_fallback_account()"

0 commit comments

Comments
 (0)