xarray-minimum-dependency-versions
Check that the minimum dependency versions follow xarray's policy rules.
Policy files
Before we can validate environments we need to create a policy file (named e.g. policy.yaml). This allows us to specify the conda channels, the platforms we want to check on, the actual support windows, any overrides, packages that are not supposed to be checked, and allowed violations.
These windows are checked according to xarray's policy, that is, a version can be required as soon as it is at least N months old. As opposed to a fixed support window this means we can never end up requiring a one-month old dependency (or being able to drop all existing versions) for packages with infrequent releases.
For example:
channels:
- conda-forge
platforms:
- noarch
- linux-64
policy:
# policy in months
# Example is xarray's values
packages:
python: 30
numpy: 18
default: 12
overrides:
# override the policy for specific packages
package3: 0.3.1
# these packages are completely ignored
exclude:
- package1
- package2
- ...
# these packages don't fail the CI, but will be printed in the report as a warning
ignored_violations:
- package4
If there are no packages with overrides, exclude, or ignored_violations,
you can set them to an empty mapping or sequence, respectively:
...
overrides: {}
exclude: []
ignored_violations: []
channels
The names of the conda channels to check. Usually, conda-forge.
platforms
The names of the platforms to check. Usually, noarch and linux-64 are sufficient.
policy
The main policy definition. packages is a mapping of package names to the number of months, with default specifying the default for packages that are not in packages.
Any package listed in ignored_violations will show a warning if the policy is violated, but will not count as an error, and it is possible to force a specific version using overrides.
Usage
With the policy file, we can check environment files. There are currently two kinds supported: conda environment definitions as yaml files, and pixi environments.
Check also minimum-versions --help and minimum-versions validate --help.
conda
To validate a conda environment file, run:
minimum-versions validate --policy ./policy.yaml path/to/env1.yaml
or with an explicit prefix
minimum-versions validate --policy ./policy.yaml conda:path/to/env1.yaml
We can also validate multiple files at the same time:
minimum-versions validate --policy .../policy.yaml .../env1.yaml .../env2.yaml
pixi
To validate pixi environments, we need to specify the manifest-path (usually either pyproject.toml or pixi.toml):
minimum-versions validate --policy ./policy.yaml --manifest-path pixi.toml pixi:test-env
where name in pixi:<name> is the name of the environment.
Again, we can validate multiple environments at once:
minimum-versions validate --policy ./policy.yaml --manifest-path pixi.toml pixi:test-env1 pixi:test-env2
time travel support
To check how validation would look at a certain point in time, use the --today option:
minimum-versions validate --policy ./policy.yaml ./env1.yaml --today 2025-10-01
Metadata
Release files for xarray-minimum-dependency-policy 2.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| xarray_minimum_dependency_policy-2.1.0.tar.gz | 11.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| xarray_minimum_dependency_policy-2.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 28.7 kB
Release files / xarray_minimum_dependency_policy-2.1.0.tar.gz
| Download URL | xarray_minimum_dependency_policy-2.1.0.tar.gz |
|---|---|
| Size | 11.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
86d6a15b53aae28bb6d5b4dbd1e801e8e2e6d848d33519fa7b12185453acd193
|
|
BLAKE2b-256 checksum How to use checksums |
3c8c957d33e0beb7696506edb9b0083f76a1787001d8dbd34d69ea98933bfc3f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 4, 2026.
Transparency logRelease files / xarray_minimum_dependency_policy-2.1.0-py3-none-any.whl
| Download URL | xarray_minimum_dependency_policy-2.1.0-py3-none-any.whl |
|---|---|
| Size | 17.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
99f8be957b3a5bef99c920082fc7c018ab63832585a05aa5db55405acdbb34b2
|
|
BLAKE2b-256 checksum How to use checksums |
bfaf5adbb82439695f48c48e9ae8e460751b56f289e379380f689b94bd2151c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 4, 2026.
Transparency log