From aa98257448f04de0ec5da066a1e20961283caf28 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sat, 24 Feb 2018 17:20:51 -0600 Subject: [PATCH] Use invoke instead of fabric to release --- fabfile.py => tasks.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) rename fabfile.py => tasks.py (83%) diff --git a/fabfile.py b/tasks.py similarity index 83% rename from fabfile.py rename to tasks.py index 60fd422..09eca73 100644 --- a/fabfile.py +++ b/tasks.py @@ -1,8 +1,8 @@ -# -*- coding: utf-8 -*- +# -*- coding: utf-8; -*- ################################################################################ # # Rattail -- Retail Software Framework -# Copyright © 2010-2017 Lance Edgar +# Copyright © 2010-2018 Lance Edgar # # This file is part of Rattail. # @@ -21,20 +21,20 @@ # ################################################################################ """ -Fabric script for 'rattail-tempmon' package +Tasks for 'rattail-tempmon' package """ from __future__ import unicode_literals, absolute_import import shutil -from fabric.api import task, local +from invoke import task @task -def release(): +def release(ctx): """ Release a new version of `rattail-tempmon` """ shutil.rmtree('rattail_tempmon.egg-info') - local('python setup.py sdist --formats=gztar upload') + ctx.run('python setup.py sdist --formats=gztar upload')