Something went wrong. Try again.
This repository has no description
Something went wrong. Try again.
1.1 kB · 51 lines
at ci
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152import "regexp"
#NullOrEmpty: { input: string | null if input == null { output: "" } if input != null { output: input }}
sources: { for _, dep in #values.uvDeps { "uv_\(dep.name)": { kind: "json" spec: { file: "https://pypi.org/pypi/\(dep.name)/json" engine: "dasel/v2" key: "info.version" } } }}
targets: { for _, dep in #values.uvDeps { "uv_\(dep.name)": { kind: "file" disablesourceinput: true dependson: ["source#uv_\(dep.name)"] spec: { #extras: (#NullOrEmpty & {input: dep.extras}).output #constraints: (#NullOrEmpty & {input: dep.constraints}).output file: "pyproject.toml" matchpattern: regexp.QuoteMeta("\(dep.name)\(#extras)\(#constraints)") replacepattern: "\(dep.name)\(#extras)>={{ source `uv_\(dep.name)` }}" } } } uvLock: { kind: "shell" disablesourceinput: true dependson: [for _, dep in #values.uvDeps {"source#uv_\(dep.name)"}] spec: command: "uv sync" changedif: { kind: "file/checksum" spec: files: ["uv.lock"] } }}