Skip to content

Commit

Permalink
Avoid encoding current version in test output
Browse files Browse the repository at this point in the history
  • Loading branch information
charliermarsh committed Jan 19, 2024
1 parent 3a1cd44 commit a17566e
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 33 deletions.
1 change: 1 addition & 0 deletions crates/puffin/tests/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
66 changes: 33 additions & 33 deletions crates/puffin/tests/pip_compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 -----
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 \
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a17566e

Please sign in to comment.