Skip to content

Commit b1f495d

Browse files
bretambroseBret Ambrose
and
Bret Ambrose
authored
Update and clarify Python minimum version (#346)
Co-authored-by: Bret Ambrose <bambrose@amazon.com>
1 parent 37de516 commit b1f495d

File tree

5 files changed

+16
-30
lines changed

5 files changed

+16
-30
lines changed

.github/workflows/ci.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ jobs:
2020
fail-fast: false
2121

2222
steps:
23-
- uses: actions/checkout@v2
24-
- uses: actions/setup-python@v2
23+
- uses: actions/checkout@v4
24+
- uses: actions/setup-python@v5
2525
with:
26-
python-version: '3.6.7'
26+
python-version: '3.8'
2727
- name: Unit tests
2828
run: |
2929
python3 setup.py install
@@ -37,10 +37,10 @@ jobs:
3737
fail-fast: false
3838
matrix:
3939
test-type: [ MutualAuth, Websocket, ALPN ]
40-
python-version: [ '3.7', '3.12' ]
40+
python-version: [ '3.8', '3.13' ]
4141
steps:
4242
- uses: actions/checkout@v4
43-
- uses: actions/setup-python@v2
43+
- uses: actions/setup-python@v5
4444
with:
4545
python-version: ${{ matrix.python-version }}
4646
- name: Integration tests

CHANGELOG.rst

+6
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,16 @@
22
CHANGELOG
33
=========
44

5+
1.5.5
6+
=====
7+
* chore: Update minimum Python version based on current supportable levels
8+
59
1.5.4
10+
=====
611
* chore: CD pipeline flushing try #1
712

813
1.5.3
14+
=====
915
* improvement: Support Python3.12+ by conditionally removing deprecated API usage
1016

1117
1.4.9

README.rst

+2-14
Original file line numberDiff line numberDiff line change
@@ -70,22 +70,10 @@ also allows the use of the same connection for shadow operations and non-shadow,
7070
Installation
7171
~~~~~~~~~~~~
7272

73-
Minimum Requirements
73+
Requirements
7474
____________________
7575

76-
- Python 2.7+ or Python 3.3+ for X.509 certificate-based mutual authentication via port 8883
77-
and MQTT over WebSocket protocol with AWS Signature Version 4 authentication
78-
- Python 2.7.10+ or Python 3.5+ for X.509 certificate-based mutual authentication via port 443
79-
- OpenSSL version 1.0.1+ (TLS version 1.2) compiled with the Python executable for
80-
X.509 certificate-based mutual authentication
81-
82-
To check your version of OpenSSL, use the following command in a Python interpreter:
83-
84-
.. code-block:: python
85-
86-
>>> import ssl
87-
>>> ssl.OPENSSL_VERSION
88-
76+
- Python3.8+. The SDK has worked for older Python versions in the past, but they are no longer formally supported. Over time, expect the minimum Python version to loosely track the minimum non-end-of-life version.
8977
Install from pip
9078
________________
9179

setup.py

+2-6
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,11 @@
2020
download_url = 'https://s3.amazonaws.com/aws-iot-device-sdk-python/aws-iot-device-sdk-python-latest.zip',
2121
keywords = ['aws', 'iot', 'mqtt'],
2222
classifiers = [
23-
"Development Status :: 5 - Production/Stable",
23+
"Development Status :: 6 - Mature",
2424
"Intended Audience :: Developers",
2525
"Natural Language :: English",
2626
"License :: OSI Approved :: Apache Software License",
2727
"Programming Language :: Python",
28-
"Programming Language :: Python :: 2.7",
29-
"Programming Language :: Python :: 3",
30-
"Programming Language :: Python :: 3.3",
31-
"Programming Language :: Python :: 3.4",
32-
"Programming Language :: Python :: 3.5"
28+
"Programming Language :: Python :: 3"
3329
]
3430
)

setup_test.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,11 @@
2424
download_url = 'https://s3.amazonaws.com/aws-iot-device-sdk-python/aws-iot-device-sdk-python-latest.zip',
2525
keywords = ['aws', 'iot', 'mqtt'],
2626
classifiers = [
27-
"Development Status :: 5 - Production/Stable",
27+
"Development Status :: 6 - Mature",
2828
"Intended Audience :: Developers",
2929
"Natural Language :: English",
3030
"License :: OSI Approved :: Apache Software License",
3131
"Programming Language :: Python",
32-
"Programming Language :: Python :: 2.7",
3332
"Programming Language :: Python :: 3",
34-
"Programming Language :: Python :: 3.3",
35-
"Programming Language :: Python :: 3.4",
36-
"Programming Language :: Python :: 3.5"
3733
]
3834
)

0 commit comments

Comments
 (0)