Skip to content

Commit a69b56a

Browse files
AlejandroFernandezLucespyansys-ci-botRobPasMue
authored
maint: Update PyVista (#288)
Co-authored-by: pyansys-ci-bot <[email protected]> Co-authored-by: Roberto Pastor Muela <[email protected]>
1 parent 117527b commit a69b56a

File tree

10 files changed

+22
-22
lines changed

10 files changed

+22
-22
lines changed

.github/workflows/ci_cd.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
- main
1111

1212
env:
13-
MAIN_PYTHON_VERSION: '3.12'
13+
MAIN_PYTHON_VERSION: '3.13'
1414
RESET_IMAGE_CACHE: 0
1515
PACKAGE_NAME: ansys-tools-visualization-interface
1616
DOCUMENTATION_CNAME: visualization-interface.tools.docs.pyansys.com
@@ -87,7 +87,7 @@ jobs:
8787
fail-fast: false
8888
matrix:
8989
os: [ubuntu-latest, windows-latest, macos-latest]
90-
python-version: ['3.10', '3.11', '3.12']
90+
python-version: ['3.10', '3.11', '3.12', '3.13']
9191
should-release:
9292
- ${{ github.event_name == 'push' && contains(github.ref, 'refs/tags') }}
9393
exclude:

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ venv/
131131
ENV/
132132
env.bak/
133133
venv.bak/
134-
134+
.ub_venv/
135135
# Spyder project settings
136136
.spyderproject
137137
.spyproject

doc/Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,4 @@ pdf:
3333

3434
# Build HTML files and generate examples as .py files
3535
html:
36-
pip uninstall vtk -y
37-
pip install --extra-index-url https://wheels.vtk.org vtk-osmesa
3836
@$(SPHINXBUILD) -M html "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
maint: Update PyVista

doc/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117

118118
# Intersphinx mapping
119119
intersphinx_mapping = {
120-
"python": ("https://docs.python.org/3.11", None),
120+
"python": ("https://docs.python.org/3.13", None),
121121
"numpy": ("https://numpy.org/doc/stable", None),
122122
"scipy": ("https://docs.scipy.org/doc/scipy/", None),
123123
"pyvista": ("https://docs.pyvista.org/version/stable", None),

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ classifiers = [
2020
"Programming Language :: Python :: 3.10",
2121
"Programming Language :: Python :: 3.11",
2222
"Programming Language :: Python :: 3.12",
23+
"Programming Language :: Python :: 3.13",
2324
]
2425
dependencies = [
2526
"pyvista >= 0.43.0,<1",
@@ -36,12 +37,14 @@ pyvistaqt = [
3637
]
3738
tests = [
3839
"pytest==8.3.5",
40+
"pyvista==0.45.0",
3941
"pytest-pyvista==0.1.9",
4042
"pytest-cov==6.1.1",
4143
"pyside6==6.9.0",
4244
]
4345

4446
doc = [
47+
"pyvista==0.45.0",
4548
"ansys-sphinx-theme==1.3.2",
4649
"jupyter_sphinx==0.5.3",
4750
"jupytext==1.17.1",

src/ansys/tools/visualization_interface/backends/pyvista/widgets/button.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@
3333
class Button(PlotterWidget):
3434
"""Provides the abstract class for implementing buttons in PyAnsys.
3535
36-
Notes
37-
-----
38-
This class wraps the PyVista ``add_checkbox_button_widget()`` method.
39-
4036
Parameters
4137
----------
4238
plotter : Plotter
@@ -46,6 +42,9 @@ class Button(PlotterWidget):
4642
dark_mode : bool, optional
4743
Whether to activate the dark mode or not.
4844
45+
Notes
46+
-----
47+
This class wraps the PyVista ``add_checkbox_button_widget()`` method.
4948
"""
5049

5150
def __init__(self, plotter: Plotter, button_config: tuple, dark_mode: bool = False) -> None:

src/ansys/tools/visualization_interface/backends/pyvista/widgets/ruler.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,15 @@ def __init__(self, plotter: Plotter, dark_mode: bool = False) -> None:
5656
def callback(self, state: bool) -> None:
5757
"""Remove or add the ruler widget actor upon click.
5858
59-
Notes
60-
-----
61-
This method provides a callback function for the ruler widet.
62-
It is called every time the ruler widget is clicked.
63-
6459
Parameters
6560
----------
6661
state : bool
6762
Whether the state of the button, which is inherited from PyVista, is ``True``.
6863
64+
Notes
65+
-----
66+
This method provides a callback function for the ruler widet.
67+
It is called every time the ruler widget is clicked.
6968
"""
7069
if not state and self._actor:
7170
self.plotter.remove_actor(self._actor)

src/ansys/tools/visualization_interface/backends/pyvista/widgets/screenshot.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,16 +56,16 @@ def __init__(self, plotter: Plotter, dark_mode: bool = False) -> None:
5656
def callback(self, state: bool) -> None:
5757
"""Remove or add the screenshot widget actor upon click.
5858
59-
Notes
60-
-----
61-
This method provides a callback function for the screenshot widget.
62-
It is called every time the screenshot widget is clicked.
63-
6459
Parameters
6560
----------
6661
state : bool
6762
Whether the state of the button, which is inherited from PyVista, is ``True``.
6863
64+
65+
Notes
66+
-----
67+
This method provides a callback function for the screenshot widget.
68+
It is called every time the screenshot widget is clicked.
6969
"""
7070
self.plotter._pl.scene.screenshot("screenshot.png")
7171

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
[tox]
22
description = Default tox environments list
33
envlist =
4-
style,{tests39,tests310,tests311,tests312}{,-coverage},doc
4+
style,{tests310,tests311,tests312,tests313}{,-coverage},doc
55
skip_missing_interpreters = true
66
isolated_build = true
77
isolated_build_env = build
88

99
[testenv]
1010
description = Checks for project unit tests and coverage (if desired)
1111
basepython =
12-
tests39: python3.9
1312
tests310: python3.10
1413
tests311: python3.11
1514
tests312: python3.12
15+
tests313: python3.13
1616
{style,tests,doc}: python3
1717
setenv =
1818
PYTHONUNBUFFERED = yes

0 commit comments

Comments
 (0)