File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 9
9
import argparse
10
10
import logging
11
11
import os
12
+ import re
12
13
import subprocess
13
14
from pathlib import Path
14
15
@@ -33,11 +34,13 @@ def get_latest_spark_version() -> str:
33
34
"""
34
35
LOGGER .info ("Downloading Spark versions information" )
35
36
all_refs = get_all_refs ("https://archive.apache.org/dist/spark/" )
37
+ LOGGER .info (f"All refs: { all_refs } " )
36
38
versions = [
37
39
ref .removeprefix ("spark-" ).removesuffix ("/" )
38
40
for ref in all_refs
39
- if ref . startswith ( " spark-" ) and "incubating" not in ref
41
+ if re . match ( r"^ spark-\d" , ref ) is not None and "incubating" not in ref
40
42
]
43
+ LOGGER .info (f"Available versions: { versions } " )
41
44
42
45
# Compare versions semantically
43
46
def version_array (ver : str ) -> tuple [int , int , int , str ]:
You can’t perform that action at this time.
0 commit comments