Is there a built-in way to just read `python_artif...
# general
r
Is there a built-in way to just read
python_artifact
kwargs from
setup.cfg
or do I need to write a plugin for that?
h
Read them by whom and for what purpose? to use in a Pants generated setup.py for example?
r
Yeah so my
setup.py
is just the following two lines:
Copy code
import setuptools
setuptools.setup()
And that will pull everything in from the
setup.cfg
file. But in my
BUILD
file if I do
provides=python_artifact()
it doesn't pull in anything from
setup.cfg
.
h
You need a
resources(name="setup_cfg", sources=["setup.cfg"])
target and an explicit dep on it from the
python_sources()
that owns your
setup.py
🙏 1