Skip to content

Commit 1cc6aa8

Browse files
committed
distro-clang: Run with uv by default
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
1 parent 6809425 commit 1cc6aa8

2 files changed

Lines changed: 11 additions & 6 deletions

File tree

distro-clang/get-distro-clang.py

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
#!/usr/bin/env python3
1+
#!/usr/bin/env -S uv run --script
2+
# /// script
3+
# requires-python = ">=3.8"
4+
# dependencies = [
5+
# "py-markdown-table>=1.3.0",
6+
# ]
7+
# ///
8+
29
# pylint: disable=invalid-name
310

411
from argparse import ArgumentParser
@@ -7,6 +14,9 @@
714
import shutil
815
import subprocess
916

17+
# pylint: disable-next=import-error
18+
from py_markdown_table.markdown_table import markdown_table
19+
1020

1121
def print_cmd(args, command):
1222
if not args.quiet:
@@ -41,10 +51,6 @@ def chronic(*args, **kwargs):
4151
help='Do not print commands being run')
4252
ARGS = PARSER.parse_args()
4353

44-
if ARGS.markdown:
45-
# pylint: disable-next=import-error
46-
from py_markdown_table.markdown_table import markdown_table
47-
4854
for MANAGER in (MANAGERS := ['podman', 'docker']):
4955
if shutil.which(MANAGER):
5056
break

requirements.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)