Skip to content

Commit dbf3e48

Browse files
authored
Support Python 3.10 (#124)
Signed-off-by: Lukas Kämmerling <lukas.kaemmerling@hetzner-cloud.de>
1 parent ed00e39 commit dbf3e48

5 files changed

Lines changed: 12 additions & 5 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 ]
10+
python-version: [ 2.7, 3.5, 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: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ python39:
4747
image: python:3.9-alpine
4848
script: tox -e py39
4949

50+
python310:
51+
<<: *tests_template
52+
image: python:3.10-rc-alpine
53+
script: tox -e py310
54+
5055
test-style:
5156
before_script:
5257
- pip install tox

requirements/test.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
flake8==3.6.0
44
isort==4.3.4
55
mock==2.0.0
6-
pytest==3.10.0
7-
tox==3.20.1
6+
pytest
7+
tox==3.23.1

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,9 @@
4444
'Programming Language :: Python :: 3.7',
4545
'Programming Language :: Python :: 3.8',
4646
'Programming Language :: Python :: 3.9',
47+
'Programming Language :: Python :: 3.10',
4748
],
48-
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <3.10',
49+
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <3.11',
4950
description="Official Hetzner Cloud python library",
5051
install_requires=requirements,
5152
extras_require=extras_require,

tox.ini

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

44
[testenv:flake8]
55
basepython = python
@@ -21,3 +21,4 @@ python =
2121
3.7: py37
2222
3.8: py38
2323
3.9: py39
24+
3.10: py310

0 commit comments

Comments
 (0)