Skip to main content

releaseme - small CLI client for Github release API

Creating releases from browser can be a bit tedious if you already wrote the release notes and prepared packages in your beloved terminal. But fear not my friend, this simple wrapper makes it possible to do the finishing touches without having to switch to the browser.

Quickstart

Installing this package is as simple as running:

$ pip install release-me

This being out of the way, we must now obtain the personal access token that this client will use to interact with Github’s API. How to get one is neatly described on Github’s personal access token page.

Now that we created the token, we must inform our tool about it. We do this by setting RELEASEME_TOKEN environment variable that contains the token:

$ export RELEASEME_TOKEN=our-token-from-github

Now we are ready to create some releases (and then delete them once we discover that our code sucks and create them again once we fix most of the bugs). But before we can proceed, we must write down release notes:

$ cd /home/tadej/personal/release-me
$ cat <<EOF > release.notes
> This is the initial release of release-me package.
>
> I would like to say thank you to my kids for being a good sports and
> getting to bed early, which gives me time to write dummy release notes.
> EOF

That should do it. Now, we would also like to host our python package on release page, just because we can. So we will build a tarball that will be added to release. You can leave out this step if adding assets to release is not something you would like to do. So, building a package:

$ python setup.py sdist
running sdist
[pbr] Writing ChangeLog
[pbr] Generating ChangeLog
[pbr] ChangeLog complete (0.0s)
...
Creating tar archive
removing 'release-me-0.3.0' (and everything under it)

Now we can finally promote 0.3.0 tag in tadeboro/release-me repository to full release named The best release ever:

$ releaseme create -r tadeboro/release-me -t 0.3.0 -n release.notes \
>   -l "The best release ever" -a dist/release-me-0.3.0.tar.gz
[INFO] - Creating release for tag tadeboro/release-me 0.3.0
[INFO] - Uploading asset dist/release-me-0.3.0.tar.gz for 5837083

And this is it. We are done.

We can have a look at the fruits of our labor by running get command. Yep, we have a get command to:

$ releaseme get -r tadeboro/release-me -t 0.3.0
[INFO] - Getting release for tag 0.3.0
{
  "created_at": "2016-07-17T16:58:03Z",
...
  "url": "https://api.github.com/repos/tadeboro/release-me/releases/5837083",
  "zipball_url": "https://api.github.com/repos/tadeboro/release-me/zipball/0.3.0"
}

And when we realize that releasing our code after drinking n beers was not the brightest idea we had this week, we can remove the release by running:

$ releaseme delete -r tadeboro/release-me -t 0.3.0
[INFO] - Getting release for tag 0.3.0
[INFO] - Deleting release for tag 0.3.0

More documentation

There is no more documentation. If you feel you need more information, feel free to read the sources.

Metadata

Release files for release-me 0.3.1

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

Built distribution (wheel)

Table of built distributions (wheels) for release-me 0.3.1
File Interpreter ABI Platform
release_me-0.3.1-py2.py3-none-any.whl Python 2, Python 3 none any Details

Release files / release_me-0.3.1-py2.py3-none-any.whl

Download URL release_me-0.3.1-py2.py3-none-any.whl
Size 9.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
5961332ade9b96f3517776bf2d23a1a41236ea0838bf533bcdcd25d16ecca7d6
BLAKE2b-256 checksum
How to use checksums
27a9e2cd402c96e9df3afaa6e71ed1b9f6af2d7b369c935822d8b89eae8c433a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.3.1 This release

1 release file

0.3.0

2 release files

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