File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -56,14 +56,18 @@ def create_poetry(
56
56
raise RuntimeError ("The Poetry configuration is invalid:\n " + message )
57
57
58
58
# Load package
59
+ # Convert `tomlkit` attributes to bare Python object representations.
60
+ # Cast can be removed once tomlkit is bumped to > 0.11.4 (PR: https://github.com/sdispater/tomlkit/pull/229).
61
+ unwrapped_local_config = cast (dict [str , Any ], local_config .unwrap ())
62
+
59
63
name = cast (str , local_config ["name" ])
60
64
version = cast (str , local_config ["version" ])
61
65
package = self .get_package (name , version )
62
66
package = self .configure_package (
63
- package , local_config , poetry_file .parent , with_groups = with_groups
67
+ package , unwrapped_local_config , poetry_file .parent , with_groups = with_groups
64
68
)
65
69
66
- return Poetry (poetry_file , local_config , package )
70
+ return Poetry (poetry_file , unwrapped_local_config , package )
67
71
68
72
@classmethod
69
73
def get_package (cls , name : str , version : str ) -> ProjectPackage :
You can’t perform that action at this time.
0 commit comments