[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

@ -2,11 +2,12 @@
Create a dist_info directory
As defined in the wheel specification
"""
from __future__ import annotations
import os
from distutils.core import Command
from distutils import log
from distutils.core import Command
class dist_info(Command):
@ -14,8 +15,10 @@ class dist_info(Command):
description = 'create a .dist-info directory'
user_options = [
('egg-base=', 'e', "directory containing .egg-info directories"
" (default: top of the source tree)"),
(
'egg-base=', 'e', 'directory containing .egg-info directories'
' (default: top of the source tree)',
),
]
def initialize_options(self):
@ -30,7 +33,7 @@ class dist_info(Command):
egg_info.finalize_options()
egg_info.run()
dist_info_dir = egg_info.egg_info[:-len('.egg-info')] + '.dist-info'
log.info("creating '{}'".format(os.path.abspath(dist_info_dir)))
log.info(f"creating '{os.path.abspath(dist_info_dir)}'")
bdist_wheel = self.get_finalized_command('bdist_wheel')
bdist_wheel.egg2dist(egg_info.egg_info, dist_info_dir)