mammoth-addition-42973
03/31/2024, 6:01 PMpython_sources(
tags=["packages"]
)
python_distribution(
name="etx-dropboxutils",
description="A collection of utilities for uploading / downloading files to / from Dropbox",
dependencies=[
":dropbox",
],
provides=python_artifact(
name="etx-dropboxutils",
version="0.1.0",
),
generate_setup=True,
sdist=False
)
I'm hoping that Pants will be able to infer the 3rd party dependencies needed by the :dropbox sources and generate the setup.py file automatically. However, when I run
pants package path/to:etx-dropbox-utils
It seems like it really wants to look for dependencies in a pyproject.toml file; this is the output I get:
KeyError: 'No section `project.dependencies` or `project.optional-dependencies` found in pyproject.toml'
How do I get Pants to not try to use a pyproject.toml file?careful-address-89803
03/31/2024, 8:23 PMhappy-kitchen-89482
04/01/2024, 6:57 AMpython_requirements()
target that points to a pyproject.toml that has no dependencies stanzahappy-kitchen-89482
04/01/2024, 6:57 AM