From ff32478725e80643b3ce0087665e55f0c9988b35 Mon Sep 17 00:00:00 2001 From: "oleg.hoefling" Date: Thu, 29 Oct 2020 13:51:26 +0100 Subject: [PATCH 1/3] add python 3.9 jobs Signed-off-by: oleg.hoefling --- .appveyor.yml | 2 ++ .github/workflows/macosx.yml | 2 +- .github/workflows/manylinux2010.yml | 2 +- .github/workflows/sdist.yml | 4 ++-- .travis.yml | 2 +- 5 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.appveyor.yml b/.appveyor.yml index 939d8d30..d945472a 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -10,6 +10,8 @@ environment: - python: 37-x64 - python: 38 - python: 38-x64 + - python: 39 + - python: 39-x64 install: - SET PATH=C:\\Python%PYTHON%;c:\\Python%PYTHON%\\scripts;%PATH% diff --git a/.github/workflows/macosx.yml b/.github/workflows/macosx.yml index 02c778d4..c8bfee95 100644 --- a/.github/workflows/macosx.yml +++ b/.github/workflows/macosx.yml @@ -5,7 +5,7 @@ jobs: runs-on: macos-latest strategy: matrix: - python: [2.7, 3.5, 3.6, 3.7, 3.8] + python: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9] steps: - uses: actions/checkout@v1 - name: Setup Python diff --git a/.github/workflows/manylinux2010.yml b/.github/workflows/manylinux2010.yml index 7ed19a5c..637983d4 100644 --- a/.github/workflows/manylinux2010.yml +++ b/.github/workflows/manylinux2010.yml @@ -6,7 +6,7 @@ jobs: container: quay.io/pypa/manylinux2010_x86_64 strategy: matrix: - python-abi: [cp27-cp27m, cp27-cp27mu, cp35-cp35m, cp36-cp36m, cp37-cp37m, cp38-cp38] + python-abi: [cp27-cp27m, cp27-cp27mu, cp35-cp35m, cp36-cp36m, cp37-cp37m, cp38-cp38, cp39-cp39] steps: - uses: actions/checkout@v1 - name: Install build dependencies diff --git a/.github/workflows/sdist.yml b/.github/workflows/sdist.yml index 281cdaf9..5b5dac96 100644 --- a/.github/workflows/sdist.yml +++ b/.github/workflows/sdist.yml @@ -5,10 +5,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - - name: Set up Python 3.8 + - name: Set up Python 3.9 uses: actions/setup-python@v2 with: - python-version: 3.8 + python-version: 3.9 - name: Install build dependencies run: | pip install --upgrade pip setuptools wheel diff --git a/.travis.yml b/.travis.yml index 2abd7f82..7297721e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,7 +14,7 @@ matrix: - python: 3.8 dist: xenial sudo: required - - python: 3.9-dev + - python: 3.9 dist: xenial sudo: required env: From 0275bbe33d58675556d1eb15121350b41313f083 Mon Sep 17 00:00:00 2001 From: "oleg.hoefling" Date: Thu, 29 Oct 2020 14:14:34 +0100 Subject: [PATCH 2/3] fix 3.9 not used in appveyor jobs Signed-off-by: oleg.hoefling --- .appveyor.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.appveyor.yml b/.appveyor.yml index d945472a..c8beace3 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -11,7 +11,9 @@ environment: - python: 38 - python: 38-x64 - python: 39 + image: Visual Studio 2019 - python: 39-x64 + image: Visual Studio 2019 install: - SET PATH=C:\\Python%PYTHON%;c:\\Python%PYTHON%\\scripts;%PATH% From 5a21f3ff5700c51f3e746d01ff8fd757f8f5c37a Mon Sep 17 00:00:00 2001 From: "oleg.hoefling" Date: Thu, 29 Oct 2020 16:31:07 +0100 Subject: [PATCH 3/3] install python 3.9 via windows installer on appveyor Signed-off-by: oleg.hoefling --- .appveyor.yml | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/.appveyor.yml b/.appveyor.yml index c8beace3..a36ddda1 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -11,11 +11,31 @@ environment: - python: 38 - python: 38-x64 - python: 39 - image: Visual Studio 2019 + python_version: 3.9.0 - python: 39-x64 - image: Visual Studio 2019 + python_version: 3.9.0 install: + - ps: | + # from https://github.com/appveyor/build-images/blob/27bde614bc60d7ef7a8bc46182f4d7582fa11b56/scripts/Windows/install_python.ps1#L88-L108 + function InstallPythonEXE($targetPath, $version) { + $urlPlatform = "" + if ($targetPath -match '-x64$') { + $urlPlatform = "-amd64" + } + Write-Host "Installing Python $version$urlPlatform to $($targetPath)..." -ForegroundColor Cyan + $downloadUrl = "https://www.python.org/ftp/python/$version/python-$version$urlPlatform.exe" + Write-Host "Downloading $($downloadUrl)..." + $exePath = "$env:TEMP\python-$version.exe" + (New-Object Net.WebClient).DownloadFile($downloadUrl, $exePath) + Write-Host "Installing..." + cmd /c start /wait $exePath /quiet TargetDir="$targetPath" Shortcuts=0 Include_launcher=1 InstallLauncherAllUsers=1 Include_debug=1 + Remove-Item $exePath + Write-Host "Installed Python $version" -ForegroundColor Green + } + if ( -not ( Test-Path -Path C:\\Python$env:PYTHON -PathType Container ) ) { + InstallPythonEXE C:\\Python$env:PYTHON $env:PYTHON_VERSION + } - SET PATH=C:\\Python%PYTHON%;c:\\Python%PYTHON%\\scripts;%PATH% - python -m pip install -U pip wheel setuptools