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

Update Supported Python versions to 3.10, 3.11, and 3.12 #424

Merged
merged 3 commits into from
Oct 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ body:
description: "Note: Bug fixes are only supported on these Python versions."
multiple: true
options:
- Python 3.9
- Python 3.10
- Python 3.11
- Python 3.12
validations:
required: true
- type: textarea
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/VariableProducer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
value: ${{ jobs.produce.outputs.node-versions }}

env:
pythonversions: "['3.11', '3.10', '3.9']" # Keep Python Versions in descending order
pythonversions: "['3.12', '3.11', '3.10']" # Keep Python Versions in descending order
nodeversions: "['19']"

jobs:
Expand Down
21 changes: 16 additions & 5 deletions docs/contributor/python_release.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,16 @@ released (3.9, 3.10, etc).
Each individual step will be a different section below and be associated with
a specific file that must be updated.

### setup.py
### pyproject.toml

This file is responsible for the release process to pypi. We want to make sure
we keep the required version for our pypi releases up to date. Within
`setuptools.setup()` locate the line `python_requires = "XXX"` and update it to
the next version.
we keep the required version for our pypi releases up to date. Update
`requires-python` to the minimum required python.

We typically support the last three minor versions; barring any special
exceptions, if the newest minor version is 3.11, then overall we will support
3.9, 3.10, and 3.11. Therefore you should update the line to
`python_requires = ">=3.9.0"`.
`python-requires = ">=3.9"`.

Additionally, we must update the classifiers section to show the three
supported python versions:
Expand All @@ -32,3 +31,15 @@ classifiers=[
"Programming Language :: Python :: 3.11"
]
```

### bug_report.yml

Update the supported python versions in the entry with `id: py_version`

### VariableProducer.yml

Update `pythonversions` to the support versions

### readme.md

Update the python versions in the `Current Status` section
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ dynamic = ["version"]
description = "Python library supporting UEFI EDK2 firmware development"
readme = {file = "readme.md", content-type = "text/markdown"}
license = {file = "LICENSE"}
requires-python = ">=3.10"
dependencies = [
"pyasn1 >= 0.4.8",
"pyasn1-modules >= 0.2.8",
Expand All @@ -22,9 +23,9 @@ classifiers=[
"Operating System :: OS Independent",
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11"
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12"
]

[project.urls]
Expand Down
6 changes: 3 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ Supported Versions

| Host Type | Toolchain | Status
| :--------------- | :---------- | :-------------------- |
| [Windows-Latest] | Python 3.9 | [![ci]][_ci] |
| [Windows-Latest] | Python 3.10 | [![ci]][_ci] |
| [Windows-Latest] | Python 3.11 | [![ci]][_ci] |
| [Ubuntu-Latest] | Python 3.9 | [![ci]][_ci] |
| [Windows-Latest] | Python 3.12 | [![ci]][_ci] |
| [Ubuntu-Latest] | Python 3.10 | [![ci]][_ci] |
| [Ubuntu-Latest] | Python 3.11 | [![ci]][_ci] |
| [MacOS-Latest] | Python 3.9 | [![coming_soon]][_ci] |
| [Ubuntu-Latest] | Python 3.12 | [![ci]][_ci] |
| [MacOS-Latest] | Python 3.10 | [![coming_soon]][_ci] |
| [MacOS-Latest] | Python 3.11 | [![coming_soon]][_ci] |
| [MacOS-Latest] | Python 3.12 | [![coming_soon]][_ci] |

### Current Release

Expand Down