Hey y'all, I've got a bit of a beginner question -...
# general
m
Hey y'all, I've got a bit of a beginner question - I'm trying to create a wheel package in a BUILD file like this:
Copy code
python_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
Copy code
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:
Copy code
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?
c
Do you have a pyproject.toml file? I had a problem when I was using both a setup.py and a pyproject.toml (the pyproject.toml mostly for tool configs). I couldn't build the project even without Pants. I was planning to port to a pyproject.toml anyhow, so I just migrated.
h
I think that error relates to a
python_requirements()
target that points to a pyproject.toml that has no dependencies stanza
Do you have such a target?