Open
Description
Description
uv.lock
might not exists when the project is just initialized
Steps to reproduce
git init
uv init
cz init
sed -i -e 's/pep621/uv/g' pyproject.toml pyproject.toml
git add .
cz commit
cz bump
Current behavior
FileNotFoundError: [Errno 2] No such file or directory: 'uv.lock'
Desired behavior
It should skip if uv.lock
is not there yet.
Screenshots
No response
Environment
Commitizen Version: 4.5.0
Python Version: 3.12.7 (main, Oct 16 2024, 07:12:08) [Clang 18.1.8 ]
Operating System: Darwin
Metadata
Metadata
Assignees
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
Yusin0903 commentedon Apr 6, 2025
Hi @Lee-W, I used uv to create a virtual environment while working on another issue. I think I can give this one a try as well.
Lee-W commentedon Apr 7, 2025
That would be awesome 🙂
Yusin0903 commentedon Apr 8, 2025
Hi @Lee-W,
I tried to reproduce the issue but everything works fine.
I was able to run cz bump successfully, as shown in the screenshot below.
I tested it with both Python 3.10 and 3.12, and the Commitizen version in both cases was 4.5.0.
The only difference I noticed is that my system is Ubuntu 22.04.5.
Could youprovide more details about your environment and the issue you're encountering?
Lee-W commentedon Apr 9, 2025
Ah, right, missing one crucial piece 🤦♂️ Just updated the commands above. so the idea is we still need to choose uv provider
Yusin0903 commentedon Apr 9, 2025
Thanks, I will try to reproduce the situation.
bearomorphism commentedon Jun 9, 2025
Steps to reproduce:
Lee-W commentedon Jun 10, 2025
hmmm... I thought we have it long ago. yep, we'll definitely need it @Yusin0903 would like to know whether you're still working on it. Thanks!
Yusin0903 commentedon Jun 10, 2025
@Lee-W @bearomorphism
Sorry, I’ve been a bit busy lately. If this issue is urgent, feel free to take it over. I’ll focus on other issues later.