mirror of
https://github.com/TinyTapeout/tt-support-tools.git
synced 2026-11-03 04:36:09 +01:00
feat: new format for shuttle_index
1. Bump "version" to 3 2. Rename "shuttle" to "name" 2. Rename "mux" to "projects", and turn it from a dict into a list 3. Project entries: add "address" (which was previously the key of the "mux" dict), remove "features" and add optional "analog_pins" with a list of analog pin assignment.
This commit is contained in:
+6
-5
@@ -1,22 +1,23 @@
|
||||
from typing import Dict, TypedDict
|
||||
from typing import List, NotRequired, TypedDict
|
||||
|
||||
|
||||
class ShuttleIndexMuxEntry(TypedDict):
|
||||
class ShuttleIndexProject(TypedDict):
|
||||
macro: str
|
||||
address: int
|
||||
x: int
|
||||
y: int
|
||||
tiles: str
|
||||
repo: str
|
||||
commit: str
|
||||
features: dict[str, bool]
|
||||
analog_pins: NotRequired[List[int]]
|
||||
|
||||
|
||||
class ShuttleIndex(TypedDict):
|
||||
"""TypedDict for Tiny Tapeout's shuttle_index.json file."""
|
||||
|
||||
shuttle: str
|
||||
name: str
|
||||
repo: str
|
||||
commit: str
|
||||
commit_date: int
|
||||
version: int
|
||||
mux: Dict[str, ShuttleIndexMuxEntry]
|
||||
projects: List[ShuttleIndexProject]
|
||||
|
||||
Reference in New Issue
Block a user