mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-13 22:24:45 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
72ad6dc953
commit
f4cd1ba0d6
813 changed files with 66015 additions and 58839 deletions
|
|
@ -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
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue