Skip to content

Commit ade9560

Browse files
authored
docs: add Python versions supported (#611)
* docs: add Python versions supported * fix: vale * fix: title length * fix: gantt chart style * feat: add links * fix: ignore current version from checklink * docs: clarifying graph
1 parent feb5e4f commit ade9560

File tree

4 files changed

+70
-1
lines changed

4 files changed

+70
-1
lines changed

doc/source/conf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
extensions = [
3737
"sphinx_design",
3838
"sphinx_copybutton",
39+
"sphinxcontrib.mermaid",
3940
]
4041

4142
html_context = {
@@ -101,6 +102,7 @@
101102
# Ignore certain URLs
102103
linkcheck_ignore = [
103104
r"https://www.ansys.com/.*",
105+
rf"https://pypi.org/project/pyansys/{switcher_version}.*",
104106
]
105107

106108
# User agent

doc/source/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ it is now a collection of many Python packages for using Ansys products through
1313
user_guide
1414
api
1515
examples
16+
supported_versions
1617
tools/index
1718

1819
.. grid:: 3

doc/source/supported_versions.rst

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
.. _supported_versions:
2+
3+
Python versions
4+
===============
5+
6+
The PyAnsys ecosystem follows `SPEC-0`_ for Python version support,
7+
which is also similar to `NEP 29`_. This means:
8+
9+
* PyAnsys packages are expected to drop support for Python versions **3 years** after their
10+
initial release.
11+
12+
You can find below the timeline for the end of support for each Python version according to the SPEC-0 policy
13+
as well as a table showing the Python versions supported by each PyAnsys metapackage, which might slightly
14+
differ from the SPEC-0 policy but is always aligned with it.
15+
16+
* Grayed out Python versions are no longer supported by the current version of the PyAnsys metapackage.
17+
* Light blue Python versions are currently supported.
18+
* Dark blue Python versions are upcoming Python releases for which support is expected in the future.
19+
20+
.. mermaid::
21+
:caption: Python versions supported by SPEC-0 policy (red line) and PyAnsys Python versions supported (color coded)
22+
:alt: Python versions supported by SPEC-0 policy (red line) and PyAnsys Python versions supported (color coded)
23+
:align: center
24+
25+
gantt
26+
dateFormat YYYY-MM-DD
27+
axisFormat %Y-%m
28+
Python 3.7 :done, des1, 2018-06-27, 3y
29+
Python 3.8 :done, des2, 2019-10-14, 3y
30+
Python 3.9 :active, des3, 2020-10-05, 3y
31+
Python 3.10 :active, des4, 2021-10-04, 3y
32+
Python 3.11 :active, des5, 2022-10-24, 3y
33+
Python 3.12 :active, des6, 2023-10-02, 3y
34+
Python 3.13 : des7, 2024-10-01, 3y
35+
36+
Below you can find a list of the Python versions supported by each PyAnsys metapackage release:
37+
38+
+-----------------+----------------------------+
39+
| Package version | Python versions supported |
40+
+=================+============================+
41+
| `2023.1`_ | Python 3.7 - Python 3.10 |
42+
+-----------------+----------------------------+
43+
| `2023.2`_ | Python 3.8 - Python 3.11 |
44+
+-----------------+----------------------------+
45+
| `2024.1`_ | Python 3.9 - Python 3.12 |
46+
+-----------------+----------------------------+
47+
| `2024.2`_ | Python 3.9 - Python 3.12 |
48+
+-----------------+----------------------------+
49+
| `development`_ | Python 3.9 - Python 3.12 |
50+
+-----------------+----------------------------+
51+
52+
53+
.. LINKS
54+
.. _SPEC-0: https://scientific-python.org/specs/spec-0000/
55+
.. _NEP 29: https://numpy.org/neps/nep-0029-deprecation_policy.html
56+
.. _2023.1: https://pypi.org/project/pyansys/2023.1.3/
57+
.. _2023.2: https://pypi.org/project/pyansys/2023.2.11/
58+
.. _2024.1: https://pypi.org/project/pyansys/2024.1.8/
59+
.. _2024.2: https://pypi.org/project/pyansys/2024.2.0b2/
60+
.. _development: https://github.com/ansys/pyansys

pyproject.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,13 @@ all = [
9393
"pyansys-tools-versioning==0.5.0",
9494
"pyansys-tools-variableinterop==0.1.1",
9595
]
96-
doc = ["Sphinx==7.2.6", "ansys-sphinx-theme==0.16.6", "sphinx-copybutton==0.5.2", "sphinx-design==0.6.0"]
96+
doc = [
97+
"Sphinx==7.3.7",
98+
"ansys-sphinx-theme==0.16.6",
99+
"sphinx-copybutton==0.5.2",
100+
"sphinx-design==0.6.0",
101+
"sphinxcontrib-mermaid==0.9.2",
102+
]
97103

98104
[project.urls]
99105
Source = "https://github.com/ansys/pyansys"

0 commit comments

Comments
 (0)