zuke.tools.google
@zuke/google 1.0.0: @zuke/google — Google Play publishing for Zuke builds, through the Google Play Developer API.
zuke on PyPI ↗ 2 symbols
Symbols
class GooglePlaySettings(Settings) Settings for GooglePlayTasks.upload.
The service-account key and every token signed with it stay out of progress lines and errors. Declare the key in the build as parameter(...).secret() so Zuke masks it in its own output too.
-
service_account(json: str) -> SelfThe service account's key, as the text of the JSON file the Play Console (or Google Cloud) downloaded; required. The account needs the *Release apps to testing tracks* (or *Release to production*) permission on the app.
-
package_name(name: str) -> SelfThe app's package name, e.g.
com.example.app; required. -
bundle(path: str) -> SelfThe Android app bundle (
.aab) to upload; required. -
track(name: str) -> SelfThe track to release on:
internal(the default),alpha,beta,production, or the name of a closed testing track. -
status(status: Literal['completed', 'draft']) -> SelfThe release's status; default
completed. -
release_notes(text: str, language: str | None=None) -> SelfThe release notes users see, per BCP-47 language (
"en-US","bg"); repeatable, one call per language. Default languageen-US. -
changes_not_sent_for_review() -> SelfCommit without sending the changes for review, so an app with managed publishing or a release that review would otherwise hold can go out as Google allows it to.
-
timeout(duration: str | float) -> SelfThe longest the whole upload may take (
"30m", or ms); default 15 minutes. -
api_url(url: str) -> SelfThe API's base URL,
https://androidpublisher.googleapis.comby default. It carries the access token, so it must behttps:unless it is loopback orZUKE_ALLOW_INSECURE_URLis set.
class GooglePlayTasks Publish to Google Play through the Google Play Developer API.
-
static async upload(ctx: ServiceContext, configure: Callable[[GooglePlaySettings], GooglePlaySettings]) -> objectUpload an app bundle and release it on a track, in one committed edit.