Skip to content

Commit

Permalink
Generate column headers from a lookup table
Browse files Browse the repository at this point in the history
  • Loading branch information
waveform80 committed Sep 8, 2023
1 parent d667a62 commit c4dc288
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions piwheels/master/templates/project.pt
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,17 @@ sudo pip3 install ${package}</pre>
<h3 id="releases">Releases</h3>
<table tal:condition="releases">
<thead>
<tr>
<tr define="build_abis {
'cp34m': ('Jessie', 'Python 3.4'),
'cp35m': ('Stretch', 'Python 3.5'),
'cp37m': ('Buster', 'Python 3.7'),
'cp39': ('Bullseye', 'Python 3.9'),
'cp311': ('Bookworm', 'Python 3.11'),
}">
<th>Version</th>
<th>Released</th>
<th>Buster<br /><small>Python 3.7</small></th>
<th>Bullseye<br /><small>Python 3.9</small></th>
<th tal:repeat="abi vers_data.abis"><span
tal:define="(debver, pyver) build_abis.get(abi, ('Unknown', abi))">${debver}<br /><small>${pyver}</small></span></td>
<th>Files</th>
</tr>
</thead>
Expand Down

0 comments on commit c4dc288

Please sign in to comment.