File tree 3 files changed +6
-8
lines changed
3 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## [ Unreleased]
9
9
10
+ * Use module name specified by ` [package.metadata.maturin] ` in [ #1409 ] ( https://github.com/PyO3/maturin/pull/1409 )
11
+
10
12
## [ 0.14.9] - 2023-01-10
11
13
12
14
* Don't pass ` MACOSX_DEPLOYMENT_TARGET ` when query default value from rustc in [ #1395 ] ( https://github.com/PyO3/maturin/pull/1395 )
Original file line number Diff line number Diff line change @@ -501,8 +501,9 @@ impl BuildOptions {
501
501
502
502
if !bridge. is_bin ( ) && module_name. contains ( '-' ) {
503
503
bail ! (
504
- "The module name must not contains a minus \
505
- (Make sure you have set an appropriate [lib] name in your Cargo.toml)"
504
+ "The module name must not contain a minus `-` \
505
+ (Make sure you have set an appropriate [lib] name or \
506
+ [package.metadata.maturin] name in your Cargo.toml)"
506
507
) ;
507
508
}
508
509
Original file line number Diff line number Diff line change @@ -128,12 +128,7 @@ impl ProjectResolver {
128
128
. unwrap_or ( crate_name)
129
129
. to_owned ( ) ;
130
130
131
- // Only use extension name from extra metadata if it contains dot
132
- let extension_name = extra_metadata
133
- . name
134
- . as_ref ( )
135
- . filter ( |name| name. contains ( '.' ) )
136
- . unwrap_or ( & module_name) ;
131
+ let extension_name = extra_metadata. name . as_ref ( ) . unwrap_or ( & module_name) ;
137
132
138
133
let project_root = if pyproject_file. is_file ( ) {
139
134
pyproject_file. parent ( ) . unwrap_or ( manifest_dir)
You can’t perform that action at this time.
0 commit comments