Skip to content

Commit 766bd95

Browse files
authored
Use uv_build in make_project tests (#16298)
Skip downloading and running setuptools.
1 parent 52cc3c8 commit 766bd95

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

crates/uv/tests/it/common/mod.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1832,19 +1832,18 @@ pub fn make_project(dir: &Path, name: &str, body: &str) -> anyhow::Result<()> {
18321832
[project]
18331833
name = "{name}"
18341834
version = "0.1.0"
1835-
description = "Test package for direct URLs in branches"
18361835
requires-python = ">=3.11,<3.13"
18371836
{body}
18381837
18391838
[build-system]
1840-
requires = ["setuptools>=42"]
1841-
build-backend = "setuptools.build_meta"
1839+
requires = ["uv_build>=0.9.0,<10000"]
1840+
build-backend = "uv_build"
18421841
"#
18431842
};
18441843
fs_err::create_dir_all(dir)?;
18451844
fs_err::write(dir.join("pyproject.toml"), pyproject_toml)?;
1846-
fs_err::create_dir(dir.join(name))?;
1847-
fs_err::write(dir.join(name).join("__init__.py"), "")?;
1845+
fs_err::create_dir_all(dir.join("src").join(name))?;
1846+
fs_err::write(dir.join("src").join(name).join("__init__.py"), "")?;
18481847
Ok(())
18491848
}
18501849

crates/uv/tests/it/workspace.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1983,7 +1983,7 @@ fn workspace_members_with_leading_dot_slash() -> Result<()> {
19831983
"###);
19841984

19851985
// Test syncing from within foo works correctly
1986-
uv_snapshot!(context.filters(), context.sync().current_dir(workspace.join("packages/foo")), @r###"
1986+
uv_snapshot!(context.filters(), context.sync().current_dir(workspace.join("packages").join("foo")), @r###"
19871987
success: true
19881988
exit_code: 0
19891989
----- stdout -----

0 commit comments

Comments
 (0)