Skip to content

Commit

Permalink
test something
Browse files Browse the repository at this point in the history
Signed-off-by: Filipe Laíns <[email protected]>
  • Loading branch information
FFY00 committed Aug 26, 2021
1 parent d1bec97 commit 43a66e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ test =
toml>=0.10.0
wheel>=0.36.0
typing =
importlib-metadata>=4.6.4
mypy==0.910
typing-extensions>=3.7.4.3
virtualenv =
Expand Down
5 changes: 2 additions & 3 deletions src/build/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import build.env


if sys.version_info >= (3, 8) and not typing.TYPE_CHECKING:
if sys.version_info >= (3, 8):
import importlib.metadata as importlib_metadata
else:
import importlib_metadata
Expand All @@ -27,8 +27,7 @@
def _project_wheel_metadata(builder: build.ProjectBuilder) -> 'PackageMetadata':
with tempfile.TemporaryDirectory() as tmpdir:
path = pathlib.Path(builder.metadata_path(tmpdir))
# https://github.com/python/importlib_metadata/pull/343
return importlib_metadata.PathDistribution(path).metadata # type: ignore
return importlib_metadata.PathDistribution(path).metadata


def project_wheel_metadata(
Expand Down

0 comments on commit 43a66e1

Please sign in to comment.