diff --git a/dist/tools/bmp/bmp.py b/dist/tools/bmp/bmp.py index 1c8ec3acf900..b9b6454b865b 100755 --- a/dist/tools/bmp/bmp.py +++ b/dist/tools/bmp/bmp.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python3 +#!/usr/bin/env -S pipx run # Copyright (C) 2019 Otto-von-Guericke-Universität Magdeburg # @@ -9,6 +9,17 @@ # @author Maximilian Deubel # @author Bas Stottelaar +# /// 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 diff --git a/dist/tools/bmp/requirements.txt b/dist/tools/bmp/requirements.txt index 01ba93f6d686..ba0a7e7d0c70 100644 --- a/dist/tools/bmp/requirements.txt +++ b/dist/tools/bmp/requirements.txt @@ -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 \ No newline at end of file +pyserial \ No newline at end of file