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
For example, should this invoke the build-backend in some way to retrieve the name?
The relevant PEP is 621. If backends implement this, the spec says the name field must be static, so there shouldn't be any need to call a backend to retrieve it.
PEP 621 is quite new, and obviously tools aren't forced to implement it, nor projects to use it, but hopefully most will eventually.
Use Case
I want to use pipenv with a pyproject.toml file configured for use with flit
Problem
Currently trying to run
pipenv install .
in a folder with only a pyproject.toml (no setup.cfg or setup.py), you get the following exceptionI believe the root cause of the above exception is this block
requirementslib/src/requirementslib/models/requirements.py
Lines 990 to 1009 in 6441984
which looks for the
name
in setup.cfg and setup.py but not pyproject.tomlProposed Solution
It seems like the obvious solution is to add a case to that block that looks inside of pyproject.toml, like so
but there may be complexities with that that I'm not aware of? For example, should this invoke the
build-backend
in some way to retrieve the name?Either way, this seems like a relatively simple change so I'm happy to make it myself
Various CCs
cc'ing people I think might be able to help here ... @techalchemy / @uranusjr / @frostming / @takluyver / @pfmoore / @pradyunsg / @brainwane
The text was updated successfully, but these errors were encountered: