Skip to content

Disallow pyproject.toml from pip uninstall#2663

Merged
charliermarsh merged 1 commit intomainfrom
charlie/pyproj
Mar 26, 2024
Merged

Disallow pyproject.toml from pip uninstall#2663
charliermarsh merged 1 commit intomainfrom
charlie/pyproj

Conversation

@charliermarsh
Copy link
Copy Markdown
Member

@charliermarsh charliermarsh commented Mar 26, 2024

Summary

Passing pyproject.toml or setup.py to pip uninstall is a bit strange, since it will often require running a resolution to resolve the dependencies (e.g., build the project), which means we also need to accept --index-url and friends.

@charliermarsh charliermarsh requested a review from zanieb March 26, 2024 00:54
@charliermarsh charliermarsh changed the title Disallow pyproject.toml in pip sync and pip uninstall Disallow pyproject.toml in pip sync and pip uninstall Mar 26, 2024
@charliermarsh
Copy link
Copy Markdown
Member Author

I'm open to allowing it for pip uninstall if there's pushback. It's more work and I'll need to wire up all the arguments, but it's doable.

@charliermarsh charliermarsh marked this pull request as ready for review March 26, 2024 00:54
Copy link
Copy Markdown
Member

@zanieb zanieb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uninstall seems like a really weird use case..

sync seems reasonable if we performed resolution... seems better for a future interface though.

@charliermarsh charliermarsh force-pushed the charlie/pyproj branch 2 times, most recently from d7f8382 to 50dea9c Compare March 26, 2024 01:20
@charliermarsh charliermarsh changed the title Disallow pyproject.toml in pip sync and pip uninstall Disallow pyproject.toml from pip uninstall Mar 26, 2024
@charliermarsh charliermarsh added the cli Related to the command line interface label Mar 26, 2024
@charliermarsh
Copy link
Copy Markdown
Member Author

I changed it to just pip uninstall for now, since that's what was blocking me elsewhere.

@charliermarsh charliermarsh enabled auto-merge (squash) March 26, 2024 01:22
@charliermarsh charliermarsh merged commit 12846c2 into main Mar 26, 2024
@charliermarsh charliermarsh deleted the charlie/pyproj branch March 26, 2024 01:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli Related to the command line interface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants