diff --git a/.github/workflows/benchmarks.yml b/.github/workflows/benchmarks.yml index d4a7402b3916..d19277fe3b39 100644 --- a/.github/workflows/benchmarks.yml +++ b/.github/workflows/benchmarks.yml @@ -56,7 +56,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.10"] + python-version: ["3.12"] env: CHIA_ROOT: ${{ github.workspace }}/.chia/mainnet BLOCKS_AND_PLOTS_VERSION: 0.44.0 @@ -73,6 +73,11 @@ jobs: with: fetch-depth: 0 + - name: Set up Python 3.12 + uses: Chia-Network/actions/setup-python@main + with: + python-version: "3.12" + - uses: chia-network/actions/cache-pip@main with: mode: poetry diff --git a/.github/workflows/build-linux-installer-deb.yml b/.github/workflows/build-linux-installer-deb.yml index df20dc18a52f..58b1e65c2440 100644 --- a/.github/workflows/build-linux-installer-deb.yml +++ b/.github/workflows/build-linux-installer-deb.yml @@ -52,7 +52,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.10"] + python-version: ["3.12"] os: - runs-on: ubuntu-latest arch: amd64 @@ -92,6 +92,11 @@ jobs: env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Set up Python 3.12 + uses: Chia-Network/actions/setup-python@quex.add_parametrizations_for_deb_rpm + with: + python-version: "3.12" + - name: Setup Node per .nvmrc in GUI uses: actions/setup-node@v5 with: @@ -207,7 +212,7 @@ jobs: fail-fast: false matrix: configuration: - - python-version: ["3.10"] + - python-version: ["3.12"] os: - matrix: debian file-type: diff --git a/.github/workflows/build-linux-installer-rpm.yml b/.github/workflows/build-linux-installer-rpm.yml index 7b11db217d0b..638da378b443 100644 --- a/.github/workflows/build-linux-installer-rpm.yml +++ b/.github/workflows/build-linux-installer-rpm.yml @@ -53,7 +53,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.10"] + python-version: ["3.12"] os: - arch-artifact-name: intel @@ -82,6 +82,11 @@ jobs: env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Set up Python 3.12 + uses: Chia-Network/actions/setup-python@quex.add_parametrizations_for_deb_rpm + with: + python-version: "3.12" + - name: Setup Node per .nvmrc in GUI uses: actions/setup-node@v5 with: @@ -206,7 +211,7 @@ jobs: fail-fast: false matrix: configuration: - - python-version: ["3.10"] + - python-version: ["3.12"] os: - matrix: redhat file-type: diff --git a/.github/workflows/build-macos-installers.yml b/.github/workflows/build-macos-installers.yml index 0ec86131e18b..1677d3e2586e 100644 --- a/.github/workflows/build-macos-installers.yml +++ b/.github/workflows/build-macos-installers.yml @@ -51,7 +51,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.10"] + python-version: ["3.12"] os: - runs-on: ${{ github.repository_owner == 'Chia-Network' && 'macos-13-intel' || 'macos-13' }} name: intel @@ -242,7 +242,7 @@ jobs: fail-fast: false matrix: configuration: - - python-version: ["3.10"] + - python-version: ["3.12"] os: - matrix: macos file-type: diff --git a/.github/workflows/build-windows-installer.yml b/.github/workflows/build-windows-installer.yml index ebe9a8c13ca3..e57b0ea8ded1 100644 --- a/.github/workflows/build-windows-installer.yml +++ b/.github/workflows/build-windows-installer.yml @@ -51,7 +51,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.10"] + python-version: ["3.12"] env: CHIA_INSTALLER_VERSION: ${{ needs.version.outputs.chia-installer-version }} @@ -263,7 +263,7 @@ jobs: fail-fast: false matrix: configuration: - - python-version: ["3.10"] + - python-version: ["3.12"] os: - matrix: windows file-type: diff --git a/.github/workflows/test-install-scripts.yml b/.github/workflows/test-install-scripts.yml index 1b279189cfab..45ce3d6be1e7 100644 --- a/.github/workflows/test-install-scripts.yml +++ b/.github/workflows/test-install-scripts.yml @@ -32,7 +32,7 @@ jobs: fail-fast: false matrix: python: - - major-dot-minor: "3.10" + - major-dot-minor: "3.12" os: - name: Linux emoji: 🐧 diff --git a/.github/workflows/test-single.yml b/.github/workflows/test-single.yml index 3582fc28df17..4dd85d0ec476 100644 --- a/.github/workflows/test-single.yml +++ b/.github/workflows/test-single.yml @@ -76,6 +76,9 @@ jobs: apt: "3.10" install_sh: "3.10" matrix: "3.10" + exclude_from: + limited: True + main: True - name: "3.11" file_name: "3.11" action: "3.11" @@ -87,15 +90,10 @@ jobs: main: True - name: "3.12" file_name: "3.12" - # TODO: https://github.com/python/cpython/issues/128479 - # return to just `3.12` after presumably 3.12.9 becomes available with the fix - action: "3.12.7" + action: "3.12" apt: "3.12" install_sh: "3.12" matrix: "3.12" - exclude_from: - limited: True - main: True exclude: - arch: matrix: arm diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 829eac8879f7..bbfd8df6ae9f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -89,7 +89,7 @@ jobs: - name: Setup Python environment uses: Chia-Network/actions/setup-python@main with: - python-version: "3.10" + python-version: "3.12" - name: Generate matrix configuration id: configure @@ -225,11 +225,11 @@ jobs: name: Ubuntu runs-on: ubuntu-latest python: - - name: "3.10" - action: "3.10" - apt: "3.10" - install_sh: "3.10" - matrix: "3.10" + - name: "3.12" + action: "3.12" + apt: "3.12" + install_sh: "3.12" + matrix: "3.12" steps: - uses: re-actors/alls-green@release/v1.2 diff --git a/.github/workflows/upload-pypi-source.yml b/.github/workflows/upload-pypi-source.yml index 980cddeced08..097fa32926b4 100644 --- a/.github/workflows/upload-pypi-source.yml +++ b/.github/workflows/upload-pypi-source.yml @@ -124,7 +124,7 @@ jobs: - name: Intel matrix: intel python: - - major_dot_minor: "3.10" + - major_dot_minor: "3.12" check: - name: ruff command: ruff format --check --diff . @@ -182,7 +182,7 @@ jobs: strategy: matrix: python: - - major_dot_minor: "3.10" + - major_dot_minor: "3.12" os: [ubuntu-latest] steps: diff --git a/install.sh b/install.sh index 61fe53da7bf7..436c07b72fd0 100755 --- a/install.sh +++ b/install.sh @@ -1,5 +1,4 @@ #!/usr/bin/env bash - set -o errexit USAGE_TEXT="\