Skip to content

Commit 8f5d222

Browse files
moe-adPProfizi
andauthored
chore: graphics target (#820)
* chore: graphics target * fix: try fixing doc gen error * fix: send error to stdout * retro: compatibility * fix: revert --------- Co-authored-by: Paul Profizi <[email protected]>
1 parent 5e67fe2 commit 8f5d222

File tree

7 files changed

+19
-8
lines changed

7 files changed

+19
-8
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ jobs:
101101
PACKAGE_NAME: ${{env.PACKAGE_NAME}}
102102
MODULE: ${{env.MODULE}}
103103
dpf-standalone-TOKEN: ${{secrets.DPF_PIPELINE}}
104-
install_extras: plotting
104+
install_extras: graphics
105105
# Upload the wheel artifact for only one of the OS as it is OS-agnostic
106106
wheel: ${{ (matrix.python-version == env.MAIN_PYTHON_VERSION) && (matrix.os == 'windows-latest') }}
107107
wheelhouse: true
@@ -172,7 +172,7 @@ jobs:
172172
PACKAGE_NAME: ${{env.PACKAGE_NAME}}
173173
MODULE: ${{env.MODULE}}
174174
dpf-standalone-TOKEN: ${{secrets.DPF_PIPELINE}}
175-
install_extras: plotting
175+
install_extras: graphics
176176
wheel: false
177177
standalone_suffix: ${{ matrix.ANSYS_VERSION == '241' && '.sp01' || '' }}
178178

.github/workflows/ci_release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ jobs:
8484
PACKAGE_NAME: ${{env.PACKAGE_NAME}}
8585
MODULE: ${{env.MODULE}}
8686
dpf-standalone-TOKEN: ${{secrets.DPF_PIPELINE}}
87-
install_extras: plotting
87+
install_extras: graphics
8888
# Upload the wheel artifact for only one of the OS as it is OS-agnostic
8989
wheel: ${{ (matrix.python-version == env.MAIN_PYTHON_VERSION) && (matrix.os == 'windows-latest') }}
9090
wheelhouse: true
@@ -153,7 +153,7 @@ jobs:
153153
PACKAGE_NAME: ${{env.PACKAGE_NAME}}
154154
MODULE: ${{env.MODULE}}
155155
dpf-standalone-TOKEN: ${{secrets.DPF_PIPELINE}}
156-
install_extras: plotting
156+
install_extras: graphics
157157
wheel: false
158158
extra-pip-args: ${{ env.extra }}
159159

.github/workflows/docs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ jobs:
100100
PACKAGE_NAME: ${{env.PACKAGE_NAME}}
101101
MODULE: ${{env.MODULE}}
102102
dpf-standalone-TOKEN: ${{secrets.DPF_PIPELINE}}
103-
install_extras: plotting
103+
install_extras: graphics
104104
wheel: false
105105
wheelhouse: false
106106
standalone_suffix: ${{ inputs.standalone_suffix }}
@@ -130,6 +130,7 @@ jobs:
130130
export TEMP=${{ runner.temp }}
131131
make clean
132132
echo "Making html doc..."
133+
make html
133134
make html $DEBUG_HTML >> log.txt 2>&1
134135
135136
- name: "Check for success"

.github/workflows/examples.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ jobs:
8484
PACKAGE_NAME: ${{ env.PACKAGE_NAME }}
8585
MODULE: ${{ env.MODULE }}
8686
dpf-standalone-TOKEN: ${{secrets.DPF_PIPELINE}}
87-
install_extras: plotting
87+
install_extras: graphics
8888
wheelhouse: false
8989
wheel: false
9090
standalone_suffix: ${{ inputs.standalone_suffix }}

doc/source/getting_started/install.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,13 @@ To install PyDPF-Post with its optional plotting functionalities, use this comma
3131

3232
.. code:: bash
3333
34-
pip install ansys-dpf-post[plotting]
34+
pip install ansys-dpf-post[graphics]
35+
36+
.. warning::
37+
38+
``pip install ansys-dpf-post[plotting]`` is equivalent to the previous command, however, the "plotting" target
39+
only remains valid for legacy reasons and will soon be deprecated. Users are encouraged to use the "graphics"
40+
target instead.
3541

3642
For more information about PyDPF-Post plotting capabilities, see :ref:`user_guide_plotting`.
3743

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ name = "ansys.dpf.post"
4141
Source = "https://github.com/ansys/pydpf-post"
4242

4343
[project.optional-dependencies]
44+
graphics = [
45+
"pyvista>=0.24.0",
46+
]
47+
4448
plotting = [
4549
"pyvista>=0.24.0",
4650
]

requirements/requirements_docs.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ pytest-sphinx==0.6.3
99
sphinx-notfound-page==1.1.0
1010
sphinx-copybutton==0.5.0
1111
sphinx-gallery==0.19.0
12-
ansys_sphinx_theme==1.3.3
12+
ansys_sphinx_theme==1.4.1
1313
sphinx-autodoc-typehints==3.0.1
1414
pyvista==0.45.2
1515
vtk==9.3.1

0 commit comments

Comments
 (0)