Add support for Python 3.10

This commit is contained in:
Hugo van Kemenade 2022-06-15 15:39:30 +03:00
parent 9486f0c78b
commit 6b18f19ffd
5 changed files with 16 additions and 15 deletions

View file

@ -11,14 +11,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: "3.10"
- name: Install dependencies
run: |

View file

@ -9,13 +9,13 @@ jobs:
fail-fast: false
max-parallel: 5
matrix:
python-version: ['3.6', '3.7', '3.8', '3.9']
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
@ -25,7 +25,7 @@ jobs:
echo "::set-output name=dir::$(pip cache dir)"
- name: Cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ${{ steps.pip-cache.outputs.dir }}
key:
@ -43,6 +43,6 @@ jobs:
tox -v
- name: Upload coverage
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v2
with:
name: Python ${{ matrix.python-version }}

View file

@ -2,6 +2,3 @@
source-dir = docs/
build-dir = docs/_build
all_files = 1
[bdist_wheel]
universal=1

View file

@ -35,10 +35,12 @@ setup(
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Framework :: Django",
],
install_requires=["django-appconf >= 0.4"],

View file

@ -5,14 +5,15 @@ minversion = 1.8
envlist =
flake8
py3{6,7,8,9}-dj22
py3{6,7,8,9}-dj32
py3{6,7,8,9,10}-dj32
[gh-actions]
python =
3.6: py36
3.7: py37
3.8: py38, flake8
3.8: py38
3.9: py39
3.10: py310, flake8
[testenv]
basepython =
@ -20,6 +21,7 @@ basepython =
py37: python3.7
py38: python3.8
py39: python3.9
py310: python3.10
usedevelop = true
setenv =
DJANGO_SETTINGS_MODULE = dbtemplates.test_settings
@ -36,7 +38,7 @@ commands =
coverage xml
[testenv:flake8]
basepython = python3.9
basepython = python3.10
commands = flake8 dbtemplates
deps = flake8