Skip to content

Commit

Permalink
update version
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwen829 committed Aug 11, 2015
1 parent 93e12b4 commit 6b7c186
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
2 changes: 2 additions & 0 deletions instapush/version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# -*- coding: utf-8 -*-
VERSION = '0.1.2'
14 changes: 12 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,21 @@
# -*- coding: UTF-8 -*-
# vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79:

import os
from setuptools import setup, find_packages


def get_version():
basedir = os.path.dirname(__file__)
with open(os.path.join(basedir, 'instapush/version.py')) as f:
locals = {}
exec(f.read(), locals)
return locals['VERSION']
raise RuntimeError('No version info found.')

setup(
name = 'instapush',
version = '0.1.1',
name='instapush',
version = get_version(),
keywords = ('instapush', 'tools'),
description = 'a python wrapper for instapush',
license = 'MIT License',
Expand Down

0 comments on commit 6b7c186

Please sign in to comment.