Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions bin/all_tests_containerised.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,22 @@ fail() { local z="$?"; echo -e "\033[01;31m[$(date +'%H:%M:%S%P')] FAIL[$z]: $@\
win() { echo -e "\033[01;32m[$(date +'%H:%M:%S%P')] $@\033[0m" >&2; }
say() { echo -e "\033[01;35m[$(date +'%H:%M:%S%P')] $@\033[0m" >&2; }

exit_usage() {
echo "Usage: $0 { 3.10 | 3.11 | ... | ALL }" >&2
exit 2
}

try_tests() {
version=$1
shift
say "Testing under python $version"
docker build $build_opts --build-arg=PYTHON_VERSION=$version -f test/tests.Dockerfile . || fail "Containerised testing failed"
}

if [ "$#" -lt 1 ]; then
exit_usage
fi

build_opts=""
targets=""

Expand All @@ -25,8 +34,7 @@ for arg in "$@"; do
targets="3.10 3.11 3.12 3.13 3.14"
;;
*)
echo "Usage: $0 { 3.10 | 3.11 | ... | ALL }" >&2
exit 2
exit_usage
;;
esac
done
Expand Down
2 changes: 1 addition & 1 deletion homely/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = "0.20.4"
version = "0.21.0"
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,17 @@ classifiers=[

requires-python = ">=3.10"
# this also needs to be updated in homely/__init__.py
version = "0.20.4"
version = "0.21.0"

dependencies = [
"python-daemon>=2.3.0",
"requests>=2.25.1",
"click>=8.3",
# tomli is required before python 3.11
"tomli>=2.3.0 ; python_full_version < '3.11'",
# TODO: this isn't actually needed for Homely, but will be useful for my
# own dotfiles scripts while I don't have an automatic virtualenv feature
"pyyaml>=6.0.3",
]

[dependency-groups]
Expand Down
Loading