Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Python 3.9 to macos-14 #9258

Closed
3 of 14 tasks
hugovk opened this issue Jan 30, 2024 · 1 comment
Closed
3 of 14 tasks

Add Python 3.9 to macos-14 #9258

hugovk opened this issue Jan 30, 2024 · 1 comment

Comments

@hugovk
Copy link
Contributor

hugovk commented Jan 30, 2024

Tool name

Python

Tool license

PSF License

Add or update?

  • Add
  • Update

Desired version

3.9.13

Approximate size

No response

Brief description of tool

Python 3.9.1 was the first to support Apple Silicon: https://www.python.org/downloads/release/python-391/

Edit: Python 3.8.10 also supports Apple Silicon: https://www.python.org/downloads/release/python-3810/

Python 3.10-3.13 are already available for macos-14, but 3.9 is missing from actions/setup-python@v5:

  Version ~3.9.0-0 was not found in the local cache
  Error: The version '3.9' with architecture 'arm64' was not found for macOS 14.2.1.
  The list of all available versions can be found here: https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json

URL for tool's homepage

https://www.python.org

Provide a basic test case to validate the tool's functionality.

name: Test

on: [push, pull_request, workflow_dispatch]

jobs:
  test:
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      matrix:
        python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
        os: [macos-latest, macos-14]

    steps:
      - name: Set up Python ${{ matrix.python-version }}
        uses: actions/setup-python@v5
        with:
          python-version: ${{ matrix.python-version }}

      - run: python --version --version

Platforms where you need the tool

  • Azure DevOps
  • GitHub Actions

Runner images where you need the tool

  • Ubuntu 20.04
  • Ubuntu 22.04
  • macOS 11
  • macOS 12
  • macOS 13
  • macOS 13 Arm64
  • macOS 14
  • macOS 14 Arm64
  • Windows Server 2019
  • Windows Server 2022

Can this tool be installed during the build?

No response

Tool installation time in runtime

No response

Are you willing to submit a PR?

Yes

@erik-bershel
Copy link
Contributor

Hey @hugovk!
It's an action behaviour but not an image. You can report it here: https://github.com/actions/setup-python
Also I noticed that I can provide more info about it. It was stated that this action wouldn't support this arch/version pair. Check here: actions/setup-python#696.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants