Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 22 additions & 4 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -454,35 +454,48 @@ that release is not filtered out by this setting.

### `solver.min-release-age-exclude`

**Type**: `string`
**Type**: `array`

**Default**: *not set*

**Environment Variable**: `POETRY_SOLVER_MIN_RELEASE_AGE_EXCLUDE`

*Introduced in 2.4.0*

A comma-separated list of package names that should be excluded from the
A list of package names that should be excluded from the
[`solver.min-release-age`](#solvermin-release-age) filter.
When setting the value with `poetry config` or the environment variable,
provide a comma-separated list. When setting it directly in `poetry.toml`,
use a TOML array.

Versions of these packages will always be considered by the solver,
regardless of their upload age.

```bash
poetry config solver.min-release-age-exclude "my-package,other-package"
```

```toml title="poetry.toml"
[solver]
min-release-age-exclude = ["my-package", "other-package"]
```

### `solver.min-release-age-exclude-source`

**Type**: `string`
**Type**: `array`

**Default**: *not set*

**Environment Variable**: `POETRY_SOLVER_MIN_RELEASE_AGE_EXCLUDE_SOURCE`

*Introduced in 2.4.0*

A comma-separated list of source names or URLs that should be excluded from the
A list of source names or URLs that should be excluded from the
[`solver.min-release-age`](#solvermin-release-age) filter.
When setting the value with `poetry config` or the environment variable,
provide a comma-separated list. When setting it directly in `poetry.toml`,
use a TOML array.

All packages from these sources will always be considered by the solver,
regardless of their upload age.
Sources can be referenced by the name defined in `pyproject.toml` or by URL.
Expand All @@ -491,6 +504,11 @@ Sources can be referenced by the name defined in `pyproject.toml` or by URL.
poetry config solver.min-release-age-exclude-source "private-repo,https://example.com/simple/"
```

```toml title="poetry.toml"
[solver]
min-release-age-exclude-source = ["private-repo", "https://example.com/simple/"]
```

### `system-git-client`

**Type**: `boolean`
Expand Down
Loading