ciel 3.1.0__tar.gz → 3.3.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ciel
3
- Version: 3.1.0
3
+ Version: 3.3.0
4
4
  Summary: An PDK builder/version manager for PDKs in the open_pdks format
5
5
  Home-page: https://github.com/fossi-foundation/ciel
6
6
  License: Apache-2.0
@@ -19,7 +19,8 @@ Classifier: Programming Language :: Python :: 3.11
19
19
  Classifier: Programming Language :: Python :: 3.12
20
20
  Classifier: Programming Language :: Python :: 3.13
21
21
  Requires-Dist: click (>=8,<8.5)
22
- Requires-Dist: httpx (>=0.22.0,<0.29)
22
+ Requires-Dist: httpx (>=0.22.0,<0.29) ; python_version < "3.10"
23
+ Requires-Dist: httpx2 (>=2,<3) ; python_version >= "3.10"
23
24
  Requires-Dist: pcpp (>=1.2,<2)
24
25
  Requires-Dist: pyyaml (>=5,<7)
25
26
  Requires-Dist: rich (>=12,<16)
@@ -71,23 +72,138 @@ ciel --version
71
72
  ```
72
73
 
73
74
  # About the builds
74
- In its current inception, ciel supports builds of **sky130** and **gf180mcu** PDKs using [Open-PDKs](https://github.com/rtimothyedwards/open_pdks), including the following libraries:
75
-
76
- |sky130|gf180mcu|ihp-sg13|
77
- |-|-|-|
78
- |sky130_fd_io|gf180mcu_fd_io|sg13g2_io|
79
- |sky130_fd_pr|gf180mcu_fd_pr|sg13g2_pr|
80
- |sky130_fd_pr_reram|-|-|
81
- |sky130_fd_sc_hd|gf180mcu_fd_sc_mcu7t5v0|sg13g2_stdcell|
82
- |sky130_ml_xx_hd|gf180mcu_fd_sc_mcu9t5v0|-|
83
- |sky130_fd_sc_hvl|gf180mcu_osu_sc_gp9t3v3|-|
84
- |sky130_fd_sc_lp|gf180mcu_osu_sc_gp12t3v3|-|
85
- |sky130_fd_sc_ls|-|-|
86
- |sky130_fd_sc_ms|-|-|
87
- |sky130_fd_sc_hs|-|-|
88
- |sky130_sram_macros|gf180mcu_fd_ip_sram|sg13g2_sram|
89
-
90
- Builds for sky130 and gf180mcu are identified by their [**open_pdks**](https://github.com/rtimothyedwards/open_pdks) commit hashes. Builds for ihp-sg13g2 are identified by their [**IHP-Open-PDK**](https://github.com/ihp-gmbh/ihp-open-pdk) commit hashes.
75
+
76
+ Ciel aims to support all kinds of open-source process design kits, so long
77
+ as they are laid out in the
78
+ [Open PDKs](https://github.com/fossi-foundation/open_pdks) format. Some PDKs
79
+ do not come in this format by default, so build scripts are added to `open_pdks`
80
+ to bring them into conformity, in which case open_pdks is transitively
81
+ responsible for their provenance (i.e. the versions of the PDK are identified
82
+ by the Open PDKs hash.)
83
+
84
+ This section lists supported PDKs and their identifiers: (You can list
85
+ supported standard cell libraries by using `ciel ls-libs --pdk <identifier>`)
86
+
87
+ * Manufacturable (AMS)
88
+ * [Google/SkyWater (130nm) Open Source PDK](https://github.com/fossi-foundation/skywater-pdk) — `sky130`
89
+ * Identified by [Open PDKs](https://github.com/fossi-foundation/open_pdks) hash.
90
+ * [Google/GlobalFoundries GF180MCU Open Source PDK](https://github.com/fossi-foundation/gf180mcu-pdk) - `gf180mcu`
91
+ * Identified by [Open PDKs](https://github.com/fossi-foundation/open_pdks) hash.
92
+ * [IHP (130nm) Open Source PDK](https://github.com/IHP-GmbH/IHP-Open-PDK) - `ihp-sg13`
93
+ * Identified by upstream repo hash, which is already in the Open PDKs
94
+ format.
95
+ * Predictive/Academic
96
+ * [FreePDK45](https://github.com/rjordans/freepdk45-open-pdks) - `freepdk45`
97
+ * Identified by hash in [Roel Jordans](https://github.com/rjordans)'
98
+ repo which lays it out in the Open PDKs format and adds LibreLane
99
+ support.
100
+ * Originally developed by NCSU - ([src](https://eda.ncsu.edu/freepdk/freepdk45/))
101
+
102
+ ## Included libraries
103
+
104
+ <!-- Regenerate library list using `python3 -m ciel _update_readme_lib_table Readme.md` -->
105
+
106
+ <!-- START LIBRARIES -->
107
+ <table>
108
+ <tr>
109
+ <th>sky130</th>
110
+ <th>gf180mcu</th>
111
+ <th>ihp-sg13</th>
112
+ <th>freepdk45</th>
113
+ </tr>
114
+ <tr>
115
+ <td>sky130_fd_io</td>
116
+ <td>gf180mcu_as_sc_mcu7t3v3</td>
117
+ <td>sg13cmos5l_io</td>
118
+ <td>fakeram45</td>
119
+ </tr>
120
+ <tr>
121
+ <td>sky130_fd_pr</td>
122
+ <td>gf180mcu_fd_io</td>
123
+ <td>sg13cmos5l_sram</td>
124
+ <td>nangate45</td>
125
+ </tr>
126
+ <tr>
127
+ <td>sky130_fd_pr_reram</td>
128
+ <td>gf180mcu_fd_ip_sram</td>
129
+ <td>sg13cmos5l_stdcell</td>
130
+ <td>-</td>
131
+ </tr>
132
+ <tr>
133
+ <td>sky130_fd_sc_hd</td>
134
+ <td>gf180mcu_fd_pr</td>
135
+ <td>sg13g2_io</td>
136
+ <td>-</td>
137
+ </tr>
138
+ <tr>
139
+ <td>sky130_fd_sc_hdll</td>
140
+ <td>gf180mcu_fd_sc_mcu7t5v0</td>
141
+ <td>sg13g2_pr</td>
142
+ <td>-</td>
143
+ </tr>
144
+ <tr>
145
+ <td>sky130_fd_sc_hs</td>
146
+ <td>gf180mcu_fd_sc_mcu9t5v0</td>
147
+ <td>sg13g2_sram</td>
148
+ <td>-</td>
149
+ </tr>
150
+ <tr>
151
+ <td>sky130_fd_sc_hvl</td>
152
+ <td>gf180mcu_ocd_alpha_large</td>
153
+ <td>sg13g2_stdcell</td>
154
+ <td>-</td>
155
+ </tr>
156
+ <tr>
157
+ <td>sky130_fd_sc_lp</td>
158
+ <td>gf180mcu_ocd_alpha_misc</td>
159
+ <td>-</td>
160
+ <td>-</td>
161
+ </tr>
162
+ <tr>
163
+ <td>sky130_fd_sc_ls</td>
164
+ <td>gf180mcu_ocd_alpha_small</td>
165
+ <td>-</td>
166
+ <td>-</td>
167
+ </tr>
168
+ <tr>
169
+ <td>sky130_fd_sc_ms</td>
170
+ <td>gf180mcu_ocd_io</td>
171
+ <td>-</td>
172
+ <td>-</td>
173
+ </tr>
174
+ <tr>
175
+ <td>sky130_ml_xx_hd</td>
176
+ <td>gf180mcu_ocd_ip_sram</td>
177
+ <td>-</td>
178
+ <td>-</td>
179
+ </tr>
180
+ <tr>
181
+ <td>sky130_sram_macros</td>
182
+ <td>gf180mcu_ocd_sc_rt12t3v3</td>
183
+ <td>-</td>
184
+ <td>-</td>
185
+ </tr>
186
+ <tr>
187
+ <td>-</td>
188
+ <td>gf180mcu_osu_sc_gp12t3v3</td>
189
+ <td>-</td>
190
+ <td>-</td>
191
+ </tr>
192
+ <tr>
193
+ <td>-</td>
194
+ <td>gf180mcu_osu_sc_gp9t3v3</td>
195
+ <td>-</td>
196
+ <td>-</td>
197
+ </tr>
198
+ <tr>
199
+ <td>-</td>
200
+ <td>gf180mcu_re_efuse</td>
201
+ <td>-</td>
202
+ <td>-</td>
203
+ </tr>
204
+ </tr>
205
+ </table>
206
+ <!-- END LIBRARIES -->
91
207
 
92
208
  # Usage
93
209
  Ciel requires a so-called **PDK Root**. This PDK root can be anywhere on your computer, but by default it's the folder `~/.ciel` in your home directory. If you have the variable `PDK_ROOT` set, ciel will use that instead. You can also manually override both values by supplying the `--pdk-root` commandline argument.
@@ -142,7 +258,7 @@ PDK version 7519dfb04400f224f140749cda44ee7de6f5e095 enabled.
142
258
  ## Building PDKs
143
259
  For special cases, you may have to build the PDK yourself, which Ciel does support.
144
260
 
145
- You'll need Magic installed and in PATH. You can either do that manually or, if you have [Nix](https://nixos.org), invoke `nix shell github:fossi-foundation/nix-eda#magic` before building.
261
+ You'll need [Magic](https://github.com/rtimothyedwards/magic) installed and in PATH. `python3 -m pip install git+https://github.com/rtimothyedwards/magic@8.3.706` is sufficient.
146
262
 
