asdf-community / asdf-python

Python plugin for the asdf version manager
https://github.com/asdf-vm/asdf
MIT License
651 stars 56 forks source link

Support upgrades and requirements.txt syntax for default packages #131

Closed mikeroll closed 2 years ago

mikeroll commented 2 years ago

I'd argue that the current solution is too custom for no real benefit. Python/pip already has a standard way to specify package names line-by-line in a file, which is requirements.txt syntax, so let's just use that! We get version pinning, version conflict resolution for multiple packages and comments for free.

Also add -U to be able to update vendored packages like pip.

Resolves #105, obsoletes #126 and #92 if you don't mind :)

danhper commented 2 years ago

Looks more reasonable indeed, thanks!!

erikw commented 2 years ago

@mikeroll thank you!

lestephane commented 1 year ago

Does this plugin support legacy_version_file=yes through requirements.txt?

https://asdf-vm.com/manage/configuration.html#legacy-version-file