quaint-telephone-89068
01/16/2023, 10:10 PM./pants package src/py/xxx/lib/simple_build:lib getting
ValueError: /private/var/folders/nb/l14899ts5vxgs6gl3v0pff7m0000gp/T/pants-sandbox-Ljkw57/chroot/src/py/xxx/lib/simple_build/simple_build does not contain any element
Running poetry build works fine
Pants version
2.14.0
OS
macOS
Additional info
My folder structure
simple_build
simple_build
__init__.py
main.py
BUILD
pyproject.toml
Contents of BUILD
poetry_requirements(
name="poetry",
)
resource(name="pyproject", source="pyproject.toml")
python_distribution(
name="lib",
dependencies=[
":pyproject",
],
provides=python_artifact(
name="simple-build",
version="0.1.0",
),
generate_setup = False
)
Contents of pyproject.toml
[tool.poetry]
name = "simple-build"
version = "0.1.0"
description = ""
authors = ["Mihails Delmans <m.delmans@gmail.com>"]
packages = [{include = "simple_build"}]
[tool.poetry.dependencies]
python = "^3.10"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
pantsbuild/pantsuser
01/16/2023, 11:35 PM