147
263
  You can invoke `ciel build --help` for more options. Be aware, the built PDK won't automatically be enabled and you'll have to `ciel enable` the appropriate version.
148
264
 
@@ -42,23 +42,138 @@ ciel --version
42
42
  ```
43
43
 
44
44
  # About the builds
45
- In its current inception, ciel supports builds of **sky130** and **gf180mcu** PDKs using [Open-PDKs](https://github.com/rtimothyedwards/open_pdks), including the following libraries:
46
-
47
- |sky130|gf180mcu|ihp-sg13|
48
- |-|-|-|
49
- |sky130_fd_io|gf180mcu_fd_io|sg13g2_io|
50
- |sky130_fd_pr|gf180mcu_fd_pr|sg13g2_pr|
51
- |sky130_fd_pr_reram|-|-|
52
- |sky130_fd_sc_hd|gf180mcu_fd_sc_mcu7t5v0|sg13g2_stdcell|
53
- |sky130_ml_xx_hd|gf180mcu_fd_sc_mcu9t5v0|-|
54
- |sky130_fd_sc_hvl|gf180mcu_osu_sc_gp9t3v3|-|
55
- |sky130_fd_sc_lp|gf180mcu_osu_sc_gp12t3v3|-|
56
- |sky130_fd_sc_ls|-|-|
57
- |sky130_fd_sc_ms|-|-|
58
- |sky130_fd_sc_hs|-|-|
59
- |sky130_sram_macros|gf180mcu_fd_ip_sram|sg13g2_sram|
60
-
61
- Builds for sky130 and gf180mcu are identified by their [**open_pdks**](https://github.com/rtimothyedwards/open_pdks) commit hashes. Builds for ihp-sg13g2 are identified by their [**IHP-Open-PDK**](https://github.com/ihp-gmbh/ihp-open-pdk) commit hashes.
45
+
46
+ Ciel aims to support all kinds of open-source process design kits, so long
47
+ as they are laid out in the
48
+ [Open PDKs](https://github.com/fossi-foundation/open_pdks) format. Some PDKs
49
+ do not come in this format by default, so build scripts are added to `open_pdks`
50
+ to bring them into conformity, in which case open_pdks is transitively
51
+ responsible for their provenance (i.e. the versions of the PDK are identified
52
+ by the Open PDKs hash.)
53
+
54
+ This section lists supported PDKs and their identifiers: (You can list
55
+ supported standard cell libraries by using `ciel ls-libs --pdk <identifier>`)
56
+
57
+ * Manufacturable (AMS)
58
+ * [Google/SkyWater (130nm) Open Source PDK](https://github.com/fossi-foundation/skywater-pdk) — `sky130`
59
+ * Identified by [Open PDKs](https://github.com/fossi-foundation/open_pdks) hash.
60
+ * [Google/GlobalFoundries GF180MCU Open Source PDK](https://github.com/fossi-foundation/gf180mcu-pdk) - `gf180mcu`
61
+ * Identified by [Open PDKs](https://github.com/fossi-foundation/open_pdks) hash.
62
+ * [IHP (130nm) Open Source PDK](https://github.com/IHP-GmbH/IHP-Open-PDK) - `ihp-sg13`
63
+ * Identified by upstream repo hash, which is already in the Open PDKs
64
+ format.
65
+ * Predictive/Academic
66
+ * [FreePDK45](https://github.com/rjordans/freepdk45-open-pdks) - `freepdk45`
67
+ * Identified by hash in [Roel Jordans](https://github.com/rjordans)'
68
+ repo which lays it out in the Open PDKs format and adds LibreLane
69
+ support.
70
+ * Originally developed by NCSU - ([src](https://eda.ncsu.edu/freepdk/freepdk45/))
71
+
72
+ ## Included libraries
73
+
74
+ <!-- Regenerate library list using `python3 -m ciel _update_readme_lib_table Readme.md` -->
75
+
76
+ <!-- START LIBRARIES -->
77
+ <table>
78
+ <tr>
79
+ <th>sky130</th>
80
+ <th>gf180mcu</th>
81
+ <th>ihp-sg13</th>
82
+ <th>freepdk45</th>
83
+ </tr>
84
+ <tr>
85
+ <td>sky130_fd_io</td>
86
+ <td>gf180mcu_as_sc_mcu7t3v3</td>
87
+ <td>sg13cmos5l_io</td>
88
+ <td>fakeram45</td>
89
+ </tr>
90
+ <tr>
91
+ <td>sky130_fd_pr</td>
92
+ <td>gf180mcu_fd_io</td>
93
+ <td>sg13cmos5l_sram</td>
94
+ <td>nangate45</td>
95
+ </tr>
96
+ <tr>
97
+ <td>sky130_fd_pr_reram</td>
98
+ <td>gf180mcu_fd_ip_sram</td>
99
+ <td>sg13cmos5l_stdcell</td>
100
+ <td>-</td>
101
+ </tr>
102
+ <tr>
103
+ <td>sky130_fd_sc_hd</td>
104
+ <td>gf180mcu_fd_pr</td>
105
+ <td>sg13g2_io</td>
106
+ <td>-</td>
107
+ </tr>
108
+ <tr>
109
+ <td>sky130_fd_sc_hdll</td>
110
+ <td>gf180mcu_fd_sc_mcu7t5v0</td>
111
+ <td>sg13g2_pr</td>
112
+ <td>-</td>
113
+ </tr>
114
+ <tr>
115
+ <td>sky130_fd_sc_hs</td>
116
+ <td>gf180mcu_fd_sc_mcu9t5v0</td>
117
+ <td>sg13g2_sram</td>
118
+ <td>-</td>
119
+ </tr>
120
+ <tr>
121
+ <td>sky130_fd_sc_hvl</td>
122
+ <td>gf180mcu_ocd_alpha_large</td>
123
+ <td>sg13g2_stdcell</td>
124
+ <td>-</td>
125
+ </tr>
126
+ <tr>
127
+ <td>sky130_fd_sc_lp</td>
128
+ <td>gf180mcu_ocd_alpha_misc</td>
129
+ <td>-</td>
130
+ <td>-</td>
131
+ </tr>
132
+ <tr>
133
+ <td>sky130_fd_sc_ls</td>
134
+ <td>gf180mcu_ocd_alpha_small</td>
135
+ <td>-</td>
136
+ <td>-</td>
137
+ </tr>
138
+ <tr>
139
+ <td>sky130_fd_sc_ms</td>
140
+ <td>gf180mcu_ocd_io</td>
141
+ <td>-</td>
142
+ <td>-</td>
143
+ </tr>
144
+ <tr>
145
+ <td>sky130_ml_xx_hd</td>
146
+ <td>gf180mcu_ocd_ip_sram</td>
147
+ <td>-</td>
148
+ <td>-</td>
149
+ </tr>
150
+ <tr>
151
+ <td>sky130_sram_macros</td>
152
+ <td>gf180mcu_ocd_sc_rt12t3v3</td>
153
+ <td>-</td>
154
+ <td>-</td>
155
+ </tr>
156
+ <tr>
157
+ <td>-</td>
158
+ <td>gf180mcu_osu_sc_gp12t3v3</td>
159
+ <td>-</td>
160
+ <td>-</td>
161
+ </tr>
162
+ <tr>
163
+ <td>-</td>
164
+ <td>gf180mcu_osu_sc_gp9t3v3</td>
165
+ <td>-</td>
166
+ <td>-</td>
167
+ </tr>
168
+ <tr>
169
+ <td>-</td>
170
+ <td>gf180mcu_re_efuse</td>
171
+ <td>-</td>
172
+ <td>-</td>
173
+ </tr>
174
+ </tr>
175
+ </table>
176
+ <!-- END LIBRARIES -->
62
177
 
63
178
  # Usage
64
179
  Ciel requires a so-called **PDK Root**. This PDK root can be anywhere on your computer, but by default it's the folder `~/.ciel` in your home directory. If you have the variable `PDK_ROOT` set, ciel will use that instead. You can also manually override both values by supplying the `--pdk-root` commandline argument.
@@ -113,7 +228,7 @@ PDK version 7519dfb04400f224f140749cda44ee7de6f5e095 enabled.
113
228
  ## Building PDKs
114
229
  For special cases, you may have to build the PDK yourself, which Ciel does support.
115
230
 
116
- You'll need Magic installed and in PATH. You can either do that manually or, if you have [Nix](https://nixos.org), invoke `nix shell github:fossi-foundation/nix-eda#magic` before building.
231
+ You'll need [Magic](https://github.com/rtimothyedwards/magic) installed and in PATH. `python3 -m pip install git+https://github.com/rtimothyedwards/magic@8.3.706` is sufficient.
117
232
 
