{"id":50124443,"url":"https://github.com/kohaku-lab/android-dep-collection","last_synced_at":"2026-05-23T19:02:24.678Z","repository":{"id":359814368,"uuid":"1247371445","full_name":"Kohaku-Lab/android-dep-collection","owner":"Kohaku-Lab","description":null,"archived":false,"fork":false,"pushed_at":"2026-05-23T14:57:24.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-23T16:27:53.431Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Kohaku-Lab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-23T08:13:34.000Z","updated_at":"2026-05-23T14:57:19.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/Kohaku-Lab/android-dep-collection","commit_stats":null,"previous_names":["kohaku-lab/android-dep-collection"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/Kohaku-Lab/android-dep-collection","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kohaku-Lab%2Fandroid-dep-collection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kohaku-Lab%2Fandroid-dep-collection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kohaku-Lab%2Fandroid-dep-collection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kohaku-Lab%2Fandroid-dep-collection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kohaku-Lab","download_url":"https://codeload.github.com/Kohaku-Lab/android-dep-collection/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kohaku-Lab%2Fandroid-dep-collection/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33408490,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-23T18:09:33.147Z","status":"ssl_error","status_checked_at":"2026-05-23T18:09:31.380Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-05-23T19:02:23.882Z","updated_at":"2026-05-23T19:02:24.670Z","avatar_url":"https://github.com/Kohaku-Lab.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# android-dep-collection\n\nCross-compiled **Android wheels** for native-code Python packages that\nChaquopy's curated index doesn't carry — published as GitHub Release\nassets so downstream consumers (KohakuTerrarium's Android build,\nother Kohaku-Lab projects) can `pip install` them via direct URL\nrefs.\n\n## Why this exists\n\n[Chaquopy 13](https://chaquo.com/pypi-13.1/) (the Python-on-Android\nruntime Briefcase Android uses) ships a curated index of native\nAndroid wheels.  Common things like `pyyaml`, `numpy`, `Pillow`,\n`lxml`, `bcrypt` are there.  But a number of Rust/PyO3 + C-binding\npackages aren't, and pip on Android can't build them from sdist\n(no native toolchain at install time on the device build env).\n\nPackages we currently cross-compile:\n\n| Package | Why we need it | Upstream |\n|---|---|---|\n| `pydantic-core` | Required by `pydantic` ≥ 2.0; used pervasively in KohakuTerrarium | [pydantic/pydantic-core](https://github.com/pydantic/pydantic-core) |\n\nEasy to add more — see [Adding a wheel](#adding-a-wheel) below.\n\n## Wheel tags\n\nWheels use **PEP 738** `android_\u003capi\u003e_\u003cabi\u003e` platform tags\n(specifically `android_24_arm64_v8a` + `android_24_x86_64`), the\nform Chaquopy ≥ 13 expects.  See\n[PEP 738](https://peps.python.org/pep-0738/) for the canonical\nspec; the same tagging pattern Chaquopy uses for its own curated\nindex (e.g. `pyyaml-6.0.3-0-cp313-cp313-android_24_arm64_v8a.whl`).\n\nAPI level **24** = Android 7.0, matches Chaquopy's minSdk floor.\n\n## Build pipeline\n\n```\nmanifest.toml            ← pinned list of upstream package + version\n       │\n       │ tag push → CI matrix per ABI\n       ▼\nmaturin / cargo-ndk      ← cross-compile via PyO3/maturin-action\n       │                   (v1.13.3+, with ANDROID_API_VERSION=24\n       │                    so it emits proper android_24_\u003cabi\u003e tags\n       │                    directly — no retag step)\n       ▼\nGitHub Release           ← every wheel uploaded as a release asset\n       │                   at a stable URL: tag/\u003cwheel-filename\u003e.whl\n       ▼\nconsumer postcreate.py   ← direct URL ref in pip requirements.txt\n                           per ABI via platform_machine markers\n```\n\n## Adding a wheel\n\n1. Add an entry to `manifest.toml`:\n\n   ```toml\n   [[wheel]]\n   name = \"package-name\"\n   version = \"X.Y.Z\"\n   # Optional — defaults to {name} on PyPI\n   pypi_name = \"package_name_underscored\"\n   ```\n\n2. Tag a release: `git tag v$(date +%Y.%m.%d) \u0026\u0026 git push --tags`.\n   CI builds + uploads.\n\n3. In the consumer (KohakuTerrarium's `postcreate.py`), add the\n   URL refs:\n\n   ```python\n   patched.append(\n       f\"package-name @ {base}/package_name-X.Y.Z-cp313-cp313-android_24_arm64_v8a.whl\"\n       \" ; platform_machine == 'aarch64'\"\n   )\n   patched.append(\n       f\"package-name @ {base}/package_name-X.Y.Z-cp313-cp313-android_24_x86_64.whl\"\n       \" ; platform_machine == 'x86_64'\"\n   )\n   ```\n\n## Layout\n\n```\n.\n├── README.md\n├── manifest.toml            ← what to build (versions pinned here)\n├── build.py                 ← fetches sdist + invokes maturin\n├── .github/\n│   └── workflows/\n│       ├── build.yml        ← matrix: each wheel × {arm64, x86_64}\n│       └── ci.yml           ← PR smoke: build arm64-only on each wheel\n└── (no upstream source — fetched at build time by build.py)\n```\n\n## Versioning\n\nReleases are tagged with the wheel-set version, e.g.\n`v2026.05.23`.  The release's assets are wheels for every package\nin `manifest.toml` at the versions pinned there.  Consumers\nURL-ref to a specific release tag, so bumping `manifest.toml` is\na deliberate operator decision (no surprise upstream pull-in).\n\n## License\n\nThis repo bundles build tooling only.  Wheels distributed by this\nrepo carry the upstream package's license (e.g. pydantic-core is\nMIT).  See each wheel's `LICENSE` / `METADATA` for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkohaku-lab%2Fandroid-dep-collection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkohaku-lab%2Fandroid-dep-collection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkohaku-lab%2Fandroid-dep-collection/lists"}