Skip to content

Commit 256d4fd

Browse files
authored
Remove Testing/Support for Python 2.7 & 3.5 (#136)
The change was communicated in the README since a few months. We now don't officially support Python 2.7 and 3.5 anymore. Please upgrade to a newer version of Python. Signed-off-by: Lukas Kämmerling <lukas.kaemmerling@hetzner-cloud.de>
1 parent ccb5f47 commit 256d4fd

5 files changed

Lines changed: 3 additions & 27 deletions

File tree

.github/workflows/unit_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
python-version: [ 2.7, 3.5, 3.6, 3.7, 3.8, 3.9, "3.10.0-beta.1" ]
10+
python-version: [ 3.6, 3.7, 3.8, 3.9, "3.10.0-beta.1" ]
1111
name: Python ${{ matrix.python-version }}
1212
steps:
1313
- uses: actions/checkout@v2

.gitlab-ci.yml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,8 @@ stages:
77
stage: test
88
script:
99
tox
10-
variables:
11-
FAKE_API_ENDPOINT: "http://apimock:8080/v1"
1210
tags:
1311
- hc-bladerunner
14-
services:
15-
- name: lkdevelopment/hetzner-cloud-api-mock
16-
alias: apimock
17-
18-
19-
20-
python27:
21-
<<: *tests_template
22-
image: python:2.7-alpine
23-
script: tox -e py27
24-
25-
python35:
26-
<<: *tests_template
27-
image: python:3.5-alpine
28-
script: tox -e py35
2912

3013
python36:
3114
<<: *tests_template

README.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ We support python versions until `end-of-life`_.
3434

3535
.. _end-of-life: https://devguide.python.org/#status-of-python-branches
3636

37-
Please note that python2.7 and python3.5 have already reached the end of life. We will stop supporting them from June 7th.
38-
3937
Development
4038
-----------
4139

setup.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,14 @@
3636
'Intended Audience :: Developers',
3737
'License :: OSI Approved :: MIT License',
3838
'Natural Language :: English',
39-
"Programming Language :: Python :: 2",
40-
'Programming Language :: Python :: 2.7',
4139
'Programming Language :: Python :: 3',
42-
'Programming Language :: Python :: 3.5',
4340
'Programming Language :: Python :: 3.6',
4441
'Programming Language :: Python :: 3.7',
4542
'Programming Language :: Python :: 3.8',
4643
'Programming Language :: Python :: 3.9',
4744
'Programming Language :: Python :: 3.10',
4845
],
49-
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <3.11',
46+
python_requires='!=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <3.11',
5047
description="Official Hetzner Cloud python library",
5148
install_requires=requirements,
5249
extras_require=extras_require,

tox.ini

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

44
[testenv:flake8]
55
basepython = python
@@ -15,8 +15,6 @@ commands =
1515

1616
[gh-actions]
1717
python =
18-
2.7: py27
19-
3.5: py35
2018
3.6: py36
2119
3.7: py37
2220
3.8: py38

0 commit comments

Comments
 (0)