From 256e6ddd5702c2232851d7602f14b68867efc6f1 Mon Sep 17 00:00:00 2001 From: MaksimZhukov <46996400+MaksimZhukov@users.noreply.github.com> Date: Thu, 6 Apr 2023 10:10:28 +0200 Subject: [PATCH] Remove code related to Ubuntu 18.04. (#226) --- .github/workflows/build-python-packages.yml | 4 ++-- .github/workflows/releases-validation.yml | 4 ++-- .github/workflows/test-python-version.yml | 2 +- tests/ManifestConfig.Tests.ps1 | 4 ++-- tests/sources/python-modules.py | 6 ------ 5 files changed, 7 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build-python-packages.yml b/.github/workflows/build-python-packages.yml index 4034f76c..bce73498 100644 --- a/.github/workflows/build-python-packages.yml +++ b/.github/workflows/build-python-packages.yml @@ -15,7 +15,7 @@ on: PLATFORMS: description: 'Platforms for execution in "os" or "os_arch" format (arch is "x64" by default)' required: true - default: 'ubuntu-18.04,ubuntu-20.04,ubuntu-22.04,macos-11,windows-2019_x64,windows-2019_x86' + default: 'ubuntu-20.04,ubuntu-22.04,macos-11,windows-2019_x64,windows-2019_x86' pull_request: paths-ignore: - 'versions-manifest.json' @@ -39,7 +39,7 @@ jobs: - name: Generate execution matrix id: generate-matrix run: | - [String[]]$configurations = "${{ inputs.platforms || 'ubuntu-18.04,ubuntu-20.04,ubuntu-22.04,macos-11,windows-2019_x64,windows-2019_x86' }}".Split(",").Trim() + [String[]]$configurations = "${{ inputs.platforms || 'ubuntu-20.04,ubuntu-22.04,macos-11,windows-2019_x64,windows-2019_x86' }}".Split(",").Trim() $matrix = @() foreach ($configuration in $configurations) { diff --git a/.github/workflows/releases-validation.yml b/.github/workflows/releases-validation.yml index 5957447e..a016c705 100644 --- a/.github/workflows/releases-validation.yml +++ b/.github/workflows/releases-validation.yml @@ -14,8 +14,8 @@ jobs: strategy: fail-fast: false matrix: - os: [macos-latest, windows-latest, ubuntu-18.04, ubuntu-20.04] - python: [3.5.4, 3.6.7, 3.7.5, 3.8.1] + os: [macos-latest, windows-latest, ubuntu-20.04, ubuntu-22.04] + python: [3.9.12, 3.10.8, 3.11.10] steps: - name: setup-python ${{ matrix.python }} uses: actions/setup-python@v4 diff --git a/.github/workflows/test-python-version.yml b/.github/workflows/test-python-version.yml index 6c0de430..e13fb375 100644 --- a/.github/workflows/test-python-version.yml +++ b/.github/workflows/test-python-version.yml @@ -17,7 +17,7 @@ jobs: strategy: fail-fast: false matrix: - os: [macos-latest, windows-latest, ubuntu-18.04, ubuntu-20.04] + os: [macos-latest, windows-latest, ubuntu-20.04, ubuntu-22.04] steps: - name: Setup Python ${{ github.event.inputs.version }} uses: actions/setup-python@main diff --git a/tests/ManifestConfig.Tests.ps1 b/tests/ManifestConfig.Tests.ps1 index 5002418a..7ad12daf 100644 --- a/tests/ManifestConfig.Tests.ps1 +++ b/tests/ManifestConfig.Tests.ps1 @@ -5,16 +5,16 @@ $Configuration = Read-ConfigurationFile -Filepath $ConfigurationFile $stableTestCases = @( @{ ReleaseName = "python-3.8.3-darwin-x64.tar.gz"; ExpectedResult = @{ platform = "darwin"; platform_version = $null; arch = "x64"} }, - @{ ReleaseName = "python-3.8.3-linux-18.04-x64.tar.gz"; ExpectedResult = @{ platform = "linux"; platform_version = "18.04"; arch = "x64"} }, @{ ReleaseName = "python-3.8.3-linux-20.04-x64.tar.gz"; ExpectedResult = @{ platform = "linux"; platform_version = "20.04"; arch = "x64"} }, + @{ ReleaseName = "python-3.8.3-linux-22.04-x64.tar.gz"; ExpectedResult = @{ platform = "linux"; platform_version = "22.04"; arch = "x64"} }, @{ ReleaseName = "python-3.8.3-win32-x64.zip"; ExpectedResult = @{ platform = "win32"; platform_version = $null; arch = "x64"} }, @{ ReleaseName = "python-3.8.3-win32-x86.zip"; ExpectedResult = @{ platform = "win32"; platform_version = $null; arch = "x86"} } ) | ForEach-Object { $_.Configuration = $Configuration; $_ } $unstableTestCases = @( @{ ReleaseName = "python-3.9.0-alpha.2-darwin-x64.tar.gz"; ExpectedResult = @{ platform = "darwin"; platform_version = $null; arch = "x64"} }, - @{ ReleaseName = "python-3.9.0-rc.4-linux-18.04-x64.tar.gz"; ExpectedResult = @{ platform = "linux"; platform_version = "18.04"; arch = "x64"} }, @{ ReleaseName = "python-3.9.0-beta.2-linux-20.04-x64.tar.gz"; ExpectedResult = @{ platform = "linux"; platform_version = "20.04"; arch = "x64"} }, + @{ ReleaseName = "python-3.9.0-rc.4-linux-22.04-x64.tar.gz"; ExpectedResult = @{ platform = "linux"; platform_version = "22.04"; arch = "x64"} }, @{ ReleaseName = "python-3.9.0-beta.2-win32-x64.zip"; ExpectedResult = @{ platform = "win32"; platform_version = $null; arch = "x64"} }, @{ ReleaseName = "python-3.9.0-beta.2-win32-x86.zip"; ExpectedResult = @{ platform = "win32"; platform_version = $null; arch = "x86"} } ) | ForEach-Object { $_.Configuration = $Configuration; $_ } diff --git a/tests/sources/python-modules.py b/tests/sources/python-modules.py index 474317a6..0dd01ac1 100644 --- a/tests/sources/python-modules.py +++ b/tests/sources/python-modules.py @@ -7,7 +7,6 @@ import importlib import sys -import platform # The Python standard library as of Python 3.0 standard_library = [ @@ -266,11 +265,6 @@ def replace(lst, old, new): if sys.version_info >= (3, 11): standard_library.remove('binhex') -# Exclude tkinter and turtle for Python 3.11 alpha temporarily -if sys.version_info >= (3, 11) and platform.system() == 'Linux' and '18.04' in platform.version(): - standard_library.remove('tkinter') - standard_library.remove('turtle') - # 'smtpd', 'asyncore' and 'asynchat' modules have been removed from Python 3.12 if sys.version_info >= (3, 12): standard_library.remove('smtpd')