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

dist/tools/bmp: in-line dependencies using PEP 723 #21131

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
13 changes: 12 additions & 1 deletion dist/tools/bmp/bmp.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env -S pipx run

# Copyright (C) 2019 Otto-von-Guericke-Universität Magdeburg
#
Expand All @@ -9,6 +9,17 @@
# @author Maximilian Deubel <[email protected]>
# @author Bas Stottelaar <[email protected]>

# /// script
# requires-python = ">=3.10"
# dependencies = [
# "humanize",
# "packaging",
# "progressbar",
# "pygdbmi",
# "pyserial"
# ]
# ///

# Black Magic Probe helper script
# This script can detect connected Black Magic Probes and can be used as a flashloader and much more

Expand Down
6 changes: 4 additions & 2 deletions dist/tools/bmp/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Dependencies are listed as PEP 723 metadata in `bmp.py`. This file exists
# for compatibility reasons.
humanize
packaging
progressbar
pygdbmi
pyserial
progressbar
pyserial
Loading