Skip to content

Commit 9b4b17f

Browse files
authored
Bump embedded pip and setuptools (#2489)
1 parent a98c3f5 commit 9b4b17f

File tree

11 files changed

+78
-140
lines changed

11 files changed

+78
-140
lines changed

.github/ISSUE_TEMPLATE/feature-request.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ assignees: ""
1818

1919
**Alternative Solutions**
2020

21-
<!-- Have you tried to workaround the problem using virtualenv or other tools? Or a different approach to solving this issue? Please elaborate here. -->
21+
<!-- Have you tried to workaround the problem using virtualenv or other tools? Or a different approach to solving this
22+
issue? Please elaborate here. -->
2223

2324
**Additional context**
2425

.github/workflows/check.yml

Lines changed: 1 addition & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -93,48 +93,6 @@ jobs:
9393
PYTEST_ADDOPTS: "-vv --durations=20"
9494
CI_RUN: "yes"
9595
DIFF_AGAINST: HEAD
96-
- name: Rename coverage report file
97-
run: |
98-
import os; import sys
99-
os.rename(f".tox/.coverage.{os.environ['TOXENV']}", f".tox/.coverage.{os.environ['TOXENV']}-{sys.platform}")
100-
shell: python
101-
- name: Upload coverage data
102-
uses: actions/upload-artifact@v3
103-
with:
104-
name: coverage-data
105-
path: ".tox/.coverage.*"
106-
107-
coverage:
108-
name: Combine coverage
109-
runs-on: ubuntu-22.04
110-
needs: test
111-
steps:
112-
- uses: actions/checkout@v3
113-
with:
114-
fetch-depth: 0
115-
- uses: actions/setup-python@v4
116-
with:
117-
python-version: "3.11"
118-
- name: Install tox
119-
run: python -m pip install tox
120-
- name: Setup coverage tool
121-
run: tox -e coverage --notest
122-
- name: Install package builder
123-
run: python -m pip install build
124-
- name: Build package
125-
run: pyproject-build --wheel .
126-
- name: Download coverage data
127-
uses: actions/download-artifact@v3
128-
with:
129-
name: coverage-data
130-
path: .tox
131-
- name: Combine and report coverage
132-
run: tox -e coverage
133-
- name: Upload HTML report
134-
uses: actions/upload-artifact@v3
135-
with:
136-
name: html-report
137-
path: .tox/htmlcov
13896

13997
check:
14098
name: ${{ matrix.tox_env }} - ${{ matrix.os }}
@@ -171,7 +129,7 @@ jobs:
171129
UPGRADE_ADVISORY: "yes"
172130

173131
publish:
174-
needs: [check, coverage]
132+
needs: [check]
175133
runs-on: ubuntu-22.04
176134
steps:
177135
- name: Setup python to build package

.pre-commit-config.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ repos:
1717
- id: add-trailing-comma
1818
args: [--py36-plus]
1919
- repo: https://github.com/asottile/pyupgrade
20-
rev: v3.2.1
20+
rev: v3.3.1
2121
hooks:
2222
- id: pyupgrade
2323
args: ["--py37-plus"]
@@ -28,25 +28,25 @@ repos:
2828
- id: pyupgrade
2929
files: "^(src/virtualenv/create/via_global_ref/_virtualenv.py|src/virtualenv/create/via_global_ref/builtin/python2/site.py|src/virtualenv/discovery/py_info.py|tasks/__main__zipapp.py)$"
3030
- repo: https://github.com/PyCQA/isort
31-
rev: 5.11.4
31+
rev: 5.12.0
3232
hooks:
3333
- id: isort
3434
- repo: https://github.com/psf/black
35-
rev: 22.12.0
35+
rev: 23.1.0
3636
hooks:
3737
- id: black
3838
args: [--safe]
3939
- repo: https://github.com/asottile/blacken-docs
40-
rev: v1.12.1
40+
rev: 1.13.0
4141
hooks:
4242
- id: blacken-docs
43-
additional_dependencies: [black==22.12]
43+
additional_dependencies: [black==23.1]
4444
- repo: https://github.com/pre-commit/pygrep-hooks
45-
rev: v1.9.0
45+
rev: v1.10.0
4646
hooks:
4747
- id: rst-backticks
4848
- repo: https://github.com/tox-dev/tox-ini-fmt
49-
rev: "0.5.2"
49+
rev: "0.6.1"
5050
hooks:
5151
- id: tox-ini-fmt
5252
args: ["-p", "fix"]
@@ -55,11 +55,11 @@ repos:
5555
hooks:
5656
- id: flake8
5757
additional_dependencies:
58-
- flake8-bugbear==22.12.6
58+
- flake8-bugbear==23.1.20
5959
- flake8-comprehensions==3.10.1
6060
- flake8-pytest-style==1.6
6161
- flake8-spellcheck==0.28
62-
- flake8-unused-arguments==0.0.12
62+
- flake8-unused-arguments==0.0.13
6363
- flake8-noqa==1.3
6464
- pep8-naming==0.13.3
6565
- flake8-pyproject==1.2.2
@@ -68,11 +68,11 @@ repos:
6868
hooks:
6969
- id: prettier
7070
additional_dependencies:
71-
- prettier@3.0.0-alpha.4
71+
- prettier@2.7.1
7272
- "@prettier/[email protected]"
7373
args: ["--print-width=120", "--prose-wrap=always"]
7474
- repo: https://github.com/igorshubovych/markdownlint-cli
75-
rev: v0.32.2
75+
rev: v0.33.0
7676
hooks:
7777
- id: markdownlint
7878
- repo: meta

docs/changelog/2489.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Bump embedded pip to ``23.0`` and setuptools to ``67.1`` - by :user:`gaborbernat`.

pyproject.toml

Lines changed: 43 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,71 @@
11
[build-system]
22
build-backend = "hatchling.build"
3-
requires = ["hatch-vcs>=0.3", "hatchling>=1.11.1"]
3+
requires = [
4+
"hatch-vcs>=0.3",
5+
"hatchling>=1.12.2",
6+
]
47

58
[project]
69
name = "virtualenv"
710
description = "Virtual Python Environment builder"
811
readme = "README.md"
12+
keywords = [
13+
"environments",
14+
"isolated",
15+
"virtual",
16+
]
917
license = "MIT"
1018
maintainers = [{ name = "Bernat Gabor", email = "[email protected]" }]
11-
urls.Documentation = "https://virtualenv.pypa.io"
12-
urls.Homepage = "https://github.com/pypa/virtualenv"
13-
urls.Source = "https://github.com/pypa/virtualenv"
14-
urls.Tracker = "https://github.com/pypa/virtualenv/issues"
15-
scripts.virtualenv = "virtualenv.__main__:run_with_catch"
1619
requires-python = ">=3.7"
20+
classifiers = [
21+
"Development Status :: 5 - Production/Stable",
22+
"Intended Audience :: Developers",
23+
"License :: OSI Approved :: MIT License",
24+
"Operating System :: MacOS :: MacOS X",
25+
"Operating System :: Microsoft :: Windows",
26+
"Operating System :: POSIX",
27+
"Programming Language :: Python :: 3",
28+
"Programming Language :: Python :: 3 :: Only",
29+
"Programming Language :: Python :: Implementation :: CPython",
30+
"Programming Language :: Python :: Implementation :: PyPy",
31+
"Topic :: Software Development :: Libraries",
32+
"Topic :: Software Development :: Testing",
33+
"Topic :: Utilities",
34+
]
35+
dynamic = [
36+
"version",
37+
]
1738
dependencies = [
1839
"distlib<1,>=0.3.6",
1940
"filelock<4,>=3.4.1",
2041
'importlib-metadata>=4.8.3; python_version < "3.8"',
2142
"platformdirs<3,>=2.4",
2243
]
44+
optional-dependencies.docs = [
45+
"proselint>=0.13",
46+
"sphinx>=5.3",
47+
"sphinx-argparse>=0.4",
48+
"sphinx-rtd-theme>=1.1.1",
49+
"towncrier>=22.12",
50+
]
2351
optional-dependencies.test = [
2452
"covdefaults>=2.2.2",
25-
"coverage>=7.0.2",
53+
"coverage>=7.1",
2654
"coverage-enable-subprocess>=1",
2755
"flaky>=3.7",
28-
"packaging>=22",
29-
"pytest>=7.2",
56+
"packaging>=23",
57+
"pytest>=7.2.1",
3058
"pytest-env>=0.8.1",
3159
"pytest-freezegun>=0.4.2",
3260
"pytest-mock>=3.10",
3361
"pytest-randomly>=3.12",
3462
"pytest-timeout>=2.1",
3563
]
36-
optional-dependencies.docs = [
37-
"proselint>=0.13",
38-
"sphinx>=5.3",
39-
"sphinx-argparse>=0.4",
40-
"sphinx-rtd-theme>=1.1.1",
41-
"towncrier>=22.12",
42-
]
43-
keywords = ["environments", "isolated", "virtual"]
44-
classifiers = [
45-
"Development Status :: 5 - Production/Stable",
46-
"Intended Audience :: Developers",
47-
"License :: OSI Approved :: MIT License",
48-
"Operating System :: MacOS :: MacOS X",
49-
"Operating System :: Microsoft :: Windows",
50-
"Operating System :: POSIX",
51-
"Programming Language :: Python :: 3",
52-
"Programming Language :: Python :: 3 :: Only",
53-
"Programming Language :: Python :: Implementation :: CPython",
54-
"Programming Language :: Python :: Implementation :: PyPy",
55-
"Topic :: Software Development :: Libraries",
56-
"Topic :: Software Development :: Testing",
57-
"Topic :: Utilities",
58-
]
59-
dynamic = ["version"]
64+
urls.Documentation = "https://virtualenv.pypa.io"
65+
urls.Homepage = "https://github.com/pypa/virtualenv"
66+
urls.Source = "https://github.com/pypa/virtualenv"
67+
urls.Tracker = "https://github.com/pypa/virtualenv/issues"
68+
scripts.virtualenv = "virtualenv.__main__:run_with_catch"
6069

6170
[project.entry-points."virtualenv.activate"]
6271
bash = "virtualenv.activation.bash:BashActivator"
@@ -137,4 +146,4 @@ ignore = [
137146
markers = ["slow"]
138147
timeout = 600
139148
addopts = "--tb=auto -ra --showlocals --no-success-flaky-report"
140-
env = ["PYTHONWARNINGS=ignore:DEPRECATION::pip._internal.cli.base_command", "PYTHONIOENCODING=utf-8"]
149+
env = ["PYTHONIOENCODING=utf-8"]

src/virtualenv/config/cli/parser.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ def __init__(self, prog):
110110
super().__init__(prog, max_help_position=32, width=240)
111111

112112
def _get_help_string(self, action):
113-
114113
text = super()._get_help_string(action)
115114
if hasattr(action, "default_source"):
116115
default = " (default: %(default)s)"

src/virtualenv/seed/wheels/embed/__init__.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,33 +5,33 @@
55
BUNDLE_FOLDER = Path(__file__).absolute().parent
66
BUNDLE_SUPPORT = {
77
"3.12": {
8-
"pip": "pip-22.3.1-py3-none-any.whl",
9-
"setuptools": "setuptools-65.6.3-py3-none-any.whl",
8+
"pip": "pip-23.0-py3-none-any.whl",
9+
"setuptools": "setuptools-67.1.0-py3-none-any.whl",
1010
"wheel": "wheel-0.38.4-py3-none-any.whl",
1111
},
1212
"3.11": {
13-
"pip": "pip-22.3.1-py3-none-any.whl",
14-
"setuptools": "setuptools-65.6.3-py3-none-any.whl",
13+
"pip": "pip-23.0-py3-none-any.whl",
14+
"setuptools": "setuptools-67.1.0-py3-none-any.whl",
1515
"wheel": "wheel-0.38.4-py3-none-any.whl",
1616
},
1717
"3.10": {
18-
"pip": "pip-22.3.1-py3-none-any.whl",
19-
"setuptools": "setuptools-65.6.3-py3-none-any.whl",
18+
"pip": "pip-23.0-py3-none-any.whl",
19+
"setuptools": "setuptools-67.1.0-py3-none-any.whl",
2020
"wheel": "wheel-0.38.4-py3-none-any.whl",
2121
},
2222
"3.9": {
23-
"pip": "pip-22.3.1-py3-none-any.whl",
24-
"setuptools": "setuptools-65.6.3-py3-none-any.whl",
23+
"pip": "pip-23.0-py3-none-any.whl",
24+
"setuptools": "setuptools-67.1.0-py3-none-any.whl",
2525
"wheel": "wheel-0.38.4-py3-none-any.whl",
2626
},
2727
"3.8": {
28-
"pip": "pip-22.3.1-py3-none-any.whl",
29-
"setuptools": "setuptools-65.6.3-py3-none-any.whl",
28+
"pip": "pip-23.0-py3-none-any.whl",
29+
"setuptools": "setuptools-67.1.0-py3-none-any.whl",
3030
"wheel": "wheel-0.38.4-py3-none-any.whl",
3131
},
3232
"3.7": {
33-
"pip": "pip-22.3.1-py3-none-any.whl",
34-
"setuptools": "setuptools-65.6.3-py3-none-any.whl",
33+
"pip": "pip-23.0-py3-none-any.whl",
34+
"setuptools": "setuptools-67.1.0-py3-none-any.whl",
3535
"wheel": "wheel-0.38.4-py3-none-any.whl",
3636
},
3737
"3.6": {

tests/integration/test_zipapp.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import shutil
22
import subprocess
3-
import sys
43
from pathlib import Path
54

65
import pytest
@@ -16,14 +15,14 @@
1615
@pytest.fixture(scope="session")
1716
def zipapp_build_env(tmp_path_factory):
1817
create_env_path = None
19-
if sys.version_info[0:2] >= (3, 5) and CURRENT.implementation != "PyPy":
18+
if CURRENT.implementation != "PyPy":
2019
exe = CURRENT.executable # guaranteed to contain a recent enough pip (tox.ini)
2120
else:
2221
create_env_path = tmp_path_factory.mktemp("zipapp-create-env")
2322
exe, found = None, False
2423
# prefer CPython as builder as pypy is slow
2524
for impl in ["cpython", ""]:
26-
for version in range(8, 4, -1):
25+
for version in range(11, 6, -1):
2726
try:
2827
# create a virtual environment which is also guaranteed to contain a recent enough pip (bundled)
2928
session = cli_run(
@@ -47,7 +46,7 @@ def zipapp_build_env(tmp_path_factory):
4746
break
4847
else:
4948
raise RuntimeError("could not find a python to build zipapp")
50-
cmd = [str(Path(exe).parent / "pip"), "install", "pip>=19.3", "packaging>=20"]
49+
cmd = [str(Path(exe).parent / "pip"), "install", "pip>=23", "packaging>=23"]
5150
subprocess.check_call(cmd)
5251
yield exe
5352
if create_env_path is not None:

0 commit comments

Comments
 (0)