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

View File

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

View File

@ -7,7 +7,7 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
python-version: [3.6, 3.7, 3.8, 3.9] python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2

View File

@ -17,6 +17,12 @@ jobs:
- python-version: 3.9 - python-version: 3.9
env: env:
TOXENV: py TOXENV: py
- python-version: "3.10"
env:
TOXENV: py
- python-version: "3.10"
env:
TOXENV: asyncio
- python-version: pypy3 - python-version: pypy3
env: env:
TOXENV: pypy3 TOXENV: pypy3
@ -42,14 +48,6 @@ jobs:
TOXENV: extra-deps TOXENV: extra-deps
TOX_PIP_VERSION: 20.3.3 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: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2

View File

@ -5,12 +5,13 @@ sphinx:
fail_on_warning: true fail_on_warning: true
build: 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: 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: install:
- requirements: docs/requirements.txt - requirements: docs/requirements.txt
- path: . - path: .

View File

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

View File

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