Skip to content

Commit 8cf069a

Browse files
authored
refresh dependency tree with poetry (#1191)
Signed-off-by: Eric Sauer <esauer@redhat.com>
1 parent fa5af18 commit 8cf069a

File tree

7 files changed

+2562
-2209
lines changed

7 files changed

+2562
-2209
lines changed

.github/workflows/check-python-dependencies.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,13 @@ jobs:
1414

1515
- uses: actions/setup-python@v4
1616
with:
17-
python-version: "3.11"
17+
python-version: "3.9"
1818

1919
- name: Install dependencies
20-
run: make dev-env
20+
run: |
21+
make dev-env
22+
. .venv/bin/activate
23+
poetry install
2124
2225
- name: Check if project's Python dependencies files are up to date
2326
run: |

.github/workflows/test-images.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@ jobs:
5151
runs-on: ubuntu-latest
5252
needs: setup
5353
steps:
54+
- name: Validate outputs from setup jobs
55+
env:
56+
BRANCH_REF: ${{ steps.variables.outputs.branch_ref }}
57+
PR_TYPE: ${{ steps.variables.outputs.pr_type }}
58+
PR_NUMBER: ${{ steps.variables.outputs.pr_number }}
59+
COMMIT_HASH: ${{ steps.variables.outputs.commit_hash }}
60+
run: echo "$BRANCH_REF, $PR_TYPE, $PR_NUMBER, $COMMIT_HASH"
5461
- name: Checkout code
5562
uses: actions/checkout@v4
5663
with:
@@ -60,7 +67,7 @@ jobs:
6067
uses: "./.github/workflow_templates/build_push_exporters"
6168
with:
6269
image: rc-pelorus-exporter
63-
tags: needs.setup.outputs.commit_hash
70+
tags: ${{ needs.setup.outputs.commit_hash }}
6471
quay_imagenamespace: ${{ secrets.QUAY_IMAGE_NAMESPACE }}
6572
quay_username: ${{ secrets.QUAY_USERNAME }}
6673
quay_password: ${{ secrets.QUAY_PASSWORD }}
@@ -74,7 +81,7 @@ jobs:
7481

7582
- name: Use test images in operator
7683
env:
77-
TEST_VERSION: needs.setup.outputs.commit_hash
84+
TEST_VERSION: ${{ needs.setup.outputs.commit_hash }}
7885
working-directory: ./pelorus-operator
7986
run: |
8087
export CURRENT_OPERATOR_VERSION="$(grep "^VERSION ?= " Makefile | cut -c 12-)"

docs/requirements.txt

Lines changed: 517 additions & 506 deletions
Large diffs are not rendered by default.

exporters/requirements-dev.txt

Lines changed: 278 additions & 229 deletions
Large diffs are not rendered by default.

exporters/requirements.txt

Lines changed: 475 additions & 420 deletions
Large diffs are not rendered by default.

poetry.lock

Lines changed: 1274 additions & 1050 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ version = "0.1.0" # we are not using it yet
44
description = "Automate the measurement of organizational behavior"
55
authors = ["Pelorus community"]
66
readme = "README.md"
7+
package-mode = false
78

89
[tool.poetry.dependencies]
910
python = "^3.9"
@@ -82,3 +83,6 @@ max_line_length = 120
8283
[[tool.pylama.files]]
8384
path = "exporters/tests/*"
8485
ignore= "W0401"
86+
87+
[tool.poetry.requires-plugins]
88+
poetry-plugin-export = ">=1.8"

0 commit comments

Comments
 (0)