Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

name: ci

Check warning on line 15 in .github/workflows/ci.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

excessive-permissions

ci.yml:15: overly broad permissions: default permissions used due to no permissions: block
on:
push:
branches:
Expand All @@ -23,17 +23,17 @@
branches:
- main
jobs:
build_dist:

Check warning on line 26 in .github/workflows/ci.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

excessive-permissions

ci.yml:26: overly broad permissions: default permissions used due to no permissions: block
runs-on: ${{ matrix.os_dist.os }}
strategy:
fail-fast: false
matrix:
os_dist: [
{os: ubuntu-24.04, dist: cp310-manylinux_x86_64},
{os: ubuntu-24.04, dist: cp311-manylinux_x86_64},
{os: ubuntu-24.04, dist: cp312-manylinux_x86_64},
{os: ubuntu-24.04, dist: cp313-manylinux_x86_64},
{os: ubuntu-24.04, dist: cp314-manylinux_x86_64},
{os: ubuntu-24.04, dist: cp315-manylinux_x86_64},

# manylinux_i686 disabled because scipy isn't prebuilt and fails to build.
#
Expand Down Expand Up @@ -67,17 +67,17 @@
# {os: ubuntu-latest, dist: cp310-musllinux_x86_64},
# {os: ubuntu-latest, dist: cp310-musllinux_i686},

{os: macos-14, dist: cp310-macosx_x86_64, macosarch: x86_64},
{os: macos-14, dist: cp311-macosx_x86_64, macosarch: x86_64},
{os: macos-14, dist: cp312-macosx_x86_64, macosarch: x86_64},
{os: macos-14, dist: cp313-macosx_x86_64, macosarch: x86_64},
{os: macos-14, dist: cp314-macosx_x86_64, macosarch: x86_64},
{os: macos-14, dist: cp315-macosx_x86_64, macosarch: x86_64},

{os: macos-14, dist: cp310-macosx_arm64, macosarch: arm64},
{os: macos-14, dist: cp311-macosx_arm64, macosarch: arm64},
{os: macos-14, dist: cp312-macosx_arm64, macosarch: arm64},
{os: macos-14, dist: cp313-macosx_arm64, macosarch: arm64},
{os: macos-14, dist: cp314-macosx_arm64, macosarch: arm64},
{os: macos-14, dist: cp315-macosx_arm64, macosarch: arm64},

# pypy OSX builds disabled because numpy isn't prebuilt and fails to build.
#
Expand All @@ -92,11 +92,11 @@
#
# {os: macOS-10.15, dist: pp39-macosx_x86_64},

{os: windows-2025, dist: cp310-win_amd64},
{os: windows-2025, dist: cp311-win_amd64},
{os: windows-2025, dist: cp312-win_amd64},
{os: windows-2025, dist: cp313-win_amd64},
{os: windows-2025, dist: cp314-win_amd64},
{os: windows-2025, dist: cp315-win_amd64},

# cp310-win32 disabled because numpy isn't prebuilt and fails to build.
#
Expand All @@ -115,14 +115,14 @@
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- uses: actions/setup-python@3542bca2639a428e1796aaa6a2ffef0c0f575566 # v3
- run: python dev/overwrite_dev_versions_with_date.py
- run: python -m pip install pybind11~=2.11.1 cibuildwheel~=3.3.1 setuptools wheel
- run: python -m pip install pybind11~=2.11.1 cibuildwheel~=4.3.4 setuptools wheel
- run: python -m cibuildwheel --print-build-identifiers
- run: python -m cibuildwheel --output-dir dist
- uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
with:
name: "dist-stim-${{ matrix.os_dist.os }}-${{ matrix.os_dist.dist }}-${{ matrix.os_dist.macosarch }}"
path: dist/*
build_sdist:

Check warning on line 125 in .github/workflows/ci.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

excessive-permissions

ci.yml:125: overly broad permissions: default permissions used due to no permissions: block
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
Expand Down Expand Up @@ -165,15 +165,15 @@
with:
name: "dist-stim-sdist"
path: dist/*.tar.gz
check_sdist_installs_stim:

Check warning on line 168 in .github/workflows/ci.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

excessive-permissions

ci.yml:168: overly broad permissions: default permissions used due to no permissions: block
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- uses: actions/setup-python@3542bca2639a428e1796aaa6a2ffef0c0f575566 # v3
- run: python -m pip install pybind11~=2.11.1 cibuildwheel~=3.3.1 setuptools wheel
- run: python -m pip install pybind11~=2.11.1 cibuildwheel~=4.3.4 setuptools wheel
- run: python setup.py sdist
- run: pip install dist/*.tar.gz
check_sdist_installs_sinter:

Check warning on line 176 in .github/workflows/ci.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

excessive-permissions

ci.yml:176: overly broad permissions: default permissions used due to no permissions: block
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
Expand All @@ -182,7 +182,7 @@
- run: cd glue/sample && python setup.py sdist
- run: pip install glue/sample/dist/*
- run: python -c "import sinter"
check_sdist_installs_stimflow:

Check warning on line 185 in .github/workflows/ci.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

excessive-permissions

ci.yml:185: overly broad permissions: default permissions used due to no permissions: block
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
Expand All @@ -191,7 +191,7 @@
- run: cd glue/stimflow && python setup.py sdist
- run: pip install glue/stimflow/dist/*
- run: python -c "import stimflow"
merge_upload_artifacts:

Check warning on line 194 in .github/workflows/ci.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

excessive-permissions

ci.yml:194: overly broad permissions: default permissions used due to no permissions: block
needs: ["build_dist", "build_sdist"]
runs-on: ubuntu-24.04
steps:
Expand All @@ -200,7 +200,7 @@
with:
name: dist-stim
pattern: dist-stim-*
upload_dev_release_to_pypi:

Check warning on line 203 in .github/workflows/ci.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

excessive-permissions

ci.yml:203: overly broad permissions: default permissions used due to no permissions: block
needs: ["merge_upload_artifacts"]
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-24.04
Expand All @@ -221,34 +221,34 @@
with:
name: dist-stimflow
path: dist-stimflow
- uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # release/v1

Check failure on line 224 in .github/workflows/ci.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/known-vulnerable-actions

action has a known vulnerability: GHSA-vxmw-7h4f-hqxh

Check failure on line 224 in .github/workflows/ci.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

known-vulnerable-actions

ci.yml:224: action has a known vulnerability: GHSA-vxmw-7h4f-hqxh

Check notice on line 224 in .github/workflows/ci.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

use-trusted-publishing

ci.yml:224: prefer trusted publishing for authentication: this step
with:
user: __token__
packages_dir: dist-stim
password: ${{ secrets.pypi_token_stim }}
- uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # release/v1

Check failure on line 229 in .github/workflows/ci.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/known-vulnerable-actions

action has a known vulnerability: GHSA-vxmw-7h4f-hqxh

Check failure on line 229 in .github/workflows/ci.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

known-vulnerable-actions

ci.yml:229: action has a known vulnerability: GHSA-vxmw-7h4f-hqxh

Check notice on line 229 in .github/workflows/ci.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

use-trusted-publishing

ci.yml:229: prefer trusted publishing for authentication: this step
with:
user: __token__
packages_dir: dist-stimcirq
password: ${{ secrets.pypi_token_stimcirq }}
- uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # release/v1

Check failure on line 234 in .github/workflows/ci.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/known-vulnerable-actions

action has a known vulnerability: GHSA-vxmw-7h4f-hqxh

Check failure on line 234 in .github/workflows/ci.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

known-vulnerable-actions

ci.yml:234: action has a known vulnerability: GHSA-vxmw-7h4f-hqxh

Check notice on line 234 in .github/workflows/ci.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

use-trusted-publishing

ci.yml:234: prefer trusted publishing for authentication: this step
with:
user: __token__
packages_dir: dist-sinter
password: ${{ secrets.pypi_token_sinter }}
- uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # release/v1

Check failure on line 239 in .github/workflows/ci.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

zizmor/known-vulnerable-actions

action has a known vulnerability: GHSA-vxmw-7h4f-hqxh

Check failure on line 239 in .github/workflows/ci.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

known-vulnerable-actions

ci.yml:239: action has a known vulnerability: GHSA-vxmw-7h4f-hqxh

Check notice on line 239 in .github/workflows/ci.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

use-trusted-publishing

ci.yml:239: prefer trusted publishing for authentication: this step
with:
user: __token__
packages_dir: dist-stimflow
password: ${{ secrets.pypi_token_stimflow }}
run_main:

Check warning on line 244 in .github/workflows/ci.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

excessive-permissions

ci.yml:244: overly broad permissions: default permissions used due to no permissions: block
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e # v1
- run: cmake .
- run: make stim -j 2
- run: echo -e "H 0 \n CNOT 0 1 \n M 0 1" | out/stim --sample
build_bazel:

Check warning on line 251 in .github/workflows/ci.yml

View workflow job for this annotation

GitHub Actions / zizmor-output

excessive-permissions

ci.yml:251: overly broad permissions: default permissions used due to no permissions: block
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@50fbc622fc4ef5163becd7fab6573eac35f8462e # v1
Expand Down
2 changes: 1 addition & 1 deletion doc/developer_documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ sudo perf report

## <a name="venv"></a>Creating a python dev environment

First, create a fresh python 3.6+ virtual environment using your favorite
First, create a fresh python 3.11+ virtual environment using your favorite
method:
[`python -m venv`](https://docs.python.org/3/library/venv.html),
[`virtualenvwrapper`](https://virtualenvwrapper.readthedocs.io/en/latest/),
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def _get_extensions():
long_description=long_description,
long_description_content_type='text/markdown',
ext_modules=_get_extensions(),
python_requires='>=3.6.0',
python_requires='>=3.11',
Comment thread
Strilanc marked this conversation as resolved.
Resolved
packages=['stim'],
package_dir={'stim': 'glue/python/src/stim'},
package_data={'': [*HEADER_FILES, 'glue/python/src/stim/__init__.pyi', 'glue/python/README.md', 'pyproject.toml']},
Expand Down
Loading