New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FR] Improve setuptools tracebacks for invalid entry points #3682
Comments
Hi @matthewsht, I guess what is happening is that The entry-points specification says that:
According to the Python docs an identifier cannot contain a >>> "monitor-vsphere".isidentifier()
False |
I am proposing #3684 to improve the error message in the traceback, but in principle I don't think there is a bug in setuptools. It makes send for the build to fail due to an invalid entry-point. |
Mea Culpa. I'd like to say Thank You for such a polite / professional reply to such a dumb bug report. Should I leave this open as a [FR] or close it since the bug here is mostly me doing a bug report after a 7 hour day? |
Hi @matthewsht, it will probably get automatically closed once the PR is merged. |
setuptools version
65.5.1
Python version
3.8.13
OS
macOS 10.15.7
Additional environment information
macOS 10.15.7
python 3.8.13 installed via pyenv
virtualenv has
(Top level is requests, pyvmomi, and a build dep of "build" - rest are dependancies)
Description
Attempting to do a "simple" (what I thought was a simple build with "build" package.
My pyproject.toml:
My setup.cfg
I do NOT have a setup.py
My development tree after an unsuccessful build:
├── pyproject.toml
├── setup.cfg
└── src
├── monitor-vsphere
│ ├── init.py
│ ├── pycache
│ │ └── init.cpython-38.pyc
│ ├── auth.py
│ ├── device42.py
│ ├── dotdict.py
│ ├── logs.py
│ ├── main.py
│ ├── virtualmachine.py
│ └── vsphere.py
└── monitor_vsphere.egg-info
├── PKG-INFO
├── dependency_links.txt
└── not-zip-safe
Expected behavior
Build a sdist and a wheel.
How to Reproduce
python -m build
My apologies if this something very simple I've missed - the traceback is generic enough (a regex failure) that my google fu was weak on this one.
I did try downgrading both setuptools and importlib-metadata a couple of versions (guessing, based on the traceback) but no joy.
Please let me know if other information is needed.
Output
The text was updated successfully, but these errors were encountered: