python-confection-git
LOW
maintainer zitro
0 votes
scanned 2026-09-01 17:48:51.913915
Why flagged
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
Triggered rules
Low
Few votes, recently uploaded
zero_votes_recent
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
PKGBUILD
1
# Maintainer: zitro <0 at zitro dot id>
2
# Contributor: envolution
3
# Contributor: Chris Brendel <cdbrendel@gmail.com>
4
# shellcheck shell=bash disable=SC2034,SC2154
5
6
_origpkgname=confection
7
_pkgname=python-"${_origpkgname}"
8
pkgname="${_pkgname}"-git
9
pkgver=1.3.3.r1.gb3adaf4
10
pkgrel=1
11
pkgdesc="The sweetest config system for Python (git version)"
12
arch=('any') # Pure Python
13
url="https://github.com/explosion/confection"
14
license=('MIT')
15
16
# `typing_extensions` is upstream's only runtime requirement and it is
17
# conditioned on `python_version < "3.11"`, so on a current Arch it is no
18
# requirement at all. `pydantic` and `srsly` were dependencies of 0.1.5 and are
19
# not dependencies of this -- listing them would tie a package to two it no
20
# longer imports.
21
depends=('python')
22
makedepends=('git' 'python-build' 'python-installer' 'python-setuptools' 'python-wheel')
23
24
provides=("${_pkgname}=${pkgver}-${pkgrel}")
25
conflicts=("${_pkgname}")
26
27
source=("${_pkgname}::git+${url}.git")
28
sha256sums=('SKIP')
29
30
31
pkgver() {
32
cd "${srcdir}/${_pkgname}";
33
34
git describe --long --tags | sed -re 's/^release-v//g;s/([^-]*-g)/r\1/;s/-/./g';
35
}
36
37
build() {
38
cd "${srcdir}/${_pkgname}";
39
40
# `python setup.py install`, which the AUR package ran, was removed from
41
# setuptools. Upstream declares a `setuptools.build_meta` backend, so the
42
# ordinary PEP 517 path applies.
43
#
44
# Isolation is off because every build requirement is a system package, and a
45
# sandboxed build would fetch them from PyPI instead.
46
python -m build --wheel --no-isolation;
47
}
48
49
check() {
50
cd "${srcdir}/${_pkgname}";
51
52
local -- staged;
53
staged="$(mktemp -d)";
54
trap 'rm -rf "${staged}"' RETURN;
55
56
python -m installer --destdir="${staged}" dist/*.whl;
57
58
local -- sitedir;
59
sitedir="$(python -c 'import sysconfig; print(sysconfig.get_path("purelib"))')";
60
61
PYTHONPATH="${staged}${sitedir}" python -c 'import confection;';
62
}
63
64
package() {
65
cd "${srcdir}/${_pkgname}";
66
67
python -m installer --destdir="${pkgdir}" dist/*.whl;
68
69
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE";
70
}
71
# vim:set ts=2 sw=2 et:
72
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-01 17:48:51 | Low | 1 |