From 12bb3c9a7aa3e7fa8fcc156c3e3bcb54a91608a7 Mon Sep 17 00:00:00 2001 From: Sergio Martins Date: Thu, 28 Nov 2024 15:43:08 +0000 Subject: [PATCH] ci: Another go at fixing python include path --- ci_release_tools | 2 +- update_all.py | 3 +++ update_one.py | 7 ++++++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ci_release_tools b/ci_release_tools index e9a0604..7c1ead1 160000 --- a/ci_release_tools +++ b/ci_release_tools @@ -1 +1 @@ -Subproject commit e9a060433a1e4f9300741f9ed134dde53559d1f5 +Subproject commit 7c1ead1caa32f02643878766928847c8c6b36aa5 diff --git a/update_all.py b/update_all.py index 9408127..8f6dbe5 100755 --- a/update_all.py +++ b/update_all.py @@ -5,6 +5,9 @@ import sys, os +from pathlib import Path +sys.path.append(str(Path(__file__).parent / "ci_release_tools" / "src")) + from ci_release_tools.src.utils import * from brew_utils import * diff --git a/update_one.py b/update_one.py index 6436f89..4d1f729 100755 --- a/update_one.py +++ b/update_one.py @@ -10,9 +10,14 @@ # to open a PR against your test tap: # ./update.py kdreports-qt5.rb 2.3.0 --pr iamsergio/homebrew-tap --remote sergio -import argparse, os +import argparse, os, sys import hashlib + +from pathlib import Path +sys.path.append(str(Path(__file__).parent / "ci_release_tools" / "src")) + from ci_release_tools.src.utils import * +from brew_utils import * # Returns the sha256 of the .tar.gz file def get_tarball_sha256(url):