Skip to content

Commit fd064dc

Browse files
authored
Bump dependencies and build tools (#2394)
Signed-off-by: Bernát Gábor <[email protected]>
1 parent a45c7d6 commit fd064dc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+495
-234
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.4"
20+
- "3.11.0-beta.5"
2121
- "3.10"
2222
- "3.9"
2323
- "3.8"

.pre-commit-config.yaml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ repos:
1212
- id: end-of-file-fixer
1313
- id: trailing-whitespace
1414
- repo: https://github.com/asottile/pyupgrade
15-
rev: v2.37.2
15+
rev: v2.37.3
1616
hooks:
1717
- id: pyupgrade
1818
args: ["--py36-plus"]
@@ -32,7 +32,7 @@ repos:
3232
rev: v1.12.1
3333
hooks:
3434
- id: blacken-docs
35-
additional_dependencies: [black==22.6.0]
35+
additional_dependencies: [black==22.6]
3636
- repo: https://github.com/pre-commit/pygrep-hooks
3737
rev: v1.9.0
3838
hooks:
@@ -43,12 +43,19 @@ repos:
4343
- id: tox-ini-fmt
4444
args: ["-p", "fix_lint"]
4545
- repo: https://github.com/asottile/setup-cfg-fmt
46-
rev: v1.20.2
46+
rev: v2.0.0
4747
hooks:
4848
- id: setup-cfg-fmt
4949
args: [--min-py3-version, "3.6 ", "--max-py-version", "3.10"]
5050
- repo: https://github.com/PyCQA/flake8
51-
rev: "4.0.1"
51+
rev: "5.0.4"
5252
hooks:
5353
- id: flake8
54-
additional_dependencies: ["flake8-bugbear == 22.6.22"]
54+
additional_dependencies:
55+
- flake8-bugbear==22.7.1
56+
- flake8-comprehensions==3.10
57+
- flake8-pytest-style==1.6
58+
- flake8-spellcheck==0.28
59+
- flake8-unused-arguments==0.0.11
60+
- flake8-noqa==1.2.8
61+
- pep8-naming==0.13.1

docs/conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ def setup(app):
7878
if cli_interface_doctree.exists():
7979
cli_interface_doctree.unlink()
8080

81-
HERE = Path(__file__).parent
82-
if str(HERE) not in sys.path:
83-
sys.path.append(str(HERE))
81+
here = Path(__file__).parent
82+
if str(here) not in sys.path:
83+
sys.path.append(str(here))
8484

8585
# noinspection PyUnresolvedReferences
8686
from render_cli import CliTable, literal_data

docs/render_cli.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
class CliTable(SphinxDirective):
2525
name = "table_cli"
26-
option_spec = dict(module=unchanged_required, func=unchanged_required)
26+
option_spec = {"module": unchanged_required, "func": unchanged_required}
2727

2828
def run(self):
2929
module_name, attr_name = self.options["module"], self.options["func"]
@@ -48,7 +48,7 @@ def run(self):
4848
parser_result = parse_parser(parser_creator(cmd))
4949
opt_group = next(i["options"] for i in parser_result["action_groups"] if i["title"] == key)
5050
results[name] = opt_group
51-
core_names = set.intersection(*list({tuple(i["name"]) for i in v} for v in results.values()))
51+
core_names = set.intersection(*[{tuple(i["name"]) for i in v} for v in results.values()])
5252
if core_names:
5353
rows = [i for i in next(iter(results.values())) if tuple(i["name"]) in core_names]
5454
content.append(
@@ -223,7 +223,7 @@ def register_target_option(self, target) -> None:
223223
domain.add_program_option(None, key, self.env.docname, key)
224224

225225

226-
def literal_data(rawtext, app, type, slug, options):
226+
def literal_data(rawtext, app, type, slug, options): # noqa: U100
227227
"""Create a link to a BitBucket resource."""
228228
of_class = type.split(".")
229229
data = getattr(__import__(".".join(of_class[:-1]), fromlist=[of_class[-1]]), of_class[-1])

pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
[build-system]
22
requires = [
3-
"setuptools >= 41.0.0",
4-
"wheel >= 0.30.0",
5-
"setuptools_scm >= 2",
3+
"setuptools>=59.6",
4+
"setuptools-scm>=6.4.2",
65
]
76
build-backend = 'setuptools.build_meta'
87

setup.cfg

Lines changed: 18 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@ classifiers =
2020
Operating System :: POSIX
2121
Programming Language :: Python :: 3
2222
Programming Language :: Python :: 3 :: Only
23-
Programming Language :: Python :: 3.6
24-
Programming Language :: Python :: 3.7
25-
Programming Language :: Python :: 3.8
26-
Programming Language :: Python :: 3.9
27-
Programming Language :: Python :: 3.10
2823
Programming Language :: Python :: Implementation :: CPython
2924
Programming Language :: Python :: Implementation :: PyPy
3025
Topic :: Software Development :: Libraries
@@ -38,11 +33,11 @@ project_urls =
3833
[options]
3934
packages = find:
4035
install_requires =
41-
distlib>=0.3.1,<1
42-
filelock>=3.2,<4
43-
platformdirs>=2,<3
44-
importlib-metadata>=0.12;python_version<"3.8"
45-
importlib-resources>=1.0;python_version<"3.7"
36+
distlib>=0.3.5,<1
37+
filelock>=3.4.1,<4
38+
platformdirs>=2.4,<3
39+
importlib-metadata>=4.8.3;python_version < "3.8"
40+
importlib-resources>=5.4;python_version < "3.7"
4641
python_requires = >=3.6
4742
package_dir =
4843
=src
@@ -83,22 +78,22 @@ virtualenv.seed =
8378

8479
[options.extras_require]
8580
docs =
86-
proselint>=0.10.2
87-
sphinx>=3
88-
sphinx-argparse>=0.2.5
89-
sphinx-rtd-theme>=0.4.3
90-
towncrier>=21.3
81+
proselint>=0.13
82+
sphinx>=5.1.1
83+
sphinx-argparse>=0.3.1
84+
sphinx-rtd-theme>=1
85+
towncrier>=21.9
9186
testing =
92-
coverage>=4
87+
coverage>=6.2
9388
coverage-enable-subprocess>=1
94-
flaky>=3
95-
packaging>=20.0
96-
pytest>=4
89+
flaky>=3.7
90+
packaging>=21.3
91+
pytest>=7.0.1
9792
pytest-env>=0.6.2
98-
pytest-freezegun>=0.4.1
99-
pytest-mock>=2
100-
pytest-randomly>=1
101-
pytest-timeout>=1
93+
pytest-freezegun>=0.4.2
94+
pytest-mock>=3.6.1
95+
pytest-randomly>=3.10.3
96+
pytest-timeout>=2.1
10297

10398
[options.package_data]
10499
virtualenv.activation.bash = *.sh

src/virtualenv/activation/activator.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def __init__(self, options):
1313
self.flag_prompt = os.path.basename(os.getcwd()) if options.prompt == "." else options.prompt
1414

1515
@classmethod
16-
def supports(cls, interpreter):
16+
def supports(cls, interpreter): # noqa: U100
1717
"""Check if the activation script is supported in the given interpreter.
1818
1919
:param interpreter: the interpreter we need to support
@@ -22,7 +22,7 @@ def supports(cls, interpreter):
2222
return True
2323

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

3333
@abstractmethod
34-
def generate(self, creator):
34+
def generate(self, creator): # noqa: U100
3535
"""Generate activate script for the given creator.
3636
3737
:param creator: the creator (based of :class:`virtualenv.create.creator.Creator`) we used to create this \

src/virtualenv/activation/via_template.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def generate(self, creator):
2323
creator.pyenv_cfg["prompt"] = self.flag_prompt
2424
return generated
2525

26-
def replacements(self, creator, dest_folder):
26+
def replacements(self, creator, dest_folder): # noqa: U100
2727
return {
2828
"__VIRTUAL_PROMPT__": "" if self.flag_prompt is None else self.flag_prompt,
2929
"__VIRTUAL_ENV__": str(creator.dest),
@@ -55,8 +55,8 @@ def instantiate_template(self, replacements, template, creator):
5555
return text
5656

5757
@staticmethod
58-
def _repr_unicode(creator, value):
59-
return value # by default we just let it be unicode
58+
def _repr_unicode(creator, value): # noqa: U100
59+
return value # by default, we just let it be unicode
6060

6161

6262
__all__ = [

src/virtualenv/app_data/base.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def reset(self):
2020
"""called when the user passes in the reset app data"""
2121

2222
@abstractmethod
23-
def py_info(self, path):
23+
def py_info(self, path): # noqa: U100
2424
raise NotImplementedError
2525

2626
@abstractmethod
@@ -32,7 +32,7 @@ def can_update(self):
3232
raise NotImplementedError
3333

3434
@abstractmethod
35-
def embed_update_log(self, distribution, for_py_version):
35+
def embed_update_log(self, distribution, for_py_version): # noqa: U100
3636
raise NotImplementedError
3737

3838
@property
@@ -44,7 +44,7 @@ def transient(self):
4444
raise NotImplementedError
4545

4646
@abstractmethod
47-
def wheel_image(self, for_py_version, name):
47+
def wheel_image(self, for_py_version, name): # noqa: U100
4848
raise NotImplementedError
4949

5050
@contextmanager
@@ -58,12 +58,12 @@ def ensure_extracted(self, path, to_folder=None):
5858

5959
@abstractmethod
6060
@contextmanager
61-
def extract(self, path, to_folder):
61+
def extract(self, path, to_folder): # noqa: U100
6262
raise NotImplementedError
6363

6464
@abstractmethod
6565
@contextmanager
66-
def locked(self, path):
66+
def locked(self, path): # noqa: U100
6767
raise NotImplementedError
6868

6969

@@ -77,7 +77,7 @@ def read(self):
7777
raise NotImplementedError
7878

7979
@abstractmethod
80-
def write(self, content):
80+
def write(self, content): # noqa: U100
8181
raise NotImplementedError
8282

8383
@abstractmethod

src/virtualenv/app_data/na.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,25 +20,25 @@ def close(self):
2020
def reset(self):
2121
"""do nothing"""
2222

23-
def py_info(self, path):
23+
def py_info(self, path): # noqa: U100
2424
return ContentStoreNA()
2525

26-
def embed_update_log(self, distribution, for_py_version):
26+
def embed_update_log(self, distribution, for_py_version): # noqa: U100
2727
return ContentStoreNA()
2828

29-
def extract(self, path, to_folder):
29+
def extract(self, path, to_folder): # noqa: U100
3030
raise self.error
3131

3232
@contextmanager
33-
def locked(self, path):
33+
def locked(self, path): # noqa: U100
3434
"""do nothing"""
3535
yield
3636

3737
@property
3838
def house(self):
3939
raise self.error
4040

41-
def wheel_image(self, for_py_version, name):
41+
def wheel_image(self, for_py_version, name): # noqa: U100
4242
raise self.error
4343

4444
def py_info_clear(self):
@@ -53,7 +53,7 @@ def read(self):
5353
"""nothing to read"""
5454
return None
5555

56-
def write(self, content):
56+
def write(self, content): # noqa: U100
5757
"""nothing to write"""
5858

5959
def remove(self):

0 commit comments

Comments
 (0)