Hello, I am having a weird issue with building pyt...
# general
s
Hello, I am having a weird issue with building python distributions. (pretty sure I'm just doing something really stupid but I don't know what) When I run
pants package my_project:project_dist
, pants packages my whl.
When I run
pants --changed-since=origin/main package
, pants complains `pants.backend.python.util_rules.package_dists.InvalidSetupPyArgs: Missing a
name
kwarg in the
provides
field` .
This is my BUILD file (deleted now post edit) One of my other dependencies was using a pants generated setup.py and had dependencies which had a handwitten setup.py. I made them uniform for this to go away. I would greatly appreciate being able to mix and match, is that not available right now?
h
You can select this on a target-by-target basis, with
generate_setup = False
s
Thank you, and apologies for the delay in getting back. What I meant is: project 1 depends on projects 2 and 3 (both with a pyproject toml and setup.cfg so generate_setup=False) gives me an error
Copy code
Exception: Can only merge Directories with no duplicates, but found 2 duplicate entries in :
`pyproject.toml`: ...
'setup.cfg': ...
due to multiple pyproject and setup cfg resources. This workaround you have suggested might work for me. I'll try it out and keep you posted. https://github.com/pantsbuild/pants/issues/15855 workaround: https://github.com/pantsbuild/pants/issues/15855#issuecomment-1161938309