-
Notifications
You must be signed in to change notification settings - Fork 730
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
How to configure a script path? #6998
Comments
With uv this can just be done via the normal |
I have a project that i want to add a script entrypoint to run [project.scripts]
xyz = "src.xyz.main:main"
-> % uv run xyz
error: Failed to spawn: `xyz`
Caused by: No such file or directory (os error 2) The error messages looks a bit cryptic for me to understand how have I configured the path wrong. |
Do you have a |
Closes #6998 Common point of confusion because Poetry defines these in `tool.poetry.scripts`
…7420) This enhances `uv sync` logic in order to detect and warn if it is trying to operate on a packaged project with entrypoints. Ref: #6998 (comment) Closes: #7034
I am building a CLI tool and tries to bind the script path to cli name. e.g. in Poetry this is https://python-poetry.org/docs/pyproject/#scripts. However, I could not find any instructions on how to do this in UV. Could you enlighten me please?
The text was updated successfully, but these errors were encountered: