Skip to content

Commit

Permalink
feat/promote uv (#296)
Browse files Browse the repository at this point in the history
* Promote uv above poetry

* Address comment

* Updating README
  • Loading branch information
blast-hardcheese authored Oct 7, 2024
1 parent 983594e commit 10639f0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ machine-parseable specfile and lockfile listing.

| | core | index | guess |
|-----------------------|------|-------|-------|
| python-python3-uv | yes | yes | yes |
| python-python3-pip | yes | yes | yes |
| python-python3-poetry | yes | yes | yes |
| nodejs-yarn | yes | yes | yes |
Expand Down Expand Up @@ -350,8 +351,8 @@ Here are useful things to know that aren't obvious:
the files in the current directory. This can be overridden either
partially or completely by specifying a value for the `-l` option.
You can see the available languages by running `upm list-languages`.
In addition to a full language (e.g. `python-python3-poetry`), you
can specify something simpler (e.g. `python`, `python3`, `python2`,
In addition to a full language (e.g. `python3-poetry`), you
can specify something simpler (e.g. `python`, `python3`,
`poetry`, `python-poetry`). In that case, UPM will examine all of
the matching languages and pick whichever one it thinks is best. You
can experiment with this logic by providing the `-l` option to `upm
Expand Down
2 changes: 1 addition & 1 deletion internal/backends/backends.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ import (
// If more than one backend might match the same project, then one
// that comes first in this list will be used.
var languageBackends = []api.LanguageBackend{
python.PythonUvBackend,
python.PythonPoetryBackend,
python.PythonPipBackend,
python.PythonUvBackend,
nodejs.BunBackend,
nodejs.NodejsNPMBackend,
nodejs.NodejsPNPMBackend,
Expand Down
2 changes: 1 addition & 1 deletion internal/backends/python/python.go
Original file line number Diff line number Diff line change
Expand Up @@ -860,7 +860,7 @@ func makePythonUvBackend() api.LanguageBackend {
return b
}

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

0 comments on commit 10639f0

Please sign in to comment.