Skip to content

Commit c18bc16

Browse files
authored
Merge pull request #10164 from pradyunsg/python-3.10
2 parents b400ee3 + 4d933d2 commit c18bc16

File tree

7 files changed

+12
-4
lines changed

7 files changed

+12
-4
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ jobs:
9696
- 3.7
9797
- 3.8
9898
- 3.9
99+
- "3.10.0-alpha - 3.10"
99100

100101
steps:
101102
- uses: actions/checkout@v2
@@ -137,6 +138,7 @@ jobs:
137138
# - 3.7
138139
# - 3.8
139140
- 3.9
141+
- "3.10.0-alpha - 3.10"
140142
group: [1, 2]
141143

142144
steps:

docs/html/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ distro community, cloud provider support channels, etc).
6767
The current version of pip works on:
6868

6969
- Windows, Linux and MacOS.
70-
- CPython 3.6, 3.7, 3.8, 3.9 and latest PyPy3.
70+
- CPython 3.6, 3.7, 3.8, 3.9, 3.10 and latest PyPy3.
7171

7272
pip is tested to work on the latest patch version of the Python interpreter,
7373
for each of the minor versions listed above. Previous patch versions are

noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def should_update_common_wheels() -> bool:
7070
# completely to nox for all our automation. Contributors should prefer using
7171
# `tox -e ...` until this note is removed.
7272
# -----------------------------------------------------------------------------
73-
@nox.session(python=["3.6", "3.7", "3.8", "3.9", "pypy3"])
73+
@nox.session(python=["3.6", "3.7", "3.8", "3.9", "3.10", "pypy3"])
7474
def test(session: nox.Session) -> None:
7575
# Get the common wheels.
7676
if should_update_common_wheels():

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ def get_version(rel_path: str) -> str:
4141
"Programming Language :: Python :: 3.7",
4242
"Programming Language :: Python :: 3.8",
4343
"Programming Language :: Python :: 3.9",
44+
"Programming Language :: Python :: 3.10",
4445
"Programming Language :: Python :: Implementation :: CPython",
4546
"Programming Language :: Python :: Implementation :: PyPy",
4647
],

tests/functional/test_warning.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import sys
12
import textwrap
23

34
import pytest
@@ -44,6 +45,10 @@ def test_flag_does_nothing_if_python_version_is_not_2(script):
4445
script.pip("list", "--no-python-version-warning")
4546

4647

48+
@pytest.mark.skipif(
49+
sys.version_info >= (3, 10),
50+
reason="distutils is deprecated in 3.10+"
51+
)
4752
def test_pip_works_with_warnings_as_errors(script):
4853
script.environ['PYTHONWARNINGS'] = 'error'
4954
script.pip("--version")

tests/lib/test_lib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def test_correct_pip_version(script):
4545
# distribution
4646
pip_folder_outputed = re.match(
4747
r"pip \d+(\.[\d]+)+(\.?(b|rc|dev|pre|post)\d+)? from (.*) "
48-
r"\(python \d(.[\d])+\)$",
48+
r"\(python \d+(\.[\d]+)+\)$",
4949
result.stdout,
5050
).group(4)
5151
pip_folder = join(SRC_DIR, "src", "pip")

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
minversion = 3.4.0
33
envlist =
44
docs, packaging, lint, vendoring,
5-
py36, py37, py38, py39, pypy3
5+
py36, py37, py38, py39, py310, pypy3
66

77
[helpers]
88
# Wrapper for calls to pip that make sure the version being used is the

0 commit comments

Comments
 (0)