https://pantsbuild.org/ logo
#general
Title
# general
r

ripe-gigabyte-88964

03/20/2023, 6:16 PM
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

happy-kitchen-89482

03/20/2023, 6:23 PM
Read them by whom and for what purpose? to use in a Pants generated setup.py for example?
r

ripe-gigabyte-88964

03/20/2023, 6:27 PM
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

happy-kitchen-89482

03/20/2023, 6:40 PM
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
3 Views