diff --git a/crates/puffin/tests/common/mod.rs b/crates/puffin/tests/common/mod.rs index 4f41a30684bd..a31ba455569e 100644 --- a/crates/puffin/tests/common/mod.rs +++ b/crates/puffin/tests/common/mod.rs @@ -12,6 +12,7 @@ pub(crate) const BIN_NAME: &str = "puffin"; pub(crate) const INSTA_FILTERS: &[(&str, &str)] = &[ (r"--cache-dir .*", "--cache-dir [CACHE_DIR]"), (r"(\d+\.)?\d+(ms|s)", "[TIME]"), + (r"v\d+\.\d+\.\d+", "v[VERSION]"), ]; /// Create a virtual environment named `.venv` in a temporary directory. diff --git a/crates/puffin/tests/pip_compile.rs b/crates/puffin/tests/pip_compile.rs index 980a19bf9429..e33f06f849ef 100644 --- a/crates/puffin/tests/pip_compile.rs +++ b/crates/puffin/tests/pip_compile.rs @@ -47,7 +47,7 @@ fn compile_requirements_in() -> Result<()> { success: true exit_code: 0 ----- stdout ----- - # This file was autogenerated by Puffin v0.0.1 via the following command: + # This file was autogenerated by Puffin v[VERSION] via the following command: # puffin pip compile requirements.in --cache-dir [CACHE_DIR] asgiref==3.7.2 # via django @@ -154,7 +154,7 @@ dependencies = [ success: true exit_code: 0 ----- stdout ----- - # This file was autogenerated by Puffin v0.0.1 via the following command: + # This file was autogenerated by Puffin v[VERSION] via the following command: # puffin pip compile pyproject.toml --cache-dir [CACHE_DIR] asgiref==3.7.2 # via django @@ -201,7 +201,7 @@ fn compile_constraints_txt() -> Result<()> { success: true exit_code: 0 ----- stdout ----- - # This file was autogenerated by Puffin v0.0.1 via the following command: + # This file was autogenerated by Puffin v[VERSION] via the following command: # puffin pip compile requirements.in --constraint constraints.txt --cache-dir [CACHE_DIR] asgiref==3.7.2 # via django @@ -247,7 +247,7 @@ fn compile_constraints_inline() -> Result<()> { success: true exit_code: 0 ----- stdout ----- - # This file was autogenerated by Puffin v0.0.1 via the following command: + # This file was autogenerated by Puffin v[VERSION] via the following command: # puffin pip compile requirements.in --cache-dir [CACHE_DIR] ----- stderr ----- @@ -293,7 +293,7 @@ fn compile_constraints_markers() -> Result<()> { success: true exit_code: 0 ----- stdout ----- - # This file was autogenerated by Puffin v0.0.1 via the following command: + # This file was autogenerated by Puffin v[VERSION] via the following command: # puffin pip compile requirements.in --constraint constraints.txt --cache-dir [CACHE_DIR] anyio==4.0.0 idna==3.4 @@ -348,7 +348,7 @@ optional-dependencies.foo = [ success: true exit_code: 0 ----- stdout ----- - # This file was autogenerated by Puffin v0.0.1 via the following command: + # This file was autogenerated by Puffin v[VERSION] via the following command: # puffin pip compile pyproject.toml --extra foo --cache-dir [CACHE_DIR] asgiref==3.7.2 # via django @@ -403,7 +403,7 @@ optional-dependencies."FrIeNdLy-._.-bArD" = [ success: true exit_code: 0 ----- stdout ----- - # This file was autogenerated by Puffin v0.0.1 via the following command: + # This file was autogenerated by Puffin v[VERSION] via the following command: # puffin pip compile pyproject.toml --extra FRiENDlY-...-_-BARd --cache-dir [CACHE_DIR] asgiref==3.7.2 # via django @@ -634,7 +634,7 @@ fn compile_python_312() -> Result<()> { success: true exit_code: 0 ----- stdout ----- - # This file was autogenerated by Puffin v0.0.1 via the following command: + # This file was autogenerated by Puffin v[VERSION] via the following command: # puffin pip compile requirements.in --python-version 3.12 --cache-dir [CACHE_DIR] black==23.10.1 click==8.1.7 @@ -803,7 +803,7 @@ fn compile_numpy_py38() -> Result<()> { success: true exit_code: 0 ----- stdout ----- - # This file was autogenerated by Puffin v0.0.1 via the following command: + # This file was autogenerated by Puffin v[VERSION] via the following command: # puffin pip compile requirements.in --cache-dir [CACHE_DIR] numpy==1.24.4 @@ -841,7 +841,7 @@ fn compile_wheel_url_dependency() -> Result<()> { success: true exit_code: 0 ----- stdout ----- - # This file was autogenerated by Puffin v0.0.1 via the following command: + # This file was autogenerated by Puffin v[VERSION] via the following command: # puffin pip compile requirements.in --cache-dir [CACHE_DIR] blinker==1.7.0 # via flask @@ -895,7 +895,7 @@ fn compile_sdist_url_dependency() -> Result<()> { success: true exit_code: 0 ----- stdout ----- - # This file was autogenerated by Puffin v0.0.1 via the following command: + # This file was autogenerated by Puffin v[VERSION] via the following command: # puffin pip compile requirements.in --cache-dir [CACHE_DIR] blinker==1.7.0 # via flask @@ -953,7 +953,7 @@ fn compile_git_https_dependency() -> Result<()> { success: true exit_code: 0 ----- stdout ----- - # This file was autogenerated by Puffin v0.0.1 via the following command: + # This file was autogenerated by Puffin v[VERSION] via the following command: # puffin pip compile requirements.in --cache-dir [CACHE_DIR] blinker==1.7.0 # via flask @@ -1006,7 +1006,7 @@ fn compile_git_branch_https_dependency() -> Result<()> { success: true exit_code: 0 ----- stdout ----- - # This file was autogenerated by Puffin v0.0.1 via the following command: + # This file was autogenerated by Puffin v[VERSION] via the following command: # puffin pip compile requirements.in --cache-dir [CACHE_DIR] click==8.1.7 # via flask @@ -1057,7 +1057,7 @@ fn compile_git_tag_https_dependency() -> Result<()> { success: true exit_code: 0 ----- stdout ----- - # This file was autogenerated by Puffin v0.0.1 via the following command: + # This file was autogenerated by Puffin v[VERSION] via the following command: # puffin pip compile requirements.in --cache-dir [CACHE_DIR] blinker==1.7.0 # via flask @@ -1112,7 +1112,7 @@ fn compile_git_long_commit_https_dependency() -> Result<()> { success: true exit_code: 0 ----- stdout ----- - # This file was autogenerated by Puffin v0.0.1 via the following command: + # This file was autogenerated by Puffin v[VERSION] via the following command: # puffin pip compile requirements.in --cache-dir [CACHE_DIR] click==8.1.7 # via flask @@ -1163,7 +1163,7 @@ fn compile_git_short_commit_https_dependency() -> Result<()> { success: true exit_code: 0 ----- stdout ----- - # This file was autogenerated by Puffin v0.0.1 via the following command: + # This file was autogenerated by Puffin v[VERSION] via the following command: # puffin pip compile requirements.in --cache-dir [CACHE_DIR] click==8.1.7 # via flask @@ -1215,7 +1215,7 @@ fn compile_git_refs_https_dependency() -> Result<()> { success: true exit_code: 0 ----- stdout ----- - # This file was autogenerated by Puffin v0.0.1 via the following command: + # This file was autogenerated by Puffin v[VERSION] via the following command: # puffin pip compile requirements.in --cache-dir [CACHE_DIR] blinker==1.7.0 # via flask @@ -1268,7 +1268,7 @@ fn compile_git_subdirectory_dependency() -> Result<()> { success: true exit_code: 0 ----- stdout ----- - # This file was autogenerated by Puffin v0.0.1 via the following command: + # This file was autogenerated by Puffin v[VERSION] via the following command: # puffin pip compile requirements.in --cache-dir [CACHE_DIR] example-pkg-a @ git+https://github.com/pypa/sample-namespace-packages.git@df7530eeb8fa0cb7dbb8ecb28363e8e36bfa2f45#subdirectory=pkg_resources/pkg_a @@ -1308,7 +1308,7 @@ fn compile_git_concurrent_access() -> Result<()> { success: true exit_code: 0 ----- stdout ----- - # This file was autogenerated by Puffin v0.0.1 via the following command: + # This file was autogenerated by Puffin v[VERSION] via the following command: # puffin pip compile requirements.in --cache-dir [CACHE_DIR] example-pkg-a @ git+https://github.com/pypa/sample-namespace-packages.git@df7530eeb8fa0cb7dbb8ecb28363e8e36bfa2f45#subdirectory=pkg_resources/pkg_a example-pkg-b @ git+https://github.com/pypa/sample-namespace-packages.git@df7530eeb8fa0cb7dbb8ecb28363e8e36bfa2f45#subdirectory=pkg_resources/pkg_b @@ -1386,7 +1386,7 @@ fn mixed_url_dependency() -> Result<()> { success: true exit_code: 0 ----- stdout ----- - # This file was autogenerated by Puffin v0.0.1 via the following command: + # This file was autogenerated by Puffin v[VERSION] via the following command: # puffin pip compile requirements.in --cache-dir [CACHE_DIR] blinker==1.7.0 # via flask @@ -1478,7 +1478,7 @@ fn compatible_direct_url_dependency() -> Result<()> { success: true exit_code: 0 ----- stdout ----- - # This file was autogenerated by Puffin v0.0.1 via the following command: + # This file was autogenerated by Puffin v[VERSION] via the following command: # puffin pip compile requirements.in --cache-dir [CACHE_DIR] werkzeug @ https://files.pythonhosted.org/packages/ff/1d/960bb4017c68674a1cb099534840f18d3def3ce44aed12b5ed8b78e0153e/Werkzeug-2.0.0-py3-none-any.whl @@ -1678,7 +1678,7 @@ fn allowed_transitive_url_dependency() -> Result<()> { success: true exit_code: 0 ----- stdout ----- - # This file was autogenerated by Puffin v0.0.1 via the following command: + # This file was autogenerated by Puffin v[VERSION] via the following command: # puffin pip compile requirements.in --constraint constraints.txt --cache-dir [CACHE_DIR] transitive-url-dependency @ https://github.com/astral-sh/ruff/files/13257454/transitive_url_dependency.zip werkzeug @ git+https://github.com/pallets/werkzeug@af160e0b6b7ddd81c22f1652c728ff5ac72d5c74 @@ -1726,7 +1726,7 @@ fn allowed_transitive_canonical_url_dependency() -> Result<()> { success: true exit_code: 0 ----- stdout ----- - # This file was autogenerated by Puffin v0.0.1 via the following command: + # This file was autogenerated by Puffin v[VERSION] via the following command: # puffin pip compile requirements.in --constraint constraints.txt --cache-dir [CACHE_DIR] transitive-url-dependency @ https://github.com/astral-sh/ruff/files/13257454/transitive_url_dependency.zip werkzeug @ git+https://github.com/pallets/werkzeug@af160e0b6b7ddd81c22f1652c728ff5ac72d5c74 @@ -1781,7 +1781,7 @@ optional-dependencies.bar = [ success: true exit_code: 0 ----- stdout ----- - # This file was autogenerated by Puffin v0.0.1 via the following command: + # This file was autogenerated by Puffin v[VERSION] via the following command: # puffin pip compile pyproject.toml --all-extras --cache-dir [CACHE_DIR] anyio==4.0.0 # via httpcore @@ -1987,7 +1987,7 @@ fn compile_exclude_newer() -> Result<()> { success: true exit_code: 0 ----- stdout ----- - # This file was autogenerated by Puffin v0.0.1 via the following command: + # This file was autogenerated by Puffin v[VERSION] via the following command: # puffin pip compile requirements.in --exclude-newer 2022-04-04T12:00:00Z --cache-dir [CACHE_DIR] tqdm==4.64.0 @@ -2014,7 +2014,7 @@ fn compile_exclude_newer() -> Result<()> { success: true exit_code: 0 ----- stdout ----- - # This file was autogenerated by Puffin v0.0.1 via the following command: + # This file was autogenerated by Puffin v[VERSION] via the following command: # puffin pip compile requirements.in --exclude-newer 2022-04-04 --cache-dir [CACHE_DIR] tqdm==4.64.0 @@ -2088,7 +2088,7 @@ fn compile_wheel_path_dependency() -> Result<()> { success: true exit_code: 0 ----- stdout ----- - # This file was autogenerated by Puffin v0.0.1 via the following command: + # This file was autogenerated by Puffin v[VERSION] via the following command: # puffin pip compile requirements.in --cache-dir [CACHE_DIR] blinker==1.7.0 # via flask @@ -2151,7 +2151,7 @@ fn compile_source_distribution_path_dependency() -> Result<()> { success: true exit_code: 0 ----- stdout ----- - # This file was autogenerated by Puffin v0.0.1 via the following command: + # This file was autogenerated by Puffin v[VERSION] via the following command: # puffin pip compile requirements.in --cache-dir [CACHE_DIR] blinker==1.7.0 # via flask @@ -2244,7 +2244,7 @@ fn compile_yanked_version_direct() -> Result<()> { success: true exit_code: 0 ----- stdout ----- - # This file was autogenerated by Puffin v0.0.1 via the following command: + # This file was autogenerated by Puffin v[VERSION] via the following command: # puffin pip compile requirements.in --cache-dir [CACHE_DIR] attrs==21.1.0 @@ -2326,7 +2326,7 @@ fn override_dependency() -> Result<()> { success: true exit_code: 0 ----- stdout ----- - # This file was autogenerated by Puffin v0.0.1 via the following command: + # This file was autogenerated by Puffin v[VERSION] via the following command: # puffin pip compile requirements.in --override overrides.txt --cache-dir [CACHE_DIR] blinker==1.7.0 # via flask @@ -2386,7 +2386,7 @@ fn override_multi_dependency() -> Result<()> { success: true exit_code: 0 ----- stdout ----- - # This file was autogenerated by Puffin v0.0.1 via the following command: + # This file was autogenerated by Puffin v[VERSION] via the following command: # puffin pip compile requirements.in --override overrides.txt --cache-dir [CACHE_DIR] black==23.10.1 click==8.1.7 @@ -2436,7 +2436,7 @@ fn missing_registry_extra() -> Result<()> { success: true exit_code: 0 ----- stdout ----- - # This file was autogenerated by Puffin v0.0.1 via the following command: + # This file was autogenerated by Puffin v[VERSION] via the following command: # puffin pip compile requirements.in --cache-dir [CACHE_DIR] black==23.10.1 click==8.1.7 @@ -2485,7 +2485,7 @@ fn missing_url_extra() -> Result<()> { success: true exit_code: 0 ----- stdout ----- - # This file was autogenerated by Puffin v0.0.1 via the following command: + # This file was autogenerated by Puffin v[VERSION] via the following command: # puffin pip compile requirements.in --cache-dir [CACHE_DIR] blinker==1.7.0 # via flask @@ -2539,7 +2539,7 @@ fn preserve_url() -> Result<()> { success: true exit_code: 0 ----- stdout ----- - # This file was autogenerated by Puffin v0.0.1 via the following command: + # This file was autogenerated by Puffin v[VERSION] via the following command: # puffin pip compile requirements.in --cache-dir [CACHE_DIR] blinker==1.7.0 # via flask @@ -2598,7 +2598,7 @@ fn preserve_env_var() -> Result<()> { success: true exit_code: 0 ----- stdout ----- - # This file was autogenerated by Puffin v0.0.1 via the following command: + # This file was autogenerated by Puffin v[VERSION] via the following command: # puffin pip compile requirements.in --cache-dir [CACHE_DIR] blinker==1.7.0 # via flask @@ -2659,7 +2659,7 @@ fn compile_editable() -> Result<()> { success: true exit_code: 0 ----- stdout ----- - # This file was autogenerated by Puffin v0.0.1 via the following command: + # This file was autogenerated by Puffin v[VERSION] via the following command: # puffin pip compile requirements.in --cache-dir [CACHE_DIR] boltons==23.1.1 -e ../../scripts/editable-installs/maturin_editable @@ -2803,7 +2803,7 @@ fn compile_html() -> Result<()> { success: true exit_code: 0 ----- stdout ----- - # This file was autogenerated by Puffin v0.0.1 via the following command: + # This file was autogenerated by Puffin v[VERSION] via the following command: # puffin pip compile requirements.in --cache-dir [CACHE_DIR] jinja2==3.1.2 markupsafe==2.1.3 @@ -2845,7 +2845,7 @@ fn trailing_slash() -> Result<()> { success: true exit_code: 0 ----- stdout ----- - # This file was autogenerated by Puffin v0.0.1 via the following command: + # This file was autogenerated by Puffin v[VERSION] via the following command: # puffin pip compile requirements.in --cache-dir [CACHE_DIR] jinja2==3.1.2 markupsafe==2.1.3 @@ -2874,7 +2874,7 @@ fn trailing_slash() -> Result<()> { success: true exit_code: 0 ----- stdout ----- - # This file was autogenerated by Puffin v0.0.1 via the following command: + # This file was autogenerated by Puffin v[VERSION] via the following command: # puffin pip compile requirements.in --cache-dir [CACHE_DIR] jinja2==3.1.2 markupsafe==2.1.3 @@ -2914,7 +2914,7 @@ fn compile_legacy_sdist_pep_517() -> Result<()> { success: true exit_code: 0 ----- stdout ----- - # This file was autogenerated by Puffin v0.0.1 via the following command: + # This file was autogenerated by Puffin v[VERSION] via the following command: # puffin pip compile requirements.in --cache-dir [CACHE_DIR] flake8 @ https://files.pythonhosted.org/packages/66/53/3ad4a3b74d609b3b9008a10075c40e7c8909eae60af53623c3888f7a529a/flake8-6.0.0.tar.gz mccabe==0.7.0 @@ -2959,7 +2959,7 @@ fn compile_legacy_sdist_setuptools() -> Result<()> { success: true exit_code: 0 ----- stdout ----- - # This file was autogenerated by Puffin v0.0.1 via the following command: + # This file was autogenerated by Puffin v[VERSION] via the following command: # puffin pip compile requirements.in --legacy-setup-py --cache-dir [CACHE_DIR] flake8 @ https://files.pythonhosted.org/packages/66/53/3ad4a3b74d609b3b9008a10075c40e7c8909eae60af53623c3888f7a529a/flake8-6.0.0.tar.gz mccabe==0.7.0 @@ -3004,7 +3004,7 @@ fn generate_hashes() -> Result<()> { success: true exit_code: 0 ----- stdout ----- - # This file was autogenerated by Puffin v0.0.1 via the following command: + # This file was autogenerated by Puffin v[VERSION] via the following command: # puffin pip compile requirements.in --generate-hashes --cache-dir [CACHE_DIR] blinker==1.7.0 \ --hash=sha256:c3f865d4d54db7abc53758a01601cf343fe55b84c1de4e3fa910e420b438d5b9 \ @@ -3140,7 +3140,7 @@ fn find_links_directory() -> Result<()> { success: true exit_code: 0 ----- stdout ----- - # This file was autogenerated by Puffin v0.0.1 via the following command: + # This file was autogenerated by Puffin v[VERSION] via the following command: # puffin pip compile requirements.in --find-links [PROJECT_ROOT]/scripts/wheels/ --cache-dir [CACHE_DIR] markupsafe==2.1.3 # via werkzeug @@ -3185,7 +3185,7 @@ fn find_links_url() -> Result<()> { success: true exit_code: 0 ----- stdout ----- - # This file was autogenerated by Puffin v0.0.1 via the following command: + # This file was autogenerated by Puffin v[VERSION] via the following command: # puffin pip compile requirements.in --no-index --find-links https://download.pytorch.org/whl/torch_stable.html --cache-dir [CACHE_DIR] tqdm==4.64.1