python / importlib_metadata

Library to access metadata for Python packages
https://importlib-metadata.readthedocs.io
Apache License 2.0
123 stars 80 forks source link

How to get `version` working for files in zip files? #414

Closed DUOLabs333 closed 1 year ago

DUOLabs333 commented 1 year ago

The docs say that zip files (or directories in zip files) on sys.path should be available for use in functions like version. However, if you download foo.zip, run with PYTHONPATH=foo.zip python -c "from importlib.metadata import version; version('jedi-language-server')", you get a PackageNotFoundError.

DUOLabs333 commented 1 year ago

I seem to have made an issue in the wrong repository.