def test_build_sdist(): with temporary_directory() as tmp_dir, cwd(os.path.join(fixtures, "complete")): filename = api.build_sdist(tmp_dir) validate_sdist_contents( name="my-package", version="1.2.3", path=str(os.path.join(tmp_dir, filename)), files=["LICENSE"], )
def test_build_sdist_with_include() -> None: with temporary_directory() as tmp_dir, cwd( os.path.join(fixtures, "with-include")): filename = api.build_sdist(tmp_dir) validate_sdist_contents( name="with-include", version="1.2.3", path=str(os.path.join(tmp_dir, filename)), files=["LICENSE"], )