groundhog-hpc 0.7.0__tar.gz → 0.7.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. {groundhog_hpc-0.7.0 → groundhog_hpc-0.7.1}/PKG-INFO +1 -1
  2. {groundhog_hpc-0.7.0 → groundhog_hpc-0.7.1}/src/groundhog_hpc/templates/shell_command.sh.jinja +3 -0
  3. {groundhog_hpc-0.7.0 → groundhog_hpc-0.7.1}/src/groundhog_hpc/templating.py +6 -0
  4. {groundhog_hpc-0.7.0 → groundhog_hpc-0.7.1}/.gitignore +0 -0
  5. {groundhog_hpc-0.7.0 → groundhog_hpc-0.7.1}/LICENSE +0 -0
  6. {groundhog_hpc-0.7.0 → groundhog_hpc-0.7.1}/README.md +0 -0
  7. {groundhog_hpc-0.7.0 → groundhog_hpc-0.7.1}/pyproject.toml +0 -0
  8. {groundhog_hpc-0.7.0 → groundhog_hpc-0.7.1}/src/groundhog_hpc/__init__.py +0 -0
  9. {groundhog_hpc-0.7.0 → groundhog_hpc-0.7.1}/src/groundhog_hpc/app/__init__.py +0 -0
  10. {groundhog_hpc-0.7.0 → groundhog_hpc-0.7.1}/src/groundhog_hpc/app/add.py +0 -0
  11. {groundhog_hpc-0.7.0 → groundhog_hpc-0.7.1}/src/groundhog_hpc/app/init.py +0 -0
  12. {groundhog_hpc-0.7.0 → groundhog_hpc-0.7.1}/src/groundhog_hpc/app/main.py +0 -0
  13. {groundhog_hpc-0.7.0 → groundhog_hpc-0.7.1}/src/groundhog_hpc/app/remove.py +0 -0
  14. {groundhog_hpc-0.7.0 → groundhog_hpc-0.7.1}/src/groundhog_hpc/app/run.py +0 -0
  15. {groundhog_hpc-0.7.0 → groundhog_hpc-0.7.1}/src/groundhog_hpc/app/utils.py +0 -0
  16. {groundhog_hpc-0.7.0 → groundhog_hpc-0.7.1}/src/groundhog_hpc/compute.py +0 -0
  17. {groundhog_hpc-0.7.0 → groundhog_hpc-0.7.1}/src/groundhog_hpc/configuration/__init__.py +0 -0
  18. {groundhog_hpc-0.7.0 → groundhog_hpc-0.7.1}/src/groundhog_hpc/configuration/defaults.py +0 -0
  19. {groundhog_hpc-0.7.0 → groundhog_hpc-0.7.1}/src/groundhog_hpc/configuration/endpoints.py +0 -0
  20. {groundhog_hpc-0.7.0 → groundhog_hpc-0.7.1}/src/groundhog_hpc/configuration/models.py +0 -0
  21. {groundhog_hpc-0.7.0 → groundhog_hpc-0.7.1}/src/groundhog_hpc/configuration/pep723.py +0 -0
  22. {groundhog_hpc-0.7.0 → groundhog_hpc-0.7.1}/src/groundhog_hpc/configuration/resolver.py +0 -0
  23. {groundhog_hpc-0.7.0 → groundhog_hpc-0.7.1}/src/groundhog_hpc/console.py +0 -0
  24. {groundhog_hpc-0.7.0 → groundhog_hpc-0.7.1}/src/groundhog_hpc/decorators.py +0 -0
  25. {groundhog_hpc-0.7.0 → groundhog_hpc-0.7.1}/src/groundhog_hpc/errors.py +0 -0
  26. {groundhog_hpc-0.7.0 → groundhog_hpc-0.7.1}/src/groundhog_hpc/function.py +0 -0
  27. {groundhog_hpc-0.7.0 → groundhog_hpc-0.7.1}/src/groundhog_hpc/future.py +0 -0
  28. {groundhog_hpc-0.7.0 → groundhog_hpc-0.7.1}/src/groundhog_hpc/harness.py +0 -0
  29. {groundhog_hpc-0.7.0 → groundhog_hpc-0.7.1}/src/groundhog_hpc/import_hook.py +0 -0
  30. {groundhog_hpc-0.7.0 → groundhog_hpc-0.7.1}/src/groundhog_hpc/logging.py +0 -0
  31. {groundhog_hpc-0.7.0 → groundhog_hpc-0.7.1}/src/groundhog_hpc/serialization.py +0 -0
  32. {groundhog_hpc-0.7.0 → groundhog_hpc-0.7.1}/src/groundhog_hpc/templates/groundhog_run.py.jinja +0 -0
  33. {groundhog_hpc-0.7.0 → groundhog_hpc-0.7.1}/src/groundhog_hpc/templates/init_script.py.jinja +0 -0
  34. {groundhog_hpc-0.7.0 → groundhog_hpc-0.7.1}/src/groundhog_hpc/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: groundhog-hpc
