Make Python 3.10 support official (#5265)

This commit is contained in:
Eugenio Lacuesta 2021-10-18 17:09:17 -03:00 committed by GitHub
parent afa5881ada
commit cfff79cee6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 20 additions and 19 deletions

View File

@ -8,10 +8,10 @@ jobs:
fail-fast: false
matrix:
include:
- python-version: 3.9
- python-version: "3.10"
env:
TOXENV: security
- python-version: 3.9
- python-version: "3.10"
env:
TOXENV: flake8
# Pylint requires installing reppy, which does not support Python 3.9
@ -20,10 +20,10 @@ jobs:
env:
TOXENV: pylint
TOX_PIP_VERSION: 20.3.3
- python-version: 3.9
- python-version: 3.6
env:
TOXENV: typing
- python-version: 3.8 # Keep in sync with .readthedocs.yml
- python-version: "3.10" # Keep in sync with .readthedocs.yml
env:
TOXENV: docs

View File

@ -9,10 +9,10 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9
python-version: "3.10"
- name: Check Tag
id: check-release-tag

View File

@ -7,7 +7,7 @@ jobs:
strategy:
fail-fast: false
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

View File

@ -17,6 +17,12 @@ jobs:
- python-version: 3.9
env:
TOXENV: py
- python-version: "3.10"
env:
TOXENV: py
- python-version: "3.10"
env:
TOXENV: asyncio
- python-version: pypy3
env:
TOXENV: pypy3
@ -42,14 +48,6 @@ jobs:
TOXENV: extra-deps
TOX_PIP_VERSION: 20.3.3
# 3.10-pre
- python-version: "3.10.0-beta.4"
env:
TOXENV: py
- python-version: "3.10.0-beta.4"
env:
TOXENV: asyncio
steps:
- uses: actions/checkout@v2

View File

@ -5,12 +5,13 @@ sphinx:
fail_on_warning: true
build:
image: latest
os: ubuntu-20.04
tools:
# For available versions, see:
# https://docs.readthedocs.io/en/stable/config-file/v2.html#build-tools-python
python: "3.10" # Keep in sync with .github/workflows/checks.yml
python:
# For available versions, see:
# https://docs.readthedocs.io/en/stable/config-file/v2.html#build-image
version: 3.8 # Keep in sync with .github/workflows/checks.yml
install:
- requirements: docs/requirements.txt
- path: .

View File

@ -87,6 +87,7 @@ setup(
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Internet :: WWW/HTTP',

View File

@ -41,6 +41,7 @@ deps =
types-pyOpenSSL==20.0.3
types-setuptools==57.0.0
commands =
pip install types-dataclasses # remove once py36 support is dropped
mypy --show-error-codes {posargs: scrapy tests}
[testenv:security]