python-ocp-viewer-core
LOW
maintainer greyltc
0 votes
scanned 2026-09-18 17:28:51.851564
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
pkgname=python-ocp-viewer-core
2
_build_fragment="tag=v1.0.13-1.0.4"
3
pkgver=1.0.13.1.0.4
4
pkgrel=1
5
pkgdesc="The shared half of the OCP viewer ecosystem"
6
arch=(any)
7
url="https://github.com/bernhard-42/ocp-viewer-core"
8
license=(Apache-2.0)
9
depends=(
10
ipython
11
jupyter-console
12
python-click
13
python-ocp
14
python-ocp-tessellate
15
python-orjson
16
python-websockets
17
python-flask
18
python-numpy
19
python-orjson
20
python-pyperclip
21
python-questionary
22
python-threejs_materials
23
python-flask-sock
24
python-pygltflib
25
python-pillow
26
python-matplotlib
27
python-webcolors
28
python-yaml
29
)
30
checkdepends=(
31
python-pytest
32
python-build123d
33
)
34
makedepends=(
35
git
36
make
37
npm
38
vsce
39
python-setuptools-scm
40
python-build
41
python-installer
42
python-wheel
43
yarn
44
)
45
optdepends=(
46
"python-cadquery: for working with cadquery"
47
"python-build123d: for working with build123d"
48
"vscode: this plugin works here"
49
"vscode-insiders: this plugin works here"
50
)
51
52
#install=python-ocp-vscode.install
53
54
source=("git+https://github.com/bernhard-42/ocp-viewer-core#${_build_fragment}")
55
56
b2sums=('0b9b8450e01d6b26d79fd22599ce92fde1509aa29d5247958c3d03ab63be535fe96cad3b8944b3b8dc8de2f8713d8ea26dda48ba9971a9a8d15ba82810d10bcc')
57
58
pkgver() {
59
cd ocp-viewer-core
60
git describe --tags | sed 's/-/./' | sed 's/^v//'
61
#git describe --tags | rev | cut -d- -f2- | rev | sed 's/-/.r/' | sed 's/^v//'
62
}
63
64
prepare() {
65
cd ocp-viewer-core
66
#sed '/^[ \t]*vsce package/s/^/#/' -i Makefile
67
#sed '/^[ \t]*@python -m build/s/^/#/' -i Makefile
68
#sed '/^[ \t]*@ls -l dist/s/^/#/' -i Makefile
69
#mkdir -p ocp_vscode/static/css
70
}
71
72
build() {
73
cd ocp-viewer-core
74
#npm install --cache "${srcdir}/npm-cache"
75
#make dist
76
python -m build --wheel --no-isolation
77
}
78
79
check() {
80
python -m venv --without-pip --system-site-packages --clear venv
81
source venv/bin/activate
82
83
cd ocp-viewer-core
84
python -m installer dist/*.whl
85
#
86
NATIVE_TESSELLATOR=0 OCP_VSCODE_PYTEST=1 python -m pytest -v -s tests/ --ignore=tests/test_show.py --ignore=tests/test_viewer_config.py
87
# #NATIVE_TESSELLATOR=1 OCP_VSCODE_PYTEST=1 python -m pytest -v -s tests/
88
# #--ignore=tests/test_show.py --ignore=tests/test_viewer_config.py
89
#
90
deactivate
91
}
92
93
package() {
94
cd ocp-viewer-core
95
python -m installer --destdir="$pkgdir" dist/*.whl
96
}
97
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-18 17:28:51 | Low | 1 |