mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-12-31 16:40:53 +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')
|
fn = os.path.join('telegram', 'version.py')
|
||||||
with open(fn) as fh:
|
with open(fn) as fh:
|
||||||
code = compile(fh.read(), fn, 'exec')
|
for line in fh.readlines():
|
||||||
exec(code)
|
if line.startswith('__version__'):
|
||||||
|
exec(line)
|
||||||
|
|
||||||
with open(readme, 'r', encoding='utf-8') as fd:
|
with open(readme, 'r', encoding='utf-8') as fd:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue