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')