python-ema-pytorch
LOW
maintainer Smoolak
0 votes
scanned 2026-11-01 18:01:05.785766
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: Smoolak <smoolak@gmail.com>
2
3
pkgname=python-ema-pytorch
4
pkgver=0.8.3
5
pkgrel=1
6
pkgdesc="Exponential moving averages for PyTorch models and tensor trees"
7
arch=('any')
8
url="https://github.com/lucidrains/ema-pytorch"
9
license=('MIT')
10
_commit=762c471c221c50b770c3ba10274e6b5b08d15a7b
11
depends=('python' 'python-numpy' 'python-pytorch>=2.0')
12
makedepends=('python-build' 'python-installer' 'python-hatchling')
13
checkdepends=('python-pytest')
14
source=("$pkgname-$pkgver.tar.gz::$url/archive/$_commit.tar.gz")
15
sha256sums=('c9135990a6e7c3312497b1849731cb3b068fecde088e08b83f3f53d16bf924a4')
16
17
build() {
18
cd "ema-pytorch-$_commit"
19
python -m build --wheel --no-isolation
20
}
21
22
check() {
23
cd "ema-pytorch-$_commit"
24
python -m pytest -v tests --junitxml="$srcdir/pytest-results.xml"
25
}
26
27
package() {
28
cd "ema-pytorch-$_commit"
29
python -m installer --destdir="$pkgdir" dist/*.whl
30
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
31
}
32
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-11-01 18:01:05 | Low | 1 |