holoviz-dev / pyctdev

Python packaging Common Tasks for Developers
BSD 3-Clause "New" or "Revised" License
11 stars 2 forks source link

Fix pip toml import #77

Closed hoxbro closed 3 years ago

hoxbro commented 3 years ago

toml is now located at pip._vendor.tomli instead of pip._vendor.toml.

Fixed it with another try/except but I don't think the solution is pretty... So if a prettier/better way can be done this PR can be closed.

Also added Exception and a context manager for this function only.