File tree Expand file tree Collapse file tree 4 files changed +11
-10
lines changed Expand file tree Collapse file tree 4 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 1
1
hosts = (
2
- ["10.0.2.242 " ],
3
- {"ssh_user" : "pi " },
2
+ ["10.0.2.212 " ],
3
+ {"ssh_user" : "jgeerling " },
4
4
)
Original file line number Diff line number Diff line change 3
3
from pyinfra import host , local , logger
4
4
from pyinfra .operations import python
5
5
6
- # See: https://github.com/geerlingguy/sbc-reviews/issues/67
7
- sys .setrecursionlimit ( 2000 )
6
+ # Minimum Python version: 3.10.
7
+ assert sys .version_info >= ( 3 , 10 )
8
8
9
9
pause_seconds = 60
10
10
tasks = [
11
11
'tinymembench.py' ,
12
12
'geekbench.py' ,
13
13
'disk-benchmark.py' ,
14
14
'top500.py' ,
15
- 'ollama-benchmark.py' ,
16
15
'sbc-general-benchmark.py' ,
16
+ 'ollama-benchmark.py' ,
17
17
]
18
18
19
19
local .include ("tasks/setup.py" )
20
20
local .include ("tasks/basics.py" )
21
21
22
22
23
23
def task_callback ():
24
- for task in tasks :
25
- logger .info ("\n \n Pausing {} seconds for cooldown...\n " .format (pause_seconds ))
26
- time .sleep (pause_seconds )
24
+ for i , task in enumerate (tasks ):
25
+ if i != 0 :
26
+ logger .info ("\n \n Pausing {} seconds for cooldown...\n " .format (pause_seconds ))
27
+ time .sleep (pause_seconds )
27
28
local .include ("tasks/{}" .format (task ))
28
29
29
30
Original file line number Diff line number Diff line change 2
2
from pyinfra .operations import files , python , server
3
3
from pyinfra .facts .server import Home
4
4
5
- php_version = "8.2"
5
+ php_version = "8.4" # TODO Maybe map 8.x for different Ubuntu / Debian versions.
6
6
working_dir = host .get_fact (Home ) + "/Downloads"
7
7
8
8
files .download (
Original file line number Diff line number Diff line change 21
21
_sudo = True ,
22
22
)
23
23
24
- for python_version in ["3.11" , "3.12" ]:
24
+ for python_version in ["3.11" , "3.12" , "3.13" ]:
25
25
files .file (
26
26
name = "Remove Python {} EXTERNALLY-MANAGED file" .format (python_version ),
27
27
path = "/usr/lib/python{}/EXTERNALLY-MANAGED" .format (python_version ),
You can’t perform that action at this time.
0 commit comments