File tree 1 file changed +2
-6
lines changed
1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ def create_poetry(
43
43
from poetry .core .pyproject .toml import PyProjectTOML
44
44
45
45
poetry_file = self .locate (cwd )
46
- local_config = PyProjectTOML (path = poetry_file ).poetry_config
46
+ local_config = PyProjectTOML (path = poetry_file ).poetry_config . unwrap ()
47
47
48
48
# Checking validity
49
49
check_result = self .validate (local_config )
@@ -55,11 +55,7 @@ def create_poetry(
55
55
raise RuntimeError ("The Poetry configuration is invalid:\n " + message )
56
56
57
57
# Load package
58
- name = local_config ["name" ]
59
- assert isinstance (name , str )
60
- version = local_config ["version" ]
61
- assert isinstance (version , str )
62
- package = self .get_package (name , version )
58
+ package = self .get_package (local_config ["name" ], local_config ["version" ])
63
59
package = self .configure_package (
64
60
package , local_config , poetry_file .parent , with_groups = with_groups
65
61
)
You can’t perform that action at this time.
0 commit comments