proud-dentist-22844
07/19/2022, 9:46 PMsetup.py script alongside your python_distribution target"
I guess I need to get a generated setup.py after all. Isn't there a way to use Setuptools without a setup.py?happy-kitchen-89482
07/19/2022, 9:56 PMhappy-kitchen-89482
07/19/2022, 9:58 PMhappy-kitchen-89482
07/19/2022, 9:58 PMhappy-kitchen-89482
07/19/2022, 9:58 PM[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"happy-kitchen-89482
07/19/2022, 9:58 PMhappy-kitchen-89482
07/19/2022, 9:59 PMhappy-kitchen-89482
07/19/2022, 9:59 PMhappy-kitchen-89482
07/19/2022, 9:59 PMproud-dentist-22844
07/19/2022, 10:57 PM[project].
But, python_distribution requires provides= but I don't want to define python_artifact if all that data is in pyproject.toml.
So, I see two directions this could work better:
• python_project instead of python_artifact, but pull the details from pyproject.toml instead of kwargs
• Pants could generate a pyproject.toml (or extend an existing one) with a [project] section based on the kwargs of python_artifactproud-dentist-22844
07/19/2022, 11:01 PMhappy-kitchen-89482
07/20/2022, 12:01 AMhappy-kitchen-89482
07/20/2022, 12:01 AMhappy-kitchen-89482
07/20/2022, 12:03 AMcurved-television-6568
07/20/2022, 5:54 AMhappy-kitchen-89482
07/21/2022, 11:40 PMhappy-kitchen-89482
07/21/2022, 11:41 PMhappy-kitchen-89482
07/21/2022, 11:41 PMproud-dentist-22844
07/22/2022, 12:16 AMsetuptools and wheel in my [build-system].requires list. Otherwise I get errors about error: invalid command 'bdist_wheel'.
So, I’ve got my metadata in pyproject.toml, with generate_setup = False on my python_distribution which is working. But none of the metadata from [project] is making it into my wheel. Turns out I have to have setuptools 61+ to use that. So, now I’m working on updating my build-system.requires to make that work…proud-dentist-22844
07/22/2022, 12:23 AMproud-dentist-22844
07/22/2022, 12:23 AMproud-dentist-22844
07/22/2022, 12:29 AMhappy-kitchen-89482
07/22/2022, 5:12 PM