exclude_newer#
Helpers for applying the exclude_newer package policy.
Classes#
Resolve user-provided cutoff values into absolute POSIX timestamps. |
|
Resolved |
|
Resolved channel-specific |
|
Resolved |
Functions#
|
|
|
- class _CutoffParser#
Resolve user-provided cutoff values into absolute POSIX timestamps.
- static invalid(value: str) conda.exceptions.CondaValueError#
- class _ChannelSelector#
Resolved
channel_settingschannel selector.- URL_GLOB_CHARS#
- classmethod from_value(value: str) _ChannelSelector#
- matches(record: conda.models.records.PackageRecord | collections.abc.Mapping[str, Any]) bool#
- classmethod keys_for_record(record: conda.models.records.PackageRecord | collections.abc.Mapping[str, Any]) frozenset[str]#
- class _ChannelCutoff#
Resolved channel-specific
exclude_newercutoff.- SETTING_KEYS = ('exclude_newer', 'exclude-newer')#
- selector: _ChannelSelector#
- classmethod from_settings(settings: collections.abc.Mapping[str, Any], parser: _CutoffParser) _ChannelCutoff | None#
- matches(record: conda.models.records.PackageRecord | collections.abc.Mapping[str, Any]) bool#
- class ExcludeNewerPolicy#
Resolved
exclude_newerconfiguration.Cutoffs are stored as absolute POSIX timestamps. A package record is included when its
indexed_timestamportimestampis missing or older than the effective cutoff for that package name.- channel_cutoffs: tuple[_ChannelCutoff, ...] = ()#
- classmethod from_values(exclude_newer: str | int | float | None, exclude_newer_package: collections.abc.Mapping[str, str | bool | int | float | None] | None, channel_settings: collections.abc.Iterable[collections.abc.Mapping[str, Any]] | None = None, now: float | None = None) ExcludeNewerPolicy#
- _cutoff_for_record(record: conda.models.records.PackageRecord | collections.abc.Mapping[str, Any]) float | None#
- should_include(record: conda.models.records.PackageRecord | collections.abc.Mapping[str, Any]) bool#
- filter_records(records: collections.abc.Iterable[conda.models.records.PackageRecord]) tuple[conda.models.records.PackageRecord, ...]#
- excluded_records(records: collections.abc.Iterable[conda.models.records.PackageRecord]) tuple[conda.models.records.PackageRecord, ...]#
- _get_timestamp(record: conda.models.records.PackageRecord | collections.abc.Mapping[str, Any]) float | None#
- _get_value(record: conda.models.records.PackageRecord | collections.abc.Mapping[str, Any], key: str) Any#