Skip to content

Commit cfe043a

Browse files
authored
Merge pull request #657 from zapta/develop
Fixing the stale remote config issue and other fixes an cleanups
2 parents ca042ec + af20c16 commit cfe043a

26 files changed

+323
-309
lines changed

.vscode/launch.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@
2121
"request": "launch",
2222
"program": "${workspaceFolder}/apio/__main__.py",
2323
"args": [
24-
"api",
25-
"get-commands"
24+
"test",
25+
"main_tb.sv"
2626
],
2727
"console": "integratedTerminal",
2828
"justMyCode": false,
29-
"cwd": "${workspaceFolder}/test/example_projects/ice40/alhambra-ii/icestudio-ledon"
29+
"cwd": "/Users/user/work1"
3030
},
3131
{
3232
"name": "Attach remote debugger",

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@ While many use Apio as a stand alone text based CLI toolbox, it can also be used
8181

8282
* [Apio Documentation](https://fpgawars.github.io/apio/)
8383
* [Getting started with Apio](https://fpgawars.github.io/apio/quick-start)
84-
* [Apio github repository](https://github.com/FPGAwars/apio)
84+
* [Apio github repository](https://github.com/fpgawars/apio)
8585
* [Apio package on PyPi](https://pypi.org/project/apio/)
86-
* [Apio daily builds](https://github.com/FPGAwars/apio-dev-builds)
86+
* [Apio daily build](https://github.com/fpgawars/apio-dev-builds/releases)
8787

8888

8989

apio/commands/apio_info.py

Lines changed: 53 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,19 @@
1313
from rich.text import Text
1414
from rich import box
1515
from rich.color import ANSI_COLOR_NAMES
16-
from apio.common.apio_styles import BORDER, EMPH1, EMPH3
17-
from apio.utils import util, cmd_util
18-
from apio.utils.cmd_util import check_at_most_one_param
16+
from apio.common.apio_styles import BORDER, EMPH1, EMPH3, INFO
17+
from apio.utils import util
1918
from apio.apio_context import ApioContext, ApioContextScope
2019
from apio.utils.cmd_util import ApioGroup, ApioSubgroup, ApioCommand
21-
from apio.common.apio_console import PADDING, cout, cstyle, ctable
22-
from apio.common.apio_themes import THEMES_TABLE
20+
from apio.common.apio_themes import THEMES_TABLE, THEME_LIGHT
21+
from apio.common.apio_console import (
22+
PADDING,
23+
cout,
24+
cstyle,
25+
ctable,
26+
get_theme,
27+
configure,
28+
)
2329

2430

2531
# ------ apio info system
@@ -162,95 +168,42 @@ def _platforms_cli():
162168
# -- Text in the rich-text format of the python rich library.
163169
APIO_INFO_COLORS_HELP = """
164170
The command 'apio info colors' shows how ansi colors are rendered on \
165-
the platform, and is typically used to diagnose color related issues. \
166-
While the color name and styling is always handled by the Python Rich \
167-
library, the output is done via three different libraries, based on \
168-
the user's selection.
171+
the platform, and is typically used to diagnose color related issues.
169172
173+
The command shows the themes colors even if the current theme is 'no-colors'.
170174
171175
Examples:[code]
172176
apio info colors # Rich library output (default)
173-
apio info colors --rich # Same as above.
174-
apio info colors --click # Click library output.
175-
apio info colors --print # Python's print() output.
176177
apio inf col -p # Using shortcuts.[/code]
177178
"""
178179

179-
rich_option = click.option(
180-
"rich_", # Var name.
181-
"-r",
182-
"--rich",
183-
is_flag=True,
184-
help="Output using the rich lib.",
185-
cls=cmd_util.ApioOption,
186-
)
187-
188-
click_option = click.option(
189-
"click_", # Var name.
190-
"-c",
191-
"--click",
192-
is_flag=True,
193-
help="Output using the click lib.",
194-
cls=cmd_util.ApioOption,
195-
)
196-
197-
print_option = click.option(
198-
"print_", # Var name.
199-
"-p",
200-
"--print",
201-
is_flag=True,
202-
help="Output using python's print().",
203-
cls=cmd_util.ApioOption,
204-
)
205-
206180

207181
@click.command(
208182
name="colors",
209183
cls=ApioCommand,
210184
short_help="Colors table.",
211185
help=APIO_INFO_COLORS_HELP,
212186
)
213-
@click.pass_context
214-
@rich_option
215-
@click_option
216-
@print_option
217-
def _colors_cli(
218-
cmd_ctx: click.Context,
219-
# options
220-
rich_: bool,
221-
click_: bool,
222-
print_: bool,
223-
):
187+
def _colors_cli():
224188
"""Implements the 'apio info colors' command."""
225189

226-
# pylint: disable=too-many-locals
227-
228-
# -- Make pylint happy.
229-
_ = (rich_,)
230-
231-
# -- Allow at most one of --click and --print.
232-
check_at_most_one_param(cmd_ctx, ["rich_", "click_", "print_"])
233-
234-
# -- Select by output type.
235-
if click_:
236-
mode = "CLICK"
237-
output_func = click.echo
238-
elif print_:
239-
mode = "PRINT"
240-
output_func = print
241-
else:
242-
mode = "RICH"
243-
output_func = cout
244-
245190
# -- Print title.
246-
cout("", f"ANSI Colors [{mode} mode]", "")
191+
cout("", "ANSI Colors", "")
247192

248193
# -- Create a reversed num->name map
249194
lookup = {}
250195
for name, num in ANSI_COLOR_NAMES.items():
251196
assert 0 <= num <= 255
252197
lookup[num] = name
253198

199+
# -- Make sure the current theme supports colors, otherwise they will
200+
# -- suppressed
201+
if get_theme().colors_enabled:
202+
saved_theme_name = None
203+
else:
204+
saved_theme_name = get_theme().name
205+
configure(theme_name=THEME_LIGHT.name)
206+
254207
# -- Print the table.
255208
num_rows = 64
256209
num_cols = 4
@@ -273,10 +226,14 @@ def _colors_cli(
273226
line = " ".join(values)
274227

275228
# -- Output the line.
276-
output_func(line)
229+
cout(line)
277230

278231
cout()
279232

233+
# -- Restore the original theme.
234+
if saved_theme_name:
235+
configure(theme_name=saved_theme_name)
236+
280237

281238
# ------ apio info themes
282239

@@ -286,6 +243,8 @@ def _colors_cli(
286243
be used to select the theme that works the best for you. Type \
287244
'apio preferences -h' for information on our to select a theme.
288245
246+
The command shows colors even if the current theme is 'no-colors'.
247+
289248
[code]
290249
Examples:
291250
apio info themes # Show themes colors
@@ -322,9 +281,17 @@ def _themes_cli():
322281
title_justify="left",
323282
)
324283

284+
# -- Get selected theme
285+
selected_theme = get_theme()
286+
selected_theme_name = selected_theme.name
287+
325288
# -- Add the table columns, one per theme.
326-
for theme_name in THEMES_TABLE:
327-
table.add_column(theme_name.upper(), no_wrap=True, justify="center")
289+
for theme_name, theme in THEMES_TABLE.items():
290+
assert theme_name == theme.name
291+
column_name = theme_name.upper()
292+
if theme_name == selected_theme_name:
293+
column_name = f"*{column_name}*"
294+
table.add_column(column_name, no_wrap=True, justify="center")
328295

329296
# -- Append the table rows
330297
for style_name in style_names:
@@ -347,9 +314,22 @@ def _themes_cli():
347314

348315
table.add_row(*row_values)
349316

317+
# -- Make sure the current theme supports colors, otherwise they will
318+
# -- suppressed
319+
if get_theme().colors_enabled:
320+
saved_theme_name = None
321+
else:
322+
saved_theme_name = get_theme().name
323+
configure(theme_name=THEME_LIGHT.name)
324+
350325
# -- Render the table.
351326
cout()
352327
ctable(table)
328+
329+
if saved_theme_name:
330+
configure(theme_name=saved_theme_name)
331+
332+
cout("To change your theme use 'apio preferences -t ...'", style=INFO)
353333
cout()
354334

355335

apio/common/apio_console.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ def configure(
8787
# -- Used caller specified theme.
8888
assert theme_name in THEMES_TABLE, theme_name
8989
theme = THEMES_TABLE[theme_name]
90+
assert theme.name == theme_name, theme
9091
elif _state:
9192
# -- Fall to theme name from state, if available.
9293
theme = _state.theme
@@ -337,3 +338,9 @@ def is_terminal():
337338
def cwidth():
338339
"""Return the console width."""
339340
return console().width
341+
342+
343+
def get_theme() -> ApioTheme:
344+
"""Return the the current theme."""
345+
check_apio_console_configured()
346+
return _state.theme

apio/common/apio_themes.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,8 @@ class ApioTheme:
9090
THEME_NO_COLORS = ApioTheme(
9191
name="no-colors",
9292
colors_enabled=False,
93-
# -- We need to have some styles so borrowing from the light theme
94-
# -- but colors are disabled per the flag above.
95-
styles=THEME_LIGHT.styles.copy(),
93+
# -- A fake style table that is suppressed by the flag above.
94+
styles={key: "" for key in THEME_LIGHT.styles},
9695
)
9796

9897
# -- Mapping of theme name to theme object.

apio/common/proto/apio.proto

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -171,12 +171,12 @@ message TargetParams {
171171
// using piped output on windows.
172172
// See: https://github.com/Textualize/rich/issues/3082
173173
// https://github.com/Textualize/rich/issues/3625
174-
message RichLibWindowsParams {
175-
// Copy of WindowsConsoleFeatures.vt.
176-
required bool vt = 1;
177-
// Copy of WindowsConsoleFeatures.truecolor.
178-
required bool truecolor = 2;
179-
}
174+
// message RichLibWindowsParams {
175+
// // Copy of WindowsConsoleFeatures.vt.
176+
// required bool vt = 1;
177+
// // Copy of WindowsConsoleFeatures.truecolor.
178+
// required bool truecolor = 2;
179+
// }
180180

181181
// The top level messages that is passed from the apio process to
182182
// the scons process.
@@ -205,5 +205,5 @@ message SconsParams {
205205
optional TargetParams target = 7;
206206

207207
// Should be populated if an only if environment.is_windows is true.
208-
optional RichLibWindowsParams rich_lib_windows_params = 8;
208+
// optional RichLibWindowsParams rich_lib_windows_params = 8;
209209
}

apio/common/proto/apio_pb2.py

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,19 @@
3030

3131

3232

33-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\napio.proto\x12\x11\x61pio.common.proto\"+\n\rIce40FpgaInfo\x12\x0c\n\x04type\x18\x01 \x02(\t\x12\x0c\n\x04pack\x18\x02 \x02(\t\"9\n\x0c\x45\x63p5FpgaInfo\x12\x0c\n\x04type\x18\x04 \x02(\t\x12\x0c\n\x04pack\x18\x05 \x02(\t\x12\r\n\x05speed\x18\x06 \x02(\t\"\x1f\n\rGowinFpgaInfo\x12\x0e\n\x06\x66\x61mily\x18\x04 \x02(\t\"\xda\x01\n\x08\x46pgaInfo\x12\x0f\n\x07\x66pga_id\x18\x01 \x02(\t\x12\x10\n\x08part_num\x18\x02 \x02(\t\x12\x0c\n\x04size\x18\x03 \x02(\t\x12\x31\n\x05ice40\x18\n \x01(\x0b\x32 .apio.common.proto.Ice40FpgaInfoH\x00\x12/\n\x04\x65\x63p5\x18\x0b \x01(\x0b\x32\x1f.apio.common.proto.Ecp5FpgaInfoH\x00\x12\x31\n\x05gowin\x18\x0c \x01(\x0b\x32 .apio.common.proto.GowinFpgaInfoH\x00\x42\x06\n\x04\x61rch\"I\n\tVerbosity\x12\x12\n\x03\x61ll\x18\x01 \x01(\x08:\x05\x66\x61lse\x12\x14\n\x05synth\x18\x02 \x01(\x08:\x05\x66\x61lse\x12\x12\n\x03pnr\x18\x03 \x01(\x08:\x05\x66\x61lse\"\xc1\x01\n\x0b\x45nvironment\x12\x13\n\x0bplatform_id\x18\x01 \x02(\t\x12\x12\n\nis_windows\x18\x02 \x02(\x08\x12\x36\n\rterminal_mode\x18\x03 \x02(\x0e\x32\x1f.apio.common.proto.TerminalMode\x12\x12\n\ntheme_name\x18\x04 \x02(\t\x12\x13\n\x0b\x64\x65\x62ug_level\x18\x05 \x02(\x05\x12\x12\n\nyosys_path\x18\x06 \x02(\t\x12\x14\n\x0ctrellis_path\x18\x07 \x02(\t\"{\n\rApioEnvParams\x12\x10\n\x08\x65nv_name\x18\x01 \x02(\t\x12\x10\n\x08\x62oard_id\x18\x02 \x02(\t\x12\x12\n\ntop_module\x18\x03 \x02(\t\x12\x0f\n\x07\x64\x65\x66ines\x18\x04 \x03(\t\x12!\n\x19yosys_synth_extra_options\x18\x05 \x03(\t\"\x98\x01\n\nLintParams\x12\x14\n\ntop_module\x18\x01 \x01(\t:\x00\x12\x1c\n\rverilator_all\x18\x02 \x01(\x08:\x05\x66\x61lse\x12!\n\x12verilator_no_style\x18\x03 \x01(\x08:\x05\x66\x61lse\x12\x1a\n\x12verilator_no_warns\x18\x04 \x03(\t\x12\x17\n\x0fverilator_warns\x18\x05 \x03(\t\"Z\n\x0bGraphParams\x12\x37\n\x0boutput_type\x18\x01 \x02(\x0e\x32\".apio.common.proto.GraphOutputType\x12\x12\n\ntop_module\x18\x02 \x01(\t\"G\n\tSimParams\x12\x13\n\ttestbench\x18\x01 \x01(\t:\x00\x12\x11\n\tforce_sim\x18\x02 \x02(\x08\x12\x12\n\nno_gtkwave\x18\x03 \x02(\x08\"%\n\x0e\x41pioTestParams\x12\x13\n\ttestbench\x18\x01 \x01(\t:\x00\"&\n\x0cUploadParams\x12\x16\n\x0eprogrammer_cmd\x18\x01 \x01(\t\"\x8b\x02\n\x0cTargetParams\x12-\n\x04lint\x18\n \x01(\x0b\x32\x1d.apio.common.proto.LintParamsH\x00\x12/\n\x05graph\x18\x0b \x01(\x0b\x32\x1e.apio.common.proto.GraphParamsH\x00\x12+\n\x03sim\x18\x0c \x01(\x0b\x32\x1c.apio.common.proto.SimParamsH\x00\x12\x31\n\x04test\x18\r \x01(\x0b\x32!.apio.common.proto.ApioTestParamsH\x00\x12\x31\n\x06upload\x18\x0e \x01(\x0b\x32\x1f.apio.common.proto.UploadParamsH\x00\x42\x08\n\x06target\"5\n\x14RichLibWindowsParams\x12\n\n\x02vt\x18\x01 \x02(\x08\x12\x11\n\ttruecolor\x18\x02 \x02(\x08\"\x97\x03\n\x0bSconsParams\x12\x11\n\ttimestamp\x18\x01 \x02(\t\x12)\n\x04\x61rch\x18\x02 \x02(\x0e\x32\x1b.apio.common.proto.ApioArch\x12.\n\tfpga_info\x18\x03 \x02(\x0b\x32\x1b.apio.common.proto.FpgaInfo\x12/\n\tverbosity\x18\x04 \x01(\x0b\x32\x1c.apio.common.proto.Verbosity\x12\x33\n\x0b\x65nvironment\x18\x05 \x02(\x0b\x32\x1e.apio.common.proto.Environment\x12\x39\n\x0f\x61pio_env_params\x18\x06 \x02(\x0b\x32 .apio.common.proto.ApioEnvParams\x12/\n\x06target\x18\x07 \x01(\x0b\x32\x1f.apio.common.proto.TargetParams\x12H\n\x17rich_lib_windows_params\x18\x08 \x01(\x0b\x32\'.apio.common.proto.RichLibWindowsParams*@\n\x08\x41pioArch\x12\x14\n\x10\x41RCH_UNSPECIFIED\x10\x00\x12\t\n\x05ICE40\x10\x01\x12\x08\n\x04\x45\x43P5\x10\x02\x12\t\n\x05GOWIN\x10\x03*_\n\x0cTerminalMode\x12\x18\n\x14TERMINAL_UNSPECIFIED\x10\x00\x12\x11\n\rAUTO_TERMINAL\x10\x01\x12\x12\n\x0e\x46ORCE_TERMINAL\x10\x02\x12\x0e\n\nFORCE_PIPE\x10\x03*B\n\x0fGraphOutputType\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03SVG\x10\x01\x12\x07\n\x03PNG\x10\x02\x12\x07\n\x03PDF\x10\x03')
33+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\napio.proto\x12\x11\x61pio.common.proto\"+\n\rIce40FpgaInfo\x12\x0c\n\x04type\x18\x01 \x02(\t\x12\x0c\n\x04pack\x18\x02 \x02(\t\"9\n\x0c\x45\x63p5FpgaInfo\x12\x0c\n\x04type\x18\x04 \x02(\t\x12\x0c\n\x04pack\x18\x05 \x02(\t\x12\r\n\x05speed\x18\x06 \x02(\t\"\x1f\n\rGowinFpgaInfo\x12\x0e\n\x06\x66\x61mily\x18\x04 \x02(\t\"\xda\x01\n\x08\x46pgaInfo\x12\x0f\n\x07\x66pga_id\x18\x01 \x02(\t\x12\x10\n\x08part_num\x18\x02 \x02(\t\x12\x0c\n\x04size\x18\x03 \x02(\t\x12\x31\n\x05ice40\x18\n \x01(\x0b\x32 .apio.common.proto.Ice40FpgaInfoH\x00\x12/\n\x04\x65\x63p5\x18\x0b \x01(\x0b\x32\x1f.apio.common.proto.Ecp5FpgaInfoH\x00\x12\x31\n\x05gowin\x18\x0c \x01(\x0b\x32 .apio.common.proto.GowinFpgaInfoH\x00\x42\x06\n\x04\x61rch\"I\n\tVerbosity\x12\x12\n\x03\x61ll\x18\x01 \x01(\x08:\x05\x66\x61lse\x12\x14\n\x05synth\x18\x02 \x01(\x08:\x05\x66\x61lse\x12\x12\n\x03pnr\x18\x03 \x01(\x08:\x05\x66\x61lse\"\xc1\x01\n\x0b\x45nvironment\x12\x13\n\x0bplatform_id\x18\x01 \x02(\t\x12\x12\n\nis_windows\x18\x02 \x02(\x08\x12\x36\n\rterminal_mode\x18\x03 \x02(\x0e\x32\x1f.apio.common.proto.TerminalMode\x12\x12\n\ntheme_name\x18\x04 \x02(\t\x12\x13\n\x0b\x64\x65\x62ug_level\x18\x05 \x02(\x05\x12\x12\n\nyosys_path\x18\x06 \x02(\t\x12\x14\n\x0ctrellis_path\x18\x07 \x02(\t\"{\n\rApioEnvParams\x12\x10\n\x08\x65nv_name\x18\x01 \x02(\t\x12\x10\n\x08\x62oard_id\x18\x02 \x02(\t\x12\x12\n\ntop_module\x18\x03 \x02(\t\x12\x0f\n\x07\x64\x65\x66ines\x18\x04 \x03(\t\x12!\n\x19yosys_synth_extra_options\x18\x05 \x03(\t\"\x98\x01\n\nLintParams\x12\x14\n\ntop_module\x18\x01 \x01(\t:\x00\x12\x1c\n\rverilator_all\x18\x02 \x01(\x08:\x05\x66\x61lse\x12!\n\x12verilator_no_style\x18\x03 \x01(\x08:\x05\x66\x61lse\x12\x1a\n\x12verilator_no_warns\x18\x04 \x03(\t\x12\x17\n\x0fverilator_warns\x18\x05 \x03(\t\"Z\n\x0bGraphParams\x12\x37\n\x0boutput_type\x18\x01 \x02(\x0e\x32\".apio.common.proto.GraphOutputType\x12\x12\n\ntop_module\x18\x02 \x01(\t\"G\n\tSimParams\x12\x13\n\ttestbench\x18\x01 \x01(\t:\x00\x12\x11\n\tforce_sim\x18\x02 \x02(\x08\x12\x12\n\nno_gtkwave\x18\x03 \x02(\x08\"%\n\x0e\x41pioTestParams\x12\x13\n\ttestbench\x18\x01 \x01(\t:\x00\"&\n\x0cUploadParams\x12\x16\n\x0eprogrammer_cmd\x18\x01 \x01(\t\"\x8b\x02\n\x0cTargetParams\x12-\n\x04lint\x18\n \x01(\x0b\x32\x1d.apio.common.proto.LintParamsH\x00\x12/\n\x05graph\x18\x0b \x01(\x0b\x32\x1e.apio.common.proto.GraphParamsH\x00\x12+\n\x03sim\x18\x0c \x01(\x0b\x32\x1c.apio.common.proto.SimParamsH\x00\x12\x31\n\x04test\x18\r \x01(\x0b\x32!.apio.common.proto.ApioTestParamsH\x00\x12\x31\n\x06upload\x18\x0e \x01(\x0b\x32\x1f.apio.common.proto.UploadParamsH\x00\x42\x08\n\x06target\"\xcd\x02\n\x0bSconsParams\x12\x11\n\ttimestamp\x18\x01 \x02(\t\x12)\n\x04\x61rch\x18\x02 \x02(\x0e\x32\x1b.apio.common.proto.ApioArch\x12.\n\tfpga_info\x18\x03 \x02(\x0b\x32\x1b.apio.common.proto.FpgaInfo\x12/\n\tverbosity\x18\x04 \x01(\x0b\x32\x1c.apio.common.proto.Verbosity\x12\x33\n\x0b\x65nvironment\x18\x05 \x02(\x0b\x32\x1e.apio.common.proto.Environment\x12\x39\n\x0f\x61pio_env_params\x18\x06 \x02(\x0b\x32 .apio.common.proto.ApioEnvParams\x12/\n\x06target\x18\x07 \x01(\x0b\x32\x1f.apio.common.proto.TargetParams*@\n\x08\x41pioArch\x12\x14\n\x10\x41RCH_UNSPECIFIED\x10\x00\x12\t\n\x05ICE40\x10\x01\x12\x08\n\x04\x45\x43P5\x10\x02\x12\t\n\x05GOWIN\x10\x03*_\n\x0cTerminalMode\x12\x18\n\x14TERMINAL_UNSPECIFIED\x10\x00\x12\x11\n\rAUTO_TERMINAL\x10\x01\x12\x12\n\x0e\x46ORCE_TERMINAL\x10\x02\x12\x0e\n\nFORCE_PIPE\x10\x03*B\n\x0fGraphOutputType\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03SVG\x10\x01\x12\x07\n\x03PNG\x10\x02\x12\x07\n\x03PDF\x10\x03')
3434

3535
_globals = globals()
3636
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
3737
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'apio_pb2', _globals)
3838
if not _descriptor._USE_C_DESCRIPTORS:
3939
DESCRIPTOR._loaded_options = None
40-
_globals['_APIOARCH']._serialized_start=1921
41-
_globals['_APIOARCH']._serialized_end=1985
42-
_globals['_TERMINALMODE']._serialized_start=1987
43-
_globals['_TERMINALMODE']._serialized_end=2082
44-
_globals['_GRAPHOUTPUTTYPE']._serialized_start=2084
45-
_globals['_GRAPHOUTPUTTYPE']._serialized_end=2150
40+
_globals['_APIOARCH']._serialized_start=1792
41+
_globals['_APIOARCH']._serialized_end=1856
42+
_globals['_TERMINALMODE']._serialized_start=1858
43+
_globals['_TERMINALMODE']._serialized_end=1953
44+
_globals['_GRAPHOUTPUTTYPE']._serialized_start=1955
45+
_globals['_GRAPHOUTPUTTYPE']._serialized_end=2021
4646
_globals['_ICE40FPGAINFO']._serialized_start=33
4747
_globals['_ICE40FPGAINFO']._serialized_end=76
4848
_globals['_ECP5FPGAINFO']._serialized_start=78
@@ -69,8 +69,6 @@
6969
_globals['_UPLOADPARAMS']._serialized_end=1184
7070
_globals['_TARGETPARAMS']._serialized_start=1187
7171
_globals['_TARGETPARAMS']._serialized_end=1454
72-
_globals['_RICHLIBWINDOWSPARAMS']._serialized_start=1456
73-
_globals['_RICHLIBWINDOWSPARAMS']._serialized_end=1509
74-
_globals['_SCONSPARAMS']._serialized_start=1512
75-
_globals['_SCONSPARAMS']._serialized_end=1919
72+
_globals['_SCONSPARAMS']._serialized_start=1457
73+
_globals['_SCONSPARAMS']._serialized_end=1790
7674
# @@protoc_insertion_point(module_scope)

apio/common/proto/apio_pb2.pyi

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -185,30 +185,20 @@ class TargetParams(_message.Message):
185185
upload: UploadParams
186186
def __init__(self, lint: _Optional[_Union[LintParams, _Mapping]] = ..., graph: _Optional[_Union[GraphParams, _Mapping]] = ..., sim: _Optional[_Union[SimParams, _Mapping]] = ..., test: _Optional[_Union[ApioTestParams, _Mapping]] = ..., upload: _Optional[_Union[UploadParams, _Mapping]] = ...) -> None: ...
187187

188-
class RichLibWindowsParams(_message.Message):
189-
__slots__ = ("vt", "truecolor")
190-
VT_FIELD_NUMBER: _ClassVar[int]
191-
TRUECOLOR_FIELD_NUMBER: _ClassVar[int]
192-
vt: bool
193-
truecolor: bool
194-
def __init__(self, vt: bool = ..., truecolor: bool = ...) -> None: ...
195-
196188
class SconsParams(_message.Message):
197-
__slots__ = ("timestamp", "arch", "fpga_info", "verbosity", "environment", "apio_env_params", "target", "rich_lib_windows_params")
189+
__slots__ = ("timestamp", "arch", "fpga_info", "verbosity", "environment", "apio_env_params", "target")
198190
TIMESTAMP_FIELD_NUMBER: _ClassVar[int]
199191
ARCH_FIELD_NUMBER: _ClassVar[int]
200192
FPGA_INFO_FIELD_NUMBER: _ClassVar[int]
201193
VERBOSITY_FIELD_NUMBER: _ClassVar[int]
202194
ENVIRONMENT_FIELD_NUMBER: _ClassVar[int]
203195
APIO_ENV_PARAMS_FIELD_NUMBER: _ClassVar[int]
204196
TARGET_FIELD_NUMBER: _ClassVar[int]
205-
RICH_LIB_WINDOWS_PARAMS_FIELD_NUMBER: _ClassVar[int]
206197
timestamp: str
207198
arch: ApioArch
208199
fpga_info: FpgaInfo
209200
verbosity: Verbosity
210201
environment: Environment
211202
apio_env_params: ApioEnvParams
212203
target: TargetParams
213-
rich_lib_windows_params: RichLibWindowsParams
214-
def __init__(self, timestamp: _Optional[str] = ..., arch: _Optional[_Union[ApioArch, str]] = ..., fpga_info: _Optional[_Union[FpgaInfo, _Mapping]] = ..., verbosity: _Optional[_Union[Verbosity, _Mapping]] = ..., environment: _Optional[_Union[Environment, _Mapping]] = ..., apio_env_params: _Optional[_Union[ApioEnvParams, _Mapping]] = ..., target: _Optional[_Union[TargetParams, _Mapping]] = ..., rich_lib_windows_params: _Optional[_Union[RichLibWindowsParams, _Mapping]] = ...) -> None: ...
204+
def __init__(self, timestamp: _Optional[str] = ..., arch: _Optional[_Union[ApioArch, str]] = ..., fpga_info: _Optional[_Union[FpgaInfo, _Mapping]] = ..., verbosity: _Optional[_Union[Verbosity, _Mapping]] = ..., environment: _Optional[_Union[Environment, _Mapping]] = ..., apio_env_params: _Optional[_Union[ApioEnvParams, _Mapping]] = ..., target: _Optional[_Union[TargetParams, _Mapping]] = ...) -> None: ...

0 commit comments

Comments
 (0)