Skip to content

Commit

Permalink
Fix python (#283)
Browse files Browse the repository at this point in the history
* smoke test that all of the imports work in CI

* don't bother with type annotations at runtime
  • Loading branch information
alsuren authored Sep 10, 2024
1 parent d837fca commit b54a175
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ trigger-all: cronjob_scripts/.python-deps-updated.timestamp ## build some random
.PHONY: test-cronjob-scripts
test-cronjob-scripts: cronjob_scripts/.python-deps-updated.timestamp ## run the tests for the python cronjob_scripts
python -m unittest discover -s cronjob_scripts
python cronjob_scripts/trigger-package-build.py --help

.PHONY: help
help: ## Display this help screen
Expand Down
2 changes: 2 additions & 0 deletions cronjob_scripts/architectures.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

import os
import subprocess

Expand Down
5 changes: 5 additions & 0 deletions cronjob_scripts/trigger-package-build.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,4 +179,9 @@ def get_current_version_if_unbuilt(


if __name__ == "__main__":
if len(sys.argv) > 1:
print("Usage: INFLUXDB_TOKEN= TARGET_ARCH= CRATE_CHECK_LIMIT= RECHECK= GITHUB_REPOSITORY= trigger-package-build.py")
if sys.argv[1] == "--help":
exit(0)
exit(1)
main()

0 comments on commit b54a175

Please sign in to comment.