Skip to content

Commit fb3a537

Browse files
authored
Update setup.py
1 parent f488f35 commit fb3a537

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

setup.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,14 @@ def get_install_requires(filename):
3232
if ' - GitHub' in description:
3333
description = description[:description.index(' - GitHub')]
3434
html = BeautifulSoup(rget(release , headers).text ,'lxml')
35-
version = html.find('div',{'class':'release-header'}).find('a').text
35+
logger.info(f"description: {description}")
36+
37+
#
38+
with open('tagname','r',encoding='utf-8') as f:
39+
version = f.read()
3640
if ':' in version:
3741
version = version[:version.index(':')].strip()
38-
logger.info(f"description: {description}")
42+
version = version.strip()
3943
logger.info(f"version: {version}")
4044

4145
#

0 commit comments

Comments
 (0)