Skip to content

Commit

Permalink
CI - Add Python 3.8 - Merge #150 from isogeo/azure-pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
Guts committed Apr 7, 2020
2 parents 6074e82 + 93bd41c commit 333a0dd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
14 changes: 7 additions & 7 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ pr:
variables:
packageFolderName: "isogeo_pysdk"
pyPiPackageName: "isogeo-pysdk"
pythonVersion: "3.7"
vmImageName: "windows-2019"

# -- STAGES ----------------------------------------------------------------------------
Expand All @@ -37,7 +38,7 @@ stages:

- task: UsePythonVersion@0
inputs:
versionSpec: '3.7'
versionSpec: $(pythonVersion)
architecture: 'x64'
addToPath: true

Expand All @@ -48,13 +49,11 @@ stages:
- script: |
python -m black --target-version=py37 ./$(packageFolderName)
python -m black --target-version=py37 .\tests
python -m black --target-version=py37 ./tests
displayName: 'Apply black code formatting'
- script: |
# stop the build if there are Python syntax errors or undefined names
python -m flake8 ./$(packageFolderName)/ --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. Tolerance of line length fixed to 100.
python -m flake8 ./$(packageFolderName)/ --count --exit-zero --max-complexity=15 --max-line-length=100 --ignore E501,W505
displayName: "Static code analisis (PEP8 conformance, imports...) with flake8"
Expand All @@ -79,7 +78,9 @@ stages:
python.version: '3.6'
Python37:
python.version: '3.7'
maxParallel: 2
Python38:
python.version: '3.8'
maxParallel: 3

steps:

Expand All @@ -92,7 +93,6 @@ stages:
buildType: "current"
artifact: "FORMATTED_$(pyPiPackageName)_$(Build.SourceBranchName)_$(Build.BuildId)"
targetPath: "$(System.DefaultWorkingDirectory)"

- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
Expand Down Expand Up @@ -163,7 +163,7 @@ stages:

- task: UsePythonVersion@0
inputs:
versionSpec: '3.x'
versionSpec: $(pythonVersion)
architecture: 'x64'
addToPath: true

Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

from setuptools import find_packages, setup

# package (to get version)
# package metadata
from isogeo_pysdk import __about__

# SETUP ######################################################################
Expand Down Expand Up @@ -64,6 +64,7 @@
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
Expand Down

0 comments on commit 333a0dd

Please sign in to comment.