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