Skip to content

Commit 7f9b968

Browse files
committed
feat: update minimum supported python version to 3.6
This commit moves the project's minimum supported python version from 3.5 to 3.6. Python 3.5 has long-ago passed its "end of service" date. This project is now built and tested on python versions 3.6, 3.7, 3.8 and 3.9.
1 parent 4f8d282 commit 7f9b968

File tree

8 files changed

+16
-24
lines changed

8 files changed

+16
-24
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ language: python
22

33
matrix:
44
include:
5-
- python: 3.5
65
- python: 3.6
76
- python: 3.7
87
- python: 3.8
8+
- python: 3.9
99

1010
dist: xenial
1111

@@ -39,13 +39,13 @@ deploy:
3939
script: npx semantic-release
4040
skip_cleanup: true
4141
on:
42-
python: '3.5'
42+
python: '3.6'
4343
branch: master
4444
- provider: pypi
4545
user: $PYPI_USER
4646
password: $PYPI_TOKEN
4747
repository: https://upload.pypi.org/legacy
4848
skip_cleanup: true
4949
on:
50-
python: '3.5'
50+
python: '3.6'
5151
tags: true

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
setup: deps dev_deps install_project
66

77
deps:
8+
python -m pip install --upgrade pip
89
python -m pip install -r requirements.txt
910

1011
dev_deps:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This project contains core functionality required by Python code generated by th
99
(openapi-sdkgen).
1010

1111
# Python Version
12-
The current minimum Python version supported is 3.5.3.
12+
The current minimum Python version supported is 3.6.
1313

1414
## Installation
1515

requirements-dev.txt

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,7 @@
1-
# test dependencies
2-
pytest>=3.10.1,<7.0.0
3-
responses>=0.9.0,<1.0.0
4-
pylint>=2.0.0,<3.0.0
5-
tox>=2.9.1,<4.0.0
6-
pytest-rerunfailures>=5.0,<10.0.0
7-
8-
# code coverage
9-
coverage<5,<6.0.0
10-
codecov>=1.6.3,<3.0.0
1+
codecov>=2.1.0,<3.0.0
2+
coverage>=4.5.4
3+
pylint>=2.6.0,<3.0.0
4+
pytest>=6.2.1,<7.0.0
115
pytest-cov>=2.2.1,<3.0.0
12-
13-
# semantic
14-
bumpversion>=0.5.3,<1.0.0
6+
responses>=0.12.1,<1.0.0
7+
tox>=3.2.0,<4.0.0

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
requests>=2.20,<3.0
22
python_dateutil>=2.5.3,<3.0.0
3-
PyJWT>=2.0.0a1,<3.0.0
3+
PyJWT>=2.0.1,<3.0.0

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ def run_tests(self):
6868
classifiers=[
6969
'Programming Language :: Python',
7070
'Programming Language :: Python :: 3',
71-
'Programming Language :: Python :: 3.5',
7271
'Programming Language :: Python :: 3.6',
7372
'Programming Language :: Python :: 3.7',
7473
'Programming Language :: Python :: 3.8',
74+
'Programming Language :: Python :: 3.9',
7575
'Development Status :: 5 - Production/Stable',
7676
'Intended Audience :: Developers',
7777
'License :: OSI Approved :: Apache Software License',

test/test_jwt_token_manager.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,7 @@ def test_is_token_expired():
9393
def test_abstract_class_instantiation():
9494
with pytest.raises(TypeError) as err:
9595
JWTTokenManager(None)
96-
assert str(err.value) == "Can't instantiate abstract class " \
97-
"JWTTokenManager with abstract methods " \
98-
"request_token"
96+
assert str(err.value).startswith("Can't instantiate abstract class JWTTokenManager with abstract")
9997

10098
def test_disable_ssl_verification():
10199
token_manager = JWTTokenManagerMockImpl('https://iam.cloud.ibm.com/identity/token')

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py37-lint, py35, py36, py37, py38
2+
envlist = py37-lint, py36, py37, py38, py39
33

44

55
[testenv:py37-lint]
@@ -13,7 +13,7 @@ commands = pylint ibm_cloud_sdk_core test
1313
passenv = TOXENV CI TRAVIS*
1414
changedir = test
1515
commands =
16-
pytest --reruns 3 --cov=ibm_cloud_sdk_core
16+
pytest --cov=ibm_cloud_sdk_core
1717
codecov -e TOXENV
1818
deps =
1919
-r{toxinidir}/requirements.txt

0 commit comments

Comments
 (0)