Skip to content

Commit 5b847d7

Browse files
committed
Update to py 3.9
1 parent 6f669ad commit 5b847d7

File tree

11 files changed

+72
-35
lines changed

11 files changed

+72
-35
lines changed

.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Dependencies versions
2-
ARG PYTHON_VERSION="3.7.10"
2+
ARG PYTHON_VERSION="3.9.10"
33

44
# see https://hub.docker.com/_/python/?tab=tag
55
FROM python:${PYTHON_VERSION}-buster

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
[![PyPI version](https://badge.fury.io/py/iotedgehubdev.svg)](https://badge.fury.io/py/iotedgehubdev)
44

5+
## 0.14.11 - 2022-03-01
6+
* Update Python support to 3.9
7+
58
## 0.14.11 - 2022-02-10
69
* Update Device Twin API version to include support for Arrays in desired properties
710

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ The following table compares the requirements to run your solution on the IoT Ed
2323
[Windows](https://docs.docker.com/docker-for-windows/install/), [macOS](https://docs.docker.com/docker-for-mac/install/) or [Linux](https://docs.docker.com/install/linux/docker-ce/ubuntu/#install-docker-ce)
2424

2525
2. Install [Docker Compose (1.20.0+)](https://docs.docker.com/compose/install/#install-compose) (***Linux only***. *Compose has already been included in Windows/macOS Docker CE installation*)
26-
3. Install [Python (3.5/3.6/3.7/3.8) and Pip](https://www.python.org/)
26+
3. Install [Python (3.5/3.6/3.7/3.8/3.9) and Pip](https://www.python.org/)
2727
4. Install **iotedgehubdev** by running the following command in your terminal:
2828
```
2929
pip install --upgrade iotedgehubdev

iotedgehubdev/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
pkg_resources.declare_namespace(__name__)
88

99
__author__ = 'Microsoft Corporation'
10-
__version__ = '0.14.11'
10+
__version__ = '0.14.12-rc0'
1111
__AIkey__ = '95b20d64-f54f-4de3-8ad5-165a75a6c6fe'
1212
__production__ = 'iotedgehubdev'

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
autopep8
22
backports.unittest-mock
33
click
4-
docker==5.0.0
4+
docker==5.0.3
55
flake8
66
pyOpenSSL>=20.0.1
77
python-dotenv

setup.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"""
44
from setuptools import find_packages, setup
55

6-
VERSION = '0.14.11'
6+
VERSION = '0.14.12-rc0'
77
# If we have source, validate that our version numbers match
88
# This should prevent uploading releases with mismatched versions.
99
try:
@@ -27,7 +27,7 @@
2727

2828
dependencies = [
2929
'click',
30-
'docker==5.0.0',
30+
'docker==5.0.3',
3131
'pyOpenSSL>=20.0.1',
3232
'requests>=2.25.1',
3333
'applicationinsights==0.11.9',
@@ -56,7 +56,7 @@
5656
'iotedgehubdev = iotedgehubdev.cli:main',
5757
],
5858
},
59-
python_requires='>=3.5, <3.9',
59+
python_requires='>=3.5, <3.10',
6060
classifiers=[
6161
# As from http://pypi.python.org/pypi?%3Aaction=list_classifiers
6262
# 'Development Status :: 1 - Planning',
@@ -79,6 +79,7 @@
7979
'Programming Language :: Python :: 3.6',
8080
'Programming Language :: Python :: 3.7',
8181
'Programming Language :: Python :: 3.8',
82+
'Programming Language :: Python :: 3.9',
8283

8384
'Topic :: Software Development :: Libraries :: Python Modules',
8485
]

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist=py37
2+
envlist=py37, py38, py39
33

44
[testenv]
55
commands=

vsts_ci/azure-pipelines.yml

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,54 @@ jobs:
1010
- job: MacOS
1111
pool:
1212
vmImage: macOS-latest
13+
strategy:
14+
matrix:
15+
Python37:
16+
python.version: "3.7"
17+
TOXENV: "py37"
18+
Python38:
19+
python.version: "3.8"
20+
TOXENV: "py38"
21+
Python39:
22+
python.version: "3.9"
23+
TOXENV: "py39"
24+
maxParallel: 1
1325
steps:
1426
- template: darwin/continuous-build-darwin.yml
1527

1628
- job: Windows
1729
pool:
1830
vmImage: windows-2019
31+
strategy:
32+
matrix:
33+
Python37:
34+
python.version: "3.7"
35+
TOXENV: "py37"
36+
Python38:
37+
python.version: "3.8"
38+
TOXENV: "py38"
39+
Python39:
40+
python.version: "3.9"
41+
TOXENV: "py39"
42+
maxParallel: 1
1943
steps:
2044
- template: win32/continuous-build-win32.yml
2145

2246
- job: Linux
2347
pool:
24-
vmImage: ubuntu-18.04
48+
vmImage: ubuntu-20.04
49+
strategy:
50+
matrix:
51+
Python37:
52+
python.version: "3.7"
53+
TOXENV: "py37"
54+
Python38:
55+
python.version: "3.8"
56+
TOXENV: "py38"
57+
Python39:
58+
python.version: "3.9"
59+
TOXENV: "py39"
60+
maxParallel: 1
2561
steps:
2662
- template: linux/continuous-build-linux.yml
2763

vsts_ci/darwin/continuous-build-darwin.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
steps:
22
- task: UsePythonVersion@0
3-
displayName: "Use Python 3.7"
43
inputs:
5-
versionSpec: 3.7
4+
versionSpec: "$(python.version)"
65
addToPath: true
76
architecture: "x64"
87

98
- script: |
10-
az extension add --name azure-iot
119
az --version
12-
displayName: "Install Azure Cli iot extension"
10+
az extension add --name azure-iot
11+
displayName: "Install Azure Cli Extension"
1312
1413
- script: |
1514
pip install --upgrade pip
@@ -33,8 +32,8 @@ steps:
3332
brew services start docker-machine
3433
brew install docker-compose
3534
docker version
36-
sudo -E tox
37-
displayName: "Install docker and run tests against iotedgehubdev source code with tox"
35+
sudo -E `which tox` -e "$(TOXENV)"
36+
displayName: "Run tests against iotedgehubdev source code"
3837
env:
3938
DARWIN_DEVICE_CONNECTION_STRING: $(DARWIN_DEVICE_CONNECTION_STRING)
4039
IOTHUB_CONNECTION_STRING: $(IOTHUB_CONNECTION_STRING)
Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,24 @@
11
steps:
22
- task: UsePythonVersion@0
3-
displayName: "Use Python 3.7"
43
inputs:
5-
versionSpec: 3.7
4+
versionSpec: "$(python.version)"
65
addToPath: true
76
architecture: "x64"
87

98
- script: |
10-
pip install --upgrade pip
11-
pip install --upgrade tox
12-
az extension add --name azure-iot
139
az --version
14-
displayName: "Update and install required tools"
10+
az extension add --name azure-iot
11+
displayName: "Install Azure Cli Extension"
1512
1613
- script: |
17-
sudo -E `which tox`
18-
displayName: "Run tests against iotedgehubdev source code with tox"
14+
pip install --upgrade pip
15+
pip install --upgrade tox
16+
sudo -E `which tox` -e "$(TOXENV)"
17+
displayName: "Run tests against iotedgehubdev source code"
1918
env:
2019
LINUX_DEVICE_CONNECTION_STRING: $(LINUX_DEVICE_CONNECTION_STRING)
2120
IOTHUB_CONNECTION_STRING: $(IOTHUB_CONNECTION_STRING)
2221
CONTAINER_REGISTRY_SERVER: $(CONTAINER_REGISTRY_SERVER)
2322
CONTAINER_REGISTRY_USERNAME: $(CONTAINER_REGISTRY_USERNAME)
2423
CONTAINER_REGISTRY_PASSWORD: $(CONTAINER_REGISTRY_PASSWORD)
2524
TEST_CA_KEY_PASSPHASE: $(TEST_CA_KEY_PASSPHASE)
26-
TOXENV: py36,py37

0 commit comments

Comments
 (0)