quaint-telephone-89068
11/16/2022, 1:05 AM./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;
# 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,
)
[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