Skip to content

Commit 21d760a

Browse files
authored
Update setup.py
1 parent ec81cde commit 21d760a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ def get_install_requires(filename):
3030
description = html.find('meta' ,{'name':'description'}).get('content')
3131
html = BeautifulSoup(rget(release , headers).text ,'lxml')
3232
version = html.find('div',{'class':'release-header'}).find('a').text
33+
if ':' in version:
34+
version = version[:version.index(':')].strip()
3335
logger.info(f"description: {description}")
3436
logger.info(f"version: {version}")
3537

@@ -76,4 +78,4 @@ def get_install_requires(filename):
7678
],
7779
python_requires='>=3.7',
7880
keywords=["oracle" , "cx_Oracle" , "asyncio" ,"cx_Oracle_async"]
79-
)
81+
)

0 commit comments

Comments
 (0)