Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Javagedes committed Oct 5, 2023
1 parent abe26c3 commit 07c5b77
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 13 deletions.
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
20 changes: 15 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,14 @@ 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
8 changes: 4 additions & 4 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] |
| [MacOS-Latest] | Python 3.10 | [![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

0 comments on commit 07c5b77

Please sign in to comment.