3
- Version: 0.7.0
3
+ Version: 0.7.1
4
4
  Summary: Iterative HPC function development. As many 'first tries' as you need.
5
5
  Author-email: Owen Price Skelly <OwenPriceSkelly@uchicago.edu>
6
6
  License: MIT
@@ -37,10 +37,12 @@ mkdir -p "$UV_CACHE_DIR" "$UV_PYTHON_INSTALL_DIR"
37
37
  {% if log_level %}
38
38
  # Local override - use value from dispatching environment
39
39
  export GROUNDHOG_LOG_LEVEL="{{ log_level }}"
40
+ export RUST_LOG=uv="${{GROUNDHOG_LOG_LEVEL}}"
40
41
  {% else %}
41
42
  {% raw %}
42
43
  # Respect remote environment if set, otherwise default to WARNING
43
44
  export GROUNDHOG_LOG_LEVEL="${{GROUNDHOG_LOG_LEVEL:-WARNING}}"
45
+ export RUST_LOG=uv="${{GROUNDHOG_LOG_LEVEL:-WARNING}}"
44
46
  {% endraw %}
45
47
  {% endif %}
46
48
 
@@ -57,6 +59,7 @@ cat > {{ script_name }}.in << 'PAYLOAD_EOF'
57
59
  PAYLOAD_EOF
58
60
 
59
61
  "$UV_BIN" run --with {{ version_spec }} \
62
+ --exclude-newer-package groundhog-hpc={{ groundhog_timestamp }} \
60
63
  {{ runner_name }}.py
61
64
 
62
65
  echo "__GROUNDHOG_RESULT__"
@@ -10,6 +10,7 @@ user functions remotely. It creates shell commands that:
10
10
  import logging
11
11
  import os
12
12
  import uuid
13
+ from datetime import datetime, timezone
13
14
  from hashlib import sha1
14
15
  from pathlib import Path
15
16
 
@@ -74,6 +75,10 @@ def template_shell_command(script_path: str, function_name: str, payload: str) -
74
75
  version_spec = get_groundhog_version_spec()
75
76
  logger.debug(f"Using groundhog version spec: {version_spec}")
76
77
 
78
+ # Generate timestamp for groundhog-hpc exclude-newer override
79
+ # This allows groundhog to bypass user's exclude-newer restrictions
80
+ groundhog_timestamp = datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ")
81
+
77
82
  # Load runner template
78
83
  templates_dir = Path(__file__).parent / "templates"
79
84
  jinja_env = Environment(loader=FileSystemLoader(templates_dir))
@@ -106,6 +111,7 @@ def template_shell_command(script_path: str, function_name: str, payload: str) -
106
111
  version_spec=version_spec,
107
112
  payload=payload,
108
113
  log_level=local_log_level,
114
+ groundhog_timestamp=groundhog_timestamp,
109
115
  )
110
116
 
111
117
  logger.debug(f"Generated shell command ({len(shell_command_string)} chars)")
File without changes
File without changes
File without changes