Merge pull request #71 from adafruit/add-versionstr

adding fix for pypi
This commit is contained in:
brentrubell 2018-08-24 13:40:40 -04:00 committed by GitHub
commit 6bcb209bff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

1
Adafruit_IO/_version.py Normal file
View file

@ -0,0 +1 @@
__version__ = "2.0.15"

View file

@ -13,8 +13,6 @@ from codecs import open
from os import path
import re
# Get the version string from _version.py
verstrline = open('Adafruit_IO/_version.py', "rt").read()
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
mo = re.search(VSRE, verstrline, re.M)
@ -24,6 +22,7 @@ else:
raise RuntimeError("Unable to find version string in %s." % (VERSIONFILE,))
print('version: ', verstr)
# Get the long description from the README file
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.rst'), encoding='utf-8') as f: