You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ pip install pycln
...
$ cat .../lib/python3.11/site-packages/pyproject.toml | grep name
name = "pycln"
Expected behavior:
pyproject.toml should not be packaged at all! Python packages (wheels) already contain metadata.
I see you want to use package metadata in your code. Please use builtin tools designed for this task instead of hacking python and messing up users' site-packages:
fromimportlib.metadataimportmetadatapackage='pycln'# or pycln.__name__ to be explicitmeta=metadata(package)
name, version=meta.get('Name', package), meta.get('Version', '0.0.0')
print(f'{name} v{version}')
The text was updated successfully, but these errors were encountered:
Steps to reproduce:
Expected behavior:
pyproject.toml
should not be packaged at all! Python packages (wheels) already contain metadata.I see you want to use package metadata in your code. Please use builtin tools designed for this task instead of hacking python and messing up users' site-packages:
The text was updated successfully, but these errors were encountered: