Skip to content
This repository has been archived by the owner on Jan 12, 2023. It is now read-only.

Commit

Permalink
Add support for Python 3.8 (#128)
Browse files Browse the repository at this point in the history
* 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 <matt.peveler@gmail.com>
  • Loading branch information
hugovk and MasterOdin committed Apr 21, 2020
1 parent 2004353 commit 42d95f0
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
20 changes: 18 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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
Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
])

0 comments on commit 42d95f0

Please sign in to comment.