Skip to main content

unleash is a medium-sized commandline utility that tries to ease releasing software, specifically Python libraries and programs. It is currently barely documented and tailored to my workflow. Use at your own risk.

Examples

Creating a new release

Simply do:

unleash create-release

This will:

  • Read the version currently in master and calculate the appropriate release version (i.e. 0.3.4.dev1 becomes 0.3.4).

  • Create a new commit, in which setup.py and packagename/__init__.py have had their version strings updated to the new version.

  • Check out the commit in a temporary directory, alongside a clean virtualenv.

  • Generate an sdist package from the checked out commit and see if it cleanly installs inside the virtualenv.

  • Runs unittests inside the virtualenv.

  • If everything goes well, removes the temporary checkouts/virtualenvs and tags the commit with the new version.

  • Creates a new commit on master with a version bump for the next release.

Git operations are not done on the working copy, but directly using dulwich, avoiding snafu’s that plague other forms of scripting releases. The only actual call to the git-executable is when pushing a tag.

Publish a release

Creating a release can be followed up with something like:

unleash publish -s code

This will:

  • Check out the latest version tag into a temporary directory.

  • Build a source package.

  • Upload and sign it (python setup.py sdist -s -i code).

  • Push the associated git tag to origin.

  • Clean up the temporary directory.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

unleash-0.5.1.tar.gz (7.7 kB view details)

Uploaded Source

File details

Details for the file unleash-0.5.1.tar.gz.

File metadata

  • Download URL: unleash-0.5.1.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for unleash-0.5.1.tar.gz
Algorithm Hash digest
SHA256 3226faf863fcc3a29195412c0213cbf0d6f2dd2109e789e21ed7a262b928d274
MD5 bdc6350577772899a207c2e70c617b25
BLAKE2b-256 73c6bb7673783fdc3eb61f557e91298eed628bdb120801debd08ea7ef912cbd9

See more details on using hashes here.

Release history Release notifications | RSS feed

0.7.1

1 file

0.7.0

1 file

0.6.0

1 file

0.5.8.dev1

0.5.7

1 file

0.5.6

1 file

0.5.5

1 file

This release

0.5.1 This release

1 file

0.5

1 file

0.4.2

1 file

0.4.1

1 file

0.4

0.3.5

1 file

0.3.4

1 file

0.3

1 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