https://pantsbuild.org/ logo
s

shy-advantage-49800

11/06/2022, 12:49 PM
Also, why does
python_artifact
requires
name
if the name is provided on the
pyproject.toml
? I just removed the
version
, and it uses the version on
pyproject.toml
🤔
My last comment is because the docs have the
version
field. Ref.: https://www.pantsbuild.org/docs/python-distributions#pep-517
h

happy-kitchen-89482

11/06/2022, 3:16 PM
Pants needs to know the name so it can knit deps together correctly when you have multiple distributions
It might be able to use the one from
pyproject.toml
if you’re using that file, but you might be using setup.py, or asking Pants to generate setup.py
That whole codepath is quite old and needs some rethinking
@future-oxygen-10553 is looking at part of it, I believe
s

shy-advantage-49800

11/06/2022, 3:19 PM
It might be able to use the one from
pyproject.toml
if you’re using that file, but you might be using setup.py, or asking Pants to generate setup.py
not sure if I get this, I'm telling pants to not generate the
setup.py
as well 🤔 is there a way to generate the name automatically based on the folder name it's contained?
Copy code
provides=python_artifact(name="$PWD"),
something like this..
h

happy-kitchen-89482

11/06/2022, 8:12 PM
Hmm, I’ve suddenly realized that we may not need the name, really, if we’re not generating a setup.py
let me check