From 42d95f05b25ac52a6c4896bf44030018d1afc627 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Tue, 21 Apr 2020 05:45:37 +0300 Subject: [PATCH] Add support for Python 3.8 (#128) * Add support for Python 3.8 * Update mirror URL * Different filename for Python 3.8 wheel * Update azure-pipelines.yml * Update azure-pipelines.yml Co-authored-by: Matthew Peveler --- .travis.yml | 1 + azure-pipelines.yml | 20 ++++++++++++++++++-- setup.py | 1 + 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 088b928..d4faeb2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,6 +5,7 @@ env: - DOCKER_PYTHON_VERSION=3.5 - DOCKER_PYTHON_VERSION=3.6 - DOCKER_PYTHON_VERSION=3.7 + - DOCKER_PYTHON_VERSION=3.8 services: - docker diff --git a/azure-pipelines.yml b/azure-pipelines.yml index ac93758..4d6e115 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -30,6 +30,10 @@ strategy: python.version.major: '3' python.version.minor: '7' os.image: 'windows-latest' + Windows-Python38: + python.version.major: '3' + python.version.minor: '8' + os.image: 'windows-latest' MacOS-Python27: python.version.major: '2' python.version.minor: '7' @@ -46,6 +50,10 @@ strategy: python.version.major: '3' python.version.minor: '7' os.image: 'macOS-latest' + MacOS-Python38: + python.version.major: '3' + python.version.minor: '8' + os.image: 'macOS-latest' steps: - task: UsePythonVersion@0 @@ -70,8 +78,16 @@ steps: $wheel = "bsddb3-6.2.7-cp3$(python.version.minor)-cp3$(python.version.minor)m-win_amd64.whl" Invoke-WebRequest -Uri "$mirror/$wheel" -OutFile "$(Agent.TempDirectory)\$wheel" pip install "$(Agent.TempDirectory)\$wheel" - condition: and(eq(variables['python.version.major'], '3'), eq(variables['os.image'], 'windows-latest'), ge(variables['python.version.minor'], '6')) - displayName: 'Install bsddb3 wheel (3.6+)' + condition: and(eq(variables['python.version.major'], '3'), eq(variables['os.image'], 'windows-latest'), ge(variables['python.version.minor'], '6'), le(variables['python.version.minor'], '7')) + displayName: 'Install bsddb3 wheel (3.6,3.7)' + +- powershell: | + $mirror = "https://download.lfd.uci.edu/pythonlibs/s2jqpv5t" + $wheel = "bsddb3-6.2.7-cp3$(python.version.minor)-cp3$(python.version.minor)-win_amd64.whl" + Invoke-WebRequest -Uri "$mirror/$wheel" -OutFile "$(Agent.TempDirectory)\$wheel" + pip install "$(Agent.TempDirectory)\$wheel" + condition: and(eq(variables['python.version.major'], '3'), eq(variables['os.image'], 'windows-latest'), ge(variables['python.version.minor'], '8')) + displayName: 'Install bsddb3 wheel (3.8+)' - script: | brew install berkeley-db4 diff --git a/setup.py b/setup.py index a4806d6..cd217f3 100644 --- a/setup.py +++ b/setup.py @@ -54,5 +54,6 @@ 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', 'Topic :: Utilities' ])