Beispiel #1
0
def build_sdist(sdist_directory, config_settings=None):
    """Builds an sdist, places it in sdist_directory"""
    poetry = Factory().create_poetry(Path(".").resolve())

    path = SdistBuilder(poetry).build(Path(sdist_directory))

    return unicode(path.name)
Beispiel #2
0
def build_wheel(wheel_directory,
                config_settings=None,
                metadata_directory=None):
    """Builds a wheel, places it in wheel_directory"""
    poetry = Factory().create_poetry(Path(".").resolve())

    return unicode(WheelBuilder.make_in(poetry, Path(wheel_directory)))
Beispiel #3
0
def build_wheel(
    wheel_directory, config_settings=None, metadata_directory=None
):  # type: (str, Optional[Dict[str, Any]], Optional[str]) -> str
    """Builds a wheel, places it in wheel_directory"""
    poetry = Factory().create_poetry(Path(".").resolve(), with_dev=False)

    return unicode(WheelBuilder.make_in(poetry, Path(wheel_directory)))
Beispiel #4
0
def build_sdist(
        sdist_directory,
        config_settings=None):  # type: (str, Optional[Dict[str, Any]]) -> str
    """Builds an sdist, places it in sdist_directory"""
    poetry = Factory().create_poetry(Path(".").resolve(), with_dev=False)

    path = SdistBuilder(poetry).build(Path(sdist_directory))

    return unicode(path.name)