From 786f6cf9b7650d63d10b12fab761d4136b54fcf6 Mon Sep 17 00:00:00 2001 From: Guillaume Tucker Date: Thu, 22 Sep 2022 09:51:31 +0200 Subject: [PATCH] setup.py: install bisection scripts as kci-bisect-* Rename the Python scripts used by bisections with a kci-bisect- prefix and install them in setup.py. This is to make them available when installing the kernelci package such as in Docker images. Signed-off-by: Guillaume Tucker --- .github/workflows/main.yml | 2 +- scripts/{lava-v2-callback.py => kci-bisect-lava-v2-callback} | 0 scripts/{push-bisection-results.py => kci-bisect-push-results} | 0 setup.py | 2 ++ 4 files changed, 3 insertions(+), 1 deletion(-) rename scripts/{lava-v2-callback.py => kci-bisect-lava-v2-callback} (100%) rename scripts/{push-bisection-results.py => kci-bisect-push-results} (100%) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 014fa24566..c96650f89f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -45,7 +45,7 @@ jobs: run: | pycodestyle kernelci pycodestyle kci_* - pycodestyle scripts/*.py + pycodestyle scripts/* - name: Run YAML config validation run: | diff --git a/scripts/lava-v2-callback.py b/scripts/kci-bisect-lava-v2-callback similarity index 100% rename from scripts/lava-v2-callback.py rename to scripts/kci-bisect-lava-v2-callback diff --git a/scripts/push-bisection-results.py b/scripts/kci-bisect-push-results similarity index 100% rename from scripts/push-bisection-results.py rename to scripts/kci-bisect-push-results diff --git a/setup.py b/setup.py index 2d6db07a52..a8cf834059 100644 --- a/setup.py +++ b/setup.py @@ -52,6 +52,8 @@ def _list_files(path, match): 'kci_rootfs', 'kci_data', 'kci_bisect', + 'scripts/kci-bisect-lava-v2-callback', + 'scripts/kci-bisect-push-results', ], long_description=open('README.md', 'rb').read().decode('utf8'), long_description_content_type='text/markdown',