Skip to content
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
Cannot retrieve contributors at this time
# This file is part of Gruvi. Gruvi is free software available under the
# terms of the MIT license. See the file "LICENSE" that was provided
# together with this source file for the licensing terms.
# Copyright (c) 2012-2014 the Gruvi authors. See the file "AUTHORS" for a
# complete list.
from __future__ import absolute_import, print_function
from invoke import run, task
def clean(ctx):
run('find . -name __pycache__ | xargs rm -rf || :', echo=True)
run('find . -name \*.so | xargs rm -f', echo=True)
run('find . -name \*.pyc | xargs rm -f', echo=True)
run('find . -name \*.egg-info | xargs rm -rf', echo=True)
run('rm -rf build dist', echo=True)
run('rm -rf docs/_build/*', echo=True)
def develop(ctx):
run('python build', echo=True)
if develop:
run('python develop', echo=True)
def checksdist(ctx):
from setup import version_info
run('git ls-files | sort > files.git')
run('rm -rf lib/*.egg-info')
run('python sdist >/dev/null 2>&1')
run('tar tfz dist/{name}-{version}.tar.gz'
' | sed -e \'s/^{name}-{version}\///\' -e \'/\/$/d\' -e \'/^$/d\''
' | sort > files.sdist'.format(**version_info))
run('diff -u files.git files.sdist || true')
run('rm files.git; rm files.sdist')
def buildwheels(ctx):
run('tox -e py27 -- python bdist_wheel')
run('tox -e py35 -- python bdist_wheel')
run('tox -e py36 -- python bdist_wheel')