Skip to content

Commit

Permalink
vendor in requirementslib==1.6.4 (#5082)
Browse files Browse the repository at this point in the history
* vendor in requirementslib==1.6.4

* add news fragment.
  • Loading branch information
matteius authored Apr 25, 2022
1 parent 295fb30 commit 347ce47
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions news/5081.vendor.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Vendor in ``requirementslib==1.6.4`` to Fix ``SetuptoolsDeprecationWarning`` ``setuptools.config.read_configuration`` became deprecated.
2 changes: 1 addition & 1 deletion pipenv/vendor/requirementslib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from .models.pipfile import Pipfile
from .models.requirements import Requirement

__version__ = "1.6.3"
__version__ = "1.6.4"


logger = logging.getLogger(__name__)
Expand Down
6 changes: 5 additions & 1 deletion pipenv/vendor/requirementslib/models/setup_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,11 @@ def _find_in_dict(dict_: ast.Dict, name: str) -> "Optional[Any]":


def setuptools_parse_setup_cfg(path):
from setuptools.config import read_configuration
try:
# v61.0.0 of setuptools deprecated setuptools.config.read_configuration
from setuptools.config.setupcfg import read_configuration
except ImportError:
from setuptools.config import read_configuration

parsed = read_configuration(path)
results = parsed.get("metadata", {})
Expand Down
2 changes: 1 addition & 1 deletion pipenv/vendor/vendor.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ python-dateutil==2.8.2
python-dotenv==0.19.0
pythonfinder==1.2.10
requests==2.26.0
requirementslib==1.6.3
requirementslib==1.6.4
shellingham==1.4.0
six==1.16.0
termcolor==1.1.0
Expand Down

0 comments on commit 347ce47

Please sign in to comment.