mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-12-22 14:35:00 +01:00
Fix setup.py (#2431)
This commit is contained in:
parent
21ded420e2
commit
0bb4be55ac
1 changed files with 3 additions and 2 deletions
5
setup.py
5
setup.py
|
@ -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:
|
||||
|
||||
|
|
Loading…
Reference in a new issue