def build_wheel(wheel_directory, config_settings=None, metadata_directory=None): import pprint pprint.pprint(config_settings) pprint.pprint(metadata_directory) """Builds a wheel, places it in wheel_directory""" with WheelBuilder(Path.cwd()) as builder: return Path(builder.build(wheel_directory)).name
def build_wheel( wheel_directory: str, config_settings: Optional[Mapping[str, Any]] = None, metadata_directory: Optional[str] = None, ) -> str: """Builds a wheel, places it in wheel_directory""" with WheelBuilder(Path.cwd(), config_settings) as builder: return Path(builder.build(wheel_directory)).name
def prepare_metadata_for_build_wheel(metadata_directory, config_settings=None): builder = WheelBuilder(Path.cwd()) dist_info = Path(metadata_directory, builder.dist_info_name) dist_info.mkdir(exist_ok=True) with builder: if builder.meta.entry_points: with (dist_info / "entry_points.txt").open("w", encoding="utf-8") as f: builder._write_entry_points(f) with (dist_info / "WHEEL").open("w", encoding="utf-8") as f: builder._write_wheel_file(f) with (dist_info / "METADATA").open("w", encoding="utf-8") as f: builder._write_metadata_file(f) return dist_info.name
def prepare_metadata_for_build_wheel( metadata_directory: str, config_settings: Optional[Mapping[str, Any]] = None ) -> str: """Prepare the metadata, places it in metadata_directory""" with WheelBuilder(Path.cwd(), config_settings) as builder: return _prepare_metadata(builder, metadata_directory)