Skip to content

Commit fc4a19d

Browse files
authored
Merge pull request #645 from zapta/develop
Fixed the text coloring on windows and other cleanups.
2 parents 876c0e8 + 3d911d9 commit fc4a19d

File tree

88 files changed

+1946
-981
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+1946
-981
lines changed

.vscode/settings.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,14 @@
3535
"capsys",
3636
"cenv",
3737
"cerror",
38+
"cflush",
39+
"cmarkdown",
3840
"colorlight",
3941
"COMBDLY",
4042
"cout",
4143
"cprint",
4244
"cstyle",
45+
"ctable",
4346
"cunstyle",
4447
"cwarning",
4548
"cwidth",
@@ -56,9 +59,11 @@
5659
"envlist",
5760
"EXMPLS",
5861
"FGPA",
62+
"fomu",
5963
"fpgas",
6064
"ftdi",
6165
"FTDIUSB",
66+
"Fumo",
6267
"GENCODE",
6368
"González",
6469
"gowin",
@@ -91,6 +96,7 @@
9196
"lsusb",
9297
"mabc",
9398
"mengbo",
99+
"mkdirs",
94100
"mkdocs",
95101
"nextpnr",
96102
"nofailsafe",
@@ -117,8 +123,10 @@
117123
"sconstruct",
118124
"Shwan",
119125
"sipeed",
126+
"spammy",
120127
"srcs",
121128
"Sucess",
129+
"synthesizable",
122130
"testbench",
123131
"testbenches",
124132
"testpypi",

apio/apio_context.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
from typing import Optional, Dict
1616
from apio.common.apio_console import cout, cerror, cwarning, cstyle
1717
from apio.common.apio_styles import INFO, EMPH1
18+
from apio.common.common_util import env_build_path
1819
from apio.profile import Profile
1920
from apio.utils import jsonc, util, env_options
2021
from apio.managers.project import Project, load_project_from_file
@@ -272,18 +273,11 @@ def project(self) -> Project:
272273
return self._project
273274

274275
@property
275-
def build_all_path(self) -> str:
276-
"""Returns the relative path of the build root directory from the
277-
project dir. Should be called only when has_project is True."""
278-
assert self.has_project, "project(): project is not loaded"
279-
return Path("_build")
280-
281-
@property
282-
def build_env_path(self) -> str:
276+
def env_build_path(self) -> str:
283277
"""Returns the relative path of the current env build directory from
284278
the project dir. Should be called only when has_project is True."""
285279
assert self.has_project, "project(): project is not loaded"
286-
return self.build_all_path / self.project.env_name
280+
return env_build_path(self.project.env_name)
287281

288282
def _load_resource(self, name: str, allow_custom: bool = False) -> dict:
289283
"""Load the resources from a given jsonc file

apio/commands/apio.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@ def context_settings():
119119
[code]apio build -h
120120
apio drivers ftdi install -h[/code]
121121
122+
To check the apio version type:
123+
[code]
124+
apio --version[/code]
125+
122126
For more information about the Apio project, visit the official Apio Wiki \
123127
https://github.com/FPGAwars/apio/wiki/Apio
124128
"""
@@ -132,9 +136,9 @@ def context_settings():
132136
short_help="Work with FPGAs with ease",
133137
context_settings=context_settings(),
134138
)
135-
# NOTE: Without the 'version' value, click has difficulty determining the
136-
# version when running under pyinstaller.
137-
@click.version_option(version=util.get_apio_version())
139+
# NOTE: Without this explicit version value, click has difficulty
140+
# determining the version when running under pyinstaller.
141+
@click.version_option(util.get_apio_version(), "-v", "--version")
138142
def cli():
139143
"""The top level command group of apio commands"""
140144

0 commit comments

Comments
 (0)