Skip to content

Commit c4189f0

Browse files
committed
chore: Partial revert of 1225a96
This restores the enumerate-product-versions script.
1 parent 2d91154 commit c4189f0

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
import sys
2+
import os
3+
4+
# NOTE: This script (used in the release workflow as of 2024-07-23) relies on conf.py being in its parent folder. Should either file be moved or the structure changed in any way remember to update this script as well.
5+
# Add parent directory to the sys.path
6+
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
7+
8+
import conf
9+
10+
PRODUCTS = [
11+
"airflow",
12+
"druid",
13+
"hadoop",
14+
"hbase",
15+
"hive",
16+
"kafka",
17+
"kafka-testing-tools",
18+
"krb5",
19+
"nifi",
20+
"opa",
21+
"omid",
22+
"spark-k8s",
23+
"superset",
24+
"testing-tools",
25+
"trino",
26+
"trino-cli",
27+
"tools",
28+
"zookeeper",
29+
]
30+
31+
for product in conf.products:
32+
product_name = product["name"]
33+
if product_name not in PRODUCTS:
34+
continue
35+
36+
for version in product["versions"]:
37+
print(f"{product_name}#{version['product']}")

0 commit comments

Comments
 (0)