Skip to content

Commit de68259

Browse files
authored
Merge pull request #1199 from lorengordon/patch/support-venv
2 parents 0114f2c + e66c3d5 commit de68259

5 files changed

Lines changed: 75 additions & 1 deletion

File tree

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 0.26.1
2+
current_version = 0.26.2
33
commit = True
44
message = Bumps version to {new_version}
55
tag = False

CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,31 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).
66

7+
### [0.26.2](https://github.com/plus3it/tardigrade-ci/releases/tag/0.26.2)
8+
9+
**Released**: 2025.05.05
10+
11+
**Summary**:
12+
13+
* Prefers virtual env binaries if VIRTUAL_ENV is set
14+
15+
* Updates tool versions:
16+
* cfn-lint 1.34.2
17+
* editorconfig-checker 3.2.1
18+
* localstack 4.3.0
19+
* golang 1.24.2
20+
* moto 5.1.4
21+
* pylint 3.3.7
22+
* pytest 8.3.5
23+
* python 3.13.3
24+
* python-hcl2 7.2.0
25+
* rclone 1.69.2
26+
* terraform 1.11.4
27+
* terragrunt 0.78.0
28+
* terraform-docs 0.20.0
29+
* yamllint 1.37.1
30+
* yq 4.45.2
31+
732
### [0.26.1](https://github.com/plus3it/tardigrade-ci/releases/tag/0.26.1)
833

934
**Released**: 2025.02.18

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ export GIT_LS_FILES ?= git ls-files --cached --others --exclude-standard
1111
# See https://docs.python.org/3/using/cmdline.html#envvar-PYTHONUSERBASE
1212
export PYTHONUSERBASE ?= $(HOME)/.local
1313

14+
ifdef VIRTUAL_ENV
15+
PATH := $(BIN_DIR):$(VIRTUAL_ENV)/bin:${PATH}
16+
else
1417
PATH := $(BIN_DIR):$(PYTHONUSERBASE)/bin:${PATH}
18+
endif
1519

1620
MAKEFLAGS += --no-print-directory
1721
SHELL := bash
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/usr/bin/env bats
2+
3+
TEST_DIR="$(pwd)/python_venv_failure"
4+
5+
# create an arbitrary executable for the target to find
6+
function setup() {
7+
rm -rf "$TEST_DIR"
8+
mkdir -p "${TEST_DIR}/venv/bin" "${TEST_DIR}/user/.local/bin"
9+
touch "${TEST_DIR}/venv/bin/test.bat"
10+
chmod +x "${TEST_DIR}/venv/bin/test.bat"
11+
}
12+
13+
@test "python/venv: failure" {
14+
# If the executable is not found, the target will exit 2
15+
run make guard/program/test.bat
16+
[ "$status" -eq 2 ]
17+
[[ "$output" == *"No rule to make target 'test.bat/install"* ]]
18+
}
19+
20+
function teardown() {
21+
rm -rf "$TEST_DIR"
22+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/usr/bin/env bats
2+
3+
TEST_DIR="$(pwd)/python_venv_success"
4+
5+
# create an arbitrary executable for the target to find
6+
function setup() {
7+
rm -rf "$TEST_DIR"
8+
mkdir -p "${TEST_DIR}/venv/bin" "${TEST_DIR}/user/.local/bin"
9+
touch "${TEST_DIR}/venv/bin/test.bat"
10+
chmod +x "${TEST_DIR}/venv/bin/test.bat"
11+
export VIRTUAL_ENV="${TEST_DIR}/venv"
12+
export PYTHONUSERBASE="${TEST_DIR}/user/.local"
13+
}
14+
15+
@test "python/venv: success" {
16+
# If the executable is found, the target will exit 0
17+
run make guard/program/test.bat
18+
[ "$status" -eq 0 ]
19+
}
20+
21+
function teardown() {
22+
rm -rf "$TEST_DIR"
23+
}

0 commit comments

Comments
 (0)