python-transfer-queue
CLEAN
maintainer Smoolak
0 votes
scanned 2026-09-21 00:26:32.109917
Triggered rules
Clean
AI review downgraded a static finding
llm_review
The static rules flagged this LOW, but an AI model (qwen/qwen3-235b-a22b-2507) reviewed the full PKGBUILD and judged it CLEAN (confidence 95%): The package builds from a verifiable source tarball hosted on the project's official GitHub repository, with a valid checksum; all dependencies are standard Python packages, and the build process is transparent and follows normal AUR practices.
1 higher static finding superseded - not the current verdict (shown for transparency)
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
pkgname=python-transfer-queue
3
pkgver=0.1.10
4
pkgrel=1
5
pkgdesc='Asynchronous streaming tensor data management for distributed training'
6
arch=('any')
7
url='https://github.com/Ascend/TransferQueue'
8
license=('Apache-2.0')
9
depends=(
10
'python' 'python-cloudpickle' 'python-hydra-core' 'python-msgspec'
11
'python-numpy' 'python-omegaconf' 'python-prometheus_client>=0.20.0'
12
'python-psutil' 'python-pytorch' 'python-pyzmq' 'python-ray'
13
'python-tensordict>=0.10.0'
14
# The upstream ray[default] requirement, using packaged providers.
15
'python-aiohttp' 'python-aiohttp-cors' 'python-colorful' 'python-grpcio'
16
'python-opencensus' 'python-opentelemetry-sdk'
17
'python-opentelemetry-exporter-prometheus' 'python-smart-open'
18
'python-virtualenv' 'py-spy'
19
)
20
makedepends=('python-build' 'python-installer' 'python-setuptools>=61' 'python-wheel')
21
checkdepends=('python-pytest>=7' 'python-pytest-asyncio>=0.20' 'python-pytest-mock')
22
optdepends=('python-netifaces: network interface discovery for Yuanrong storage')
23
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
24
sha256sums=('a5cede1751c278974c0911821ef6941fc382b7cf9fd8a7b9e3763706d68662f4')
25
26
prepare() {
27
cd "TransferQueue-$pkgver"
28
# Only install the public package, not top-level tests/tutorial namespaces.
29
printf '\n[tool.setuptools.packages.find]\ninclude = ["transfer_queue*"]\n' >> pyproject.toml
30
# The upstream fixture mocks an optional module that need not exist.
31
# create=True makes its attribute patch consistent with that premise.
32
sed -i 's/"transfer_queue.storage.clients.yuanrong_client.datasystem", ds_mock)/"transfer_queue.storage.clients.yuanrong_client.datasystem", ds_mock, create=True)/' \
33
tests/test_yuanrong_storage_client_e2e.py
34
}
35
36
build() {
37
cd "TransferQueue-$pkgver"
38
python -m build --wheel --no-isolation
39
}
40
41
check() {
42
cd "TransferQueue-$pkgver"
43
local site
44
site=$(python -c 'import sysconfig; print(sysconfig.get_path("purelib"))')
45
python -m installer --destdir="$srcdir/check-root" dist/*.whl
46
cp -a tests "$srcdir/check-tests"
47
cd "$srcdir"
48
# Real local Ray/ZMQ servers and the default SimpleStorage backend.
49
# Upstream's hardware/optional-provider skip markers remain unchanged;
50
# no CPU tests are deselected. No external Mooncake/Yuanrong cluster exists.
51
CUDA_VISIBLE_DEVICES= HIP_VISIBLE_DEVICES= ROCR_VISIBLE_DEVICES= \
52
TQ_TEST_BACKEND=SimpleStorage RAY_TMPDIR="$srcdir/ray" \
53
PYTHONPATH="$srcdir/check-root$site" \
54
python -m pytest -q -ra -o addopts='' --basetemp="$srcdir/pytest-tmp" \
55
--junitxml="$srcdir/pytest-results.xml" check-tests
56
}
57
58
package() {
59
cd "TransferQueue-$pkgver"
60
python -m installer --destdir="$pkgdir" dist/*.whl
61
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
62
}
63
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-21 00:26:32 | Clean | 2 |
| 2026-09-20 23:33:19 | Low | 1 |