MCPcopy Create free account
hub / github.com/archlinux/alpm / valid_pkgbuild_content

Function valid_pkgbuild_content

python-alpm/tests/conftest.py:58–99  ·  view source on GitHub ↗

Fixture providing valid PKGBUILD content.

()

Source from the content-addressed store, hash-verified

56
57@pytest.fixture
58def valid_pkgbuild_content() -> str:
59 """Fixture providing valid PKGBUILD content."""
60 return """
61#!/bin/bash
62# Disable unused variable warnings:
63# shellcheck disable=2034
64pkgname=(example)
65pkgver=0.1.0
66pkgrel=1
67epoch=1
68arch=(x86_64 aarch64)
69
70pkgdesc="A example with all pkgbase properties set."
71url="https://archlinux.org/"
72license=(MIT)
73changelog=changelog
74install=install.sh
75groups=(
76 group
77 group_2
78)
79backup=(etc/pacman.conf)
80options=("!lto")
81
82depends=(default_dep)
83optdepends=(default_optdep)
84provides=(default_provides)
85conflicts=(default_conflict)
86replaces=(default_replaces)
87
88# x86_64 specific stuff
89# This should show up in the test
90depends_x86_64=(arch_default_dep)
91optdepends_x86_64=(arch_default_optdep)
92provides_x86_64=(arch_default_provides)
93conflicts_x86_64=(arch_default_conflict)
94replaces_x86_64=(arch_default_replaces)
95
96package_example() {
97 echo "Building something"
98}
99"""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected