Skip to content

Commit 10639f0

Browse files
feat/promote uv (#296)
* Promote uv above poetry * Address comment * Updating README
1 parent 983594e commit 10639f0

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ machine-parseable specfile and lockfile listing.
4242

4343
| | core | index | guess |
4444
|-----------------------|------|-------|-------|
45+
| python-python3-uv | yes | yes | yes |
4546
| python-python3-pip | yes | yes | yes |
4647
| python-python3-poetry | yes | yes | yes |
4748
| nodejs-yarn | yes | yes | yes |
@@ -350,8 +351,8 @@ Here are useful things to know that aren't obvious:
350351
the files in the current directory. This can be overridden either
351352
partially or completely by specifying a value for the `-l` option.
352353
You can see the available languages by running `upm list-languages`.
353-
In addition to a full language (e.g. `python-python3-poetry`), you
354-
can specify something simpler (e.g. `python`, `python3`, `python2`,
354+
In addition to a full language (e.g. `python3-poetry`), you
355+
can specify something simpler (e.g. `python`, `python3`,
355356
`poetry`, `python-poetry`). In that case, UPM will examine all of
356357
the matching languages and pick whichever one it thinks is best. You
357358
can experiment with this logic by providing the `-l` option to `upm

internal/backends/backends.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ import (
2727
// If more than one backend might match the same project, then one
2828
// that comes first in this list will be used.
2929
var languageBackends = []api.LanguageBackend{
30+
python.PythonUvBackend,
3031
python.PythonPoetryBackend,
3132
python.PythonPipBackend,
32-
python.PythonUvBackend,
3333
nodejs.BunBackend,
3434
nodejs.NodejsNPMBackend,
3535
nodejs.NodejsPNPMBackend,

internal/backends/python/python.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,7 @@ func makePythonUvBackend() api.LanguageBackend {
860860
return b
861861
}
862862

863-
// PythonPoetryBackend is a UPM backend for Python 3 that uses Poetry.
863+
// A collection of backends exported for consumption
864864
var PythonPoetryBackend = makePythonPoetryBackend()
865865
var PythonPipBackend = makePythonPipBackend()
866866
var PythonUvBackend = makePythonUvBackend()

0 commit comments

Comments
 (0)