Also, why does `python_artifact` requires `name` i...
# development
s
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
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
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
Hmm, I’ve suddenly realized that we may not need the name, really, if we’re not generating a setup.py
let me check