Make toml
an explicit requirement
#8626
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I couldn't figure out why the tests were failing for:
pipfile
toplette
lib #8627)until I realized that
pipfile
importstoml
:https://github.com/pypa/pipfile/blob/4706d2cbd35e0b47a05a6421fa17f93827bc454f/setup.py#L44
which then gets used over in the unrelated file
parser.py
:dependabot-core/python/helpers/lib/parser.py
Line 24 in 89ebc55
So let's make the import of
toml
explicit so that we aren't relying on the side effects of importingpipfile
. Thetoml
requirement frompipfile
isn't pinned, so I simply pinned to the latest release.Python
3.11
added a nativetomllib
library, so once we drop support forPython 3.10
we can drop this 3p lib entirely.