+def build(ctx):
+ """Build source distribution and wheels."""
+ ctx.run('python setup.py sdist bdist_wheel')
+
+
+@task
+def publish(ctx, test=False):
+ """Publish to the cheeseshop.
+
+ This command follows the Python packaging guidelines:
+ https://packaging.python.org/tutorials/distributing-packages
+
+ Information on configuration required for '--test' can be found
+ here: https://wiki.python.org/moin/TestPyPI
+
+ Before uploading please ensure you've signed the release using:
+
+ gpg --detach-sign -a dist/package-1.0.1.tar.gz
+ """