118
233
  You can invoke `ciel build --help` for more options. Be aware, the built PDK won't automatically be enabled and you'll have to `ciel enable` the appropriate version.
119
234
 
@@ -15,37 +15,37 @@
15
15
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
16
  # See the License for the specific language governing permissions and
17
17
  # limitations under the License.
18
- import sys
19
18
  import json
20
19
  import shutil
20
+ import sys
21
21
 
22
- import httpx
23
22
  import click
24
23
  from rich.console import Console
25
24
 
26
25
  from .__version__ import __version__
27
- from .common import (
28
- Version,
29
- get_ciel_home,
26
+ from .build import (
27
+ build_cmd,
28
+ push_cmd,
30
29
  )
31
30
  from .click_common import (
32
- opt_pdk,
33
31
  arg_version,
32
+ opt_pdk,
33
+ )
34
+ from .common import (
35
+ Version,
36
+ get_ciel_home,
34
37
  )
38
+ from .families import Family, resolve_pdk_family, resolve_pdk_selector
39
+ from .github import opt_github_token
40
+ from .httpx import HTTPStatusError, NetworkError
35
41
  from .manage import (
36
- print_installed_list,
37
- print_remote_list,
38
42
  enable,
39
43
  fetch,
40
44
  optimize,
45
+ print_installed_list,
46
+ print_remote_list,
41
47
  )
42
- from .build import (
43
- build_cmd,
44
- push_cmd,
45
- )
46
- from .github import opt_github_token
47
48
  from .source import opt_data_source
48
- from .families import Family, resolve_pdk_family
49
49
 
50
50
 
51
51
  @click.command("output")
@@ -213,11 +213,11 @@ def list_remote_cmd(data_source, pdk_root, pdk_selector):
213
213
  console = Console(stderr=True)
214
214
  console.print(f"[red]{e}")
215
215
  sys.exit(-1)
216
- except httpx.HTTPStatusError as e:
216
+ except HTTPStatusError as e:
217
217
  console = Console(stderr=True)
218
218
  console.print(f"[red]Encountered an error when polling version list: {e}")
219
219
  sys.exit(-1)
220
- except httpx.NetworkError as e:
220
+ except NetworkError as e:
221
221
  console = Console(stderr=True)
222
222
  console.print(
223
223
  f"[red]You don't appear to be connected to the Internet. ls-remote cannot be used.: {e}"
@@ -348,6 +348,58 @@ def list_pdks_cmd():
348
348
  print(json.dumps(result), end="")
349
349
 
350
350
 
351
+ @click.command("ls-libs")
352
+ @opt_pdk
353
+ def list_libs_cmd(pdk_root, pdk_selector):
354
+ """Lists all libraries for a given PDK family or variant."""
355
+ family_name, variants = resolve_pdk_selector(pdk_selector)
356
+ family = Family.by_name[family_name]
357
+ for lib in sorted(family.resolve_libraries(("all",), variants)):
358
+ print(f"{lib}")
359
+
360
+
361
+ @click.command("_update_readme_lib_table", hidden=True)
362
+ @click.argument("readme", type=click.Path(exists=True, file_okay=True, writable=True))
363
+ def update_readme_lib_table_cmd(readme):
364
+ # internal command - behavior may change or command may be removed in any
365
+ # version
366
+ import fileinput # noqa: PLC0415
367
+ import html # noqa: PLC0415
368
+
369
+ table = [
370
+ (name, sorted(f.get_all_libraries("*"))) for name, f in Family.by_name.items()
371
+ ]
372
+ row_count = max(len(scls) for _, scls in table)
373
+
374
+ with fileinput.input(readme, inplace=True) as f:
375
+ skip = False
376
+ for line in f:
377
+ if "<!-- END LIBRARIES -->" in line:
378
+ skip = False
379
+ if not skip:
380
+ print(line, end="")
381
+ if "<!-- START LIBRARIES -->" in line:
382
+ skip = True
383
+ print("<table>")
384
+ print("<tr>")
385
+ for name, _ in table:
386
+ print(f"<th>{html.escape(name)}</th>")
387
+ print("</tr>")
388
+ for i in range(row_count):
389
+ print("<tr>")
390
+ for _, rows in table:
391
+ cell = "-"
392
+ try:
393
+ cell = rows[i]
394
+ except IndexError:
395
+ pass
396
+ print(f"<td>{html.escape(cell)}</td>")
397
+ print("</tr>")
398
+
399
+ print("</tr>")
400
+ print("</table>")
401
+
402
+
351
403
  @click.group(
352
404
  context_settings={
353
405
  "max_content_width": max(shutil.get_terminal_size().columns, 80),
@@ -386,6 +438,8 @@ cli.add_command(list_remote_cmd)
386
438
  cli.add_command(enable_cmd)
387
439
  cli.add_command(fetch_cmd)
388
440
  cli.add_command(list_pdks_cmd)
441
+ cli.add_command(list_libs_cmd)
442
+ cli.add_command(update_readme_lib_table_cmd)
389
443
 
390
444
  try:
391
445
  import ssl # noqa: F401
@@ -11,8 +11,8 @@
11
11
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
- import os
15
14
  import importlib.metadata
15
+ import os
16
16
  import sys
17
17
 
18
18
 
@@ -20,7 +20,7 @@ def __get_version():
20
20
  try:
21
21
  return importlib.metadata.version(__package__ or __name__)
22
22
  except importlib.metadata.PackageNotFoundError:
23
- import re
23
+ import re # noqa: PLC0415
24
24
 
25
25
  rx = re.compile(r"version\s*=\s*\"([^\"]+)\"")
26
26
  repo_directory = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
@@ -15,38 +15,38 @@
15
15
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
16
  # See the License for the specific language governing permissions and
17
17
  # limitations under the License.
18
+ import importlib
18
19
  import os
19
- import sys
20
- import uuid
21
20
  import pathlib
21
+ import subprocess
22
+ import sys
22
23
  import tarfile
23
24
  import tempfile
24
- import importlib
25
- import subprocess
26
- from typing import Optional, List, Dict, Tuple, Union
25
+ import uuid
26
+ from typing import Dict, List, Optional, Tuple, Union
27
27
 
28
28
  import click
29
29
  import zstandard as zstd
30
30
  from rich.console import Console
31
31
  from rich.progress import Progress
32
32
 
33
- from ..github import (
34
- GitHubSession,
35
- get_commit_date,
36
- opt_github_token,
33
+ from ..click_common import (
34
+ arg_version,
35
+ opt_build,
36
+ opt_pdk,
37
+ opt_push,
37
38
  )
38
39
  from ..common import (
39
40
  Version,
40
- mkdirp,
41
41
  date_to_iso8601,
42
- )
43
- from ..click_common import (
44
- opt_push,
45
- opt_build,
46
- opt_pdk,
47
- arg_version,
42
+ mkdirp,
48
43
  )
49
44
  from ..families import Family, resolve_pdk_selector
45
+ from ..github import (
46
+ GitHubSession,
47
+ get_commit_date,
48
+ opt_github_token,
49
+ )
50
50
 
51
51
 
52
52
  def build(