From e564d7299c0010bc2a9d9b133c99dbc1db2263b7 Mon Sep 17 00:00:00 2001 From: hirosassa Date: Sat, 21 May 2022 23:30:54 +0900 Subject: [PATCH] Add python 3.10 test (#18) * update python 3.10 * upgrade alpine version * use pip 3.10 * Update assets/Dockerfile Co-authored-by: Yuki Igarashi Co-authored-by: Yuki Igarashi --- assets/Dockerfile | 15 ++++++++------- setup.py | 1 + tox.ini | 4 ++-- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/assets/Dockerfile b/assets/Dockerfile index 06a6409..a3b62c2 100644 --- a/assets/Dockerfile +++ b/assets/Dockerfile @@ -1,16 +1,17 @@ # Dockerfile for pysen-test -FROM alpine:3.13.2 +FROM alpine:3.14.6 -COPY --from=python:3.6.13-alpine3.13 /usr/local/ /usr/local/ -COPY --from=python:3.7.10-alpine3.13 /usr/local/ /usr/local/ -COPY --from=python:3.8.8-alpine3.13 /usr/local/ /usr/local/ -COPY --from=python:3.9.2-alpine3.13 /usr/local/ /usr/local/ +COPY --from=python:3.6.13-alpine3.14 /usr/local/ /usr/local/ +COPY --from=python:3.7.10-alpine3.14 /usr/local/ /usr/local/ +COPY --from=python:3.8.13-alpine3.14 /usr/local/ /usr/local/ +COPY --from=python:3.9.12-alpine3.14 /usr/local/ /usr/local/ +COPY --from=python:3.10.4-alpine3.14 /usr/local/ /usr/local/ RUN apk add --no-cache expat gcc libffi musl-dev \ - && for MINOR in 6 7 8 9; do \ + && for MINOR in 6 7 8 9 10; do \ sed "s|^#!/usr/local/bin/python$|#!/usr/local/bin/python3.${MINOR}|" \ -i /usr/local/bin/*3.${MINOR}; done RUN apk add --no-cache bash git \ - && pip3.9 install --no-cache-dir tox==3.15.0 + && pip3.10 install --no-cache-dir tox==3.15.0 ENV TOX_PARALLEL_NO_SPINNER 1 diff --git a/setup.py b/setup.py index 7ce5548..8093e6d 100644 --- a/setup.py +++ b/setup.py @@ -26,6 +26,7 @@ "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", "Programming Language :: Python", "License :: OSI Approved :: MIT License", "Operating System :: POSIX", diff --git a/tox.ini b/tox.ini index 5bf4e11..53eef83 100644 --- a/tox.ini +++ b/tox.ini @@ -1,9 +1,9 @@ [tox] -envlist = py{36,37}-dacite{110,120,150}-isort43-black20, py37-dacite150-isort{43,50,51}-black{19,20}, py{38,39}-dacite150-isort51-black20, development, latest +envlist = py{36,37}-dacite{110,120,150}-isort43-black20, py37-dacite150-isort{43,50,51}-black{19,20}, py{38,39,310}-dacite150-isort51-black20, development, latest [testenv] deps = - pytest >=5.4.0,<6.0.0 + pytest >=6.2.5,<7.0.0 dacite110: dacite>=1.1.0,<1.2.0 dacite120: dacite>=1.2.0,<1.3.0 dacite150: dacite>=1.5.0,<2.0.0