Skip to content

Commit

Permalink
Adjust conditional and add news fragment
Browse files Browse the repository at this point in the history
  • Loading branch information
matteius committed Apr 24, 2024
1 parent febcec9 commit 96c579c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions news/6139.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
``pipenv`` converts off ``pkg_resources`` API usages. This necessitated also vendoring in:
* latest ``pipdeptree==2.18.1`` which also converted off ``pkg_resources``
* ``importlib-metadata==6.5.1`` to continue supporting python 3.8 and 3.9
* ``packaging==24.0`` since the packaging we were utilizing in pip's _vendor was insufficient for this conversion.
2 changes: 1 addition & 1 deletion pipenv/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ def dist_is_in_project(self, dist: importlib_metadata.Distribution) -> bool:
return False

# Since is_relative_to is not available in Python 3.8, we use a workaround
if sys.version_info == (3, 8):
if sys.version_info < (3, 9):
location_str = str(location)
return any(location_str.startswith(str(libdir)) for libdir in libdirs)
else:
Expand Down

0 comments on commit 96c579c

Please sign in to comment.