Skip to content

Commit

Permalink
Add information about the Python runtime to suite output
Browse files Browse the repository at this point in the history
  • Loading branch information
pronovic committed Jan 9, 2025
1 parent 43d5f9c commit e99e3e0
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .run/commands/pythonversion.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# vim: set ft=bash ts=3 sw=3 expandtab:
# Display information about the Python version that is in use

command_pythonversion() {
if [ "$1" == "--short" ]; then
echo "============================================================"
echo "Execution environment: $(poetry run python3 --version)"
echo "============================================================"
echo ""
else
echo "============================================================"
echo "Execution environment: $(poetry run python3 --version)"
echo "============================================================"
poetry env info
echo ""
echo "============================================================"
echo ""
fi
}

2 changes: 2 additions & 0 deletions .run/tasks/suite.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ help_suite() {
}

task_suite() {
run_command pythonversion --short
run_task install
run_task checks
run_task build
run_task test -c
run_task docs
run_task demo --players=3 --mode=ADULT --delay=0.02 --exit
run_command pythonversion
}

4 changes: 4 additions & 0 deletions Changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Version 0.2.2 unreleased

* Add information about the Python runtime to suite output.

Version 0.2.1 08 Jan 2025

* Adjust pyproject.toml comments to fix pip build at readthedocs.
Expand Down

0 comments on commit e99e3e0

Please sign in to comment.