Repository: UpCloudLtd/upcloud-python-api (language: python)

Issue:
Remove Python 2.7 support
This PR officially removes Python 2.7 support, leaving only support for Python 3.6+.

There are some ancillary changes related to configuration files that were still referring to unsupported Python versions.


Discussion / hints:
LGTM
Thank you!

Fix patch:
diff --git a/setup.cfg b/setup.cfg
index dc96c9b..6eff0f1 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -14,14 +14,9 @@ license = MIT
 python_requires = >=3.6, <4
 setup_requires =
     setuptools
-    pytest-runner
 install_requires =
     python-dateutil
     requests
-    six
-    python-dateutil
-tests_require =
-    pytest==4.0.2
 packages =
     upcloud_api
     upcloud_api.cloud_manager
diff --git a/upcloud_api/cloud_manager/tag_mixin.py b/upcloud_api/cloud_manager/tag_mixin.py
index 3d679b0..b66c01e 100644
--- a/upcloud_api/cloud_manager/tag_mixin.py
+++ b/upcloud_api/cloud_manager/tag_mixin.py
@@ -1,5 +1,3 @@
-import six
-
 from upcloud_api import Tag
 
 
diff --git a/upcloud_api/tag.py b/upcloud_api/tag.py
index 1b7325b..7a3827c 100644
--- a/upcloud_api/tag.py
+++ b/upcloud_api/tag.py
@@ -1,5 +1,3 @@
-import six
-
 from upcloud_api import Server, UpCloudResource
 
 


Test patch:
diff --git a/test/test_tags.py b/test/test_tags.py
index 18b272c..33dfedf 100644
--- a/test/test_tags.py
+++ b/test/test_tags.py
@@ -1,5 +1,3 @@
-import six
-
 from upcloud_api import Tag
 
 from conftest import Mock