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

chore: Introduce pip support and make uv optional #644

Merged
merged 2 commits into from
Dec 9, 2024
Merged

Conversation

ferdinandjarisch
Copy link
Contributor

The current implementation of the pyproject.toml does not allow to install all requirements for dev environments to be installed with pip. While PEP 735 is accepted since almost two months, pip does not support it yet.

Instead, we rely on PEP 621 and by using optional-dependencies we can for now support pip by allowing to install the dev dependencies by specifying extras, such as

pip install .[dev]

This can be reverted once pypa/pip#12963 is resolved.

@rumpelsepp
Copy link
Member

rumpelsepp commented Dec 9, 2024

You need to run uv lock and commit it, otherwise the uv dev setup is broken. For now, this requires uv sync --all-extras, to setup a complete development setup managed by uv.

Copy link
Member

@rumpelsepp rumpelsepp left a comment

Choose a reason for hiding this comment

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

Approved, please run uv lock and commit it before merging.

@ferdinandjarisch
Copy link
Contributor Author

Approved, please run uv lock and commit it before merging.

Added a fixup commit; feel free to apply it accordingly and merge it at your convenience!

Many thanks!

The current implementation of the pyproject.toml does not allow to
install all requirements for dev environments to be installed with pip.
While PEP 735 is accepted since almost two months, pip does not support
it yet.

Instead, we rely on PEP 621 and by using optional-dependencies we can
for now support pip by allowing to install the dev dependencies by
specifying extras, such as

pip install .[dev]

This can be reverted once pypa/pip#12963 is
resolved.
By calling `uv run make lint` instead, this commit drops the requirement
for uv.
@rumpelsepp rumpelsepp merged commit 7a9b9d8 into master Dec 9, 2024
@rumpelsepp rumpelsepp deleted the pip-support branch December 9, 2024 17:21
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.

2 participants