mirror of
https://github.com/aquasecurity/trivy.git
synced 2026-02-09 02:03:13 +08:00
fix(python): add poetry v2 support (#8323)
Co-authored-by: Nikita Pivkin <nikita.pivkin@smartforce.io>
This commit is contained in:
25
pkg/dependency/parser/python/pyproject/testdata/happy_v2.toml
vendored
Normal file
25
pkg/dependency/parser/python/pyproject/testdata/happy_v2.toml
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
[project]
|
||||
name = "example"
|
||||
version = "0.1.0"
|
||||
description = ""
|
||||
authors = [
|
||||
{name = "Your Name",email = "you@example.com"}
|
||||
]
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.12"
|
||||
dependencies = [
|
||||
"flask(>=1.0,<2.0)",
|
||||
"check-wheel-contents==0.6.1",
|
||||
"pluggy[pre-commit,tox] (==0.13.1)",
|
||||
]
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = "^3.12"
|
||||
annotated-types = "==0.7.0"
|
||||
|
||||
[tool.poetry.group.dev.dependencies]
|
||||
pytest = "8.3.4"
|
||||
|
||||
[build-system]
|
||||
requires = ["poetry-core>=2.0.0,<3.0.0"]
|
||||
build-backend = "poetry.core.masonry.api"
|
||||
Reference in New Issue
Block a user