Skip to content

Commit

Permalink
fixup! isort
Browse files Browse the repository at this point in the history
  • Loading branch information
webknjaz committed Nov 15, 2023
1 parent 8053b17 commit 45e7644
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 15 deletions.
19 changes: 8 additions & 11 deletions packaging/pep517_backend/_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,32 +7,29 @@
from contextlib import contextmanager, nullcontext, suppress
from pathlib import Path
from shutil import copytree
from sys import implementation as _system_implementation
from sys import stderr as _standard_error_stream
from sys import version_info as _python_version_tuple
from tempfile import TemporaryDirectory
from warnings import warn as _warn_that
from sys import (
implementation as _system_implementation,
stderr as _standard_error_stream,
version_info as _python_version_tuple
)

try:
from tomllib import loads as _load_toml_from_string
except ImportError:
from tomli import loads as _load_toml_from_string

from expandvars import expandvars

from setuptools.build_meta import build_sdist as _setuptools_build_sdist
from setuptools.build_meta import build_wheel as _setuptools_build_wheel
from setuptools.build_meta import (
build_sdist as _setuptools_build_sdist,
build_wheel as _setuptools_build_wheel,
get_requires_for_build_wheel as _setuptools_get_requires_for_build_wheel,
)
from setuptools.build_meta import (
prepare_metadata_for_build_wheel as _setuptools_prepare_metadata_for_build_wheel,
)

try:
from setuptools.build_meta import (
build_editable as _setuptools_build_editable,
)
from setuptools.build_meta import build_editable as _setuptools_build_editable
except ImportError:
_setuptools_build_editable = None

Expand Down
1 change: 0 additions & 1 deletion packaging/pep517_backend/_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from contextlib import contextmanager
from pathlib import Path


try:
from contextlib import chdir as chdir_cm
except ImportError:
Expand Down
6 changes: 3 additions & 3 deletions packaging/pep517_backend/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

with _suppress(ImportError): # Only succeeds w/ setuptools implementing PEP 660
from ._backend import ( # noqa: WPS436 # Re-exporting PEP 660 hooks
build_editable,
get_requires_for_build_editable,
prepare_metadata_for_build_editable,
build_editable,
get_requires_for_build_editable,
prepare_metadata_for_build_editable,
)

0 comments on commit 45e7644

Please sign in to comment.