You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnErr(anyhow::anyhow!("Legacy non-project roots are not supported in `uv export`; add a `[project]` table to your `pyproject.toml` to enable exports"));
81
78
};
82
79
@@ -147,6 +144,19 @@ pub(crate) async fn export(
147
144
Err(err) => returnErr(err.into()),
148
145
};
149
146
147
+
// Identify the target.
148
+
let target = ifletSome(package) = package.as_ref().filter(|_| frozen){
149
+
InstallTarget::frozen(&project, package)
150
+
}elseif all_packages {
151
+
InstallTarget::from_workspace(&project)
152
+
}else{
153
+
InstallTarget::from_project(&project)
154
+
};
155
+
156
+
// Determine the default groups to include.
157
+
validate_dependency_groups(target,&dev)?;
158
+
let defaults = default_dependency_groups(project.pyproject_toml())?;
159
+
150
160
// Write the resolved dependencies to the output channel.
warn_user!("Skipping installation of entry points (`project.scripts`) because this project is not packaged; to install entry points, set `tool.uv.package = true` or define a `build-system`");
90
+
}
91
+
84
92
// Identify the target.
85
93
let target = ifletSome(package) = package.as_ref().filter(|_| frozen){
warn_user!("Skipping installation of entry points (`project.scripts`) because this project is not packaged; to install entry points, set `tool.uv.package = true` or define a `build-system`");
99
-
}
100
-
101
101
// Determine the default groups to include.
102
102
validate_dependency_groups(target,&dev)?;
103
103
let defaults = default_dependency_groups(project.pyproject_toml())?;
0 commit comments