From 8b34a8ab9d116e669497767d805f81af42ace594 Mon Sep 17 00:00:00 2001 From: Joey Vagedes Date: Thu, 5 Oct 2023 13:27:52 -0700 Subject: [PATCH] Initial commit --- .github/ISSUE_TEMPLATE/bug_report.yml | 2 +- .github/workflows/VariableProducer.yml | 2 +- .../templates/basic-setup-steps.yml | 2 +- docs/contributor/python_release.md | 17 +++++-- readme.md | 48 +++++++++---------- .../windows-robot-integration-test.yml | 2 +- 6 files changed, 40 insertions(+), 33 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index d678b03b..b3af3e64 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -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 diff --git a/.github/workflows/VariableProducer.yml b/.github/workflows/VariableProducer.yml index 1a588fac..e79f7b0a 100644 --- a/.github/workflows/VariableProducer.yml +++ b/.github/workflows/VariableProducer.yml @@ -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: diff --git a/azure-pipelines/templates/basic-setup-steps.yml b/azure-pipelines/templates/basic-setup-steps.yml index e4e60b14..2ac298dc 100644 --- a/azure-pipelines/templates/basic-setup-steps.yml +++ b/azure-pipelines/templates/basic-setup-steps.yml @@ -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] diff --git a/docs/contributor/python_release.md b/docs/contributor/python_release.md index 92b99e98..b7dd11fd 100644 --- a/docs/contributor/python_release.md +++ b/docs/contributor/python_release.md @@ -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: @@ -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 diff --git a/readme.md b/readme.md index cf79cfb6..ba6aba0b 100644 --- a/readme.md +++ b/readme.md @@ -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 @@ -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 diff --git a/tests.integration/azure-pipelines/windows-robot-integration-test.yml b/tests.integration/azure-pipelines/windows-robot-integration-test.yml index b9a4ab4c..8c26b3d1 100644 --- a/tests.integration/azure-pipelines/windows-robot-integration-test.yml +++ b/tests.integration/azure-pipelines/windows-robot-integration-test.yml @@ -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: