Skip to content

Commit

Permalink
change env variable name to PYAPP_PROJECT_FEATURES
Browse files Browse the repository at this point in the history
  • Loading branch information
trappitsch committed Feb 23, 2024
1 parent 4a50914 commit 90f6c9c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ passthrough = [
"PYAPP_PASS_LOCATION",
"PYAPP_PIP_ALLOW_CONFIG",
"PYAPP_PIP_EXTERNAL",
"PYAPP_PIP_OPTIONAL_DEPS",
"PYAPP_PROJECT_FEATURES",
"PYAPP_PIP_EXTRA_ARGS",
"PYAPP_PIP_VERSION",
"PYAPP_PROJECT_DEPENDENCY_FILE",
Expand Down
2 changes: 1 addition & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,7 @@ fn set_pip_version() {
}

fn set_pip_optional_deps() {
let variable = "PYAPP_PIP_OPTIONAL_DEPS";
let variable = "PYAPP_PROJECT_FEATURES";
set_runtime_variable(variable, env::var(variable).unwrap_or_default());
}

Expand Down
2 changes: 1 addition & 1 deletion docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ You may set the `PYAPP_PIP_ALLOW_CONFIG` option to `true` or `1` to allow the us

### Extra/optional dependencies

You may set the `PYAPP_PIP_OPTIONAL_DEPS` option to provide [extra/optional dependencies](https://packaging.python.org/en/latest/specifications/dependency-specifiers/#extras) that would usually be passed to `pip` within square brackets after the package name e.g. `foo[bar]`. In this example, you could set `PYAPP_PIP_OPTIONAL_DEPS` to `bar`.
You may set the `PYAPP_PROJECT_FEATURES` option to provide [extra/optional dependencies](https://packaging.python.org/en/latest/specifications/dependency-specifiers/#extras) that would usually be passed to `pip` within square brackets after the package name e.g. `foo[bar]`. In this example, you could set `PYAPP_PROJECT_FEATURES` to `bar`.

## Full isolation

Expand Down
2 changes: 1 addition & 1 deletion src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ pub fn exec_script_path() -> PathBuf {
}

pub fn pip_optional_deps() -> String {
env!("PYAPP_PIP_OPTIONAL_DEPS").into()
env!("PYAPP_PROJECT_FEATURES").into()
}

pub fn pip_extra_args() -> String {
Expand Down

0 comments on commit 90f6c9c

Please sign in to comment.