Skip to content

Commit

Permalink
Improve Compatibility documentation (#256)
Browse files Browse the repository at this point in the history
* Changing Installation section of README.md

* Move Compatibility section at the top of the Getting Started page

* Improve Install section

* Improve Compatibility section

* Add compatibility check-box to the issue template

* Update docs/source/getting_started/index.rst

Co-authored-by: Camille Bellot <80476446+cbellot000@users.noreply.github.com>

* Remove mention of Dockers for now

Co-authored-by: Camille Bellot <80476446+cbellot000@users.noreply.github.com>
  • Loading branch information
PProfizi and cbellot000 authored Jun 2, 2022
1 parent 8dafee0 commit 18bc234
Show file tree
Hide file tree
Showing 4 changed files with 138 additions and 45 deletions.
79 changes: 79 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
name: 🐞 Bug, problem, error
description: Fill a bug report here
title: "Bug located in ..."
labels: ["bug"]
assignees: [""]

body:

- type: markdown
attributes:
value: '# 🐞 **Problem**'

- type: checkboxes
id: new-bug
attributes:
label: Before submitting the issue
description: Please, make sure the following conditions are met
options:
- label: I have checked for [Compatibility](https://dpfdocs.pyansys.com/getting_started/index.html#compatibility) issues
required: true
- label: I have searched among the existing issues
required: true
- label: I am using a Python virtual environment
required: true

- type: textarea
id: bug-description
attributes:
label: Description of the bug
placeholder: Describe what bug you encountered and what should have happened
validations:
required: true

- type: textarea
id: steps-to-reproduce
attributes:
label: Steps To Reproduce
placeholder: Please write the steps in a list form
validations:
required: true

- type: markdown
attributes:
value: '# 🖥️ **System Information**'

- type: dropdown
id: os-name
attributes:
label: Which Operating System are you using?
multiple: false
options:
- 'Windows'
- 'MacOS'
- 'Linux'
validations:
required: true

- type: dropdown
id: python-version
attributes:
label: Which Python version are you using?
description: Run `python --version` to verify your Python version
multiple: false
options:
- '3.7'
- '3.8'
- '3.9'
- '3.10'
validations:
required: true

- type: textarea
id: installed-packages
attributes:
label: Installed packages
description: Run `python -m pip freeze` to list installed packages
placeholder: Paste the output of `python -m pip freeze` here
validations:
required: true
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,22 @@ detailed examples.

## Installation

Install this repository with:
DPF requires an Ansys installation and must be compatible with it.
Compatibility between PyDPF-Core and Ansys is documented
[here](https://dpfdocs.pyansys.com/getting_started/index.html#compatibility).

Starting with Ansys 2021R2, install this package with:

```
pip install ansys-dpf-core
```

For use with Ansys 2021R1, install this package with:

```
pip install ansys-dpf-core==0.2.1
```

You can also clone and install this repository with:

```
Expand Down
79 changes: 39 additions & 40 deletions docs/source/getting_started/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,45 @@
Getting Started
===============

Compatibility
~~~~~~~~~~~~~
DPF supports Windows 10 and CentOS 7 and later. For
more information, see `Ansys Platform Support <https://www.ansys.com/solutions/solutions-by-role/it-professionals/platform-support>`_.

***************************
Client Server Compatibility
***************************

The DPF server version depends on the Ansys installation version.
The PyDPF-Core client used must be compatible with it according to the table below.
Notice that starting with Ansys 2021 R2 one can use any PyDPF-Core >= 3.0.
Only Ansys 2021 R1 requires a specific version of PyDPF-Core (0.2.*).

Future development will always try to ensure backward compatibility from the client to the server.

The `ansys.grpc.dpf <https://pypi.org/project/ansys-grpc-dpf/>`_ module should also be synchronized
with the server version.

.. list-table:: Client-Server Compatibility
:widths: 35 35 35
:header-rows: 1

* - Ans.Dpf.Grpc.exe server version
- ansys.grpc.dpf python module version
- ansys.dpf.core python module version
* - 3.0 (Ansys 2022R1)
- 0.4.0
- >=0.4.0
* - 2.0 (Ansys 2021R2)
- 0.3.0
- >=0.3.0
* - 1.0 (Ansys 2021R1)
- 0.2.2
- 0.2.*

To start a server with Ans.Dpf.Grpc.bat or Ans.Dpf.Grpc.sh (used in the `start_local_server` function),
please make sure that the environment variable `AWP_ROOT{VER}` with (VER=212, 221, ...) is set.

Architecture
~~~~~~~~~~~~~

Expand Down Expand Up @@ -96,43 +135,3 @@ Optional package dependencies can be installed for specific usage:
- `Matplotlib <https://pypi.org/project/matplotlib/>`_ for chart plotting
- `PyVista <https://pypi.org/project/pyvista/>`_ for 3D plotting
- `Scooby <https://pypi.org/project/scooby/>`_ for dependency reports

Compatibility
~~~~~~~~~~~~~
DPF supports Windows 10 and CentOS 7 and later. For
more information, see `Ansys Platform Support <https://www.ansys.com/solutions/solutions-by-role/it-professionals/platform-support>`_.

Other platforms may be supported by using DPF within a
containerization ecosystem such as Docker or Kubernetes.
For more information, see :ref:`docker`.

***************************
Client Server Compatibility
***************************

The `ansys.grpc.dpf <https://pypi.org/project/ansys-grpc-dpf/>`_ module should be synchronized
with the server version as shown here:

.. list-table:: Client-Server Compatibility
:widths: 35 35 35
:header-rows: 1

* - Ans.Dpf.Grpc.exe server version
- ansys.grpc.dpf python module version
- ansys.dpf.core python module version
* - 3.0 (Ansys 2022R1)
- 0.4.0
- >=0.4.0
* - 2.0 (Ansys 2021R2)
- 0.3.0
- >=0.3.0
* - 1.0 (Ansys 2021R1)
- 0.2.2
- 0.2.*


Future development will try to ensure backward compatibility from the client to the server.


To start a server with Ans.Dpf.Grpc.bat or Ans.Dpf.Grpc.sh (used in the `start_local_server` function),
please make sure that the environment variable `AWP_ROOT{VER}` with (VER=212, 221, ...) is set.
13 changes: 9 additions & 4 deletions docs/source/getting_started/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,24 @@
*********************
Installation with PIP
*********************
Once Ansys 2021 R1 or later is installed, you can install the
DPF-Core module with:
Once Ansys 2021 R2 or later is installed, you can install PyDPF-Core with:

.. code::
pip install ansys-dpf-core
This installs the latest version of DPF-Core and all necessary
This installs the latest version of PyDPF-Core and all necessary
dependencies.

To use PyDPF-Core with Ansys 2021 R1, you must install PyDPF-Core with:

.. code::
pip install ansys-dpf-core<0.3.0
If you are unable to install this module on the host machine due to
network isolation, download the latest release wheel at `DPF-Core
network isolation, download the latest or a specific release wheel at `DPF-Core
GitHub <https://https://github.com/pyansys/DPF-Core>`_ or from PyPi at
`DPF-Core PyPi <https://pypi.org/project/ansys-dpf-core/>`_

Expand Down

0 comments on commit 18bc234

Please sign in to comment.