Made version spec part of saml2/init.py .

This commit is contained in:
Roland Hedberg
2015-09-03 07:02:46 +02:00
parent cc3d682850
commit bf7ef77cb2
2 changed files with 8 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python
import re
import sys
@@ -45,9 +46,14 @@ tests_require = [
#'pytest-coverage',
]
version = ''
with open('src/saml2/__init__.py', 'r') as fd:
version = re.search(r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
fd.read(), re.MULTILINE).group(1)
setup(
name='pysaml2',
version='3.0.1a',
version=version,
description='Python implementation of SAML Version 2',
# long_description = read("README"),
author='Roland Hedberg',

View File

@@ -17,6 +17,7 @@
provides methods and functions to convert SAML classes to and from strings.
"""
__version__ = "3.0.1a"
import logging
import six