Skip to content
Go to file

Latest commit

Automatically generated by python-semantic-release

Git stats


Failed to load latest commit information.
Latest commit message
Commit time


Python Semantic Release

Test Status PyPI Version conda-forge Version Read the Docs Status

Automatic semantic versioning for python projects. This is a python implementation of semantic-release for JS by Stephan Bönnemann. If you find this topic interesting you should check out his talk from JSConf Budapest.

The general idea is to be able to detect what the next version of the project should be based on the commits. This tool will use that to automate the whole release, upload to PyPI and post changelogs to GitHub. You can run the tool on a CI service, or just run it locally.


pip install python-semantic-release


Set up Python Semantic Release using the configuration options shown on this page.

The only one which is required is version_variable, which tells the tool where to bump the version number:

version_variable = semantic_release/

Run it

There are three different things you can do:

Command Description
version Create a new release. Will change the version, commit it and tag it.
publish Run version before pushing to git and uploading to PyPI.
changelog Generate the changelog for the next release.

Run these commands as semantic-release <command>.

Running from

Add the following hook to your and you will be able to run python <command> as you would semantic-release <command>.

    from semantic_release import setup_hook
except ImportError:

Running on CI

Getting a fully automated setup with releases from CI can be helpful for some projects. It was the main motivation to create this tool.

See this documentation page for instructions.

You can’t perform that action at this time.