Upped to version 0.1.6

This commit is contained in:
Channel Cat 2016-10-25 01:49:43 -07:00
parent 0e479d53da
commit ee70f1e55e
2 changed files with 15 additions and 1 deletions

View File

@ -1,4 +1,6 @@
from .sanic import Sanic
from .blueprints import Blueprint
__version__ = '0.1.6'
__all__ = ['Sanic', 'Blueprint']

View File

@ -1,11 +1,23 @@
"""
Sanic
"""
import codecs
import os
import re
from setuptools import setup
with codecs.open(os.path.join(os.path.abspath(os.path.dirname(
__file__)), 'sanic', '__init__.py'), 'r', 'latin1') as fp:
try:
version = re.findall(r"^__version__ = '([^']+)'\r?$",
fp.read(), re.M)[0]
except IndexError:
raise RuntimeError('Unable to determine version.')
setup(
name='Sanic',
version="0.1.5",
version=version,
url='http://github.com/channelcat/sanic/',
license='MIT',
author='Channel Cat',