mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-29 05:38:00 +00:00
graphics/py-fury: update 0.9.0 → 0.10.0
Reported by: portscout
This commit is contained in:
parent
b7ad936058
commit
d93e8970ea
@ -1,6 +1,5 @@
|
||||
PORTNAME= fury
|
||||
DISTVERSION= 0.9.0
|
||||
PORTREVISION= 1
|
||||
DISTVERSION= 0.10.0
|
||||
CATEGORIES= graphics
|
||||
MASTER_SITES= PYPI
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
@ -13,21 +12,27 @@ LICENSE= BSD3CLAUSE
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
|
||||
PY_DEPENDS= ${PYTHON_PKGNAMEPREFIX}aiohttp>=3.8.4:www/py-aiohttp@${PY_FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}numpy>=1.7.1:math/py-numpy@${PY_FLAVOR} \
|
||||
${PYNUMPY} \
|
||||
${PYTHON_PKGNAMEPREFIX}packaging>0:devel/py-packaging@${PY_FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}pillow>=8.0.1:graphics/py-pillow@${PY_FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}pygltflib>=1.15.1:graphics/py-pygltflib@${PY_FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}scipy>=1.4.0:science/py-scipy@${PY_FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}pillow>=5.4.1:graphics/py-pillow@${PY_FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}pygltflib>=1.15.3:graphics/py-pygltflib@${PY_FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}scipy>=1.0:science/py-scipy@${PY_FLAVOR} \
|
||||
vtk${VTK_VER:R}>0:math/vtk${VTK_VER:R}
|
||||
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatch-vcs>0:devel/py-hatch-vcs@${PY_FLAVOR} \
|
||||
${PYTHON_PKGNAMEPREFIX}hatchling>=0:devel/py-hatchling@${PY_FLAVOR} \
|
||||
${PY_DEPENDS}
|
||||
RUN_DEPENDS= ${PY_DEPENDS}
|
||||
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}matplotlib>=1.5.3:math/py-matplotlib@${PY_FLAVOR}
|
||||
|
||||
USES= python
|
||||
USE_PYTHON= pep517 autoplist pytest # tests fail with signal 10, see https://github.com/fury-gl/fury/issues/795
|
||||
|
||||
TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
|
||||
|
||||
NO_ARCH= yes
|
||||
|
||||
test-simple:
|
||||
@${SETENV} ${TEST_ENV} ${PYTHON_CMD} ${FILESDIR}/test-earth_8k.py
|
||||
|
||||
.include <../../math/vtk9/Makefile.version>
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,3 +1,3 @@
|
||||
TIMESTAMP = 1686173980
|
||||
SHA256 (fury-0.9.0.tar.gz) = 8f92cbb94ca04b7ee78047d83decb3735334f9bdff8b5a29bb1152b706cd71a6
|
||||
SIZE (fury-0.9.0.tar.gz) = 68194837
|
||||
TIMESTAMP = 1709859909
|
||||
SHA256 (fury-0.10.0.tar.gz) = a55eae00a949304156c75fe26b6e0130c5d7b172593ea626399b8b9eda5c78c7
|
||||
SIZE (fury-0.10.0.tar.gz) = 68627262
|
||||
|
18
graphics/py-fury/files/test-earth_8k.py
Normal file
18
graphics/py-fury/files/test-earth_8k.py
Normal file
@ -0,0 +1,18 @@
|
||||
# from https://fury.gl/latest/auto_examples/01_introductory/viz_texture.html#sphx-glr-auto-examples-01-introductory-viz-texture-py
|
||||
|
||||
from fury import actor, io, window
|
||||
from fury.data import fetch_viz_textures, read_viz_textures
|
||||
|
||||
scene = window.Scene()
|
||||
|
||||
|
||||
fetch_viz_textures()
|
||||
filename = read_viz_textures('1_earth_8k.jpg')
|
||||
image = io.load_image(filename)
|
||||
|
||||
scene.add(actor.texture_on_sphere(image))
|
||||
|
||||
interactive = True
|
||||
if interactive:
|
||||
window.show(scene, size=(600, 600), reset_camera=False)
|
||||
window.record(scene, size=(900, 768), out_path='viz_texture.png')
|
Loading…
Reference in New Issue
Block a user