[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2024-04-13 00:00:18 +00:00
parent 72ad6dc953
commit f4cd1ba0d6
813 changed files with 66015 additions and 58839 deletions

View file

@ -1,6 +1,8 @@
import distutils.command.bdist_rpm as orig
from __future__ import annotations
import warnings
import distutils.command.bdist_rpm as orig
from setuptools import SetuptoolsDeprecationWarning
@ -15,8 +17,8 @@ class bdist_rpm(orig.bdist_rpm):
def run(self):
warnings.warn(
"bdist_rpm is deprecated and will be removed in a future "
"version. Use bdist_wheel (wheel packages) instead.",
'bdist_rpm is deprecated and will be removed in a future '
'version. Use bdist_wheel (wheel packages) instead.',
SetuptoolsDeprecationWarning,
)
@ -29,11 +31,11 @@ class bdist_rpm(orig.bdist_rpm):
spec = orig.bdist_rpm._make_spec_file(self)
spec = [
line.replace(
"setup.py install ",
"setup.py install --single-version-externally-managed "
'setup.py install ',
'setup.py install --single-version-externally-managed ',
).replace(
"%setup",
"%setup -n %{name}-%{unmangled_version}"
'%setup',
'%setup -n %{name}-%{unmangled_version}',
)
for line in spec
]