We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 363e6a5 commit 64d8a55Copy full SHA for 64d8a55
1 file changed
crates/pet-poetry/src/pyproject_toml.rs
@@ -85,6 +85,32 @@ readme = "README.md"
85
python = "^3.12"
86
87
88
+[build-system]
89
+requires = ["poetry-core"]
90
+build-backend = "poetry.core.masonry.api"
91
+"#;
92
+ assert_eq!(
93
+ parse_contents(cfg, Path::new("pyproject.toml"))
94
+ .unwrap()
95
+ .name,
96
+ "poetry-demo"
97
+ );
98
+ }
99
+
100
+ #[test]
101
+ fn extract_normalized_name_from_pyproject_toml() {
102
+ let cfg = r#"
103
+[tool.poetry]
104
+name = "poetry_.demo"
105
+version = "0.1.0"
106
+description = ""
107
+authors = ["User Name <bogus.user@some.email.com>"]
108
+readme = "README.md"
109
110
+[tool.poetry.dependencies]
111
+python = "^3.12"
112
113
114
[build-system]
115
requires = ["poetry-core"]
116
build-backend = "poetry.core.masonry.api"
0 commit comments