Skip to content

Commit

Permalink
Merge pull request #8045 from pradyunsg/pytoml-to-toml
Browse files Browse the repository at this point in the history
Switch from `pytoml` to `toml`
  • Loading branch information
pradyunsg authored Apr 14, 2020
2 parents 6a244de + 8b35958 commit e40d267
Show file tree
Hide file tree
Showing 24 changed files with 2,332 additions and 597 deletions.
1 change: 1 addition & 0 deletions news/pytoml.vendor
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Drop ``pytoml`` from vendored libaries.
1 change: 1 addition & 0 deletions news/toml.vendor
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add ``toml`` 0.10.0 to vendored libraries.
4 changes: 2 additions & 2 deletions src/pip/_internal/pyproject.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import sys
from collections import namedtuple

from pip._vendor import pytoml, six
from pip._vendor import six, toml
from pip._vendor.packaging.requirements import InvalidRequirement, Requirement

from pip._internal.exceptions import InstallationError
Expand Down Expand Up @@ -72,7 +72,7 @@ def load_pyproject_toml(

if has_pyproject:
with io.open(pyproject_toml, encoding="utf-8") as f:
pp_toml = pytoml.load(f)
pp_toml = toml.load(f)
build_system = pp_toml.get("build-system")
else:
build_system = None
Expand Down
4 changes: 3 additions & 1 deletion src/pip/_vendor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ def vendored(modulename):
vendored("pep517")
vendored("pkg_resources")
vendored("progress")
vendored("pytoml")
vendored("retrying")
vendored("requests")
vendored("requests.exceptions")
Expand Down Expand Up @@ -108,4 +107,7 @@ def vendored(modulename):
vendored("requests.packages.urllib3.util.timeout")
vendored("requests.packages.urllib3.util.url")
vendored("resolvelib")
vendored("toml")
vendored("toml.encoder")
vendored("toml.decoder")
vendored("urllib3")
2 changes: 1 addition & 1 deletion src/pip/_vendor/pep517/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import argparse
import logging
import os
import toml
from pip._vendor import toml
import shutil

from .envbuild import BuildEnvironment
Expand Down
2 changes: 1 addition & 1 deletion src/pip/_vendor/pep517/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import logging
import os
from os.path import isfile, join as pjoin
from toml import TomlDecodeError, load as toml_load
from pip._vendor.toml import TomlDecodeError, load as toml_load
import shutil
from subprocess import CalledProcessError
import sys
Expand Down
2 changes: 1 addition & 1 deletion src/pip/_vendor/pep517/envbuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import os
import logging
import toml
from pip._vendor import toml
import shutil
from subprocess import check_call
import sys
Expand Down
1 change: 0 additions & 1 deletion src/pip/_vendor/pytoml.pyi

This file was deleted.

4 changes: 0 additions & 4 deletions src/pip/_vendor/pytoml/__init__.py

This file was deleted.

13 changes: 0 additions & 13 deletions src/pip/_vendor/pytoml/core.py

This file was deleted.

Loading

0 comments on commit e40d267

Please sign in to comment.