Expand description
Lifecycle status of one version, derived from CLE (ECMA-428) events.
Experimental: may change in a 0.x minor release.
Cle::status_for_semver applies the events of a Cle to one SemVer
version, and Cle::status_for_pypi to one PEP 440 version, as
docs/design/cle.md describes:
- A
withdrawnevent cancels the older event itseventIdnames, unless it is itself withdrawn: ECMA-428 7.9 ignores a withdrawn event “as if it never existed”. - An event with no
versions(and, forreleased, noversion) applies to the component as a whole. Otherwise it applies when one of its specifiers matches:{ version }by equality under the scheme,{ range }, parsed byVersRange::parse_cle(ECMA-428 Annex A.4), byVersRange::contains_semverorVersRange::contains_pypi. - Of the applying events of one type, the highest
idwins.
An event that cannot be evaluated (a vers type the scheme does not
evaluate, a malformed specifier, an unknown event type) is never treated as “does not
apply”: it is listed in LifecycleStatus::unevaluated. So “no end of
life recorded” and “end of life could not be evaluated” stay distinct.
Dates are reported, never compared with the clock: whether a date is in the past is for the caller to decide.
Structs§
- Lifecycle
Status - The lifecycle state of one version.
Enums§
- Unevaluated
- Why an event could not be evaluated.