<#18017 Failing to package python distribution tha...
# github-notifications
q
#18017 Failing to package python distribution that uses poetry Issue created by mdelmans Describe the bug When running
./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
Copy code
simple_build
    simple_build
        __init__.py
        main.py
    BUILD
    pyproject.toml
Contents of
BUILD
Copy code
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
Copy code
[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/pants