Skip to content

Conversation

fernandofig
Copy link

@fernandofig fernandofig commented Jun 20, 2025

This change was done because the list-all script (used by asdf list all pipenv command) is curerntly failing for modern python versions (tested on 3.12+, not sure about earlier ones). This happens because the pkg_resources library that's referenced in the inline python script previously used in list-all has been deprecated and packaging.version replaced it for newer python versions.

But packaging.version is now a non-core library, so using it entails adding a required package dependency in order for the plugin to work effectively on newer python versions. To avoid this, I've removed the python logic altogether and replaced it by plain bash + common utils.

It's a bit messy and likely vulnerable to changes in PyPi's json format/structure changes, but I figure that's a lesser problem than having to deal with python versioning + library dependencies.

@fernandofig fernandofig changed the title Fix list-all script to use packaging library in newer python versions Make list-all script non-dependent on python to avoid library/versioning issues Jun 20, 2025
@fernandofig fernandofig force-pushed the master branch 2 times, most recently from 15d188d to 296f7b9 Compare June 20, 2025 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant