PyPI
kind: pypi
| source | condition | target |
|---|---|---|
✔ | ✔ | ✗ |
source
The PyPI "source" retrieves the latest version of a Python package from a PyPI-compatible registry matching a specific version filter. PEP 440 pre-release versions (alpha, beta, rc) are automatically normalized to semver for filtering.
condition
The PyPI "condition" tests that a specific version exists on a PyPI-compatible registry.
target
The PyPI "target" is not supported.
Parameter
| Name | Type | Description | Required |
|---|
Example
# updatecli.yaml
name: PyPI resource example
sources:
requests:
name: Get latest requests version from PyPI
kind: pypi
spec:
name: requests
flask:
name: Get latest flask version matching >=3.0
kind: pypi
spec:
name: flask
versionfilter:
kind: semver
pattern: ">=3.0.0"
conditions:
requests:
name: Test that requests version 2.31.0 exists on PyPI
kind: pypi
disablesourceinput: true
spec:
name: requests
version: 2.31.0
targets:
# Targets are not supported