gulp-pypi

a plugin to automate uploading python packages to pypi


Keywords
pip, gulp, pypi, release
License
MIT
Install
npm install gulp-pypi@0.0.9

Documentation

pypi-release

Usage

npm install pypi-release

    var pypi = require( "pypi-release" );
    // use local package.json file
    pypi().then( () => null );
    // partially override the package.json file
    pypi( { author : "Your mudda" } ).then( () => null );

Requirements

  1. Ensure twine is installed globally pip install twine
  2. Ensure setup.py is added to your .gitignore - as it is autogenerated

What does it do

The function returns a promise that:

  1. Writes a generated setup.py to disk
  2. Registers the package on PyPi (ensure your ~/.pypirc is correctly set up to avoid questions about auth)
  3. Creates and uploads an sdist of your package

Also to note:

To specify pip dependencies, please use the installRequires key within the package.json