Merge pull request #8971 from McSinyx/ci39

This commit is contained in:
Pradyun Gedam 2020-10-19 19:23:49 +05:30 committed by GitHub
commit 4e26bf22f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 12 additions and 10 deletions

View File

@ -23,10 +23,10 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Set up Python 3.8 - name: Set up Python 3.9
uses: actions/setup-python@v1 uses: actions/setup-python@v2
with: with:
python-version: 3.8 python-version: 3.9
# Setup Caching # Setup Caching
- name: pip cache - name: pip cache

View File

@ -69,7 +69,7 @@ repos:
files: \.py$ files: \.py$
- repo: https://github.com/pre-commit/mirrors-mypy - repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.770 rev: v0.790
hooks: hooks:
- id: mypy - id: mypy
exclude: docs|tests exclude: docs|tests

1
news/8971.feature.rst Normal file
View File

@ -0,0 +1 @@
Support Python 3.9.

View File

@ -69,7 +69,7 @@ def should_update_common_wheels():
# completely to nox for all our automation. Contributors should prefer using # completely to nox for all our automation. Contributors should prefer using
# `tox -e ...` until this note is removed. # `tox -e ...` until this note is removed.
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
@nox.session(python=["2.7", "3.5", "3.6", "3.7", "3.8", "pypy", "pypy3"]) @nox.session(python=["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "pypy", "pypy3"])
def test(session): def test(session):
# Get the common wheels. # Get the common wheels.
if should_update_common_wheels(): if should_update_common_wheels():

View File

@ -47,6 +47,7 @@ setup(
"Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.6",
"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 :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy", "Programming Language :: Python :: Implementation :: PyPy",
], ],

View File

@ -200,7 +200,7 @@ class HashError(InstallationError):
""" """
req = None # type: Optional[InstallRequirement] req = None # type: Optional[InstallRequirement]
head = '' head = ''
order = None # type: Optional[int] order = -1 # type: int
def body(self): def body(self):
# type: () -> str # type: () -> str

View File

@ -2,7 +2,7 @@
minversion = 3.4.0 minversion = 3.4.0
envlist = envlist =
docs, packaging, lint, vendoring, docs, packaging, lint, vendoring,
py27, py35, py36, py37, py38, pypy, pypy3 py27, py35, py36, py37, py38, py39, pypy, pypy3
[helpers] [helpers]
# Wrapper for calls to pip that make sure the version being used is the # Wrapper for calls to pip that make sure the version being used is the
@ -49,7 +49,7 @@ setenv =
[testenv:docs] [testenv:docs]
# Don't skip install here since pip_sphinxext uses pip's internals. # Don't skip install here since pip_sphinxext uses pip's internals.
deps = -r{toxinidir}/tools/requirements/docs.txt deps = -r{toxinidir}/tools/requirements/docs.txt
basepython = python3.8 basepython = python3
commands = commands =
sphinx-build -W -d {envtmpdir}/doctrees/html -b html docs/html docs/build/html sphinx-build -W -d {envtmpdir}/doctrees/html -b html docs/html docs/build/html
# Having the conf.py in the docs/html is weird but needed because we # Having the conf.py in the docs/html is weird but needed because we
@ -66,11 +66,11 @@ commands =
pre-commit run [] --all-files --show-diff-on-failure pre-commit run [] --all-files --show-diff-on-failure
[testenv:vendoring] [testenv:vendoring]
basepython = python3.8 basepython = python3
skip_install = True skip_install = True
commands_pre = commands_pre =
deps = deps =
vendoring==0.2.2 vendoring~=0.3.3
# Required, otherwise we interpret --no-binary :all: as # Required, otherwise we interpret --no-binary :all: as
# "do not build wheels", which fails for PEP 517 requirements # "do not build wheels", which fails for PEP 517 requirements
pip>=19.3.1 pip>=19.3.1