From 80dc7a44dba1d3f5610a9b925de3145d7e93d6c0 Mon Sep 17 00:00:00 2001 From: Andre Miras Date: Tue, 20 Aug 2024 20:16:34 +0200 Subject: [PATCH] :bug: Fix rebuild updated recipes The bug probably got introduced with #3049 Update the tiktoken to demonstrate the fix. --- ci/rebuild_updated_recipes.py | 2 +- pythonforandroid/recipes/tiktoken/__init__.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ci/rebuild_updated_recipes.py b/ci/rebuild_updated_recipes.py index a1ca96681d..26cba3bc7e 100755 --- a/ci/rebuild_updated_recipes.py +++ b/ci/rebuild_updated_recipes.py @@ -39,7 +39,7 @@ def modified_recipes(branch='origin/develop'): # using the contrib version on purpose rather than sh.git, since it comes # with a bunch of fixes, e.g. disabled TTY, see: # https://stackoverflow.com/a/20128598/185510 - git_diff = sh.contrib.git.diff('--name-only', branch) + git_diff = sh.contrib.git.diff('--name-only', branch).split("\n") recipes = set() for file_path in git_diff: if 'pythonforandroid/recipes/' in file_path: diff --git a/pythonforandroid/recipes/tiktoken/__init__.py b/pythonforandroid/recipes/tiktoken/__init__.py index 1c5407054e..5e2a9a7243 100644 --- a/pythonforandroid/recipes/tiktoken/__init__.py +++ b/pythonforandroid/recipes/tiktoken/__init__.py @@ -5,6 +5,7 @@ class TiktokenRecipe(RustCompiledComponentsRecipe): name = 'tiktoken' version = '0.7.0' url = 'https://github.com/openai/tiktoken/archive/refs/tags/{version}.tar.gz' + sha512sum = "bb2d8fd5acd660d60e690769e46cf29b06361343ea30e35613d27d55f44acf9834e51aef28f4ff316ef66f2130042079718cea04b2353301aef334cd7bd6d221" depends = ['regex', 'requests']