Skip to content

Commit 7643e85

Browse files
committed
Added Fabric script with release command.
1 parent d52d059 commit 7643e85

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

fabfile.py

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#!/usr/bin/env python
2+
# -*- coding: utf-8 -*-
3+
################################################################################
4+
#
5+
# sqlalchemy-pervasive -- SQLAlchemy Dialect for Pervasive PSQL
6+
# Copyright © 2013 Lance Edgar
7+
#
8+
# This file is part of sqlalchemy-pervasive.
9+
#
10+
# sqlalchemy-pervasive is free software: you can redistribute it and/or modify
11+
# it under the terms of the GNU General Public License as published by the
12+
# Free Software Foundation, either version 3 of the License, or (at your
13+
# option) any later version.
14+
#
15+
# sqlalchemy-pervasive is distributed in the hope that it will be useful, but
16+
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
17+
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
18+
# more details.
19+
#
20+
# You should have received a copy of the GNU General Public License along with
21+
# sqlalchemy-pervasive. If not, see <http://www.gnu.org/licenses/>.
22+
#
23+
################################################################################
24+
25+
26+
import shutil
27+
from fabric.api import task, local
28+
29+
30+
@task
31+
def release():
32+
"""
33+
Release a new version of 'sqlalchemy-pervasive'.
34+
"""
35+
36+
shutil.rmtree('sqlalchemy_pervasive.egg-info')
37+
local('python setup.py sdist --formats=gztar register upload')

0 commit comments

Comments
 (0)