Skip to content

Commit 38f4955

Browse files
authored
chore: dropped Python 3.8 support (#1213)
1 parent b399e98 commit 38f4955

9 files changed

Lines changed: 11 additions & 14 deletions

File tree

.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.192.0/containers/python-3/.devcontainer/base.Dockerfile
22

3-
# [Choice] Python version: 3, 3.9, 3.8
3+
# [Choice] Python version: 3, 3.9
44
ARG VARIANT="3.9"
55
FROM mcr.microsoft.com/vscode/devcontainers/python:0-${VARIANT}
66

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"dockerfile": "Dockerfile",
77
"context": "..",
88
"args": {
9-
// Update 'VARIANT' to pick a Python version: 3, 3.8, 3.9
9+
// Update 'VARIANT' to pick a Python version: 3, 3.9
1010
"VARIANT": "3",
1111
// Options
1212
"NODE_VERSION": "lts/*"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ The Azure IoT Device library is available on PyPI:
2121
pip install azure-iot-device
2222
```
2323

24-
Python 3.8 or higher is required in order to use the library
24+
Python 3.9 or higher is required in order to use the library
2525

2626
## Using the library
2727
API documentation for this package is available via [**Microsoft Docs**](https://docs.microsoft.com/python/api/azure-iot-device/azure.iot.device?view=azure-python).

samples/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ This directory contains samples showing how to use the various features of the M
44

55
## Quick Start - Simple Telemetry Sample (send message)
66

7-
**Note that this sample is configured for Python 3.8+.** To ensure that your Python version is up to date, run `python --version`. If you have both Python 2 and Python 3 installed (and are using a Python 3 environment for this SDK), then install all libraries using `pip3` as opposed to `pip`. This ensures that the libraries are installed to your Python 3 runtime.
8-
97
1. Install the [Azure CLI](https://docs.microsoft.com/cli/azure/install-azure-cli?view=azure-cli-latest) (or use the [Azure Cloud Shell](https://shell.azure.com/)) and use it to [create an Azure IoT Hub](https://docs.microsoft.com/cli/azure/iot/hub?view=azure-cli-latest#az_iot_hub_create).
108

119
```bash

scripts/configure-virtual-environments.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
script_dir=$(cd "$(dirname "$0")" && pwd)
88

9-
export RUNTIMES_TO_INSTALL="3.8.10 3.9.9 3.10.2"
9+
export RUNTIMES_TO_INSTALL="3.9.9 3.10.2"
1010

1111
echo "This script will do the following:"
1212
echo "1. Use apt to install pre-requisites for pyenv"

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@
6565
"License :: OSI Approved :: MIT License",
6666
"Programming Language :: Python",
6767
"Programming Language :: Python :: 3",
68-
"Programming Language :: Python :: 3.8",
6968
"Programming Language :: Python :: 3.9",
7069
"Programming Language :: Python :: 3.10",
7170
"Programming Language :: Python :: 3.11",
@@ -84,7 +83,7 @@
8483
"PySocks",
8584
"typing_extensions",
8685
],
87-
python_requires=">=3.8, <4",
86+
python_requires=">=3.9, <4",
8887
packages=find_namespace_packages(where="azure-iot-device"),
8988
package_data={"azure.iot.device": ["py.typed"]},
9089
package_dir={"": "azure-iot-device"},

vsts/dps-e2e.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ stages:
270270
steps:
271271
- task: UsePythonVersion@0
272272
inputs:
273-
versionSpec: '3.8'
273+
versionSpec: '3.9'
274274
architecture: 'x64'
275275

276276
- script: 'python scripts/env_setup.py --no_dev'

vsts/python-canary.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ jobs:
1616
transport: 'mqttws'
1717
imageName: 'windows-latest'
1818
consumerGroup: 'cg2'
19-
py38_linux_mqttws:
20-
pv: '3.8'
19+
py39_linux_mqttws:
20+
pv: '3.9'
2121
transport: 'mqttws'
2222
imageName: 'Ubuntu 20.04'
2323
consumerGroup: 'cg4'
24-
py38_linux_mqtt:
25-
pv: '3.8'
24+
py39_linux_mqtt:
25+
pv: '3.9'
2626
transport: 'mqtt'
2727
imageName: 'Ubuntu 20.04'
2828
consumerGroup: 'cg5'

vsts/python-e2e.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ stages:
5656

5757
strategy:
5858
matrix:
59-
py38_mqtt: { pv: '3.8', transport: 'mqtt', consumer_group: 'cg1' }
59+
py39_mqtt: { pv: '3.9', transport: 'mqtt', consumer_group: 'cg1' }
6060
py312_mqttws: { pv: '3.12', transport: 'mqttws', consumer_group: 'cg2' }
6161

6262
steps:

0 commit comments

Comments
 (0)