File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 5151# built documents.
5252#
5353# The short X.Y version.
54- from intercom import VERSION
55- version = VERSION
54+
55+ import re
56+ with file (os .path .join (path_dir , 'intercom' , 'intercom.py' )) as init :
57+ source = init .read ()
58+ m = re .search ("__version__ = '(\d+\.\d+\.\d+)'" , source , re .M )
59+ version = m .groups ()[0 ]
60+
5661# The full version, including alpha/beta/rc tags.
5762release = version
5863
Original file line number Diff line number Diff line change 44# http://jkeyes.mit-license.org/
55#
66
7+ import os
78import re
89
910from setuptools import find_packages
1011from setuptools import setup
1112
12- with file ('intercom/ intercom.py' ) as init :
13+ with file (os . path . join ( 'intercom' , ' intercom.py') ) as init :
1314 source = init .read ()
1415 m = re .search ("__version__ = '(\d+\.\d+\.\d+)'" , source , re .M )
1516 __version__ = m .groups ()[0 ]
You can’t perform that action at this time.
0 commit comments