Skip to content

Commit 80dc7a4

Browse files
committed
🐛 Fix rebuild updated recipes
The bug probably got introduced with #3049 Update the tiktoken to demonstrate the fix.
1 parent 2bb2216 commit 80dc7a4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

ci/rebuild_updated_recipes.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def modified_recipes(branch='origin/develop'):
3939
# using the contrib version on purpose rather than sh.git, since it comes
4040
# with a bunch of fixes, e.g. disabled TTY, see:
4141
# https://stackoverflow.com/a/20128598/185510
42-
git_diff = sh.contrib.git.diff('--name-only', branch)
42+
git_diff = sh.contrib.git.diff('--name-only', branch).split("\n")
4343
recipes = set()
4444
for file_path in git_diff:
4545
if 'pythonforandroid/recipes/' in file_path:

pythonforandroid/recipes/tiktoken/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ class TiktokenRecipe(RustCompiledComponentsRecipe):
55
name = 'tiktoken'
66
version = '0.7.0'
77
url = 'https://github.com/openai/tiktoken/archive/refs/tags/{version}.tar.gz'
8+
sha512sum = "bb2d8fd5acd660d60e690769e46cf29b06361343ea30e35613d27d55f44acf9834e51aef28f4ff316ef66f2130042079718cea04b2353301aef334cd7bd6d221"
89
depends = ['regex', 'requests']
910

1011

0 commit comments

Comments
 (0)