Skip to content

Commit d58de74

Browse files
committed
Use invoke instead of fabric, for release task
1 parent 48a9c98 commit d58de74

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

fabfile.py renamed to tasks.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
#!/usr/bin/env python
2-
# -*- coding: utf-8 -*-
1+
# -*- coding: utf-8; -*-
32
################################################################################
43
#
54
# sqlalchemy-pervasive -- SQLAlchemy Dialect for Pervasive PSQL
6-
# Copyright © 2013 Sacramento Natural Foods Co-op, Inc
5+
# Copyright © 2013-2018 Sacramento Natural Foods Co-op, Inc
76
#
87
# This file is part of sqlalchemy-pervasive.
98
#
@@ -22,16 +21,16 @@
2221
#
2322
################################################################################
2423

24+
from __future__ import unicode_literals, absolute_import
2525

2626
import shutil
27-
from fabric.api import task, local
27+
from invoke import task
2828

2929

3030
@task
31-
def release():
31+
def release(ctx):
3232
"""
3333
Release a new version of 'sqlalchemy-pervasive'.
3434
"""
35-
3635
shutil.rmtree('sqlalchemy_pervasive.egg-info')
37-
local('python setup.py sdist --formats=gztar register upload')
36+
ctx.run('python setup.py sdist --formats=gztar upload')

0 commit comments

Comments
 (0)