Skip to content

Commit f4f9ffe

Browse files
authored
feat: support for Python 3.10 (#261)
* enabled py3.10 tests in CI Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com> * add py-version classifiers Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
1 parent 8050477 commit f4f9ffe

File tree

2 files changed

+23
-11
lines changed

2 files changed

+23
-11
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ on:
2828

2929
env:
3030
REPORTS_DIR: CI_reports
31+
PYTHON_VERISON_DEFAULT: "3.10"
32+
POETRY_VERSION: "1.1.11"
3133

3234
jobs:
3335
coding-standards:
@@ -41,17 +43,17 @@ jobs:
4143
# see https://github.com/actions/setup-python
4244
uses: actions/setup-python@v2
4345
with:
44-
python-version: 3.9
46+
python-version: ${{ env.PYTHON_VERISON_DEFAULT }}
4547
architecture: 'x64'
4648
- name: Install poetry
4749
# see https://github.com/marketplace/actions/setup-poetry
4850
uses: Gr1N/setup-poetry@v7
4951
with:
50-
poetry-version: 1.1.8
52+
poetry-version: ${{ env.POETRY_VERSION }}
5153
- uses: actions/cache@v2
5254
with:
5355
path: ~/.cache/pypoetry/virtualenvs
54-
key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}
56+
key: ${{ runner.os }}-${{ env.PYTHON_VERISON_DEFAULT }}-poetry${{ env.POETRY_VERSION }}-${{ hashFiles('poetry.lock') }}
5557
- name: Install dependencies
5658
run: poetry install
5759
- name: Run tox
@@ -68,17 +70,17 @@ jobs:
6870
# see https://github.com/actions/setup-python
6971
uses: actions/setup-python@v2
7072
with:
71-
python-version: 3.9
73+
python-version: ${{ env.PYTHON_VERISON_DEFAULT }}
7274
architecture: 'x64'
7375
- name: Install poetry
7476
# see https://github.com/marketplace/actions/setup-poetry
7577
uses: Gr1N/setup-poetry@v7
7678
with:
77-
poetry-version: 1.1.8
79+
poetry-version: ${{ env.POETRY_VERSION }}
7880
- uses: actions/cache@v2
7981
with:
8082
path: ~/.cache/pypoetry/virtualenvs
81-
key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}
83+
key: ${{ runner.os }}-${{ env.PYTHON_VERISON_DEFAULT }}-poetry${{ env.POETRY_VERSION }}-${{ hashFiles('poetry.lock') }}
8284
- name: Install dependencies
8385
run: poetry install
8486
- name: Run tox
@@ -95,10 +97,11 @@ jobs:
9597
matrix:
9698
os: [ubuntu-latest, windows-latest, macos-latest]
9799
python-version:
98-
- "3.9" # highest supported
100+
- "3.10" # highest supported
101+
- "3.9"
99102
- "3.8"
100103
- "3.7"
101-
- "3.6" # lowest supported
104+
- "3.6" # lowest supported
102105
steps:
103106
- name: Checkout
104107
# see https://github.com/actions/checkout
@@ -115,11 +118,11 @@ jobs:
115118
# see https://github.com/marketplace/actions/setup-poetry
116119
uses: Gr1N/setup-poetry@v7
117120
with:
118-
poetry-version: 1.1.8
121+
poetry-version: ${{ env.POETRY_VERSION }}
119122
- uses: actions/cache@v2
120123
with:
121124
path: ~/.cache/pypoetry/virtualenvs
122-
key: ${{ runner.os }}-${{ matrix.python-version }}-poetry-${{ hashFiles('poetry.lock') }}
125+
key: ${{ runner.os }}-${{ matrix.python-version }}-poetry${{ env.POETRY_VERSION }}-${{ hashFiles('poetry.lock') }}
123126
- name: Install dependencies
124127
run: poetry install
125128
- name: Ensure build successful

pyproject.toml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,15 @@ packages = [
1313
include = [
1414
"LICENSE", "NOTICE"
1515
]
16+
classifiers = [
17+
# Trove classifiers - https://packaging.python.org/specifications/core-metadata/#metadata-classifier
18+
# Full list: https://pypi.python.org/pypi?%3Aaction=list_classifiers
19+
'Programming Language :: Python :: 3.6',
20+
'Programming Language :: Python :: 3.7',
21+
'Programming Language :: Python :: 3.8',
22+
'Programming Language :: Python :: 3.9',
23+
'Programming Language :: Python :: 3.10'
24+
]
1625

1726
[tool.poetry.dependencies]
1827
python = "^3.6"
@@ -41,4 +50,4 @@ version_variable = [
4150
branch = "master"
4251
upload_to_pypi = true
4352
upload_to_release = true
44-
build_command = "pip install poetry && poetry build"
53+
build_command = "pip install poetry && poetry build"

0 commit comments

Comments
 (0)