mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 21:35:00 +00:00
Turn off text wrapping in non-scenario fixtures (#2854)
## Summary We do this in the scenarios, but weren't setting it elsewhere.
This commit is contained in:
parent
35940cb885
commit
bfc4c1aa5a
11 changed files with 116 additions and 161 deletions
|
@ -21,6 +21,7 @@ fn prune_command(context: &TestContext) -> Command {
|
||||||
.arg("--cache-dir")
|
.arg("--cache-dir")
|
||||||
.arg(context.cache_dir.path())
|
.arg(context.cache_dir.path())
|
||||||
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
||||||
|
.env("UV_NO_WRAP", "1")
|
||||||
.current_dir(&context.temp_dir);
|
.current_dir(&context.temp_dir);
|
||||||
|
|
||||||
if cfg!(all(windows, debug_assertions)) {
|
if cfg!(all(windows, debug_assertions)) {
|
||||||
|
@ -41,6 +42,7 @@ fn sync_command(context: &TestContext) -> Command {
|
||||||
.arg("--cache-dir")
|
.arg("--cache-dir")
|
||||||
.arg(context.cache_dir.path())
|
.arg(context.cache_dir.path())
|
||||||
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
||||||
|
.env("UV_NO_WRAP", "1")
|
||||||
.current_dir(&context.temp_dir);
|
.current_dir(&context.temp_dir);
|
||||||
|
|
||||||
if cfg!(all(windows, debug_assertions)) {
|
if cfg!(all(windows, debug_assertions)) {
|
||||||
|
|
|
@ -157,6 +157,7 @@ impl TestContext {
|
||||||
.arg("--cache-dir")
|
.arg("--cache-dir")
|
||||||
.arg(self.cache_dir.path())
|
.arg(self.cache_dir.path())
|
||||||
.env("VIRTUAL_ENV", self.venv.as_os_str())
|
.env("VIRTUAL_ENV", self.venv.as_os_str())
|
||||||
|
.env("UV_NO_WRAP", "1")
|
||||||
.current_dir(self.temp_dir.path());
|
.current_dir(self.temp_dir.path());
|
||||||
|
|
||||||
if cfg!(all(windows, debug_assertions)) {
|
if cfg!(all(windows, debug_assertions)) {
|
||||||
|
@ -189,6 +190,7 @@ impl TestContext {
|
||||||
.arg("--cache-dir")
|
.arg("--cache-dir")
|
||||||
.arg(self.cache_dir.path())
|
.arg(self.cache_dir.path())
|
||||||
.env("VIRTUAL_ENV", self.venv.as_os_str())
|
.env("VIRTUAL_ENV", self.venv.as_os_str())
|
||||||
|
.env("UV_NO_WRAP", "1")
|
||||||
.current_dir(&self.temp_dir);
|
.current_dir(&self.temp_dir);
|
||||||
|
|
||||||
if cfg!(all(windows, debug_assertions)) {
|
if cfg!(all(windows, debug_assertions)) {
|
||||||
|
|
|
@ -21,6 +21,7 @@ fn install_command(context: &TestContext) -> Command {
|
||||||
.arg("--exclude-newer")
|
.arg("--exclude-newer")
|
||||||
.arg(EXCLUDE_NEWER)
|
.arg(EXCLUDE_NEWER)
|
||||||
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
||||||
|
.env("UV_NO_WRAP", "1")
|
||||||
.current_dir(&context.temp_dir);
|
.current_dir(&context.temp_dir);
|
||||||
|
|
||||||
if cfg!(all(windows, debug_assertions)) {
|
if cfg!(all(windows, debug_assertions)) {
|
||||||
|
@ -41,6 +42,7 @@ fn check_command(context: &TestContext) -> Command {
|
||||||
.arg("--cache-dir")
|
.arg("--cache-dir")
|
||||||
.arg(context.cache_dir.path())
|
.arg(context.cache_dir.path())
|
||||||
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
||||||
|
.env("UV_NO_WRAP", "1")
|
||||||
.current_dir(&context.temp_dir);
|
.current_dir(&context.temp_dir);
|
||||||
|
|
||||||
command
|
command
|
||||||
|
|
|
@ -882,11 +882,8 @@ fn compile_python_37() -> Result<()> {
|
||||||
|
|
||||||
----- stderr -----
|
----- stderr -----
|
||||||
× No solution found when resolving dependencies:
|
× No solution found when resolving dependencies:
|
||||||
╰─▶ Because the requested Python version (3.7) does not satisfy Python>=3.8
|
╰─▶ Because the requested Python version (3.7) does not satisfy Python>=3.8 and black==23.10.1 depends on Python>=3.8, we can conclude that black==23.10.1 cannot be used.
|
||||||
and black==23.10.1 depends on Python>=3.8, we can conclude that
|
And because you require black==23.10.1, we can conclude that the requirements are unsatisfiable.
|
||||||
black==23.10.1 cannot be used.
|
|
||||||
And because you require black==23.10.1, we can conclude that the
|
|
||||||
requirements are unsatisfiable.
|
|
||||||
"###);
|
"###);
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
|
@ -1458,9 +1455,7 @@ fn conflicting_direct_url_dependency() -> Result<()> {
|
||||||
|
|
||||||
----- stderr -----
|
----- stderr -----
|
||||||
× No solution found when resolving dependencies:
|
× No solution found when resolving dependencies:
|
||||||
╰─▶ Because there is no version of werkzeug==3.0.0 and you require
|
╰─▶ Because there is no version of werkzeug==3.0.0 and you require werkzeug==3.0.0, we can conclude that the requirements are unsatisfiable.
|
||||||
werkzeug==3.0.0, we can conclude that the requirements are
|
|
||||||
unsatisfiable.
|
|
||||||
"###
|
"###
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -1584,10 +1579,8 @@ fn conflicting_transitive_url_dependency() -> Result<()> {
|
||||||
|
|
||||||
----- stderr -----
|
----- stderr -----
|
||||||
× No solution found when resolving dependencies:
|
× No solution found when resolving dependencies:
|
||||||
╰─▶ Because only werkzeug<3.0.0 is available and flask==3.0.0 depends on
|
╰─▶ Because only werkzeug<3.0.0 is available and flask==3.0.0 depends on werkzeug>=3.0.0, we can conclude that flask==3.0.0 cannot be used.
|
||||||
werkzeug>=3.0.0, we can conclude that flask==3.0.0 cannot be used.
|
And because you require flask==3.0.0, we can conclude that the requirements are unsatisfiable.
|
||||||
And because you require flask==3.0.0, we can conclude that the
|
|
||||||
requirements are unsatisfiable.
|
|
||||||
"###
|
"###
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -1936,8 +1929,7 @@ fn requirement_constraint_override_url() -> Result<()> {
|
||||||
|
|
||||||
----- stderr -----
|
----- stderr -----
|
||||||
× No solution found when resolving dependencies:
|
× No solution found when resolving dependencies:
|
||||||
╰─▶ Because there is no version of anyio==3.7.0 and you require
|
╰─▶ Because there is no version of anyio==3.7.0 and you require anyio==3.7.0, we can conclude that the requirements are unsatisfiable.
|
||||||
anyio==3.7.0, we can conclude that the requirements are unsatisfiable.
|
|
||||||
"###
|
"###
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -2149,8 +2141,7 @@ dependencies = ["anyio==3.7.0", "anyio==4.0.0"]
|
||||||
|
|
||||||
----- stderr -----
|
----- stderr -----
|
||||||
× No solution found when resolving dependencies:
|
× No solution found when resolving dependencies:
|
||||||
╰─▶ Because my-project depends on anyio==3.7.0 and my-project depends on
|
╰─▶ Because my-project depends on anyio==3.7.0 and my-project depends on anyio==4.0.0, we can conclude that the requirements are unsatisfiable.
|
||||||
anyio==4.0.0, we can conclude that the requirements are unsatisfiable.
|
|
||||||
"###
|
"###
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -2181,8 +2172,7 @@ dependencies = ["anyio==300.1.4"]
|
||||||
|
|
||||||
----- stderr -----
|
----- stderr -----
|
||||||
× No solution found when resolving dependencies:
|
× No solution found when resolving dependencies:
|
||||||
╰─▶ Because there is no version of anyio==300.1.4 and my-project depends on
|
╰─▶ Because there is no version of anyio==300.1.4 and my-project depends on anyio==300.1.4, we can conclude that the requirements are unsatisfiable.
|
||||||
anyio==300.1.4, we can conclude that the requirements are unsatisfiable.
|
|
||||||
"###
|
"###
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -2207,6 +2197,7 @@ fn compile_exclude_newer() -> Result<()> {
|
||||||
.arg("--cache-dir")
|
.arg("--cache-dir")
|
||||||
.arg(context.cache_dir.path())
|
.arg(context.cache_dir.path())
|
||||||
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
||||||
|
.env("UV_NO_WRAP", "1")
|
||||||
.current_dir(context.temp_dir.path()), @r###"
|
.current_dir(context.temp_dir.path()), @r###"
|
||||||
success: true
|
success: true
|
||||||
exit_code: 0
|
exit_code: 0
|
||||||
|
@ -2231,6 +2222,7 @@ fn compile_exclude_newer() -> Result<()> {
|
||||||
.arg("--cache-dir")
|
.arg("--cache-dir")
|
||||||
.arg(context.cache_dir.path())
|
.arg(context.cache_dir.path())
|
||||||
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
||||||
|
.env("UV_NO_WRAP", "1")
|
||||||
.current_dir(context.temp_dir.path()), @r###"
|
.current_dir(context.temp_dir.path()), @r###"
|
||||||
success: true
|
success: true
|
||||||
exit_code: 0
|
exit_code: 0
|
||||||
|
@ -2254,6 +2246,7 @@ fn compile_exclude_newer() -> Result<()> {
|
||||||
.arg("--cache-dir")
|
.arg("--cache-dir")
|
||||||
.arg(context.cache_dir.path())
|
.arg(context.cache_dir.path())
|
||||||
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
||||||
|
.env("UV_NO_WRAP", "1")
|
||||||
.current_dir(context.temp_dir.path()), @r###"
|
.current_dir(context.temp_dir.path()), @r###"
|
||||||
success: false
|
success: false
|
||||||
exit_code: 2
|
exit_code: 2
|
||||||
|
@ -2628,11 +2621,8 @@ fn compile_yanked_version_indirect() -> Result<()> {
|
||||||
attrs<=20.3.0
|
attrs<=20.3.0
|
||||||
attrs==21.1.0
|
attrs==21.1.0
|
||||||
attrs>=21.2.0
|
attrs>=21.2.0
|
||||||
and attrs==21.1.0 is unusable because it was yanked (reason:
|
and attrs==21.1.0 is unusable because it was yanked (reason: Installable but not importable on Python 3.4), we can conclude that attrs>20.3.0,<21.2.0 cannot be used.
|
||||||
Installable but not importable on Python 3.4), we can conclude that
|
And because you require attrs>20.3.0,<21.2.0, we can conclude that the requirements are unsatisfiable.
|
||||||
attrs>20.3.0,<21.2.0 cannot be used.
|
|
||||||
And because you require attrs>20.3.0,<21.2.0, we can conclude that the
|
|
||||||
requirements are unsatisfiable.
|
|
||||||
"###
|
"###
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -3331,6 +3321,7 @@ fn compile_html() -> Result<()> {
|
||||||
.arg("--index-url")
|
.arg("--index-url")
|
||||||
.arg("https://download.pytorch.org/whl")
|
.arg("https://download.pytorch.org/whl")
|
||||||
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
||||||
|
.env("UV_NO_WRAP", "1")
|
||||||
.current_dir(context.temp_dir.path()), @r###"
|
.current_dir(context.temp_dir.path()), @r###"
|
||||||
success: true
|
success: true
|
||||||
exit_code: 0
|
exit_code: 0
|
||||||
|
@ -4225,12 +4216,9 @@ fn no_index_requirements_txt() -> Result<()> {
|
||||||
|
|
||||||
----- stderr -----
|
----- stderr -----
|
||||||
× No solution found when resolving dependencies:
|
× No solution found when resolving dependencies:
|
||||||
╰─▶ Because tqdm was not found in the provided package locations and you
|
╰─▶ Because tqdm was not found in the provided package locations and you require tqdm, we can conclude that the requirements are unsatisfiable.
|
||||||
require tqdm, we can conclude that the requirements are unsatisfiable.
|
|
||||||
|
|
||||||
hint: Packages were unavailable because index lookups were disabled
|
hint: Packages were unavailable because index lookups were disabled and no additional package locations were provided (try: `--find-links <uri>`)
|
||||||
and no additional package locations were provided (try: `--find-links
|
|
||||||
<uri>`)
|
|
||||||
"###
|
"###
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -4336,8 +4324,7 @@ fn offline_registry() -> Result<()> {
|
||||||
|
|
||||||
----- stderr -----
|
----- stderr -----
|
||||||
× No solution found when resolving dependencies:
|
× No solution found when resolving dependencies:
|
||||||
╰─▶ Because black==23.10.1 was not found in the cache and you require
|
╰─▶ Because black==23.10.1 was not found in the cache and you require black==23.10.1, we can conclude that the requirements are unsatisfiable.
|
||||||
black==23.10.1, we can conclude that the requirements are unsatisfiable.
|
|
||||||
|
|
||||||
hint: Packages were unavailable because the network was disabled
|
hint: Packages were unavailable because the network was disabled
|
||||||
"###
|
"###
|
||||||
|
@ -4464,8 +4451,7 @@ fn offline_find_links() -> Result<()> {
|
||||||
|
|
||||||
----- stderr -----
|
----- stderr -----
|
||||||
× No solution found when resolving dependencies:
|
× No solution found when resolving dependencies:
|
||||||
╰─▶ Because tqdm was not found in the cache and you require tqdm, we can
|
╰─▶ Because tqdm was not found in the cache and you require tqdm, we can conclude that the requirements are unsatisfiable.
|
||||||
conclude that the requirements are unsatisfiable.
|
|
||||||
|
|
||||||
hint: Packages were unavailable because the network was disabled
|
hint: Packages were unavailable because the network was disabled
|
||||||
"###
|
"###
|
||||||
|
@ -4484,8 +4470,7 @@ fn offline_find_links() -> Result<()> {
|
||||||
|
|
||||||
----- stderr -----
|
----- stderr -----
|
||||||
× No solution found when resolving dependencies:
|
× No solution found when resolving dependencies:
|
||||||
╰─▶ Because tqdm was not found in the cache and you require tqdm, we can
|
╰─▶ Because tqdm was not found in the cache and you require tqdm, we can conclude that the requirements are unsatisfiable.
|
||||||
conclude that the requirements are unsatisfiable.
|
|
||||||
|
|
||||||
hint: Packages were unavailable because the network was disabled
|
hint: Packages were unavailable because the network was disabled
|
||||||
"###
|
"###
|
||||||
|
@ -4569,9 +4554,7 @@ fn invalid_metadata_requires_python() -> Result<()> {
|
||||||
|
|
||||||
----- stderr -----
|
----- stderr -----
|
||||||
× No solution found when resolving dependencies:
|
× No solution found when resolving dependencies:
|
||||||
╰─▶ Because validation==2.0.0 is unusable because the package metadata could
|
╰─▶ Because validation==2.0.0 is unusable because the package metadata could not be parsed and you require validation==2.0.0, we can conclude that the requirements are unsatisfiable.
|
||||||
not be parsed and you require validation==2.0.0, we can conclude that
|
|
||||||
the requirements are unsatisfiable.
|
|
||||||
"###
|
"###
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -4597,9 +4580,7 @@ fn invalid_metadata_multiple_dist_info() -> Result<()> {
|
||||||
|
|
||||||
----- stderr -----
|
----- stderr -----
|
||||||
× No solution found when resolving dependencies:
|
× No solution found when resolving dependencies:
|
||||||
╰─▶ Because validation==3.0.0 is unusable because the package has an invalid
|
╰─▶ Because validation==3.0.0 is unusable because the package has an invalid format and you require validation==3.0.0, we can conclude that the requirements are unsatisfiable.
|
||||||
format and you require validation==3.0.0, we can conclude that the
|
|
||||||
requirements are unsatisfiable.
|
|
||||||
"###
|
"###
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -4814,8 +4795,7 @@ fn compile_constraints_incompatible_url() -> Result<()> {
|
||||||
|
|
||||||
----- stderr -----
|
----- stderr -----
|
||||||
× No solution found when resolving dependencies:
|
× No solution found when resolving dependencies:
|
||||||
╰─▶ Because only anyio>=4 is available and you require anyio<4, we can
|
╰─▶ Because only anyio>=4 is available and you require anyio<4, we can conclude that the requirements are unsatisfiable.
|
||||||
conclude that the requirements are unsatisfiable.
|
|
||||||
"###
|
"###
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -4838,8 +4818,7 @@ fn index_url_in_requirements() -> Result<()> {
|
||||||
|
|
||||||
----- stderr -----
|
----- stderr -----
|
||||||
× No solution found when resolving dependencies:
|
× No solution found when resolving dependencies:
|
||||||
╰─▶ Because anyio<4 was not found in the package registry and you require
|
╰─▶ Because anyio<4 was not found in the package registry and you require anyio<4, we can conclude that the requirements are unsatisfiable.
|
||||||
anyio<4, we can conclude that the requirements are unsatisfiable.
|
|
||||||
"###
|
"###
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -5173,8 +5152,7 @@ fn compile_constraints_incompatible_version() -> Result<()> {
|
||||||
|
|
||||||
----- stderr -----
|
----- stderr -----
|
||||||
× No solution found when resolving dependencies:
|
× No solution found when resolving dependencies:
|
||||||
╰─▶ Because you require filelock==1.0.0 and you require filelock==3.8.0, we
|
╰─▶ Because you require filelock==1.0.0 and you require filelock==3.8.0, we can conclude that the requirements are unsatisfiable.
|
||||||
can conclude that the requirements are unsatisfiable.
|
|
||||||
"###
|
"###
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -5202,8 +5180,7 @@ fn conflicting_url_markers() -> Result<()> {
|
||||||
|
|
||||||
----- stderr -----
|
----- stderr -----
|
||||||
× No solution found when resolving dependencies:
|
× No solution found when resolving dependencies:
|
||||||
╰─▶ Because you require filelock==1.0.0 and you require filelock==3.8.0, we
|
╰─▶ Because you require filelock==1.0.0 and you require filelock==3.8.0, we can conclude that the requirements are unsatisfiable.
|
||||||
can conclude that the requirements are unsatisfiable.
|
|
||||||
"###
|
"###
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -5351,8 +5328,7 @@ fn override_with_incompatible_constraint() -> Result<()> {
|
||||||
|
|
||||||
----- stderr -----
|
----- stderr -----
|
||||||
× No solution found when resolving dependencies:
|
× No solution found when resolving dependencies:
|
||||||
╰─▶ Because you require anyio>=3.0.0 and you require anyio<3.0.0, we can
|
╰─▶ Because you require anyio>=3.0.0 and you require anyio<3.0.0, we can conclude that the requirements are unsatisfiable.
|
||||||
conclude that the requirements are unsatisfiable.
|
|
||||||
"###
|
"###
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -6015,6 +5991,7 @@ fn no_stream() -> Result<()> {
|
||||||
.arg("--cache-dir")
|
.arg("--cache-dir")
|
||||||
.arg(context.cache_dir.path())
|
.arg(context.cache_dir.path())
|
||||||
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
||||||
|
.env("UV_NO_WRAP", "1")
|
||||||
.current_dir(&context.temp_dir), @r###"
|
.current_dir(&context.temp_dir), @r###"
|
||||||
success: true
|
success: true
|
||||||
exit_code: 0
|
exit_code: 0
|
||||||
|
@ -6087,11 +6064,8 @@ requires-python = "<=3.8"
|
||||||
|
|
||||||
----- stderr -----
|
----- stderr -----
|
||||||
× No solution found when resolving dependencies:
|
× No solution found when resolving dependencies:
|
||||||
╰─▶ Because the current Python version (3.12.1) does not satisfy Python<=3.8
|
╰─▶ Because the current Python version (3.12.1) does not satisfy Python<=3.8 and example==0.0.0 depends on Python<=3.8, we can conclude that example==0.0.0 cannot be used.
|
||||||
and example==0.0.0 depends on Python<=3.8, we can conclude that
|
And because only example==0.0.0 is available and you require example, we can conclude that the requirements are unsatisfiable.
|
||||||
example==0.0.0 cannot be used.
|
|
||||||
And because only example==0.0.0 is available and you require example, we
|
|
||||||
can conclude that the requirements are unsatisfiable.
|
|
||||||
"###
|
"###
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -6483,7 +6457,7 @@ fn unnamed_path_requirement() -> Result<()> {
|
||||||
fn unnamed_git_requirement() -> Result<()> {
|
fn unnamed_git_requirement() -> Result<()> {
|
||||||
let context = TestContext::new("3.12");
|
let context = TestContext::new("3.12");
|
||||||
let requirements_in = context.temp_dir.child("requirements.in");
|
let requirements_in = context.temp_dir.child("requirements.in");
|
||||||
requirements_in.write_str("git+https://github.com/pallets/flask.git")?;
|
requirements_in.write_str("git+https://github.com/pallets/flask.git@3.0.0")?;
|
||||||
|
|
||||||
uv_snapshot!(context.compile()
|
uv_snapshot!(context.compile()
|
||||||
.arg("requirements.in"), @r###"
|
.arg("requirements.in"), @r###"
|
||||||
|
@ -6496,7 +6470,7 @@ fn unnamed_git_requirement() -> Result<()> {
|
||||||
# via flask
|
# via flask
|
||||||
click==8.1.7
|
click==8.1.7
|
||||||
# via flask
|
# via flask
|
||||||
flask @ git+https://github.com/pallets/flask.git@b90a4f1f4a370e92054b9cc9db0efcb864f87ebe
|
flask @ git+https://github.com/pallets/flask.git@735a4701d6d5e848241e7d7535db898efb62d400
|
||||||
itsdangerous==2.1.2
|
itsdangerous==2.1.2
|
||||||
# via flask
|
# via flask
|
||||||
jinja2==3.1.3
|
jinja2==3.1.3
|
||||||
|
@ -7105,19 +7079,16 @@ requires-python = ">3.8"
|
||||||
.arg("requirements.in")
|
.arg("requirements.in")
|
||||||
.arg("--override")
|
.arg("--override")
|
||||||
.arg("overrides.txt"), @r###"
|
.arg("overrides.txt"), @r###"
|
||||||
success: false
|
success: false
|
||||||
exit_code: 1
|
exit_code: 1
|
||||||
----- stdout -----
|
----- stdout -----
|
||||||
|
|
||||||
----- stderr -----
|
----- stderr -----
|
||||||
× No solution found when resolving dependencies:
|
× No solution found when resolving dependencies:
|
||||||
╰─▶ Because there is no version of anyio==0.0.0 and lib==0.0.0 depends on
|
╰─▶ Because there is no version of anyio==0.0.0 and lib==0.0.0 depends on anyio==0.0.0, we can conclude that lib==0.0.0 cannot be used.
|
||||||
anyio==0.0.0, we can conclude that lib==0.0.0 cannot be used.
|
And because only lib==0.0.0 is available and example==0.0.0 depends on lib, we can conclude that example==0.0.0 cannot be used.
|
||||||
And because only lib==0.0.0 is available and example==0.0.0 depends on
|
And because only example==0.0.0 is available and you require example, we can conclude that the requirements are unsatisfiable.
|
||||||
lib, we can conclude that example==0.0.0 cannot be used.
|
"###
|
||||||
And because only example==0.0.0 is available and you require example, we
|
|
||||||
can conclude that the requirements are unsatisfiable.
|
|
||||||
"###
|
|
||||||
);
|
);
|
||||||
|
|
||||||
// Now constrain `anyio` to the local version.
|
// Now constrain `anyio` to the local version.
|
||||||
|
@ -7283,8 +7254,7 @@ fn compile_index_url_first_match() -> Result<()> {
|
||||||
|
|
||||||
----- stderr -----
|
----- stderr -----
|
||||||
× No solution found when resolving dependencies:
|
× No solution found when resolving dependencies:
|
||||||
╰─▶ Because there is no version of jinja2==3.1.0 and you require
|
╰─▶ Because there is no version of jinja2==3.1.0 and you require jinja2==3.1.0, we can conclude that the requirements are unsatisfiable.
|
||||||
jinja2==3.1.0, we can conclude that the requirements are unsatisfiable.
|
|
||||||
"###
|
"###
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -19,6 +19,7 @@ fn command(context: &TestContext) -> Command {
|
||||||
.arg("--cache-dir")
|
.arg("--cache-dir")
|
||||||
.arg(context.cache_dir.path())
|
.arg(context.cache_dir.path())
|
||||||
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
||||||
|
.env("UV_NO_WRAP", "1")
|
||||||
.current_dir(&context.temp_dir);
|
.current_dir(&context.temp_dir);
|
||||||
command
|
command
|
||||||
}
|
}
|
||||||
|
@ -32,6 +33,7 @@ fn sync_command(context: &TestContext) -> Command {
|
||||||
.arg("--cache-dir")
|
.arg("--cache-dir")
|
||||||
.arg(context.cache_dir.path())
|
.arg(context.cache_dir.path())
|
||||||
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
||||||
|
.env("UV_NO_WRAP", "1")
|
||||||
.current_dir(&context.temp_dir);
|
.current_dir(&context.temp_dir);
|
||||||
|
|
||||||
if cfg!(all(windows, debug_assertions)) {
|
if cfg!(all(windows, debug_assertions)) {
|
||||||
|
|
|
@ -267,11 +267,8 @@ fn no_solution() {
|
||||||
|
|
||||||
----- stderr -----
|
----- stderr -----
|
||||||
× No solution found when resolving dependencies:
|
× No solution found when resolving dependencies:
|
||||||
╰─▶ Because only flask<=3.0.2 is available and flask==3.0.2 depends
|
╰─▶ Because only flask<=3.0.2 is available and flask==3.0.2 depends on werkzeug>=3.0.0, we can conclude that flask>=3.0.2 depends on werkzeug>=3.0.0.
|
||||||
on werkzeug>=3.0.0, we can conclude that flask>=3.0.2 depends on
|
And because you require flask>=3.0.2 and you require werkzeug<1.0.0, we can conclude that the requirements are unsatisfiable.
|
||||||
werkzeug>=3.0.0.
|
|
||||||
And because you require flask>=3.0.2 and you require werkzeug<1.0.0, we
|
|
||||||
can conclude that the requirements are unsatisfiable.
|
|
||||||
"###);
|
"###);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -946,12 +943,9 @@ fn install_no_index() {
|
||||||
|
|
||||||
----- stderr -----
|
----- stderr -----
|
||||||
× No solution found when resolving dependencies:
|
× No solution found when resolving dependencies:
|
||||||
╰─▶ Because flask was not found in the provided package locations and you
|
╰─▶ Because flask was not found in the provided package locations and you require flask, we can conclude that the requirements are unsatisfiable.
|
||||||
require flask, we can conclude that the requirements are unsatisfiable.
|
|
||||||
|
|
||||||
hint: Packages were unavailable because index lookups were disabled
|
hint: Packages were unavailable because index lookups were disabled and no additional package locations were provided (try: `--find-links <uri>`)
|
||||||
and no additional package locations were provided (try: `--find-links
|
|
||||||
<uri>`)
|
|
||||||
"###
|
"###
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -973,13 +967,9 @@ fn install_no_index_version() {
|
||||||
|
|
||||||
----- stderr -----
|
----- stderr -----
|
||||||
× No solution found when resolving dependencies:
|
× No solution found when resolving dependencies:
|
||||||
╰─▶ Because flask==3.0.0 was not found in the provided package locations
|
╰─▶ Because flask==3.0.0 was not found in the provided package locations and you require flask==3.0.0, we can conclude that the requirements are unsatisfiable.
|
||||||
and you require flask==3.0.0, we can conclude that the requirements
|
|
||||||
are unsatisfiable.
|
|
||||||
|
|
||||||
hint: Packages were unavailable because index lookups were disabled
|
hint: Packages were unavailable because index lookups were disabled and no additional package locations were provided (try: `--find-links <uri>`)
|
||||||
and no additional package locations were provided (try: `--find-links
|
|
||||||
<uri>`)
|
|
||||||
"###
|
"###
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -1372,10 +1362,7 @@ fn only_binary_requirements_txt() {
|
||||||
|
|
||||||
----- stderr -----
|
----- stderr -----
|
||||||
× No solution found when resolving dependencies:
|
× No solution found when resolving dependencies:
|
||||||
╰─▶ Because django-allauth==0.51.0 is unusable because no wheels
|
╰─▶ Because django-allauth==0.51.0 is unusable because no wheels are usable and building from source is disabled and you require django-allauth==0.51.0, we can conclude that the requirements are unsatisfiable.
|
||||||
are usable and building from source is disabled and you require
|
|
||||||
django-allauth==0.51.0, we can conclude that the requirements are
|
|
||||||
unsatisfiable.
|
|
||||||
"###
|
"###
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -2885,11 +2872,8 @@ requires-python = "<=3.8"
|
||||||
|
|
||||||
----- stderr -----
|
----- stderr -----
|
||||||
× No solution found when resolving dependencies:
|
× No solution found when resolving dependencies:
|
||||||
╰─▶ Because the current Python version (3.12.1) does not satisfy Python<=3.8
|
╰─▶ Because the current Python version (3.12.1) does not satisfy Python<=3.8 and example==0.0.0 depends on Python<=3.8, we can conclude that example==0.0.0 cannot be used.
|
||||||
and example==0.0.0 depends on Python<=3.8, we can conclude that
|
And because only example==0.0.0 is available and you require example, we can conclude that the requirements are unsatisfiable.
|
||||||
example==0.0.0 cannot be used.
|
|
||||||
And because only example==0.0.0 is available and you require example, we
|
|
||||||
can conclude that the requirements are unsatisfiable.
|
|
||||||
"###
|
"###
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -3108,12 +3092,9 @@ fn reinstall_no_index() {
|
||||||
|
|
||||||
----- stderr -----
|
----- stderr -----
|
||||||
× No solution found when resolving dependencies:
|
× No solution found when resolving dependencies:
|
||||||
╰─▶ Because anyio was not found in the provided package locations and you
|
╰─▶ Because anyio was not found in the provided package locations and you require anyio, we can conclude that the requirements are unsatisfiable.
|
||||||
require anyio, we can conclude that the requirements are unsatisfiable.
|
|
||||||
|
|
||||||
hint: Packages were unavailable because index lookups were disabled
|
hint: Packages were unavailable because index lookups were disabled and no additional package locations were provided (try: `--find-links <uri>`)
|
||||||
and no additional package locations were provided (try: `--find-links
|
|
||||||
<uri>`)
|
|
||||||
"###
|
"###
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -3229,12 +3210,8 @@ fn already_installed_dependent_editable() {
|
||||||
|
|
||||||
----- stderr -----
|
----- stderr -----
|
||||||
× No solution found when resolving dependencies:
|
× No solution found when resolving dependencies:
|
||||||
╰─▶ Because first-editable was not found in the provided package locations
|
╰─▶ Because first-editable was not found in the provided package locations and second-editable==0.0.1 depends on first-editable, we can conclude that second-editable==0.0.1 cannot be used.
|
||||||
and second-editable==0.0.1 depends on first-editable, we can conclude
|
And because only second-editable==0.0.1 is available and you require second-editable, we can conclude that the requirements are unsatisfiable.
|
||||||
that second-editable==0.0.1 cannot be used.
|
|
||||||
And because only second-editable==0.0.1 is available and you
|
|
||||||
require second-editable, we can conclude that the requirements are
|
|
||||||
unsatisfiable.
|
|
||||||
"###
|
"###
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -3329,11 +3306,8 @@ fn already_installed_local_path_dependent() {
|
||||||
|
|
||||||
----- stderr -----
|
----- stderr -----
|
||||||
× No solution found when resolving dependencies:
|
× No solution found when resolving dependencies:
|
||||||
╰─▶ Because first-local was not found in the provided package locations
|
╰─▶ Because first-local was not found in the provided package locations and second-local==0.1.0 depends on first-local, we can conclude that second-local==0.1.0 cannot be used.
|
||||||
and second-local==0.1.0 depends on first-local, we can conclude that
|
And because only second-local==0.1.0 is available and you require second-local, we can conclude that the requirements are unsatisfiable.
|
||||||
second-local==0.1.0 cannot be used.
|
|
||||||
And because only second-local==0.1.0 is available and you require
|
|
||||||
second-local, we can conclude that the requirements are unsatisfiable.
|
|
||||||
"###
|
"###
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -3372,11 +3346,8 @@ fn already_installed_local_path_dependent() {
|
||||||
|
|
||||||
----- stderr -----
|
----- stderr -----
|
||||||
× No solution found when resolving dependencies:
|
× No solution found when resolving dependencies:
|
||||||
╰─▶ Because first-local was not found in the provided package locations
|
╰─▶ Because first-local was not found in the provided package locations and second-local==0.1.0 depends on first-local, we can conclude that second-local==0.1.0 cannot be used.
|
||||||
and second-local==0.1.0 depends on first-local, we can conclude that
|
And because only second-local==0.1.0 is available and you require second-local, we can conclude that the requirements are unsatisfiable.
|
||||||
second-local==0.1.0 cannot be used.
|
|
||||||
And because only second-local==0.1.0 is available and you require
|
|
||||||
second-local, we can conclude that the requirements are unsatisfiable.
|
|
||||||
"###
|
"###
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -3447,13 +3418,9 @@ fn already_installed_local_version_of_remote_package() {
|
||||||
|
|
||||||
----- stderr -----
|
----- stderr -----
|
||||||
× No solution found when resolving dependencies:
|
× No solution found when resolving dependencies:
|
||||||
╰─▶ Because anyio==4.2.0 was not found in the provided package locations
|
╰─▶ Because anyio==4.2.0 was not found in the provided package locations and you require anyio==4.2.0, we can conclude that the requirements are unsatisfiable.
|
||||||
and you require anyio==4.2.0, we can conclude that the requirements
|
|
||||||
are unsatisfiable.
|
|
||||||
|
|
||||||
hint: Packages were unavailable because index lookups were disabled
|
hint: Packages were unavailable because index lookups were disabled and no additional package locations were provided (try: `--find-links <uri>`)
|
||||||
and no additional package locations were provided (try: `--find-links
|
|
||||||
<uri>`)
|
|
||||||
"###
|
"###
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -3468,9 +3435,7 @@ fn already_installed_local_version_of_remote_package() {
|
||||||
|
|
||||||
----- stderr -----
|
----- stderr -----
|
||||||
× No solution found when resolving dependencies:
|
× No solution found when resolving dependencies:
|
||||||
╰─▶ Because there is no version of anyio==4.3.0+foo and you require
|
╰─▶ Because there is no version of anyio==4.3.0+foo and you require anyio==4.3.0+foo, we can conclude that the requirements are unsatisfiable.
|
||||||
anyio==4.3.0+foo, we can conclude that the requirements are
|
|
||||||
unsatisfiable.
|
|
||||||
"###
|
"###
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -3681,13 +3646,9 @@ fn already_installed_remote_url() {
|
||||||
|
|
||||||
----- stderr -----
|
----- stderr -----
|
||||||
× No solution found when resolving dependencies:
|
× No solution found when resolving dependencies:
|
||||||
╰─▶ Because uv-public-pypackage was not found in the provided package
|
╰─▶ Because uv-public-pypackage was not found in the provided package locations and you require uv-public-pypackage, we can conclude that the requirements are unsatisfiable.
|
||||||
locations and you require uv-public-pypackage, we can conclude that the
|
|
||||||
requirements are unsatisfiable.
|
|
||||||
|
|
||||||
hint: Packages were unavailable because index lookups were disabled
|
hint: Packages were unavailable because index lookups were disabled and no additional package locations were provided (try: `--find-links <uri>`)
|
||||||
and no additional package locations were provided (try: `--find-links
|
|
||||||
<uri>`)
|
|
||||||
"###);
|
"###);
|
||||||
|
|
||||||
// Request installation again with just the full URL
|
// Request installation again with just the full URL
|
||||||
|
@ -3730,13 +3691,9 @@ fn already_installed_remote_url() {
|
||||||
|
|
||||||
----- stderr -----
|
----- stderr -----
|
||||||
× No solution found when resolving dependencies:
|
× No solution found when resolving dependencies:
|
||||||
╰─▶ Because uv-public-pypackage==0.2.0 was not found in the provided package
|
╰─▶ Because uv-public-pypackage==0.2.0 was not found in the provided package locations and you require uv-public-pypackage==0.2.0, we can conclude that the requirements are unsatisfiable.
|
||||||
locations and you require uv-public-pypackage==0.2.0, we can conclude
|
|
||||||
that the requirements are unsatisfiable.
|
|
||||||
|
|
||||||
hint: Packages were unavailable because index lookups were disabled
|
hint: Packages were unavailable because index lookups were disabled and no additional package locations were provided (try: `--find-links <uri>`)
|
||||||
and no additional package locations were provided (try: `--find-links
|
|
||||||
<uri>`)
|
|
||||||
"###);
|
"###);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -21,6 +21,7 @@ fn install_command(context: &TestContext) -> Command {
|
||||||
.arg("--exclude-newer")
|
.arg("--exclude-newer")
|
||||||
.arg(EXCLUDE_NEWER)
|
.arg(EXCLUDE_NEWER)
|
||||||
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
||||||
|
.env("UV_NO_WRAP", "1")
|
||||||
.current_dir(&context.temp_dir);
|
.current_dir(&context.temp_dir);
|
||||||
|
|
||||||
if cfg!(all(windows, debug_assertions)) {
|
if cfg!(all(windows, debug_assertions)) {
|
||||||
|
@ -42,6 +43,7 @@ fn list_empty() {
|
||||||
.arg("--cache-dir")
|
.arg("--cache-dir")
|
||||||
.arg(context.cache_dir.path())
|
.arg(context.cache_dir.path())
|
||||||
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
||||||
|
.env("UV_NO_WRAP", "1")
|
||||||
.current_dir(&context.temp_dir), @r###"
|
.current_dir(&context.temp_dir), @r###"
|
||||||
success: true
|
success: true
|
||||||
exit_code: 0
|
exit_code: 0
|
||||||
|
@ -84,6 +86,7 @@ fn list_single_no_editable() -> Result<()> {
|
||||||
.arg("--cache-dir")
|
.arg("--cache-dir")
|
||||||
.arg(context.cache_dir.path())
|
.arg(context.cache_dir.path())
|
||||||
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
||||||
|
.env("UV_NO_WRAP", "1")
|
||||||
.current_dir(&context.temp_dir), @r###"
|
.current_dir(&context.temp_dir), @r###"
|
||||||
success: true
|
success: true
|
||||||
exit_code: 0
|
exit_code: 0
|
||||||
|
@ -135,6 +138,7 @@ fn list_editable() {
|
||||||
.arg("--cache-dir")
|
.arg("--cache-dir")
|
||||||
.arg(context.cache_dir.path())
|
.arg(context.cache_dir.path())
|
||||||
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
||||||
|
.env("UV_NO_WRAP", "1")
|
||||||
.current_dir(&context.temp_dir), @r###"
|
.current_dir(&context.temp_dir), @r###"
|
||||||
success: true
|
success: true
|
||||||
exit_code: 0
|
exit_code: 0
|
||||||
|
@ -188,6 +192,7 @@ fn list_editable_only() {
|
||||||
.arg("--cache-dir")
|
.arg("--cache-dir")
|
||||||
.arg(context.cache_dir.path())
|
.arg(context.cache_dir.path())
|
||||||
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
||||||
|
.env("UV_NO_WRAP", "1")
|
||||||
.current_dir(&context.temp_dir), @r###"
|
.current_dir(&context.temp_dir), @r###"
|
||||||
success: true
|
success: true
|
||||||
exit_code: 0
|
exit_code: 0
|
||||||
|
@ -207,6 +212,7 @@ fn list_editable_only() {
|
||||||
.arg("--cache-dir")
|
.arg("--cache-dir")
|
||||||
.arg(context.cache_dir.path())
|
.arg(context.cache_dir.path())
|
||||||
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
||||||
|
.env("UV_NO_WRAP", "1")
|
||||||
.current_dir(&context.temp_dir), @r###"
|
.current_dir(&context.temp_dir), @r###"
|
||||||
success: true
|
success: true
|
||||||
exit_code: 0
|
exit_code: 0
|
||||||
|
@ -229,6 +235,7 @@ fn list_editable_only() {
|
||||||
.arg("--cache-dir")
|
.arg("--cache-dir")
|
||||||
.arg(context.cache_dir.path())
|
.arg(context.cache_dir.path())
|
||||||
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
||||||
|
.env("UV_NO_WRAP", "1")
|
||||||
.current_dir(&context.temp_dir), @r###"
|
.current_dir(&context.temp_dir), @r###"
|
||||||
success: true
|
success: true
|
||||||
exit_code: 0
|
exit_code: 0
|
||||||
|
@ -277,6 +284,7 @@ fn list_exclude() {
|
||||||
.arg("--cache-dir")
|
.arg("--cache-dir")
|
||||||
.arg(context.cache_dir.path())
|
.arg(context.cache_dir.path())
|
||||||
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
||||||
|
.env("UV_NO_WRAP", "1")
|
||||||
.current_dir(&context.temp_dir), @r###"
|
.current_dir(&context.temp_dir), @r###"
|
||||||
success: true
|
success: true
|
||||||
exit_code: 0
|
exit_code: 0
|
||||||
|
@ -300,6 +308,7 @@ fn list_exclude() {
|
||||||
.arg("--cache-dir")
|
.arg("--cache-dir")
|
||||||
.arg(context.cache_dir.path())
|
.arg(context.cache_dir.path())
|
||||||
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
||||||
|
.env("UV_NO_WRAP", "1")
|
||||||
.current_dir(&context.temp_dir), @r###"
|
.current_dir(&context.temp_dir), @r###"
|
||||||
success: true
|
success: true
|
||||||
exit_code: 0
|
exit_code: 0
|
||||||
|
@ -324,6 +333,7 @@ fn list_exclude() {
|
||||||
.arg("--cache-dir")
|
.arg("--cache-dir")
|
||||||
.arg(context.cache_dir.path())
|
.arg(context.cache_dir.path())
|
||||||
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
||||||
|
.env("UV_NO_WRAP", "1")
|
||||||
.current_dir(&context.temp_dir), @r###"
|
.current_dir(&context.temp_dir), @r###"
|
||||||
success: true
|
success: true
|
||||||
exit_code: 0
|
exit_code: 0
|
||||||
|
@ -377,6 +387,7 @@ fn list_format_json() {
|
||||||
.arg("--cache-dir")
|
.arg("--cache-dir")
|
||||||
.arg(context.cache_dir.path())
|
.arg(context.cache_dir.path())
|
||||||
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
||||||
|
.env("UV_NO_WRAP", "1")
|
||||||
.current_dir(&context.temp_dir), @r###"
|
.current_dir(&context.temp_dir), @r###"
|
||||||
success: true
|
success: true
|
||||||
exit_code: 0
|
exit_code: 0
|
||||||
|
@ -395,6 +406,7 @@ fn list_format_json() {
|
||||||
.arg("--cache-dir")
|
.arg("--cache-dir")
|
||||||
.arg(context.cache_dir.path())
|
.arg(context.cache_dir.path())
|
||||||
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
||||||
|
.env("UV_NO_WRAP", "1")
|
||||||
.current_dir(&context.temp_dir), @r###"
|
.current_dir(&context.temp_dir), @r###"
|
||||||
success: true
|
success: true
|
||||||
exit_code: 0
|
exit_code: 0
|
||||||
|
@ -413,6 +425,7 @@ fn list_format_json() {
|
||||||
.arg("--cache-dir")
|
.arg("--cache-dir")
|
||||||
.arg(context.cache_dir.path())
|
.arg(context.cache_dir.path())
|
||||||
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
||||||
|
.env("UV_NO_WRAP", "1")
|
||||||
.current_dir(&context.temp_dir), @r###"
|
.current_dir(&context.temp_dir), @r###"
|
||||||
success: true
|
success: true
|
||||||
exit_code: 0
|
exit_code: 0
|
||||||
|
@ -432,6 +445,7 @@ fn list_format_json() {
|
||||||
.arg("--cache-dir")
|
.arg("--cache-dir")
|
||||||
.arg(context.cache_dir.path())
|
.arg(context.cache_dir.path())
|
||||||
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
||||||
|
.env("UV_NO_WRAP", "1")
|
||||||
.current_dir(&context.temp_dir), @r###"
|
.current_dir(&context.temp_dir), @r###"
|
||||||
success: true
|
success: true
|
||||||
exit_code: 0
|
exit_code: 0
|
||||||
|
@ -479,6 +493,7 @@ fn list_format_freeze() {
|
||||||
.arg("--cache-dir")
|
.arg("--cache-dir")
|
||||||
.arg(context.cache_dir.path())
|
.arg(context.cache_dir.path())
|
||||||
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
||||||
|
.env("UV_NO_WRAP", "1")
|
||||||
.current_dir(&context.temp_dir), @r###"
|
.current_dir(&context.temp_dir), @r###"
|
||||||
success: true
|
success: true
|
||||||
exit_code: 0
|
exit_code: 0
|
||||||
|
@ -500,6 +515,7 @@ fn list_format_freeze() {
|
||||||
.arg("--cache-dir")
|
.arg("--cache-dir")
|
||||||
.arg(context.cache_dir.path())
|
.arg(context.cache_dir.path())
|
||||||
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
||||||
|
.env("UV_NO_WRAP", "1")
|
||||||
.current_dir(&context.temp_dir), @r###"
|
.current_dir(&context.temp_dir), @r###"
|
||||||
success: true
|
success: true
|
||||||
exit_code: 0
|
exit_code: 0
|
||||||
|
@ -518,6 +534,7 @@ fn list_format_freeze() {
|
||||||
.arg("--cache-dir")
|
.arg("--cache-dir")
|
||||||
.arg(context.cache_dir.path())
|
.arg(context.cache_dir.path())
|
||||||
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
||||||
|
.env("UV_NO_WRAP", "1")
|
||||||
.current_dir(&context.temp_dir), @r###"
|
.current_dir(&context.temp_dir), @r###"
|
||||||
success: true
|
success: true
|
||||||
exit_code: 0
|
exit_code: 0
|
||||||
|
@ -539,6 +556,7 @@ fn list_format_freeze() {
|
||||||
.arg("--cache-dir")
|
.arg("--cache-dir")
|
||||||
.arg(context.cache_dir.path())
|
.arg(context.cache_dir.path())
|
||||||
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
||||||
|
.env("UV_NO_WRAP", "1")
|
||||||
.current_dir(&context.temp_dir), @r###"
|
.current_dir(&context.temp_dir), @r###"
|
||||||
success: true
|
success: true
|
||||||
exit_code: 0
|
exit_code: 0
|
||||||
|
|
|
@ -24,6 +24,7 @@ fn install_command(context: &TestContext) -> Command {
|
||||||
.arg("--exclude-newer")
|
.arg("--exclude-newer")
|
||||||
.arg(EXCLUDE_NEWER)
|
.arg(EXCLUDE_NEWER)
|
||||||
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
||||||
|
.env("UV_NO_WRAP", "1")
|
||||||
.current_dir(&context.temp_dir);
|
.current_dir(&context.temp_dir);
|
||||||
|
|
||||||
if cfg!(all(windows, debug_assertions)) {
|
if cfg!(all(windows, debug_assertions)) {
|
||||||
|
@ -45,6 +46,7 @@ fn show_empty() {
|
||||||
.arg("--cache-dir")
|
.arg("--cache-dir")
|
||||||
.arg(context.cache_dir.path())
|
.arg(context.cache_dir.path())
|
||||||
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
||||||
|
.env("UV_NO_WRAP", "1")
|
||||||
.current_dir(&context.temp_dir), @r###"
|
.current_dir(&context.temp_dir), @r###"
|
||||||
success: false
|
success: false
|
||||||
exit_code: 1
|
exit_code: 1
|
||||||
|
@ -92,6 +94,7 @@ fn show_requires_multiple() -> Result<()> {
|
||||||
.arg("--cache-dir")
|
.arg("--cache-dir")
|
||||||
.arg(context.cache_dir.path())
|
.arg(context.cache_dir.path())
|
||||||
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
||||||
|
.env("UV_NO_WRAP", "1")
|
||||||
.current_dir(&context.temp_dir), @r###"
|
.current_dir(&context.temp_dir), @r###"
|
||||||
success: true
|
success: true
|
||||||
exit_code: 0
|
exit_code: 0
|
||||||
|
@ -149,6 +152,7 @@ fn show_python_version_marker() -> Result<()> {
|
||||||
.arg("--cache-dir")
|
.arg("--cache-dir")
|
||||||
.arg(context.cache_dir.path())
|
.arg(context.cache_dir.path())
|
||||||
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
||||||
|
.env("UV_NO_WRAP", "1")
|
||||||
.current_dir(&context.temp_dir), @r###"
|
.current_dir(&context.temp_dir), @r###"
|
||||||
success: true
|
success: true
|
||||||
exit_code: 0
|
exit_code: 0
|
||||||
|
@ -199,6 +203,7 @@ fn show_found_single_package() -> Result<()> {
|
||||||
.arg("--cache-dir")
|
.arg("--cache-dir")
|
||||||
.arg(context.cache_dir.path())
|
.arg(context.cache_dir.path())
|
||||||
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
||||||
|
.env("UV_NO_WRAP", "1")
|
||||||
.current_dir(&context.temp_dir), @r###"
|
.current_dir(&context.temp_dir), @r###"
|
||||||
success: true
|
success: true
|
||||||
exit_code: 0
|
exit_code: 0
|
||||||
|
@ -255,6 +260,7 @@ fn show_found_multiple_packages() -> Result<()> {
|
||||||
.arg("--cache-dir")
|
.arg("--cache-dir")
|
||||||
.arg(context.cache_dir.path())
|
.arg(context.cache_dir.path())
|
||||||
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
||||||
|
.env("UV_NO_WRAP", "1")
|
||||||
.current_dir(&context.temp_dir), @r###"
|
.current_dir(&context.temp_dir), @r###"
|
||||||
success: true
|
success: true
|
||||||
exit_code: 0
|
exit_code: 0
|
||||||
|
@ -318,6 +324,7 @@ fn show_found_one_out_of_three() -> Result<()> {
|
||||||
.arg("--cache-dir")
|
.arg("--cache-dir")
|
||||||
.arg(context.cache_dir.path())
|
.arg(context.cache_dir.path())
|
||||||
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
||||||
|
.env("UV_NO_WRAP", "1")
|
||||||
.current_dir(&context.temp_dir), @r###"
|
.current_dir(&context.temp_dir), @r###"
|
||||||
success: true
|
success: true
|
||||||
exit_code: 0
|
exit_code: 0
|
||||||
|
@ -377,6 +384,7 @@ fn show_found_one_out_of_two_quiet() -> Result<()> {
|
||||||
.arg("--cache-dir")
|
.arg("--cache-dir")
|
||||||
.arg(context.cache_dir.path())
|
.arg(context.cache_dir.path())
|
||||||
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
||||||
|
.env("UV_NO_WRAP", "1")
|
||||||
.current_dir(&context.temp_dir), @r###"
|
.current_dir(&context.temp_dir), @r###"
|
||||||
success: true
|
success: true
|
||||||
exit_code: 0
|
exit_code: 0
|
||||||
|
@ -429,6 +437,7 @@ fn show_empty_quiet() -> Result<()> {
|
||||||
.arg("--cache-dir")
|
.arg("--cache-dir")
|
||||||
.arg(context.cache_dir.path())
|
.arg(context.cache_dir.path())
|
||||||
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
||||||
|
.env("UV_NO_WRAP", "1")
|
||||||
.current_dir(&context.temp_dir), @r###"
|
.current_dir(&context.temp_dir), @r###"
|
||||||
success: false
|
success: false
|
||||||
exit_code: 1
|
exit_code: 1
|
||||||
|
@ -464,6 +473,7 @@ fn show_editable() -> Result<()> {
|
||||||
.arg("--cache-dir")
|
.arg("--cache-dir")
|
||||||
.arg(context.cache_dir.path())
|
.arg(context.cache_dir.path())
|
||||||
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
||||||
|
.env("UV_NO_WRAP", "1")
|
||||||
.current_dir(&context.temp_dir), @r###"
|
.current_dir(&context.temp_dir), @r###"
|
||||||
success: true
|
success: true
|
||||||
exit_code: 0
|
exit_code: 0
|
||||||
|
@ -526,6 +536,7 @@ fn show_required_by_multiple() -> Result<()> {
|
||||||
.arg("--cache-dir")
|
.arg("--cache-dir")
|
||||||
.arg(context.cache_dir.path())
|
.arg(context.cache_dir.path())
|
||||||
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
||||||
|
.env("UV_NO_WRAP", "1")
|
||||||
.current_dir(&context.temp_dir), @r###"
|
.current_dir(&context.temp_dir), @r###"
|
||||||
success: true
|
success: true
|
||||||
exit_code: 0
|
exit_code: 0
|
||||||
|
|
|
@ -41,6 +41,7 @@ fn command(context: &TestContext) -> Command {
|
||||||
.arg("--cache-dir")
|
.arg("--cache-dir")
|
||||||
.arg(context.cache_dir.path())
|
.arg(context.cache_dir.path())
|
||||||
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
||||||
|
.env("UV_NO_WRAP", "1")
|
||||||
.current_dir(&context.temp_dir);
|
.current_dir(&context.temp_dir);
|
||||||
|
|
||||||
if cfg!(all(windows, debug_assertions)) {
|
if cfg!(all(windows, debug_assertions)) {
|
||||||
|
@ -61,6 +62,7 @@ fn uninstall_command(context: &TestContext) -> Command {
|
||||||
.arg("--cache-dir")
|
.arg("--cache-dir")
|
||||||
.arg(context.cache_dir.path())
|
.arg(context.cache_dir.path())
|
||||||
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
||||||
|
.env("UV_NO_WRAP", "1")
|
||||||
.current_dir(&context.temp_dir);
|
.current_dir(&context.temp_dir);
|
||||||
|
|
||||||
if cfg!(all(windows, debug_assertions)) {
|
if cfg!(all(windows, debug_assertions)) {
|
||||||
|
@ -843,13 +845,9 @@ fn install_no_index() -> Result<()> {
|
||||||
|
|
||||||
----- stderr -----
|
----- stderr -----
|
||||||
× No solution found when resolving dependencies:
|
× No solution found when resolving dependencies:
|
||||||
╰─▶ Because markupsafe==2.1.3 was not found in the provided package
|
╰─▶ Because markupsafe==2.1.3 was not found in the provided package locations and you require markupsafe==2.1.3, we can conclude that the requirements are unsatisfiable.
|
||||||
locations and you require markupsafe==2.1.3, we can conclude that the
|
|
||||||
requirements are unsatisfiable.
|
|
||||||
|
|
||||||
hint: Packages were unavailable because index lookups were disabled
|
hint: Packages were unavailable because index lookups were disabled and no additional package locations were provided (try: `--find-links <uri>`)
|
||||||
and no additional package locations were provided (try: `--find-links
|
|
||||||
<uri>`)
|
|
||||||
"###
|
"###
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -900,13 +898,9 @@ fn install_no_index_cached() -> Result<()> {
|
||||||
|
|
||||||
----- stderr -----
|
----- stderr -----
|
||||||
× No solution found when resolving dependencies:
|
× No solution found when resolving dependencies:
|
||||||
╰─▶ Because markupsafe==2.1.3 was not found in the provided package
|
╰─▶ Because markupsafe==2.1.3 was not found in the provided package locations and you require markupsafe==2.1.3, we can conclude that the requirements are unsatisfiable.
|
||||||
locations and you require markupsafe==2.1.3, we can conclude that the
|
|
||||||
requirements are unsatisfiable.
|
|
||||||
|
|
||||||
hint: Packages were unavailable because index lookups were disabled
|
hint: Packages were unavailable because index lookups were disabled and no additional package locations were provided (try: `--find-links <uri>`)
|
||||||
and no additional package locations were provided (try: `--find-links
|
|
||||||
<uri>`)
|
|
||||||
"###
|
"###
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -1111,8 +1105,7 @@ fn mismatched_name() -> Result<()> {
|
||||||
|
|
||||||
----- stderr -----
|
----- stderr -----
|
||||||
× No solution found when resolving dependencies:
|
× No solution found when resolving dependencies:
|
||||||
╰─▶ Because foo was found, but has an invalid format and you require foo, we
|
╰─▶ Because foo was found, but has an invalid format and you require foo, we can conclude that the requirements are unsatisfiable.
|
||||||
can conclude that the requirements are unsatisfiable.
|
|
||||||
"###
|
"###
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -2573,8 +2566,7 @@ fn find_links_offline_no_match() -> Result<()> {
|
||||||
|
|
||||||
----- stderr -----
|
----- stderr -----
|
||||||
× No solution found when resolving dependencies:
|
× No solution found when resolving dependencies:
|
||||||
╰─▶ Because numpy was not found in the cache and you require numpy, we can
|
╰─▶ Because numpy was not found in the cache and you require numpy, we can conclude that the requirements are unsatisfiable.
|
||||||
conclude that the requirements are unsatisfiable.
|
|
||||||
|
|
||||||
hint: Packages were unavailable because the network was disabled
|
hint: Packages were unavailable because the network was disabled
|
||||||
"###
|
"###
|
||||||
|
@ -2600,8 +2592,7 @@ fn offline() -> Result<()> {
|
||||||
|
|
||||||
----- stderr -----
|
----- stderr -----
|
||||||
× No solution found when resolving dependencies:
|
× No solution found when resolving dependencies:
|
||||||
╰─▶ Because black==23.10.1 was not found in the cache and you require
|
╰─▶ Because black==23.10.1 was not found in the cache and you require black==23.10.1, we can conclude that the requirements are unsatisfiable.
|
||||||
black==23.10.1, we can conclude that the requirements are unsatisfiable.
|
|
||||||
|
|
||||||
hint: Packages were unavailable because the network was disabled
|
hint: Packages were unavailable because the network was disabled
|
||||||
"###
|
"###
|
||||||
|
@ -3032,11 +3023,8 @@ requires-python = "<=3.5"
|
||||||
|
|
||||||
----- stderr -----
|
----- stderr -----
|
||||||
× No solution found when resolving dependencies:
|
× No solution found when resolving dependencies:
|
||||||
╰─▶ Because the current Python version (3.12.1) does not satisfy Python<=3.5
|
╰─▶ Because the current Python version (3.12.1) does not satisfy Python<=3.5 and example==0.0.0 depends on Python<=3.5, we can conclude that example==0.0.0 cannot be used.
|
||||||
and example==0.0.0 depends on Python<=3.5, we can conclude that
|
And because only example==0.0.0 is available and you require example, we can conclude that the requirements are unsatisfiable.
|
||||||
example==0.0.0 cannot be used.
|
|
||||||
And because only example==0.0.0 is available and you require example, we
|
|
||||||
can conclude that the requirements are unsatisfiable.
|
|
||||||
"###
|
"###
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -19,6 +19,7 @@ fn uninstall_command(context: &TestContext) -> Command {
|
||||||
.arg("--cache-dir")
|
.arg("--cache-dir")
|
||||||
.arg(context.cache_dir.path())
|
.arg(context.cache_dir.path())
|
||||||
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
||||||
|
.env("UV_NO_WRAP", "1")
|
||||||
.current_dir(&context.temp_dir);
|
.current_dir(&context.temp_dir);
|
||||||
|
|
||||||
if cfg!(all(windows, debug_assertions)) {
|
if cfg!(all(windows, debug_assertions)) {
|
||||||
|
@ -39,6 +40,7 @@ fn sync_command(context: &TestContext) -> Command {
|
||||||
.arg("--cache-dir")
|
.arg("--cache-dir")
|
||||||
.arg(context.cache_dir.path())
|
.arg(context.cache_dir.path())
|
||||||
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
||||||
|
.env("UV_NO_WRAP", "1")
|
||||||
.current_dir(&context.temp_dir);
|
.current_dir(&context.temp_dir);
|
||||||
|
|
||||||
if cfg!(all(windows, debug_assertions)) {
|
if cfg!(all(windows, debug_assertions)) {
|
||||||
|
|
|
@ -482,6 +482,7 @@ fn verify_nested_pyvenv_cfg() -> Result<()> {
|
||||||
.arg("--python")
|
.arg("--python")
|
||||||
.arg("3.12")
|
.arg("3.12")
|
||||||
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
.env("VIRTUAL_ENV", context.venv.as_os_str())
|
||||||
|
.env("UV_NO_WRAP", "1")
|
||||||
.assert()
|
.assert()
|
||||||
.success();
|
.success();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue