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

Replace usage of pipfile #5339

Merged
merged 28 commits into from
Sep 16, 2022
Merged

Replace usage of pipfile #5339

merged 28 commits into from
Sep 16, 2022

Conversation

oz123
Copy link
Contributor

@oz123 oz123 commented Sep 8, 2022

This is because pipfile is quite dormant.

This will help with removing six. Also, worth noting:
plette's own Pipfile class uses a much stricter checking. I don't think it's going to be a problem
since 99% of the user don't craft their own Pipfiles. However, I needed to fix some tests to
pass again.
If people did craft their own Pipfile the errors from Plette are pretty straight forward to understand
so they can fix their files.
Also, a nice bonus: it seems that the test suite now runs ~20 min, compared to ~23 min. Still too long,
Just reminding ourselves ... it used to be 50 minutes ...
Fixes #5310

@oz123 oz123 changed the title Replace usage of pipfile WIPÖ Replace usage of pipfile Sep 8, 2022
@oz123 oz123 changed the title WIPÖ Replace usage of pipfile WIP: Replace usage of pipfile Sep 8, 2022
@oz123 oz123 requested a review from matteius September 8, 2022 00:03
This is because pipfile is quite dormant.
Plette has a better code base and the same API.
@oz123 oz123 force-pushed the replace-pipfile-with-plette branch 2 times, most recently from cfd4683 to 79aeff5 Compare September 12, 2022 21:18
@oz123 oz123 force-pushed the replace-pipfile-with-plette branch from 59944dc to d1aea86 Compare September 13, 2022 13:44
Unnamed sources will break with the following error:

pipenv.vendor.plette.models.base.ValidationError: {'url': 'https://pypi.org/simple', 'verify_ssl': True}
name: required field
This tests actually required the private pypi, since fake-package
doesn't exist on Pypi!
It seems the are was an assertion in this test that was wrong.

I don't think pipenv install should modifiy the Pipfile when running
`pipenv install`.
The source must contain a name or Plette will fail.
@oz123 oz123 force-pushed the replace-pipfile-with-plette branch from 2f9e5c1 to 553925f Compare September 14, 2022 06:35
This was broken because of wrong Pipfile format.
Plette is strict!
@oz123 oz123 force-pushed the replace-pipfile-with-plette branch from 553925f to 8bbb4bd Compare September 14, 2022 06:40
@oz123 oz123 changed the title WIP: Replace usage of pipfile Replace usage of pipfile Sep 14, 2022
@oz123 oz123 requested a review from matteius September 15, 2022 13:05
@oz123 oz123 merged commit 9fe4b68 into main Sep 16, 2022
@oz123 oz123 deleted the replace-pipfile-with-plette branch September 16, 2022 18:55
jeffwidman added a commit to dependabot/dependabot-core that referenced this pull request Aug 10, 2023
The main user of `pipfile` is `pipenv`, and _not_ any of the other
python package managers.

However, `pipfile` library has been pretty much unmaintained, so
`pipenv` switched to using `plette` for parsing/validation of
`Pipfile`'s:
* pypa/pipenv#5310
* pypa/pipenv#5339

So let's switch our usage as well. Today we only use `pipfile` for
generating hashes, so this is effectively a silent no-op. However, down
the road we could leverage `plette` for `Pipfile` parsing/validation...
for example see how it's flagging things here:
#6104 (comment)
jeffwidman added a commit to dependabot/dependabot-core that referenced this pull request Aug 23, 2023
The main user of `pipfile` is `pipenv`, and _not_ any of the other
python package managers.

However, `pipfile` library has been pretty much unmaintained, so
`pipenv` switched to using `plette` for parsing/validation of
`Pipfile`'s:
* pypa/pipenv#5310
* pypa/pipenv#5339

So let's switch our usage as well. Today we only use `pipfile` for
generating hashes, so this is effectively a silent no-op. However, down
the road we could leverage `plette` for `Pipfile` parsing/validation...
for example see how it's flagging things here:
#6104 (comment)
jeffwidman added a commit to jeffwidman/dependabot-core that referenced this pull request Mar 21, 2024
The main user of `pipfile` is `pipenv`, and _not_ any of the other
python package managers.

However, `pipfile` library has been pretty much unmaintained, so
`pipenv` switched to using `plette` for parsing/validation of
`Pipfile`'s:
* pypa/pipenv#5310
* pypa/pipenv#5339

So let's switch our usage as well. Today we only use `pipfile` for
generating hashes, so this is effectively a silent no-op. However, down
the road we could leverage `plette` for `Pipfile` parsing/validation...
for example see how it's flagging things here:
dependabot#6104 (comment)
abdulapopoola added a commit to dependabot/dependabot-core that referenced this pull request Mar 22, 2024
The main user of `pipfile` is `pipenv`, and _not_ any of the other
python package managers.

However, `pipfile` library has been pretty much unmaintained, so
`pipenv` switched to using `plette` for parsing/validation of
`Pipfile`'s:
* pypa/pipenv#5310
* pypa/pipenv#5339

So let's switch our usage as well. Today we only use `pipfile` for
generating hashes, so this is effectively a silent no-op. However, down
the road we could leverage `plette` for `Pipfile` parsing/validation...
for example see how it's flagging things here:
#6104 (comment)

Co-authored-by: AbdulFattaah Popoola <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace package pipfile with plette
2 participants