Skip to main content

packagecloud-poll

Overview

packagecloud-poll repeatedly polls the packagecloud.io API, looking for a specific package filename to appear. It is intended to be used in continuous integration/continuous deployment pipelines, where we want to block something until we are sure a package has been uploaded and is available before continuing onwards.

Installation

pip install packagecloud-poll

Setup

You must set a PACKAGECLOUD_TOKEN environment variable before you can run packagecloud-poll. See the packagecloud API documentation for instructions on how to generate a token.

export PACKAGECLOUD_TOKEN=deadbeefdeadbeefdeadbeefdeadbeefdeadbeefdeadbeef

Running

Sample invocation:

packagecloud-poll --user my_user --repo my_repo_name --type deb --distro ubuntu --distro_version precise --arch amd64 --pkg_name myorg-stuff --filename myorg-stuff_v5.3_precise_amd64.deb

Run packagecloud-poll --help for detailed help.

Developing

Setup.py creates the packagecloud-poll command. When running from source, execute run.py instead.

./run.py --help

Release History

0.0.2

  • Add new param --page_interval. Controls how long to sleep between requests when paginating through packagecloud API results.

0.0.1

  • Initial release

Release files for packagecloud-poll 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for packagecloud-poll 0.0.2
File Size Uploaded
packagecloud-poll-0.0.2.tar.gz 6.7 kB Details

Release files / packagecloud-poll-0.0.2.tar.gz

Download URL packagecloud-poll-0.0.2.tar.gz
Size 6.7 kB
Tags Source
SHA-256 checksum
How to use checksums
91e1f8d0e708b33972e53915e53af9cd82a94fcc22d94eaed3d7142e4b49b063
BLAKE2b-256 checksum
How to use checksums
111959e7728ebc37b306a8e8cc403b0285d6b034110cb3d3295d928c55cbca7e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.2 This release

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page