makedeb-srcinfo 0.8.1

Rust + Python library for parsing makedeb-styled .SRCINFO files
Documentation
local UnitTests() = {
    name: "run-tests",
    kind: "pipeline",
    type: "docker",
    trigger: {branch: ["main"]},
    steps: [{
	name: "run-tests",
        image: "proget.makedeb.org/docker/makedeb/makedeb:ubuntu-jammy",
	commands: [
	    "sudo chown 'makedeb:makedeb' ./ -R",
	    ".drone/scripts/setup-pbmpr.sh",
	    "sudo apt install rustup -y",
	    "rustup install stable",
	    "cargo fmt --check",
	    "cargo clippy -- -D warnings",
	    "cargo test"
	]
    }]
};

local DeployCratesIO() = {
    name: "deploy-crates-io",
    kind: "pipeline",
    type: "docker",
    trigger: {branch: ["main"]},
    depends_on: ["run-tests"],
    steps: [{
	name: "deploy-crates-io",
        image: "proget.makedeb.org/docker/makedeb/makedeb:ubuntu-jammy",
	environment: {
	    CARGO_REGISTRY_TOKEN: {from_secret: "crates_api_key"}
	},
	commands: [
	    "sudo chown 'makedeb:makedeb' ./ -R",
	    ".drone/scripts/setup-pbmpr.sh",
	    "sudo apt install rustup -y",
	    "rustup install stable",
	    "cargo publish",
	]
    }]
};

local DeployPyPI() = {
    name: "deploy-pypi",
    kind: "pipeline",
    type: "docker",
    trigger: {branch: ["main"]},
    depends_on: ["run-tests"],
    steps: [{
	name: "deploy-crates-io",
        image: "ghcr.io/pyo3/maturin:main",
	environment: {
	    pypi_api_key: {from_secret: "pypi_api_key"}
	},
	commands: [
	    "maturin publish --all-features -F python -u '__token__' -p \"$${pypi_api_key}\""
	]
    }]
};

[
    UnitTests(),
    DeployCratesIO(),
    DeployPyPI()
]

// vim: set sw=4: