Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add python virtual environment #52

Merged
merged 2 commits into from
Nov 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
__pycache__/
*.py[cod]
*$py.class
.python-version

# C extensions
*.so
Expand Down
16 changes: 10 additions & 6 deletions kaprese/bin/kaprese_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,17 @@ def main(
benchmark.name,
benchmark.image,
"yes" if benchmark.availability else "[grey23]no[/grey23]",
language
if (language := benchmark.language)
else "[grey23]n/a[/grey23]",
(
language
if (language := benchmark.language)
else "[grey23]n/a[/grey23]"
),
os if (os := benchmark.os) else "[grey23]n/a[/grey23]",
workdir
if (workdir := benchmark.workdir)
else "[grey23]n/a[/grey23]",
(
workdir
if (workdir := benchmark.workdir)
else "[grey23]n/a[/grey23]"
),
)
benchmark.save()
console.print(table)
Expand Down
8 changes: 5 additions & 3 deletions kaprese/bin/kaprese_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,11 @@ def __rich_console__(
or self._status == "Checking"
or self._status == "Preparing"
):
yield self._spinner.render(
console.get_time()
) if self._spinner is not None else f"{self._status}..."
yield (
self._spinner.render(console.get_time())
if self._spinner is not None
else f"{self._status}..."
)
elif self._status == "OK":
yield Text(self._status, style="green")
else:
Expand Down