-
Notifications
You must be signed in to change notification settings - Fork 91
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
feat/flit support #270
feat/flit support #270
Conversation
internal/backends/python/python.go
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🐐
internal/cli/cmds.go
Outdated
@@ -267,6 +267,11 @@ func runAdd( | |||
defer span.Finish() | |||
b := backends.GetBackend(ctx, language) | |||
|
|||
if !b.QuirksCanAddRemove() { | |||
fmt.Println("This backend does not suppport dependency additions") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fmt.Println("This backend does not suppport dependency additions") | |
fmt.Println("This backend does not suppport dependency addition") |
nit to keep consistent with the other error message
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
integration tests please! lgtm so far though
f96dafe
to
921f710
Compare
A workaround was found for flit. This work can be brought back if necessary. |
Why
As we continue to expand into the realm of offering better Python package manager support, we're happy to add
flit
to upm.What changed
BurntSushi/toml
to 1.4.0python/poetry.go
andpython/pip.go
to go along withpython/flit.go
requirements.txt
additions where we would take a zero-byterequirements.txt
and turn it into\ndep
instead ofdep\n
QuirksCannotAddRemove
to supportflit
, which does not directly supportadd
orremove
. In the future, we can or delete frompyproject.toml
Test plan
https://github.com/mwaskom/seaborn
into Replitpip install flit
to get a compatible version of flitupm install