Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vendor in requirementslib==1.6.4 #5082

Merged
merged 2 commits into from
Apr 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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