Prepare release 1.0.1 (Android: cache Python dist tarballs)#208
Merged
Conversation
Bump all packages to 1.0.1 and add changelog entries for the new persistent Python tarball cache in the serious_python_android Gradle plugin: downloadDistArchive_* now writes to $FLET_CACHE_DIR/python-build/ (defaulting to ~/.flet/cache/python-build/) with onlyIfModified + useETag "all", so subsequent builds issue a conditional GET against objects.githubusercontent.com instead of re-downloading 30-100 MB per ABI. Re-published tarballs at the same versioned URL are picked up automatically via ETag/Last-Modified validators. Fixes flet-dev/flet#6555. Also rolls the PIP_REQUIRE_VIRTUALENV=false fix from #202/#204 into the 1.0.1 changelog (landed on main after 1.0.0), and adds **/.cxx/ to the example android/.gitignore files to keep CMake build output out of git. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes flet-dev/flet#6555 —
flet debug androidwas re-downloading the threepython-android-dart-3.12-<abi>.tar.gztarballs (~30–100 MB each) on every build, often the dominant cost of a debug cycle.downloadDistArchive_*Gradle tasks inserious_python_androidnow write to a persistent cache dir —$FLET_CACHE_DIR/python-build/v<python_version>/if set, otherwise~/.flet/cache/python-build/v<python_version>/— and run withonlyIfModified true+useETag "all"+tempAndMove true. Subsequent builds issue a conditional GET (If-None-Match/If-Modified-Since) againstobjects.githubusercontent.cominstead of re-downloading the full tarball, so when the upstream release re-publishes a tarball at the same versioned URL (e.g. a Python patch update under the existingv3.12release) the validators flip and the cache refreshes automatically; otherwise the build skips the download entirely.tempAndMoveguards against partial downloads being kept in the cache.serious_python,serious_python_android,serious_python_darwin,serious_python_linux,serious_python_windows,serious_python_platform_interface) with identical changelog entries — matches the monorepo-style coordinated-release pattern used for 1.0.0.PIP_REQUIRE_VIRTUALENV=falseto make package command work in some environments #202 / Set PIP_REQUIRE_VIRTUALENV=false to make package command work in restricted environments #204 (merged on main after 1.0.0 but never written into a release note).**/.cxx/to the three exampleandroid/.gitignorefiles so Gradle CMake build output stops showing up as untracked noise during local testing.The matching
fletCLI side (build-template caching +FLET_CACHE_DIRenv propagation + serious_python pin bump to 1.0.1) will be opened as a separate PR againstflet-dev/flet.Test plan
~/.flet/cache/and runflet debug android -vvagainst a sample app — confirm the three tarballs land under~/.flet/cache/python-build/v3.12/and the build succeeds.downloadDistArchive_*tasks completing in ~1 round-trip per ABI (a 304) instead of full downloads; end-to-end wall time drops by minutes..etag/.lastModifiedsidecars next to a cached tarball to a stale value, re-run, and confirm the conditional GET issues a re-download.FLET_CACHE_DIRoverride:FLET_CACHE_DIR=/tmp/flet-cache flet debug android— confirm tarballs land under/tmp/flet-cache/python-build/v3.12/.🤖 Generated with Claude Code