@@ -57,9 +57,9 @@ class InstallRef(TypedDict):
57
57
58
58
59
59
class Package (TypedDict ):
60
- basename : str # edgedb -server
60
+ basename : str # gel -server
61
61
slot : str | None # 1-alpha6-dev5069
62
- name : str # edgedb -server-1-alpha6-dev5069
62
+ name : str # gel -server-1-alpha6-dev5069
63
63
version : str # 1.0a6.dev5069+g0839d6e8
64
64
version_details : Version
65
65
version_key : str # 1.0.0~alpha.6~dev.5069.2020091300~nightly
@@ -69,7 +69,7 @@ class Package(TypedDict):
69
69
installref : str
70
70
71
71
72
- INDEX_URL = "https://packages.edgedb .com/archive/.jsonindexes"
72
+ INDEX_URL = "https://packages.geldata .com/archive/.jsonindexes"
73
73
CURRENT_DIR = pathlib .Path (__file__ ).parent
74
74
VERSION_BLOCKLIST = {"1.0a3" }
75
75
@@ -87,7 +87,7 @@ def query_latest_version(index: str) -> Package:
87
87
indexes = json .load (url )
88
88
versions : dict [Version , Package ] = {}
89
89
for package in indexes ["packages" ]:
90
- if not package ["name" ] == "edgedb -cli" :
90
+ if not package ["name" ] == "gel -cli" :
91
91
continue
92
92
if package ["version" ] in VERSION_BLOCKLIST :
93
93
continue
@@ -115,6 +115,8 @@ def get_tpl_data(channel: str) -> dict[str, Any]:
115
115
for target in targets
116
116
}
117
117
118
+ print (packages )
119
+
118
120
versions = {
119
121
version_to_str (v ["version_details" ])
120
122
for v in packages .values ()
@@ -126,7 +128,7 @@ def get_tpl_data(channel: str) -> dict[str, Any]:
126
128
for target , package in packages .items ():
127
129
for installref in package ["installrefs" ]:
128
130
if installref ["encoding" ] == "identity" :
129
- url = "https://packages.edgedb .com" + installref ["ref" ]
131
+ url = "https://packages.geldata .com" + installref ["ref" ]
130
132
parsed = urllib .parse .urlparse (url )
131
133
artifacts [target ] = {
132
134
"url" : url ,
@@ -135,6 +137,8 @@ def get_tpl_data(channel: str) -> dict[str, Any]:
135
137
}
136
138
137
139
return {
140
+ "name" : "gel" ,
141
+ "marketing_name" : "Gel" ,
138
142
"version" : next (iter (versions )),
139
143
"artifacts" : artifacts ,
140
144
"channel" : channel ,
@@ -156,9 +160,9 @@ def render_formula(path: pathlib.Path, channel: str) -> None:
156
160
157
161
158
162
def main () -> None :
159
- release_cli = CURRENT_DIR / "Formula" / "edgedb -cli.rb"
160
- testing_cli = CURRENT_DIR / "Formula" / "edgedb -cli-testing.rb"
161
- nightly_cli = CURRENT_DIR / "Formula" / "edgedb -cli-nightly.rb"
163
+ release_cli = CURRENT_DIR / "Formula" / "gel -cli.rb"
164
+ testing_cli = CURRENT_DIR / "Formula" / "gel -cli-testing.rb"
165
+ nightly_cli = CURRENT_DIR / "Formula" / "gel -cli-nightly.rb"
162
166
render_formula (release_cli , channel = "release" )
163
167
render_formula (testing_cli , channel = "testing" )
164
168
render_formula (nightly_cli , channel = "nightly" )
0 commit comments