Skip to content

Commit 0fbd06f

Browse files
docs: only use wheelhouses for all dependencies (#887)
Co-authored-by: pyansys-ci-bot <[email protected]>
1 parent 622d1f1 commit 0fbd06f

File tree

6 files changed

+33
-135
lines changed

6 files changed

+33
-135
lines changed

.github/workflows/ci_cd_night.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,8 @@ on:
1919
# From Monday to Friday (both included) at 00:00 UTC. Used for running only
2020
# the 'MAIN_PYTHON_VERSION'.
2121
- cron: '0 0 * * 1-5'
22-
# From Saturday to Sunday (both included) at 00:00 UTC. Used for running the
23-
# complete list of Python versions.
2422
- cron: '0 0 * * 6,0'
25-
23+
# From Saturday to Sunday (both included) at 00:00 UTC. Used for running the
2624
env:
2725
ANSYS_STK: 'ansys-stk'
2826
DOCUMENTATION_CNAME: 'stk.docs.pyansys.com'
@@ -58,7 +56,7 @@ jobs:
5856
matrix:
5957
os: [ubuntu-latest, windows-latest]
6058
python-version: ['3.10', '3.11', '3.12', '3.13']
61-
target: ['core', 'extensions', 'grpc', 'jupyter', 'migration', 'all']
59+
target: ['all']
6260
steps:
6361
- uses: ansys/actions/build-wheelhouse@21c9de9bee9692173780696d4a39964f20b9cfa3 # v10.1.5
6462
with:
@@ -248,9 +246,9 @@ jobs:
248246
"${STK_CONTAINER}" /bin/bash -c \
249247
"python -m pip install --group tests ."
250248
251-
# -- Tests
252-
253249
- name: "Run the extensions tests"
250+
# -- Tests
251+
254252
env:
255253
STK_CONTAINER: ${{ steps.docker.outputs.container }}
256254
run: |
@@ -313,9 +311,9 @@ jobs:
313311
"${STK_CONTAINER}" /bin/bash -c \
314312
"export COVERAGE_FILE=.cov/snippets && tox -e tests-core-snippets-graphics-cov-linux"
315313
316-
# -- Coverage
317-
318314
- name: "Combine all coverage results"
315+
# -- Coverage
316+
319317
if: ${{ matrix.python == env.MINIMUM_PYTHON_VERSION }}
320318
env:
321319
STK_CONTAINER: ${{ steps.docker.outputs.container }}

.github/workflows/ci_cd_pr.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ jobs:
170170
matrix:
171171
os: [ubuntu-latest, windows-latest]
172172
python-version: ['3.10', '3.11', '3.12', '3.13']
173-
target: ['core', 'extensions', 'grpc', 'jupyter', 'migration', 'all']
173+
target: ['all']
174174
steps:
175175
- uses: ansys/actions/build-wheelhouse@21c9de9bee9692173780696d4a39964f20b9cfa3 # v10.1.5
176176
with:
@@ -301,10 +301,10 @@ jobs:
301301
python -m pip install --upgrade pip tox && rm -rf .tox
302302
fi
303303
304-
# Render the documentation including or excluding different sections
305-
# according to the labels of the pull-request.
306-
307304
- name: "Build docs including the 'Examples' section"
305+
# Render the documentation including or excluding different sections
306+
# according to the labels of the pull-request.
307+
308308
id: build-doc-with-examples
309309
if: |
310310
contains(github.event.pull_request.labels.*.name, 'docs:examples') &&
@@ -351,11 +351,11 @@ jobs:
351351
"${STK_CONTAINER}" /bin/bash -c \
352352
"export BUILD_API=true BUILD_EXAMPLES=true && tox -e doc-clean,doc-links,doc-html"
353353
354-
# If required, combine partially rendered documentation with the nightly
355-
# build artifacts. Upload the generated documentation as an artifact in
356-
# the CI/CD session.
357-
358354
- name: "Download latest API docs"
355+
# If required, combine partially rendered documentation with the nightly
356+
# the CI/CD session.
357+
358+
# build artifacts. Upload the generated documentation as an artifact in
359359
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
360360
if: steps.build-doc-full.outcome == 'skipped'
361361
with:
@@ -536,9 +536,9 @@ jobs:
536536
"${STK_CONTAINER}" /bin/bash -c \
537537
"export COVERAGE_FILE=.cov/snippets && tox -e tests-core-snippets-graphics-cov-linux"
538538
539-
# -- Coverage
540-
541539
- name: "Combine all coverage results"
540+
# -- Coverage
541+
542542
if: ${{ matrix.python == env.MINIMUM_PYTHON_VERSION }}
543543
env:
544544
STK_CONTAINER: ${{ steps.docker.outputs.container }}

.github/workflows/ci_cd_release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ jobs:
103103
matrix:
104104
os: [ubuntu-latest, windows-latest]
105105
python-version: ['3.10', '3.11', '3.12', '3.13']
106-
target: ['core', 'extensions', 'grpc', 'jupyter', 'migration', 'all']
106+
target: ['all']
107107
steps:
108108
- uses: ansys/actions/build-wheelhouse@21c9de9bee9692173780696d4a39964f20b9cfa3 # v10.1.5
109109
with:
@@ -282,9 +282,9 @@ jobs:
282282
"${STK_CONTAINER}" /bin/bash -c \
283283
"python -m pip install --group tests ."
284284
285-
# -- Tests
286-
287285
- name: "Run the extensions tests"
286+
# -- Tests
287+
288288
env:
289289
STK_CONTAINER: ${{ steps.docker.outputs.container }}
290290
run: |
@@ -347,9 +347,9 @@ jobs:
347347
"${STK_CONTAINER}" /bin/bash -c \
348348
"export COVERAGE_FILE=.cov/snippets && tox -e tests-core-snippets-graphics-cov-linux"
349349
350-
# -- Coverage
351-
352350
- name: "Combine all coverage results"
351+
# -- Coverage
352+
353353
if: ${{ matrix.python == env.MINIMUM_PYTHON_VERSION }}
354354
env:
355355
STK_CONTAINER: ${{ steps.docker.outputs.container }}

doc/source/artifacts.rst

Lines changed: 10 additions & 111 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,17 @@ This topic assists you in downloading the different artifacts generated by the b
55
process. These artifacts include wheels, source tarballs, and documentation
66
files in various formats.
77

8+
.. seealso::
9+
10+
:doc:`Installation instructions <getting-started/install>`.
11+
812
Required artifacts
913
==================
1014

1115
These artifacts include the minimum software required for installing PySTK.
1216
Extra dependencies for visualization in IPython or performing data-analysis
13-
are not included.
17+
are not included. Those extra dependencies must be pulled separately
18+
from PyPI if needed.
1419

1520
.. jinja:: artifacts
1621

@@ -27,23 +32,17 @@ are not included.
2732
- `{{ source }} <_static/artifacts/{{ source }}>`_
2833
{% endfor %}
2934

30-
Extra artifacts
31-
===============
32-
33-
These artifacts include additional dependencies required for using some
34-
features, like gRPC connections, Jupyter widgets, and data-analysis.
35-
3635
All extra artifacts
37-
-------------------
36+
===================
3837

39-
These extra artifacts include all the dependencies for using any additional
40-
features:
38+
These artifacts include all dependencies required by all the
39+
features, like gRPC connections, Jupyter widgets, and data-analysis.
4140

4241
.. jinja:: wheelhouse
4342

4443
.. csv-table::
4544
:header-rows: 1
46-
:widths: 16, 28, 28, 28
45+
:widths: 16, 21, 21, 21, 21
4746

4847
:fas:`laptop` Platform,
4948
{%- for python in SUPPORTED_PYTHON_VERSIONS -%}
@@ -57,103 +56,3 @@ features:
5756
{%- if not loop.last -%},{%- endif -%}
5857
{% endfor %}
5958
{% endfor %}
60-
61-
Extensions
62-
----------
63-
64-
These extra artifacts provide a set of high-level workflows for automating
65-
common tasks with PySTK.
66-
67-
.. jinja:: wheelhouse
68-
69-
.. csv-table::
70-
:header-rows: 1
71-
:widths: 16, 28, 28, 28
72-
73-
:fas:`laptop` Platform,
74-
{%- for python in SUPPORTED_PYTHON_VERSIONS -%}
75-
:fab:`python` Python {{ python }}
76-
{%- if not loop.last -%},{%- endif -%}
77-
{% endfor %}
78-
{% for platform in SUPPORTED_PLATFORMS -%}
79-
:fab:`{{ platform }}` {{ platform | capitalize }},
80-
{%- for python in SUPPORTED_PYTHON_VERSIONS -%}
81-
`Download wheelhouse <{{ wheelhouse[platform][python]["extensions"] }}/{{ wheelhouse[platform][python]["extensions"].name }}.zip>`__
82-
{%- if not loop.last -%},{%- endif -%}
83-
{% endfor %}
84-
{% endfor %}
85-
86-
gRPC
87-
----
88-
89-
These extra artifacts include all the dependencies for using gRPC connections.
90-
91-
.. jinja:: wheelhouse
92-
93-
.. csv-table::
94-
:header-rows: 1
95-
:widths: 16, 28, 28, 28
96-
97-
:fas:`laptop` Platform,
98-
{%- for python in SUPPORTED_PYTHON_VERSIONS -%}
99-
:fab:`python` Python {{ python }}
100-
{%- if not loop.last -%},{%- endif -%}
101-
{% endfor %}
102-
{% for platform in SUPPORTED_PLATFORMS -%}
103-
:fab:`{{ platform }}` {{ platform | capitalize }},
104-
{%- for python in SUPPORTED_PYTHON_VERSIONS -%}
105-
`Download wheelhouse <{{ wheelhouse[platform][python]["grpc"] }}/{{ wheelhouse[platform][python]["grpc"].name }}.zip>`__
106-
{%- if not loop.last -%},{%- endif -%}
107-
{% endfor %}
108-
{% endfor %}
109-
110-
Jupyter
111-
-------
112-
113-
These extra artifacts include all the dependencies for using interactive
114-
visualization widgets within IPython environments, such as Jupyter Lab.
115-
116-
.. jinja:: wheelhouse
117-
118-
.. csv-table::
119-
:header-rows: 1
120-
:widths: 16, 28, 28, 28
121-
122-
:fas:`laptop` Platform,
123-
{%- for python in SUPPORTED_PYTHON_VERSIONS -%}
124-
:fab:`python` Python {{ python }}
125-
{%- if not loop.last -%},{%- endif -%}
126-
{% endfor %}
127-
{% for platform in SUPPORTED_PLATFORMS -%}
128-
:fab:`{{ platform }}` {{ platform | capitalize }},
129-
{%- for python in SUPPORTED_PYTHON_VERSIONS -%}
130-
`Download wheelhouse <{{ wheelhouse[platform][python]["jupyter"] }}/{{ wheelhouse[platform][python]["jupyter"].name }}.zip>`__
131-
{%- if not loop.last -%},{%- endif -%}
132-
{% endfor %}
133-
{% endfor %}
134-
135-
Migration
136-
---------
137-
138-
These extra artifacts include all the dependencies for migrating your existing
139-
Python code to PySTK. See the :ref:`migration guide <Migrate to PySTK>`.
140-
141-
.. jinja:: wheelhouse
142-
143-
.. csv-table::
144-
:header-rows: 1
145-
:widths: 16, 28, 28, 28
146-
147-
:fas:`laptop` Platform,
148-
{%- for python in SUPPORTED_PYTHON_VERSIONS -%}
149-
:fab:`python` Python {{ python }}
150-
{%- if not loop.last -%},{%- endif -%}
151-
{% endfor %}
152-
{% for platform in SUPPORTED_PLATFORMS -%}
153-
:fab:`{{ platform }}` {{ platform | capitalize }},
154-
{%- for python in SUPPORTED_PYTHON_VERSIONS -%}
155-
`Download wheelhouse <{{ wheelhouse[platform][python]["migration"] }}/{{ wheelhouse[platform][python]["migration"].name }}.zip>`__
156-
{%- if not loop.last -%},{%- endif -%}
157-
{% endfor %}
158-
{% endfor %}
159-
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Only use wheelhouses for all dependencies

doc/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ def read_optional_dependencies_from_pyproject():
371371

372372

373373
jinja_globals = {
374-
"SUPPORTED_PYTHON_VERSIONS": ["3.11", "3.12", "3.13"],
374+
"SUPPORTED_PYTHON_VERSIONS": ["3.10", "3.11", "3.12", "3.13"],
375375
"SUPPORTED_PLATFORMS": ["windows", "ubuntu"],
376376
"PYSTK_VERSION": version,
377377
"STK_VERSION": "13.0.0",

0 commit comments

Comments
 (0)