Skip to content

Commit 45bad45

Browse files
committed
[skip-ci] move test infra to uv
1 parent 9b303dc commit 45bad45

File tree

4 files changed

+310
-346
lines changed

4 files changed

+310
-346
lines changed

.github/workflows/cfn-nag.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,12 @@ jobs:
4646
uses: actions/setup-python@v5
4747
with:
4848
python-version: 3.11
49-
- name: Install Requirements
50-
run: |
51-
cd test_infra
52-
python -m pip install --upgrade pip
53-
python -m pip install poetry
54-
poetry env use python
55-
poetry env info
56-
source $(poetry env info --path)/bin/activate
57-
poetry install -vvv --no-root
49+
- name: Rust latest
50+
run: rustup update
51+
- name: Install uv
52+
uses: astral-sh/setup-uv@v5
53+
with:
54+
enable-cache: true
5855
- name: Set up cdk.json
5956
run: |
6057
cd test_infra
@@ -75,8 +72,9 @@ jobs:
7572
- name: CDK Synth
7673
run: |
7774
cd test_infra
78-
source $(poetry env info --path)/bin/activate
79-
cdk synth
75+
uv sync --frozen --no-install-project --verbose
76+
uv run cdk synth
77+
working-directory: ${{ github.workspace }}
8078
- uses: stelligent/cfn_nag@master
8179
with:
8280
input_path: test_infra/cdk.out

test_infra/poetry.lock

Lines changed: 0 additions & 326 deletions
This file was deleted.

test_infra/pyproject.toml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
1-
[tool.poetry]
2-
name = "awswrangler - test infrastructure"
1+
[project]
2+
name = "awswrangler-test-infrastructure"
33
version = "3.11.0"
44
description = "CDK test infrastructure for AWS SDK for pandas"
55
authors = ["Amazon Web Services"]
6-
license = "Apache License 2.0"
6+
license = {text = "Apache-2.0"}
7+
requires-python = ">=3.9, <4.0"
78

8-
[tool.poetry.dependencies]
9-
python = ">=3.9, <4.0"
10-
"aws-cdk-lib" = "^2.188.0"
11-
"aws-cdk.aws-glue-alpha" = "^2.188.0a0"
12-
"aws-cdk.aws-neptune-alpha" = "^2.188.0a0"
13-
"aws-cdk.aws-redshift-alpha" = "^2.188.0a0"
9+
dependencies = [
10+
"aws-cdk-lib>=2.188.0,<3",
11+
"aws-cdk.aws-glue-alpha>=2.188.0a0,<3",
12+
"aws-cdk.aws-neptune-alpha>=2.188.0a0,<3",
13+
"aws-cdk.aws-redshift-alpha>=2.188.0a0,<3",
14+
"packaging>=21.1,<25.0",
15+
'setuptools ; python_version >= "3.12"',
16+
]

0 commit comments

Comments
 (0)