Skip to content

Commit

Permalink
Upgrade to poetry 2.0 (#2886)
Browse files Browse the repository at this point in the history
Upgrade to poetry 2
  • Loading branch information
romulets authored Jan 6, 2025
1 parent e4e4996 commit bb0f1e1
Show file tree
Hide file tree
Showing 6 changed files with 151 additions and 57 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ repos:
name: Update rule status
description: Update rule status in rules_table.md
require_serial: true
entry: poetry run -C security-policies python security-policies/dev/update_rule_status.py
entry: poetry run -C security-policies python dev/update_rule_status.py
pass_filenames: false
language: system
files: (.*\.rego|tests\/product\/.*\.py)$
Expand All @@ -164,7 +164,7 @@ repos:
name: Update rule metadata
description: Update rule status in rules_table.md
require_serial: true
entry: poetry run -C security-policies python security-policies/dev/generate_rule_metadata.py
entry: poetry run -C security-policies python dev/generate_rule_metadata.py
pass_filenames: false
language: system
files: (\.rego)$
Expand Down
2 changes: 1 addition & 1 deletion scripts/sync_rule_templates.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ fi

# generate the rule templates
cd ../cloudbeat
poetry run -C security-policies python security-policies/dev/generate_rule_templates.py
poetry run -C security-policies python dev/generate_rule_templates.py

# commit and push the changes
cd ../integrations
Expand Down
38 changes: 34 additions & 4 deletions security-policies/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 22 additions & 20 deletions security-policies/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,27 +1,29 @@
[tool.poetry]
[project]
name = "security-policies"
version = "0.1.0"
description = ""
authors = ["oren zohar <[email protected]>"]

[tool.poetry.dependencies]
python = "^3.11"
pandas = "^1.5.2"
GitPython = "^3.1.41"
openpyxl = "^3.0.10"
tabulate = "^0.9.0"
numpy = "^1.23.5"
Jinja2 = "^3.1.4"
regex = "^2022.10.31"
"ruamel.yaml" = "^0.17.21"
PyYAML = "^6.0"
pytest = "^7.4.4"
allure-python-commons = "^2.13.2"
munch = "^4.0.0"
loguru = "^0.7.2"

[tool.poetry.dev-dependencies]
authors = [
{name ="oren zohar", email = "[email protected]"}
]
requires-python = ">=3.11"
dependencies = [
"pandas >= 1.5.2",
"GitPython >= 3.1.41",
"openpyxl >= 3.0.10",
"tabulate >= 0.9.0",
"numpy >= 1.23.5",
"Jinja2 >= 3.1.4",
"regex >= 2022.10.31",
"ruamel.yaml >= 0.17.21",
"PyYAML >= 6.0",
"pytest >= 7.4.4",
"allure-python-commons >= 2.13.2",
"munch >= 4.0.0",
"loguru >= 0.7.2",
]

[tool.poetry]
package-mode = false

[build-system]
requires = ["poetry-core>=1.0.0"]
Expand Down
Loading

0 comments on commit bb0f1e1

Please sign in to comment.