cleanups; bump version

This commit is contained in:
Tobias Oberstein 2015-11-16 18:05:35 +01:00
parent 27d5cd3881
commit e903475289
4 changed files with 26 additions and 5 deletions

View file

@ -16,6 +16,7 @@
##
###############################################################################
import re
from setuptools import setup, find_packages
LONGDESC = """
@ -30,9 +31,19 @@ Authors:
- Tobias Oberstein (maintainer)
"""
VERSIONFILE = "scour/__init__.py"
verstrline = open(VERSIONFILE, "rt").read()
VSRE = r"^__version__ = u['\"]([^'\"]*)['\"]"
mo = re.search(VSRE, verstrline, re.M)
if mo:
verstr = mo.group(1)
else:
raise RuntimeError("Unable to find version string in %s." % (VERSIONFILE,))
setup (
name = 'scour',
version = '0.30',
version = verstr,
description = 'Scour SVG Optimizer',
# long_description = open("README.md").read(),
long_description = LONGDESC,