(session: nox.Session)
Builds SDist & Wheels then run unit tests on those.
Builds SDist & Wheels then run unit tests on those.
Builds SDist & Wheels then run unit tests on those .
def test_dist(session: nox.Session) -> None:
    """
    Builds SDist & Wheels then run unit tests on those.
    """
    tmp_dir = Path(session.create_tmp())
    dist = tmp_dir / "dist"
    _build(session, dist)
    python_versions = session.posargs or PYTHON_ALL_VERSIONS
    for version in python_versions:
        session.notify(f"_test_sdist-{version}", [str(dist)])
        session.notify(f"_test_wheel-{version}", [str(dist)])
def test_dist ( session : nox . Session ) -> None : tmp_dir = Path ( session . create_tmp ( ) ) dist = tmp_dir / "dist" _build ( session , dist ) python_versions = session . posargs or PYTHON_ALL_VERSIONS for version in python_versions : session . notify ( f"_test_sdist-{version}" , [ str ( dist ) ] ) session . notify ( f"_test_wheel-{version}" , [ str ( dist ) ] )