<#17554 `poetry_requirements` includes `[tool.poet...
# github-notifications
q
#17554 `poetry_requirements` includes `[tool.poetry.dev-dependencies]` dependencies New issue created by ioangatop Description When producing distributions using the command
./pants package ::
, where each
BUILD
of a library installs requirements with
poetry_requirements
, installs both
[tool.poetry.dependencies]
and
[tool.poetry.dev-dependencies]
, which should not happen, at least by default. Pants version 2.14 OS MacOS Additional info Here some sample project files;
Copy code
# BUILD file

poetry_requirements(name="lib-reqs")

python_sources(
    name="lib",
    sources=["libs/lib/**/*.py"],
    dependencies=[":lib-reqs"],
)

python_distribution(
    name="lib-dist",
    dependencies=[":lib"],
    provides=python_artifact(name="lib"),
    sdist=False,
)
Copy code
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "lib"
version = "0.0.1"
description = "lib purpose."

[tool.poetry.dependencies]
python = ">=3.8"
numpy = "^1"

[tool.poetry.dev-dependencies]
pytest = "^7.1.2"
black = "^22.3.0"
flake8 = "^4.0.1"
pantsbuild/pants