python_distribution(
name="mydist",
dependencies=[
":pyproject",
"src/foo/bar:src",
# Dependencies on code to be packaged into the distribution.
],
provides=python_artifact(
name="mydist",
),
# Example of setuptools config, other build backends may have other config.
wheel_config_settings={"--global-option": ["--python-tag", "py37.py38.py39"]},
# Don't use setuptools with a generated setup.py.
# You can also turn this off globally in pants.toml:
#
# [setup-py-generation]
# generate_setup_default = false
generate_setup = False,
)