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

uv pip compile complains that my pyproject.toml dependencies aren't pinned after update to 0.1.40 #3445

Closed
VerdantFox opened this issue May 8, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@VerdantFox
Copy link

In uv==0.1.39 the command uv pip compile --output-file=requirements-prod.txt pyproject.toml works without error. On uv==0.1.40, when I run the same command, I get the following error:

❯ uv pip compile --output-file=requirements-prod.txt  pyproject.toml
error: Failed to parse `pyproject.toml`
  Caused by: Failed to parse entry for: `aiocache`
  Caused by: Must specify a version constrain

If I pin every single file in pyproject.toml, it works, but I don't want to pin those versions in pyproject.toml. That's what the lockfile is for. Do you have any idea what's going on? Is this breaking change intended, or is this a bug? Is there a new flag I should be using?

Thanks for the help! :)

I'm running this on Ubuntu 22.04.

@kpeez
Copy link

kpeez commented May 8, 2024

I'm getting the same exact error when attempting to compile dependencies from my pyproject.toml file. Not sure if this is intended/expected behavior but it's breaking installations that previously worked without issue.

@zanieb zanieb added the bug Something isn't working label May 8, 2024
@zanieb
Copy link
Member

zanieb commented May 8, 2024

Sounds like a bug! Thanks for the report. We'll investigate. Can you share a minimal example pyproject.toml file?

@charliermarsh
Copy link
Member

Thanks, this is already fixed in #3443.

@charliermarsh
Copy link
Member

I will cut a new release tonight.

@VerdantFox
Copy link
Author

Thanks! Quick work. I appreciate the effort and this project. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants