Skip to content

Commit

Permalink
Reverts
Browse files Browse the repository at this point in the history
  • Loading branch information
charliermarsh committed Oct 21, 2024
1 parent c16c9df commit f4a0c88
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 79 deletions.
3 changes: 1 addition & 2 deletions crates/uv-build-frontend/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,7 @@ pub struct BuildBackendError {

impl Display for BuildBackendError {
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
writeln!(f, "{} ({})", self.message, self.exit_code)?;
write!(f, "See https://docs.astral.sh/uv/reference/build_failures/ for common causes and solutions")?;
write!(f, "{} ({})", self.message, self.exit_code)?;

let mut non_empty = false;

Expand Down
2 changes: 0 additions & 2 deletions crates/uv/tests/it/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,6 @@ fn fail() -> Result<()> {
from setuptools import setup
IndentationError: unexpected indent
error: Build backend failed to determine requirements with `build_sdist()` (exit status: 1)
See https://docs.astral.sh/uv/reference/build_failures/ for common causes and solutions
"###);

Ok(())
Expand Down Expand Up @@ -1330,7 +1329,6 @@ fn build_all_with_failure() -> Result<()> {
[PKG] Building wheel from source distribution...
Successfully built dist/member_a-0.1.0.tar.gz and dist/member_a-0.1.0-py3-none-any.whl
[PKG] error: Build backend failed to determine requirements with `build_sdist()` (exit status: 1)
See https://docs.astral.sh/uv/reference/build_failures/ for common causes and solutions
Successfully built dist/project-0.1.0.tar.gz and dist/project-0.1.0-py3-none-any.whl
"###);

Expand Down
1 change: 0 additions & 1 deletion crates/uv/tests/it/edit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4895,7 +4895,6 @@ fn fail_to_add_revert_project() -> Result<()> {
error: Failed to prepare distributions
Caused by: Failed to download and build `pytorch==1.0.2`
Caused by: Build backend failed to build wheel through `build_wheel` (exit status: 1)
See https://docs.astral.sh/uv/reference/build_failures/ for common causes and solutions
[stderr]
Traceback (most recent call last):
Expand Down
9 changes: 2 additions & 7 deletions crates/uv/tests/it/pip_install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,6 @@ dependencies = ["flask==1.0.x"]
----- stderr -----
error: Failed to build: `project @ file://[TEMP_DIR]/path_dep`
Caused by: Build backend failed to determine requirements with `build_wheel()` (exit status: 1)
See https://docs.astral.sh/uv/reference/build_failures/ for common causes and solutions
[stdout]
configuration error: `project.dependencies[0]` must be pep508
Expand Down Expand Up @@ -3996,7 +3995,6 @@ fn no_build_isolation() -> Result<()> {
----- stderr -----
error: Failed to download and build: `anyio @ https://files.pythonhosted.org/packages/db/4d/3970183622f0330d3c23d9b8a5f52e365e50381fd484d08e3285104333d3/anyio-4.3.0.tar.gz`
Caused by: Build backend failed to determine metadata through `prepare_metadata_for_build_wheel` (exit status: 1)
See https://docs.astral.sh/uv/reference/build_failures/ for common causes and solutions
[stderr]
Traceback (most recent call last):
Expand Down Expand Up @@ -4066,7 +4064,6 @@ fn respect_no_build_isolation_env_var() -> Result<()> {
----- stderr -----
error: Failed to download and build: `anyio @ https://files.pythonhosted.org/packages/db/4d/3970183622f0330d3c23d9b8a5f52e365e50381fd484d08e3285104333d3/anyio-4.3.0.tar.gz`
Caused by: Build backend failed to determine metadata through `prepare_metadata_for_build_wheel` (exit status: 1)
See https://docs.astral.sh/uv/reference/build_failures/ for common causes and solutions
[stderr]
Traceback (most recent call last):
Expand Down Expand Up @@ -7028,7 +7025,6 @@ fn install_build_isolation_package() -> Result<()> {
----- stderr -----
error: Failed to download and build: `iniconfig @ https://files.pythonhosted.org/packages/d7/4b/cbd8e699e64a6f16ca3a8220661b5f83792b3017d0f79807cb8708d33913/iniconfig-2.0.0.tar.gz`
Caused by: Build backend failed to determine metadata through `prepare_metadata_for_build_wheel` (exit status: 1)
See https://docs.astral.sh/uv/reference/build_failures/ for common causes and solutions
[stderr]
Traceback (most recent call last):
Expand Down Expand Up @@ -7281,15 +7277,14 @@ fn sklearn() {
let filters = std::iter::once((r"exit code: 1", "exit status: 1"))
.chain(context.filters())
.collect::<Vec<_>>();
uv_snapshot!(filters, context.pip_install().arg("sklearn"), @r###"
uv_snapshot!(filters, context.pip_install().arg("sklearn"), @r#"
success: false
exit_code: 1
----- stdout -----
----- stderr -----
× Failed to download and build `sklearn==0.0.post12`
╰─▶ Build backend failed to determine requirements with `build_wheel()` (exit status: 1)
See https://docs.astral.sh/uv/reference/build_failures/ for common causes and solutions
[stderr]
The 'sklearn' PyPI package is deprecated, use 'scikit-learn'
Expand All @@ -7309,6 +7304,6 @@ fn sklearn() {
https://github.com/scikit-learn/sklearn-pypi-package
help: `sklearn` is often confused for `scikit-learn` Did you mean to install `scikit-learn` instead?
"###
"#
);
}
3 changes: 0 additions & 3 deletions crates/uv/tests/it/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,6 @@ fn sync_build_isolation_package() -> Result<()> {
error: Failed to prepare distributions
Caused by: Failed to download and build `source-distribution @ https://files.pythonhosted.org/packages/10/1f/57aa4cce1b1abf6b433106676e15f9fa2c92ed2bd4cf77c3b50a9e9ac773/source_distribution-0.0.1.tar.gz`
Caused by: Build backend failed to build wheel through `build_wheel` (exit status: 1)
See https://docs.astral.sh/uv/reference/build_failures/ for common causes and solutions
[stderr]
Traceback (most recent call last):
Expand Down Expand Up @@ -669,7 +668,6 @@ fn sync_build_isolation_extra() -> Result<()> {
error: Failed to prepare distributions
Caused by: Failed to download and build `source-distribution @ https://files.pythonhosted.org/packages/10/1f/57aa4cce1b1abf6b433106676e15f9fa2c92ed2bd4cf77c3b50a9e9ac773/source_distribution-0.0.1.tar.gz`
Caused by: Build backend failed to build wheel through `build_wheel` (exit status: 1)
See https://docs.astral.sh/uv/reference/build_failures/ for common causes and solutions
[stderr]
Traceback (most recent call last):
Expand All @@ -689,7 +687,6 @@ fn sync_build_isolation_extra() -> Result<()> {
error: Failed to prepare distributions
Caused by: Failed to download and build `source-distribution @ https://files.pythonhosted.org/packages/10/1f/57aa4cce1b1abf6b433106676e15f9fa2c92ed2bd4cf77c3b50a9e9ac773/source_distribution-0.0.1.tar.gz`
Caused by: Build backend failed to build wheel through `build_wheel` (exit status: 1)
See https://docs.astral.sh/uv/reference/build_failures/ for common causes and solutions
[stderr]
Traceback (most recent call last):
Expand Down
1 change: 0 additions & 1 deletion crates/uv/tests/it/tool_install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1423,7 +1423,6 @@ fn tool_install_uninstallable() {
error: Failed to prepare distributions
Caused by: Failed to download and build `pyenv==0.0.1`
Caused by: Build backend failed to build wheel through `build_wheel` (exit status: 1)
See https://docs.astral.sh/uv/reference/build_failures/ for common causes and solutions
[stdout]
running bdist_wheel
Expand Down
62 changes: 0 additions & 62 deletions docs/reference/build_failures.md

This file was deleted.

1 change: 0 additions & 1 deletion mkdocs.template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ nav:
- reference/index.md
- Commands: reference/cli.md
- Settings: reference/settings.md
- Build Failures: reference/build_failures.md
- Resolver: reference/resolver-internals.md
- Benchmarks: reference/benchmarks.md
- Versioning: reference/versioning.md
Expand Down

0 comments on commit f4a0c88

Please sign in to comment.