Skip to content

Commit

Permalink
Merge pull request #63 from ghisvail/patch-1
Browse files Browse the repository at this point in the history
Fix parsing of module version
  • Loading branch information
jitseniesen authored Feb 17, 2017
2 parents bd73a04 + f905800 commit f6bc38d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@

def get_version():
"""Get version from source file"""
with open("spyder_unittest/__init__.py") as f:
import codecs
with codecs.open("spyder_unittest/__init__.py", encoding="utf-8") as f:
lines = f.read().splitlines()
for l in lines:
if "__version__" in l:
Expand Down

0 comments on commit f6bc38d

Please sign in to comment.