File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 8
8
from typing import Tuple
9
9
from typing import Union
10
10
11
+ from poetry .core .semver import Version
12
+
11
13
from ._compat import PY35
12
14
from ._compat import Path
13
15
from ._compat import basestring
@@ -85,9 +87,10 @@ def read_setup_py(
85
87
if not setup_call :
86
88
return self .DEFAULT
87
89
88
- # Inspecting keyword arguments
89
90
result ["name" ] = self ._find_single_string (setup_call , body , "name" )
90
- result ["version" ] = self ._find_single_string (setup_call , body , "version" )
91
+ result ["version" ] = Version .parse (
92
+ self ._find_single_string (setup_call , body , "version" )
93
+ ).text
91
94
result ["install_requires" ] = self ._find_install_requires (setup_call , body )
92
95
result ["extras_require" ] = self ._find_extras_require (setup_call , body )
93
96
result ["python_requires" ] = self ._find_single_string (
You can’t perform that action at this time.
0 commit comments