Skip to content

Commit

Permalink
pants: add environments
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexTereshenkov committed Apr 4, 2024
1 parent 91b1cf5 commit c9a637e
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
29 changes: 29 additions & 0 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,32 @@ python_distribution(
sdist=False,
generate_setup=False,
)

docker_environment(
name="docker_debian_3_9",
platform="linux_x86_64",
image="python:3.9.19-slim-bookworm@sha256:0b4b0801ae9ae61bb57bc738b1efbe4e16b927fd581774c8edfed90f0e0f01ad",
python_bootstrap_search_path=["/usr/local/bin"],
)

docker_environment(
name="docker_debian_3_10",
platform="linux_x86_64",
image="python:3.10.14-slim-bookworm@sha256:0b4b0801ae9ae61bb57bc738b1efbe4e16b927fd581774c8edfed90f0e0f01ad",
python_bootstrap_search_path=["/usr/local/bin"],
)

docker_environment(
name="docker_debian_3_11",
platform="linux_x86_64",
image="python:3.11.8-slim-bookworm@sha256:90f8795536170fd08236d2ceb74fe7065dbf74f738d8b84bfbf263656654dc9b",
python_bootstrap_search_path=["/usr/local/bin"],
)


docker_environment(
name="docker_debian_3_12",
platform="linux_x86_64",
image="python:3.12.2-slim-bookworm@sha256:5dc6f84b5e97bfb0c90abfb7c55f3cacc2cb6687c8f920b64a833a2219875997",
python_bootstrap_search_path=["/usr/local/bin"],
)
6 changes: 6 additions & 0 deletions pants.toml
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,9 @@ args = ["-v", "--vcr-record=none"]

[tailor]
ignore_paths = ["requirements/BUILD"]

[environments-preview.names]
docker_debian_3_9 = "//:docker_debian_3_9"
docker_debian_3_10 = "//:docker_debian_3_10"
docker_debian_3_11 = "//:docker_debian_3_11"
docker_debian_3_12 = "//:docker_debian_3_12"
6 changes: 6 additions & 0 deletions tests/cli/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ python_tests(
"cheeseshop:project-version",
":cassettes",
],
environment=parametrize(
"docker_debian_3_9",
"docker_debian_3_10",
"docker_debian_3_11",
"docker_debian_3_12",
),
)

resources(
Expand Down

0 comments on commit c9a637e

Please sign in to comment.