Skip to content

Commit

Permalink
Merge branch 'main' into release/2024.2
Browse files Browse the repository at this point in the history
  • Loading branch information
RobPasMue committed Aug 19, 2024
2 parents aa2f03e + e65f7da commit 508639c
Show file tree
Hide file tree
Showing 11 changed files with 45 additions and 46 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
steps:
- name: PyAnsys Vulnerability Check (on PRs)
if: github.event_name == 'pull_request'
uses: ansys/actions/check-vulnerabilities@v6
uses: ansys/actions/check-vulnerabilities@v7
with:
python-version: ${{ env.MAIN_PYTHON_VERSION }}
python-package-name: ${{ env.PACKAGE_NAME }}
Expand All @@ -36,7 +36,7 @@ jobs:

- name: PyAnsys Vulnerability Check (any other case)
if: github.event_name != 'pull_request'
uses: ansys/actions/check-vulnerabilities@v6
uses: ansys/actions/check-vulnerabilities@v7
with:
python-version: ${{ env.MAIN_PYTHON_VERSION }}
python-package-name: ${{ env.PACKAGE_NAME }}
Expand All @@ -57,7 +57,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: PyAnsys documentation style checks
uses: ansys/actions/doc-style@v6
uses: ansys/actions/doc-style@v7
with:
token: ${{ secrets.GITHUB_TOKEN }}

Expand Down Expand Up @@ -127,7 +127,7 @@ jobs:

steps:
- name: Build wheelhouse and perform smoke test
uses: ansys/actions/build-wheelhouse@v6
uses: ansys/actions/build-wheelhouse@v7
with:
library-name: ${{ env.PACKAGE_NAME }}
operating-system: ${{ runner.os }}
Expand All @@ -153,7 +153,7 @@ jobs:

steps:
- name: Build documentation
uses: ansys/actions/doc-build@v6
uses: ansys/actions/doc-build@v7
with:
python-version: ${{ env.MAIN_PYTHON_VERSION }}
dependencies: "build-essential zip pandoc texlive-latex-extra latexmk texlive-pstricks"
Expand All @@ -165,7 +165,7 @@ jobs:
needs: [package]
steps:
- name: Deploy the latest documentation
uses: ansys/actions/doc-deploy-dev@v6
uses: ansys/actions/doc-deploy-dev@v7
with:
cname: ${{ env.DOCUMENTATION_CNAME }}
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -182,7 +182,7 @@ jobs:
needs: [doc-deploy-dev]
steps:
- name: "Deploy the dev documentation index"
uses: ansys/actions/doc-deploy-index@v6
uses: ansys/actions/doc-deploy-index@v7
with:
cname: ${{ env.DOCUMENTATION_CNAME }}/version/dev
index-name: pyansys-vdev
Expand All @@ -195,7 +195,7 @@ jobs:
needs: [docs-build, smoke-tests-core]
steps:
- name: Build library source and wheel artifacts
uses: ansys/actions/build-library@v6
uses: ansys/actions/build-library@v7
with:
library-name: ${{ env.PACKAGE_NAME }}
python-version: ${{ env.MAIN_PYTHON_VERSION }}
Expand All @@ -207,14 +207,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Release to PyPI repository
uses: ansys/actions/release-pypi-public@v6
uses: ansys/actions/release-pypi-public@v7
with:
library-name: ${{ env.PACKAGE_NAME }}
twine-username: __token__
twine-token: ${{ secrets.PYPI_TOKEN }}

- name: Release to GitHub
uses: ansys/actions/release-github@v6
uses: ansys/actions/release-github@v7
with:
library-name: ${{ env.PACKAGE_NAME }}
additional-artifacts: 'all-deps-Linux-3.9 all-deps-Linux-3.10 all-deps-Linux-3.11 all-deps-Linux-3.12 all-deps-Windows-3.9 all-deps-Windows-3.10 all-deps-Windows-3.11 all-deps-Windows-3.12 all-deps-macOS-3.9 all-deps-macOS-3.10 all-deps-macOS-3.11 all-deps-macOS-3.12'
Expand All @@ -225,7 +225,7 @@ jobs:
needs: [release]
steps:
- name: Deploy the latest release documentation
uses: ansys/actions/doc-deploy-stable@v6
uses: ansys/actions/doc-deploy-stable@v7
with:
cname: ${{ env.DOCUMENTATION_CNAME }}
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down Expand Up @@ -258,7 +258,7 @@ jobs:
echo "VERSION_MEILI=$VERSION_MEILI" >> $GITHUB_ENV
- name: "Deploy the latest documentation index"
uses: ansys/actions/doc-deploy-index@v6
uses: ansys/actions/doc-deploy-index@v7
with:
cname: ${{ env.DOCUMENTATION_CNAME }}/version/${{ env.VERSION }}
index-name: pyansys-v${{ env.VERSION_MEILI }}
Expand Down
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
repos:

- repo: https://github.com/psf/black
rev: 24.4.2
rev: 24.8.0
hooks:
- id: black

Expand All @@ -11,7 +11,7 @@ repos:
- id: isort

