-
-
Notifications
You must be signed in to change notification settings - Fork 522
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
TypeError: Item in ``from list'' must be str, not NoneType #1344
Comments
I created a minimal example at https://github.com/konstin/tox-1344:
This prints:
|
I think we left out this part from pep 517: It's also legal to leave out the :object part, e.g. |
So how can we fix it? |
Feel free to open a PR against master and fix it. My available efforts at the moment are aimed at fixing this as part of #1394, but that probably will take a while (ETA September). |
I'm trying to add PEP 517 support to a packaging tool I've written (pyo3-pack) and I when I tried to test sdist support with tox, I got a TypeError inside tox code.
pyproject.toml
tox.ini
Running leads to the following output:
The module that code tries to import is importable (
/home/konsti/pyo3-pack/test-crates/cffi-pure/.tox/.package/bin/python -c "import pyo3_pack"
passes). If I replace the failing line withbackend = __import__(backend_spec, fromlist=[])
orbackend = __import__(backend_spec)
, the error disappears. The current WIP PEP 517 implementation is atpyo3_pack/__init__.py
, the failing code was introduce in #1145.The text was updated successfully, but these errors were encountered: