Skip to content

Commit

Permalink
yolo 1.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeDurrant committed Mar 7, 2020
1 parent a07c631 commit beaf716
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
16 changes: 14 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,23 @@
# To use a consistent encoding
from codecs import open
from os import path
import re

# Version defined in teslajson.py ``` __version__ = 'foo' '''
def get_version():
VERSIONFILE = 'teslajson.py'
initfile_lines = open(VERSIONFILE, 'rt').readlines()
VSRE = r"^\s*__version__ = ['\"]([^'\"]*)['\"]"
for line in initfile_lines:
mo = re.search(VSRE, line, re.M)
if mo:
return mo.group(1)
raise RuntimeError('Unable to find version string in %s.' % (VERSIONFILE,))

setup(name='teslajson',
version='1.3.1',
version=get_version(),
description='',
url='https://github.com/gglockner/teslajson',
url='https://github.com/lukedurrant/teslajson',
py_modules=['teslajson'],
author='Greg Glockner',
license='MIT',
Expand Down
2 changes: 1 addition & 1 deletion teslajson.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

class Connection(object):
"""Connection to Tesla Motors API"""
__version__ = "1.6.0"
__version__ = "1.7.0"

def __init__(self,
email='',
Expand Down

0 comments on commit beaf716

Please sign in to comment.