Skip to content

Commit b456456

Browse files
authored
Upgrade pip and setuptools (#2434)
1 parent 3cff34f commit b456456

File tree

10 files changed

+30
-26
lines changed

10 files changed

+30
-26
lines changed

.github/workflows/check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
fail-fast: false
1818
matrix:
1919
py:
20-
- "3.11.0-beta.5"
20+
- "3.11.0-rc.2"
2121
- "3.10"
2222
- "3.9"
2323
- "3.8"

.pre-commit-config.yaml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,27 +12,30 @@ repos:
1212
- id: end-of-file-fixer
1313
- id: trailing-whitespace
1414
- repo: https://github.com/asottile/pyupgrade
15-
rev: v2.38.0
15+
rev: v3.1.0
1616
hooks:
1717
- id: pyupgrade
1818
args: ["--py36-plus"]
1919
exclude: "^(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)$"
20+
- repo: https://github.com/asottile/pyupgrade
21+
rev: v2.38.4
22+
hooks:
2023
- id: pyupgrade
2124
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)$"
2225
- repo: https://github.com/PyCQA/isort
2326
rev: 5.10.1
2427
hooks:
2528
- id: isort
2629
- repo: https://github.com/psf/black
27-
rev: 22.8.0
30+
rev: 22.10.0
2831
hooks:
2932
- id: black
3033
args: [--safe]
3134
- repo: https://github.com/asottile/blacken-docs
3235
rev: v1.12.1
3336
hooks:
3437
- id: blacken-docs
35-
additional_dependencies: [black==22.6]
38+
additional_dependencies: [black==22.10]
3639
- repo: https://github.com/pre-commit/pygrep-hooks
3740
rev: v1.9.0
3841
hooks:
@@ -43,7 +46,7 @@ repos:
4346
- id: tox-ini-fmt
4447
args: ["-p", "fix_lint"]
4548
- repo: https://github.com/asottile/setup-cfg-fmt
46-
rev: v2.0.0
49+
rev: v2.2.0
4750
hooks:
4851
- id: setup-cfg-fmt
4952
args: [--min-py3-version, "3.6 ", "--max-py-version", "3.10"]
@@ -52,10 +55,10 @@ repos:
5255
hooks:
5356
- id: flake8
5457
additional_dependencies:
55-
- flake8-bugbear==22.7.1
58+
- flake8-bugbear==22.10.25
5659
- flake8-comprehensions==3.10
5760
- flake8-pytest-style==1.6
5861
- flake8-spellcheck==0.28
59-
- flake8-unused-arguments==0.0.11
62+
- flake8-unused-arguments==0.0.12
6063
- flake8-noqa==1.2.9
6164
- pep8-naming==0.13.2

docs/changelog/2434.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Upgrade embedded setuptools to ``65.5.0`` from ``65.3.0`` and pip to ``22.3`` from ``22.2.2`` - by :user:`gaborbernat`.

setup.cfg

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ project_urls =
3333
[options]
3434
packages = find:
3535
install_requires =
36-
distlib>=0.3.5,<1
36+
distlib>=0.3.6,<1
3737
filelock>=3.4.1,<4
3838
platformdirs>=2.4,<3
3939
importlib-metadata>=4.8.3;python_version < "3.8"
@@ -79,10 +79,10 @@ virtualenv.seed =
7979
[options.extras_require]
8080
docs =
8181
proselint>=0.13
82-
sphinx>=5.1.1
83-
sphinx-argparse>=0.3.1
82+
sphinx>=5.3
83+
sphinx-argparse>=0.3.2
8484
sphinx-rtd-theme>=1
85-
towncrier>=21.9
85+
towncrier>=22.8
8686
testing =
8787
coverage>=6.2
8888
coverage-enable-subprocess>=1

src/virtualenv/activation/activator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def supports(cls, interpreter): # noqa: U100
2222
return True
2323

2424
@classmethod
25-
def add_parser_arguments(cls, parser, interpreter): # noqa: U100
25+
def add_parser_arguments(cls, parser, interpreter): # noqa: U100,B027
2626
"""
2727
Add CLI arguments for this activation script.
2828

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,28 @@
55
BUNDLE_FOLDER = Path(__file__).absolute().parent
66
BUNDLE_SUPPORT = {
77
"3.11": {
8-
"pip": "pip-22.2.2-py3-none-any.whl",
9-
"setuptools": "setuptools-65.3.0-py3-none-any.whl",
8+
"pip": "pip-22.3-py3-none-any.whl",
9+
"setuptools": "setuptools-65.5.0-py3-none-any.whl",
1010
"wheel": "wheel-0.37.1-py2.py3-none-any.whl",
1111
},
1212
"3.10": {
13-
"pip": "pip-22.2.2-py3-none-any.whl",
14-
"setuptools": "setuptools-65.3.0-py3-none-any.whl",
13+
"pip": "pip-22.3-py3-none-any.whl",
14+
"setuptools": "setuptools-65.5.0-py3-none-any.whl",
1515
"wheel": "wheel-0.37.1-py2.py3-none-any.whl",
1616
},
1717
"3.9": {
18-
"pip": "pip-22.2.2-py3-none-any.whl",
19-
"setuptools": "setuptools-65.3.0-py3-none-any.whl",
18+
"pip": "pip-22.3-py3-none-any.whl",
19+
"setuptools": "setuptools-65.5.0-py3-none-any.whl",
2020
"wheel": "wheel-0.37.1-py2.py3-none-any.whl",
2121
},
2222
"3.8": {
23-
"pip": "pip-22.2.2-py3-none-any.whl",
24-
"setuptools": "setuptools-65.3.0-py3-none-any.whl",
23+
"pip": "pip-22.3-py3-none-any.whl",
24+
"setuptools": "setuptools-65.5.0-py3-none-any.whl",
2525
"wheel": "wheel-0.37.1-py2.py3-none-any.whl",
2626
},
2727
"3.7": {
28-
"pip": "pip-22.2.2-py3-none-any.whl",
29-
"setuptools": "setuptools-65.3.0-py3-none-any.whl",
28+
"pip": "pip-22.3-py3-none-any.whl",
29+
"setuptools": "setuptools-65.5.0-py3-none-any.whl",
3030
"wheel": "wheel-0.37.1-py2.py3-none-any.whl",
3131
},
3232
"3.6": {

tasks/update_embedded.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def handle_file(previous_content, filename, variable_name, previous_encoded):
6666
def report(exit_code, new, next_match, current, script_path):
6767
if new != current:
6868
print("Content updated; overwriting... ", end="")
69-
with open(script_path, "wt") as current_fh:
69+
with open(script_path, "w") as current_fh:
7070
current_fh.write(new)
7171
print("done.")
7272
else:

tox.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ passenv =
113113
UPGRADE_ADVISORY
114114
skip_install = true
115115
deps =
116-
black>=22.6
116+
black>=22.10
117117
changedir = {toxinidir}/tasks
118118
commands =
119119
python upgrade_wheels.py
@@ -124,9 +124,9 @@ passenv =
124124
*
125125
basepython = python3.10
126126
deps =
127-
gitpython>=3.1.27
127+
gitpython>=3.1.29
128128
packaging>=21.3
129-
towncrier>=21.9
129+
towncrier>=22.8
130130
changedir = {toxinidir}/tasks
131131
commands =
132132
python release.py --version {posargs}

0 commit comments

Comments
 (0)