Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
python-poetry
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
python-poetry
Commits
f6e1f936
Unverified
Commit
f6e1f936
authored
Apr 08, 2023
by
David Hotham
Committed by
GitHub
Apr 08, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
handle importlib-metadata deprecation (#7774)
parent
860c8387
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
src/poetry/repositories/installed_repository.py
+4
-3
No files found.
src/poetry/repositories/installed_repository.py
View file @
f6e1f936
...
...
@@ -257,9 +257,8 @@ class InstalledRepository(Repository):
if
path
in
skipped
:
continue
try
:
name
=
canonicalize_name
(
distribution
.
metadata
[
"name"
])
except
TypeError
:
name
=
distribution
.
metadata
.
get
(
"name"
)
# type: ignore[attr-defined]
if
name
is
None
:
logger
.
warning
(
(
"Project environment contains an invalid distribution"
...
...
@@ -271,6 +270,8 @@ class InstalledRepository(Repository):
skipped
.
add
(
path
)
continue
name
=
canonicalize_name
(
name
)
if
name
in
seen
:
continue
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment