python-ocp-viewer

LOW
maintainer greyltc 0 votes scanned 2026-09-18 17:28:51.851564
View on AUR
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

1pkgname=python-ocp-viewer
2_build_fragment="tag=v1.1.3"
3pkgver=1.1.3
4pkgrel=1
5pkgdesc="Standalone viewer for three-cad-viewer"
6arch=(any)
7url="https://github.com/bernhard-42/ocp_viewer"
8license=(Apache-2.0)
9depends=(
10ipython
11jupyter-console
12python-click
13python-ocp
14python-ocp-tessellate
15python-ocp-viewer-core
16python-orjson
17python-websockets
18python-flask
19python-numpy
20python-orjson
21python-pyperclip
22python-questionary
23python-threejs_materials
24python-flask-sock
25python-pygltflib
26python-pillow
27python-matplotlib
28python-webcolors
29python-yaml
30)
31checkdepends=(
32python-pytest
33python-build123d
34)
35makedepends=(
36git
37make
38npm
39vsce
40python-setuptools-scm
41python-build
42python-installer
43python-wheel
44yarn
45)
46optdepends=(
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
54source=("git+https://github.com/bernhard-42/ocp_viewer#${_build_fragment}")
55
56b2sums=('8e54ef0a504ad5801061c150ebf901e775992c01c28cff4a8fa910d89e9e473c85f783f3f8e0b1bbcd02c39ed3535a6e0ded54eb849372691339cb042f3a5da7')
57
58pkgver() {
59 cd ocp_viewer
60 git describe --tags | rev | cut -d- -f2- | rev | sed 's/-/.r/' | sed 's/^v//'
61}
62
63prepare() {
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
71build() {
72 cd ocp_viewer
73 #npm install --cache "${srcdir}/npm-cache"
74 #make dist
75 python -m build --wheel --no-isolation
76}
77
78check() {
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
100package() {
101 cd ocp_viewer
102 python -m installer --destdir="$pkgdir" dist/*.whl
103}
104

Scan history

Scanned at (UTC)SeverityRules
2026-09-18 17:28:51 Low 1

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion