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

3.10 is not aliased(?) to latest 3.10 beta #3343

Closed
3 of 7 tasks
Freso opened this issue May 9, 2021 · 2 comments
Closed
3 of 7 tasks

3.10 is not aliased(?) to latest 3.10 beta #3343

Freso opened this issue May 9, 2021 · 2 comments
Assignees
Labels
Area: Python OS: Ubuntu question Further information is requested

Comments

@Freso
Copy link

Freso commented May 9, 2021

Description
Specifying 3.9 in python-versions will give you the most recent version of Python 3.9, but there seem to be no way to specify most recent 3.10 (beta) version which means that you will have to manually keep up with the most recent beta. An option for "development" or "3-dev" or something could also work.

Area for Triage:
Python

Question, Bug, or Feature?:
Question, Bug, or Feature (not sure which is most applicable here)

Virtual environments affected

  • Ubuntu 16.04
  • Ubuntu 18.04
  • Ubuntu 20.04
  • macOS 10.15
  • macOS 11.0
  • Windows Server 2016 R2
  • Windows Server 2019

Probably all of them? I don’t know how this whole thing works. :\

Image version

https://github.com/actions/virtual-environments/releases/tag/ubuntu20%2F20210504.1

Expected behavior
I expected the build to run with the most recent version of 3.10.

Actual behavior
Got an "Error: Version 3.10 with arch x64 not found"

Repro steps

  1. Add '3.10' to a python-versions array.
  2. Run job

See https://github.com/JonnyJD/musicbrainz-isrcsubmit/pull/134/checks?check_run_id=2539409850 for an example.

@maxim-lobanov
Copy link
Contributor

I think this issue should come to https://github.com/actions/setup-python
@Freso , please follow action's documentation. It contains description how to specify pre-release versions:

Download and set up an accurate pre-release version of Python:

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
  with:
    python-version: '3.9.0-beta.4'
- run: python my_script.py

Download and set up the latest available version of Python (includes both pre-release and stable versions):

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
  with:
    python-version: '3.9.0-alpha - 3.9.0' # SemVer's version range syntax
- run: python my_script.py

@maxim-lobanov maxim-lobanov added question Further information is requested and removed needs triage labels May 9, 2021
@maxim-lobanov maxim-lobanov self-assigned this May 9, 2021
@nulano
Copy link

nulano commented May 9, 2021

You can use 3.10-dev. It is undocumented, but seems to be used by a lot of projects anyway. See also actions/setup-python#177

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Python OS: Ubuntu question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants