Skip to content

feat: use project section#2875

Open
waketzheng wants to merge 1 commit into
sherlock-project:masterfrom
waketzheng:master
Open

feat: use project section#2875
waketzheng wants to merge 1 commit into
sherlock-project:masterfrom
waketzheng:master

Conversation

@waketzheng
Copy link
Copy Markdown

Description

Use project section as recommended by https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#writing-your-pyproject-toml

The project section support both poetry and uv, I test the speed of them on Mac with Python3.13 by the following command:

poetry env use 3.13
time poetry install --all-extras --all-groups
time poetry install --all-extras --all-groups

uv venv --python 3.13
time uv sync --all-extras --all-groups
time uv sync --all-extras --all-groups

Output:

poetry install --all-extras --all-groups  5.96s user 2.92s system 129% cpu 6.874 total
poetry install --all-extras --all-groups  0.95s user 0.23s system 97% cpu 1.209 total

uv sync --all-extras --all-groups  3.41s user 1.91s system 98% cpu 5.417 total
uv sync --all-extras --all-groups  0.02s user 0.01s system 85% cpu 0.039 total

This show that uv delivers a 30x speedup compared to poetry once packages installed.

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.

1 participant