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 d061515 commit 8b34a8a
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 33 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 @@ -29,9 +29,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
2 changes: 1 addition & 1 deletion azure-pipelines/templates/basic-setup-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ steps:

- task: UsePythonVersion@0
inputs:
versionSpec: '3.10.x'
versionSpec: '3.12.x'
architecture: 'x64'

- script: pip install --upgrade -e .[dev]
Expand Down
17 changes: 12 additions & 5 deletions docs/contributor/python_release.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,16 @@ release (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 python 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.0"`.

Additionally, we must update the classifiers section to show the three
supported python versions:
Expand All @@ -33,6 +32,14 @@ classifiers=[
]
```

### bug_report.yml

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

### VariableProducer.yml

Update `pythonversions` to the support versions

### tests.integration/azure-pipelines/windows-robot-integration-test.yml

Since we support the last three minor versions of python, we want to ensure
Expand Down
48 changes: 24 additions & 24 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,18 @@ coverage of those unit tests. We require 100% unit test success

| Host Type | Toolchain | Project | Integration Tests |
| :------------------ | :--------- | :--------- | :---------------- |
| Windows Server 2019 | Python 3.9 | Edk2 | [![ewt1]][_it] |
| Windows Server 2019 | Python 3.10 | Edk2 | [![ewt2]][_it] |
| Windows Server 2019 | Python 3.11 | Edk2 | [![ewt3]][_it] |
| Linux Ubuntu 20.04 | Python 3.9 | Edk2 | [![eut1]][_i359] |
| Linux Ubuntu 20.04 | Python 3.10 | Edk2 | [![eut2]][_it] |
| Linux Ubuntu 20.04 | Python 3.11 | Edk2 | [![eut3]][_it] |
| Windows Server 2022 | Python 3.9 | Project Mu | [![mwt1]][_it] |
| Windows Server 2022 | Python 3.10 | Project Mu | [![mwt2]][_it] |
| Windows Server 2022 | Python 3.11 | Project Mu | [![mwt3]][_it] |
| Linux Ubuntu 22.04 | Python 3.9 | Project Mu | [![mut1]][_i359] |
| Linux Ubuntu 22.04 | Python 3.10 | Project Mu | [![mut2]][_it] |
| Linux Ubuntu 22.04 | Python 3.11 | Project Mu | [![mut3]][_it] |
| Windows Server 2019 | Python 3.10 | Edk2 | [![ewt1]][_it] |
| Windows Server 2019 | Python 3.11 | Edk2 | [![ewt2]][_it] |
| Windows Server 2019 | Python 3.12 | Edk2 | [![ewt3]][_it] |
| Linux Ubuntu 20.04 | Python 3.10 | Edk2 | [![eut1]][_i359] |
| Linux Ubuntu 20.04 | Python 3.11 | Edk2 | [![eut2]][_it] |
| Linux Ubuntu 20.04 | Python 3.12 | Edk2 | [![eut3]][_it] |
| Windows Server 2022 | Python 3.10 | Project Mu | [![mwt1]][_it] |
| Windows Server 2022 | Python 3.11 | Project Mu | [![mwt2]][_it] |
| Windows Server 2022 | Python 3.12 | Project Mu | [![mwt3]][_it] |
| Linux Ubuntu 22.04 | Python 3.10 | Project Mu | [![mut1]][_i359] |
| Linux Ubuntu 22.04 | Python 3.11 | Project Mu | [![mut2]][_it] |
| Linux Ubuntu 22.04 | Python 3.12 | Project Mu | [![mut3]][_it] |

### Current Release

Expand Down Expand Up @@ -173,18 +173,18 @@ contributing to the edk2-pytool-extensions repository.

[_it]: https://dev.azure.com/tianocore/edk2-pytool-extensions/_build?definitionId=52&_a=summary&repositoryFilter=2&branchFilter=14
[_i359]: https://github.com/tianocore/edk2-pytool-extensions/issues/359
[ewt1]: https://dev.azure.com/tianocore/edk2-pytool-extensions/_apis/build/status/Integration%20Tests?branchName=master&configuration=Edk2_Windows_Python39
[ewt2]: https://dev.azure.com/tianocore/edk2-pytool-extensions/_apis/build/status/Integration%20Tests?branchName=master&configuration=Edk2_Windows_Python310
[ewt3]: https://dev.azure.com/tianocore/edk2-pytool-extensions/_apis/build/status/Integration%20Tests?branchName=master&configuration=Edk2_Windows_Python311
[ewt1]: https://dev.azure.com/tianocore/edk2-pytool-extensions/_apis/build/status/Integration%20Tests?branchName=master&configuration=Edk2_Windows_Python310
[ewt2]: https://dev.azure.com/tianocore/edk2-pytool-extensions/_apis/build/status/Integration%20Tests?branchName=master&configuration=Edk2_Windows_Python311
[ewt3]: https://dev.azure.com/tianocore/edk2-pytool-extensions/_apis/build/status/Integration%20Tests?branchName=master&configuration=Edk2_Windows_Python312

[eut1]: https://img.shields.io/github/issues/detail/label/tianocore/edk2-pytool-extensions/359?color=orange&label=issue%20359
[eut2]: https://dev.azure.com/tianocore/edk2-pytool-extensions/_apis/build/status/Integration%20Tests?branchName=master&configuration=Edk2_Ubuntu_Python310
[eut3]: https://dev.azure.com/tianocore/edk2-pytool-extensions/_apis/build/status/Integration%20Tests?branchName=master&configuration=Edk2_Ubuntu_Python311
[eut1]: https://dev.azure.com/tianocore/edk2-pytool-extensions/_apis/build/status/Integration%20Tests?branchName=master&configuration=Edk2_Ubuntu_Python310
[eut2]: https://dev.azure.com/tianocore/edk2-pytool-extensions/_apis/build/status/Integration%20Tests?branchName=master&configuration=Edk2_Ubuntu_Python311
[eut3]: https://dev.azure.com/tianocore/edk2-pytool-extensions/_apis/build/status/Integration%20Tests?branchName=master&configuration=Edk2_Ubuntu_Python312

[mwt1]: https://dev.azure.com/tianocore/edk2-pytool-extensions/_apis/build/status/Integration%20Tests?branchName=master&configuration=ProjectMu_Windows_Python39
[mwt2]: https://dev.azure.com/tianocore/edk2-pytool-extensions/_apis/build/status/Integration%20Tests?branchName=master&configuration=ProjectMu_Windows_Python310
[mwt3]: https://dev.azure.com/tianocore/edk2-pytool-extensions/_apis/build/status/Integration%20Tests?branchName=master&configuration=ProjectMu_Windows_Python311
[mwt1]: https://dev.azure.com/tianocore/edk2-pytool-extensions/_apis/build/status/Integration%20Tests?branchName=master&configuration=ProjectMu_Windows_Python310
[mwt2]: https://dev.azure.com/tianocore/edk2-pytool-extensions/_apis/build/status/Integration%20Tests?branchName=master&configuration=ProjectMu_Windows_Python311
[mwt3]: https://dev.azure.com/tianocore/edk2-pytool-extensions/_apis/build/status/Integration%20Tests?branchName=master&configuration=ProjectMu_Windows_Python312

[mut1]: https://img.shields.io/github/issues/detail/label/tianocore/edk2-pytool-extensions/359?color=orange&label=issue%20359
[mut2]: https://dev.azure.com/tianocore/edk2-pytool-extensions/_apis/build/status/Integration%20Tests?branchName=master&configuration=ProjectMu_Ubuntu_Python310
[mut3]: https://dev.azure.com/tianocore/edk2-pytool-extensions/_apis/build/status/Integration%20Tests?branchName=master&configuration=ProjectMu_Ubuntu_Python311
[mut1]: https://dev.azure.com/tianocore/edk2-pytool-extensions/_apis/build/status/Integration%20Tests?branchName=master&configuration=ProjectMu_Ubuntu_Python310
[mut2]: https://dev.azure.com/tianocore/edk2-pytool-extensions/_apis/build/status/Integration%20Tests?branchName=master&configuration=ProjectMu_Ubuntu_Python311
[mut3]: https://dev.azure.com/tianocore/edk2-pytool-extensions/_apis/build/status/Integration%20Tests?branchName=master&configuration=ProjectMu_Ubuntu_Python312
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
parameters:
- name: PythonVersionList
type: object
default: ['3.9', '3.10', '3.11']
default: ['3.10', '3.11', '3.12']

jobs:
- job:
Expand Down

0 comments on commit 8b34a8a

Please sign in to comment.