Use invoke instead of fabric to release

This commit is contained in:
Lance Edgar 2018-02-24 17:20:51 -06:00
parent b20c63d023
commit aa98257448

View file

@ -1,8 +1,8 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8; -*-
################################################################################ ################################################################################
# #
# Rattail -- Retail Software Framework # Rattail -- Retail Software Framework
# Copyright © 2010-2017 Lance Edgar # Copyright © 2010-2018 Lance Edgar
# #
# This file is part of Rattail. # 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 from __future__ import unicode_literals, absolute_import
import shutil import shutil
from fabric.api import task, local from invoke import task
@task @task
def release(): def release(ctx):
""" """
Release a new version of `rattail-tempmon` Release a new version of `rattail-tempmon`
""" """
shutil.rmtree('rattail_tempmon.egg-info') shutil.rmtree('rattail_tempmon.egg-info')
local('python setup.py sdist --formats=gztar upload') ctx.run('python setup.py sdist --formats=gztar upload')