Skip to content

Commit

Permalink
Fix setup.py (#2431)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bibo-Joshi committed Mar 14, 2021
1 parent 21ded42 commit 0bb4be5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@ def get_setup_kwargs(raw=False):

fn = os.path.join('telegram', 'version.py')
with open(fn) as fh:
code = compile(fh.read(), fn, 'exec')
exec(code)
for line in fh.readlines():
if line.startswith('__version__'):
exec(line)

with open(readme, 'r', encoding='utf-8') as fd:

Expand Down

0 comments on commit 0bb4be5

Please sign in to comment.