Skip to content

Commit

Permalink
ci: build wheels using poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
erichulburd committed Feb 19, 2025
1 parent dac2406 commit 2daf801
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ jobs:
- name: Check wheel installation
run: |
sudo apt update
pip install --upgrade pip
pip wheel . -w wheels
. scripts/ci_install_deps
poetry build -o wheels
- name: Build and Test
uses: docker/build-push-action@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,13 @@ numpy = "^1.25"
scipy = "^1.11"
rpcq = "^3.11.0"
networkx = ">=2.5"
qcs-sdk-python = ">=0.20.1, !=0.21.12"
# for some reason, qcs-sdk-python 0.21.12 wheel fails to install for Python 3.9 on
# Linux amd64 and Linux x86_64. For instance, see
# https://github.com/rigetti/pyquil/actions/runs/13418674041/job/37485778756?pr=1819
qcs-sdk-python = [
{ version = ">=0.20.1" },
{ version = ">=0.20.1, !=0.21.12", markers = "python_version == '3.9' and sys_platform == 'linux' and (platform_machine == 'x86_64' or platform_machine == 'amd64')" },
]
quil = ">=0.15.3"
packaging = "^23.1"
deprecated = "^1.2.14"
Expand Down
1 change: 1 addition & 0 deletions scripts/ci_install_deps
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env bash

pip instal --upgrade pip
curl -sSL https://install.python-poetry.org | POETRY_VERSION=1.6.1 python3 -
which poetry > /dev/null || export PATH=$PATH:$HOME/.local/bin
poetry --version
Expand Down

0 comments on commit 2daf801

Please sign in to comment.