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
""" Some tasks for deployment to PyPI/TestPyPI. """
from invoke import task
def publish_to_pypi(c, test=False):"rm -rf build dist", warn=True)"python sdist bdist_wheel")
pypi_cmd = "twine upload --verbose dist/*"
if test:
pypi_cmd += " --repository-url", pty=True)"rm -rf build dist", warn=True)