- repo: https://github.com/PyCQA/flake8
rev: 7.1.0
rev: 7.1.1
hooks:
- id: flake8

Expand Down Expand Up @@ -43,7 +43,7 @@ repos:
- id: check-github-workflows

- repo: https://github.com/ansys/pre-commit-hooks
rev: v0.3.1
rev: v0.4.3
hooks:
- id: add-license-headers
args:
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ the ``pyansys`` metapackage is downloading the wheelhouse archive from the
`Releases Page <https://github.com/ansys/pyansys/releases>`_ for your corresponding machine architecture.

Each wheelhouse archive contains all the Python wheels necessary to install the ``pyansys`` metapackage from
scratch on Windows, Linux, and MacOS from Python 3.9 to 3.11. You can install this on an isolated system with
scratch on Windows, Linux, and MacOS from Python 3.9 to 3.12. You can install this on an isolated system with
a fresh Python installation or on a virtual environment.

For example, on Linux with Python 3.9, unzip the wheelhouse archive and install it with the following
Expand Down
4 changes: 2 additions & 2 deletions doc/source/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ PyAnsys packages API reference

.. grid-item-card:: PyOptislang
:img-top: _static/thumbnails/pyoptislang.png
:link: https://optislang.docs.pyansys.com/version/0.7/api/index.html
:link: https://optislang.docs.pyansys.com/version/0.8/api/index.html
:text-align: center
:class-title: pyansys-card-title

Expand Down Expand Up @@ -233,7 +233,7 @@ PyAnsys packages API reference

.. grid-item-card:: PyWorkbench
:img-top: _static/thumbnails/intro.png
:link: https://workbench.docs.pyansys.com/version/0.4/api/index.html
:link: https://workbench.docs.pyansys.com/version/0.6/api/index.html
:text-align: center
:class-title: pyansys-card-title

Expand Down
10 changes: 2 additions & 8 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,7 @@
from datetime import datetime
import os

from ansys_sphinx_theme import (
ansys_favicon,
convert_version_to_pymeilisearch,
get_version_match,
pyansys_logo_black,
)
from ansys_sphinx_theme import ansys_favicon, convert_version_to_pymeilisearch, get_version_match
from sphinx.builders.latex import LaTeXBuilder

from pyansys import __version__ as pyansys_version
Expand All @@ -25,8 +20,6 @@
# get the PyAnsys version
release = version = pyansys_version

# use the default pyansys logo
html_logo = pyansys_logo_black
html_theme = "ansys_sphinx_theme"
html_short_title = html_title = "PyAnsys"

Expand All @@ -47,6 +40,7 @@
}

