Skip to content

Commit

Permalink
Evict uv if we see requirements.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
blast-hardcheese committed Oct 15, 2024
1 parent 257d2d7 commit 769530e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/backends/python/python.go
Original file line number Diff line number Diff line change
Expand Up @@ -741,6 +741,12 @@ func makePythonUvBackend() api.LanguageBackend {
return false, err
}

// If we see a requirements.txt, let's make sure we don't accidentally
// choose uv over pip.
if info, err := os.Stat(PythonPipBackend.Specfile); err == nil {
return info == nil, nil
}

return cfg.Tool.Poetry == nil, nil
},
Lockfile: "uv.lock",
Expand Down

0 comments on commit 769530e

Please sign in to comment.