diff --git a/legit/core.py b/legit/core.py index 0ad60de..d6f4165 100644 --- a/legit/core.py +++ b/legit/core.py @@ -10,6 +10,6 @@ from . import bootstrap del bootstrap -__version__ = '1.0.1' +__version__ = '1.0.2' __author__ = 'Kenneth Reitz' __license__ = 'BSD' diff --git a/setup.py b/setup.py index 3321e19..f54f6eb 100644 --- a/setup.py +++ b/setup.py @@ -3,12 +3,15 @@ import os import sys +import re from codecs import open # To use a consistent encoding from setuptools import setup # Always prefer setuptools over distutils APP_NAME = "legit" -VERSION = "1.0.1-dev" + +with open("legit/core.py") as f: + VERSION = re.findall(r'^__version__ *= *[\'"](.+?)[\'"]', f.read(), flags=re.M)[0] # Grab requirements.