html_theme_options = {
"logo": "pyansys",
"github_url": "https://github.com/ansys/pyansys",
"show_prev_next": False,
"show_breadcrumbs": True,
Expand Down
4 changes: 2 additions & 2 deletions doc/source/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ PyAnsys packages examples

.. grid-item-card:: PyOptislang
:img-top: _static/thumbnails/pyoptislang.png
:link: https://optislang.docs.pyansys.com/version/0.7/examples/index.html
:link: https://optislang.docs.pyansys.com/version/0.8/examples/index.html
:text-align: center
:class-title: pyansys-card-title

Expand Down Expand Up @@ -222,7 +222,7 @@ PyAnsys packages examples

.. grid-item-card:: PyWorkbench
:img-top: _static/thumbnails/intro.png
:link: https://workbench.docs.pyansys.com/version/0.4/examples.html
:link: https://workbench.docs.pyansys.com/version/0.6/examples.html
:text-align: center
:class-title: pyansys-card-title

Expand Down
4 changes: 2 additions & 2 deletions doc/source/getting_started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ PyAnsys libraries fall into two categories:

Most PyAnsys packages require a local installation of Ansys. The version
of Ansys installed dictates the interface and features available to
you. However, PyAnsys libraries use `grpc`_ to communicate to the
you. However, PyAnsys libraries use `gRPC <grpc_>`_ to communicate to the
products, you can have the product installed remotely and connect to that
remote instance. This still requires that you need a copy of Ansys installed on
the host machine.
Expand Down Expand Up @@ -79,7 +79,7 @@ corresponding machine architecture.

Each wheelhouse archive contains all the Python wheels necessary to install
``pyansys`` metapackage from scratch on Windows, Linux, and MacOS from Python
3.9 to 3.11. You can install this on an isolated system with a fresh Python
3.9 to 3.12. You can install this on an isolated system with a fresh Python
installation or on a virtual environment.

For example, on Linux with Python 3.9, unzip the wheelhouse archive and install
Expand Down
4 changes: 2 additions & 2 deletions doc/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ it is now a collection of many Python packages for using Ansys products through

.. grid-item-card:: PyOptislang
:img-top: _static/thumbnails/pyoptislang.png
:link: https://optislang.docs.pyansys.com/version/0.7
:link: https://optislang.docs.pyansys.com/version/0.8
:text-align: center
:class-title: pyansys-card-title

Expand Down Expand Up @@ -301,7 +301,7 @@ it is now a collection of many Python packages for using Ansys products through

.. grid-item-card:: PyWorkbench
:img-top: _static/thumbnails/intro.png
:link: https://workbench.docs.pyansys.com/version/0.4
:link: https://workbench.docs.pyansys.com/version/0.6
:text-align: center
:class-title: pyansys-card-title

Expand Down
9 changes: 7 additions & 2 deletions doc/source/supported_versions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ differ from the SPEC-0 policy but is always aligned with it.
* Light blue Python versions are currently supported.
* Dark blue Python versions are upcoming Python releases for which support is expected in the future.

Some extra remarks:

* The length of the Python version boxes is indicative of the support duration according to the `SPEC-0`_ policy.
* The color of the Python version boxes is indicative of the PyAnsys metapackage current support.

.. mermaid::
:caption: Python versions supported by SPEC-0 policy (red line) and PyAnsys Python versions supported (color coded)
:alt: Python versions supported by SPEC-0 policy (red line) and PyAnsys Python versions supported (color coded)
Expand All @@ -27,7 +32,7 @@ differ from the SPEC-0 policy but is always aligned with it.
axisFormat %Y-%m
Python 3.7 :done, des1, 2018-06-27, 3y
Python 3.8 :done, des2, 2019-10-14, 3y
Python 3.9 :active, des3, 2020-10-05, 3y
Python 3.9 :done, des3, 2020-10-05, 3y
Python 3.10 :active, des4, 2021-10-04, 3y
Python 3.11 :active, des5, 2022-10-24, 3y
Python 3.12 :active, des6, 2023-10-02, 3y
Expand All @@ -46,7 +51,7 @@ Below you can find a list of the Python versions supported by each PyAnsys metap
+-----------------+----------------------------+
| `2024.2`_ | Python 3.9 - Python 3.12 |
+-----------------+----------------------------+
| `development`_ | Python 3.9 - Python 3.12 |
| `development`_ | Python 3.10 - Python 3.12 |
+-----------------+----------------------------+


Expand Down
4 changes: 2 additions & 2 deletions doc/source/user_guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ PyAnsys packages user guides

.. grid-item-card:: PyOptislang
:img-top: _static/thumbnails/pyoptislang.png
:link: https://optislang.docs.pyansys.com/version/0.7/user_guide/index.html
:link: https://optislang.docs.pyansys.com/version/0.8/user_guide/index.html
:text-align: center
:class-title: pyansys-card-title

Expand Down Expand Up @@ -225,7 +225,7 @@ PyAnsys packages user guides

.. grid-item-card:: PyWorkbench
:img-top: _static/thumbnails/intro.png
:link: https://workbench.docs.pyansys.com/version/0.4/user-guide.html
:link: https://workbench.docs.pyansys.com/version/0.6/user-guide.html
:text-align: center
:class-title: pyansys-card-title

Expand Down
20 changes: 10 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,28 +34,28 @@ dependencies = [
"ansys-dpf-post==0.8.0",
"ansys-dyna-core==0.4.15",
"ansys-dynamicreporting-core==0.6.0",
"ansys-edb-core==0.1.5",
"ansys-edb-core==0.1.6",
"ansys-fluent-core==0.22.0",
"ansys-geometry-core==0.6.6",
"ansys-hps-client==0.8.0",
"ansys-mapdl-core==0.68.4",
"ansys-math-core==0.1.5",
"ansys-mechanical-core==0.11.3",
"ansys-meshing-prime==0.6.1",
"ansys-mechanical-core==0.11.5",
"ansys-meshing-prime==0.6.2",
"ansys-modelcenter-workflow==0.1.1",
"ansys-motorcad-core==0.5.5",
"ansys-optislang-core==0.7.1",
"ansys-optislang-core==0.8.0",
"ansys-platform-instancemanagement==1.1.2",
"ansys-pyensight-core==0.8.8",
"ansys-rocky-core==0.2.0",
"ansys-seascape==0.2.0",
"ansys-sherlock-core==0.6.0",
"ansys-simai-core==0.2.2",
"ansys-sound-core==0.1.2",
"ansys-sound-core==0.1.3",
"ansys-systemcoupling-core==0.6.0",
"ansys-turbogrid-core==0.4.1",
"ansys-workbench-core==0.4.0",
"pyaedt==0.9.10",
"ansys-workbench-core==0.6.0",
"pyaedt==0.9.11",
"pyedb==0.23.0",
"pygranta==2024.2.0",
"pytwin==0.7.0",
Expand Down Expand Up @@ -94,10 +94,10 @@ all = [
"pyansys-tools-variableinterop==0.1.1",
]
doc = [
"Sphinx==7.4.7",
"ansys-sphinx-theme==0.16.6",
"Sphinx==8.0.2",
"ansys-sphinx-theme==1.0.5",
"sphinx-copybutton==0.5.2",
"sphinx-design==0.6.0",
"sphinx-design==0.6.1",
"sphinxcontrib-mermaid==0.9.2",
]

Expand Down

0 comments on commit 508639c

Please sign in to comment.