Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Git-Patchwork integration tool

Project Description

git-pw is a tool for integrating Git with Patchwork, the web-based patch tracking system.


git-pw only supports Patchwork 2.0+ and REST API support must be enabled on the server end. You can check for support by browsing /about for your given instance. If this page returns a 404, you are using Patchwork < 2.0.

The pwclient utility can be used to interact with older Patchwork instances or instances with the REST API disabled.


The easiest way to install git-pw and its dependencies is using pip. To do so, run:

$ pip install git-pw

You can also install git-pw manually. First, install the required dependencies. On Fedora, run:

$ sudo dnf install python-requests python-click python-pbr python-arrow \

On Ubuntu, run:

$ sudo apt-get install python-requests python-click python-pbr python-arrow \

Once dependencies are installed, clone this repo and run

$ git clone
$ cd git-pw
$ pip install --user .  # or 'sudo python'

Getting Started

To begin, you’ll need to configure Git settings appropriately. The following settings are required:


The URL for the Patchwork instance. This will typically look like. For example:

The project name or list-id. This will appear in the URL when using the web UI:{project_name}/list/

You also require authentication - you can use either API tokens or a username/password combination:

The API token for you Patchwork account.
The username for your Patchwork account.
The password for your Patchwork account.

You can set these settings using the git config command. This should be done in the repo in which you intend to apply patches. For example, to configure the Patchwork project, run:

$ git config pw.server ''
$ git config pw.project 'patchwork'


If you’re interested in contributing to git-pw, first clone the repo:

$ git clone
$ cd git-pw

Create a virtualenv, then install the package in editable mode:

$ virtualenv .venv
$ source .venv/bin/activate
$ pip install --editable .


Documentation is available on Read the Docs

Release History

Release History

This version
History Node


History Node


History Node


History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
git_pw-1.1.0-py2.py3-none-any.whl (16.7 kB) Copy SHA256 Checksum SHA256 py2.py3 Wheel Dec 11, 2017
git-pw-1.1.0.tar.gz (16.6 kB) Copy SHA256 Checksum SHA256 Source Dec 11, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting