Some checks failed
Publish Images / Resolve Publish Metadata (push) Successful in 18s
Publish Images / Publish web (arm64) (push) Successful in 7m16s
CI / Rustfmt (push) Has been cancelled
CI / Clippy (push) Has been cancelled
CI / Security Advisory Checks (push) Has been cancelled
CI / Tests (push) Has been cancelled
CI / Cargo Audit & Deny (push) Has been cancelled
CI / Web Blocking Checks (push) Has been cancelled
CI / Security Blocking Checks (push) Has been cancelled
CI / Web Advisory Checks (push) Has been cancelled
Publish Images / Publish agent (amd64) (push) Has been cancelled
Publish Images / Publish api (amd64) (push) Has been cancelled
Publish Images / Publish executor (amd64) (push) Has been cancelled
Publish Images / Publish notifier (amd64) (push) Has been cancelled
Publish Images / Publish agent (arm64) (push) Has been cancelled
Publish Images / Publish api (arm64) (push) Has been cancelled
Publish Images / Publish executor (arm64) (push) Has been cancelled
Publish Images / Publish notifier (arm64) (push) Has been cancelled
Publish Images / Publish web (amd64) (push) Has been cancelled
Publish Images / Build Rust Bundles (amd64) (push) Has started running
Publish Images / Publish manifest attune-agent (push) Has been cancelled
Publish Images / Publish manifest attune-api (push) Has been cancelled
Publish Images / Publish manifest attune-executor (push) Has been cancelled
Publish Images / Publish manifest attune-notifier (push) Has been cancelled
Publish Images / Build Rust Bundles (arm64) (push) Has been cancelled
Publish Images / Publish manifest attune-web (push) Has been cancelled
192 lines
4.4 KiB
YAML
192 lines
4.4 KiB
YAML
ref: core.python
|
|
pack_ref: core
|
|
name: Python
|
|
aliases: [python, python3]
|
|
description: Python 3 runtime for actions and sensors with automatic environment management
|
|
|
|
distributions:
|
|
verification:
|
|
commands:
|
|
- binary: python3
|
|
args:
|
|
- "--version"
|
|
exit_code: 0
|
|
pattern: "Python 3\\."
|
|
priority: 1
|
|
- binary: python
|
|
args:
|
|
- "--version"
|
|
exit_code: 0
|
|
pattern: "Python 3\\."
|
|
priority: 2
|
|
min_version: "3.8"
|
|
recommended_version: "3.12"
|
|
|
|
installation:
|
|
package_managers:
|
|
- pip
|
|
- pipenv
|
|
- poetry
|
|
virtual_env_support: true
|
|
|
|
execution_config:
|
|
interpreter:
|
|
binary: python3
|
|
args:
|
|
- "-u"
|
|
file_extension: ".py"
|
|
environment:
|
|
env_type: virtualenv
|
|
dir_name: ".venv"
|
|
create_command:
|
|
- python3
|
|
- "-m"
|
|
- venv
|
|
- "--copies"
|
|
- "{env_dir}"
|
|
interpreter_path: "{env_dir}/bin/python3"
|
|
dependencies:
|
|
manifest_file: requirements.txt
|
|
install_command:
|
|
- "{interpreter}"
|
|
- "-m"
|
|
- pip
|
|
- install
|
|
- "-r"
|
|
- "{manifest_path}"
|
|
env_vars:
|
|
PYTHONPATH:
|
|
operation: prepend
|
|
value: "{pack_dir}/lib"
|
|
separator: ":"
|
|
|
|
# Version-specific execution configurations.
|
|
# Each entry describes how to invoke a particular Python version.
|
|
# The worker uses these when an action declares a runtime_version constraint
|
|
# (e.g., runtime_version: ">=3.12"). The highest available version satisfying
|
|
# the constraint is selected, and its execution_config replaces the parent's.
|
|
versions:
|
|
- version: "3.11"
|
|
distributions:
|
|
verification:
|
|
commands:
|
|
- binary: python3.11
|
|
args:
|
|
- "--version"
|
|
exit_code: 0
|
|
pattern: "Python 3\\.11\\."
|
|
priority: 1
|
|
execution_config:
|
|
interpreter:
|
|
binary: python3.11
|
|
args:
|
|
- "-u"
|
|
file_extension: ".py"
|
|
environment:
|
|
env_type: virtualenv
|
|
dir_name: ".venv"
|
|
create_command:
|
|
- python3.11
|
|
- "-m"
|
|
- venv
|
|
- "--copies"
|
|
- "{env_dir}"
|
|
interpreter_path: "{env_dir}/bin/python3.11"
|
|
dependencies:
|
|
manifest_file: requirements.txt
|
|
install_command:
|
|
- "{interpreter}"
|
|
- "-m"
|
|
- pip
|
|
- install
|
|
- "-r"
|
|
- "{manifest_path}"
|
|
env_vars:
|
|
PYTHONPATH:
|
|
operation: prepend
|
|
value: "{pack_dir}/lib"
|
|
separator: ":"
|
|
|
|
- version: "3.12"
|
|
is_default: true
|
|
distributions:
|
|
verification:
|
|
commands:
|
|
- binary: python3.12
|
|
args:
|
|
- "--version"
|
|
exit_code: 0
|
|
pattern: "Python 3\\.12\\."
|
|
priority: 1
|
|
execution_config:
|
|
interpreter:
|
|
binary: python3.12
|
|
args:
|
|
- "-u"
|
|
file_extension: ".py"
|
|
environment:
|
|
env_type: virtualenv
|
|
dir_name: ".venv"
|
|
create_command:
|
|
- python3.12
|
|
- "-m"
|
|
- venv
|
|
- "--copies"
|
|
- "{env_dir}"
|
|
interpreter_path: "{env_dir}/bin/python3.12"
|
|
dependencies:
|
|
manifest_file: requirements.txt
|
|
install_command:
|
|
- "{interpreter}"
|
|
- "-m"
|
|
- pip
|
|
- install
|
|
- "-r"
|
|
- "{manifest_path}"
|
|
env_vars:
|
|
PYTHONPATH:
|
|
operation: prepend
|
|
value: "{pack_dir}/lib"
|
|
separator: ":"
|
|
|
|
- version: "3.13"
|
|
distributions:
|
|
verification:
|
|
commands:
|
|
- binary: python3.13
|
|
args:
|
|
- "--version"
|
|
exit_code: 0
|
|
pattern: "Python 3\\.13\\."
|
|
priority: 1
|
|
execution_config:
|
|
interpreter:
|
|
binary: python3.13
|
|
args:
|
|
- "-u"
|
|
file_extension: ".py"
|
|
environment:
|
|
env_type: virtualenv
|
|
dir_name: ".venv"
|
|
create_command:
|
|
- python3.13
|
|
- "-m"
|
|
- venv
|
|
- "--copies"
|
|
- "{env_dir}"
|
|
interpreter_path: "{env_dir}/bin/python3.13"
|
|
dependencies:
|
|
manifest_file: requirements.txt
|
|
install_command:
|
|
- "{interpreter}"
|
|
- "-m"
|
|
- pip
|
|
- install
|
|
- "-r"
|
|
- "{manifest_path}"
|
|
env_vars:
|
|
PYTHONPATH:
|
|
operation: prepend
|
|
value: "{pack_dir}/lib"
|
|
separator: ":"
|