Skip to content

Commit 9b44598

Browse files
RobPasMuePipKat
andauthored
Adapting main README and docs (#46)
* WIP: Readme first version * Issue with badge * Removing navbar items for now * Generate weelhouse for all targets * README improvements * Missing link * Solving vale issues * Improvements to README - extra targets * Update README.rst Co-authored-by: Kathy Pippert <[email protected]> * Update README.rst Co-authored-by: Kathy Pippert <[email protected]> * Update README.rst Co-authored-by: Kathy Pippert <[email protected]> * Update README.rst Co-authored-by: Kathy Pippert <[email protected]> * Update README.rst Co-authored-by: Kathy Pippert <[email protected]> * Solving issues with links * Alphabetical reordering Co-authored-by: Kathy Pippert <[email protected]>
1 parent afb8506 commit 9b44598

File tree

4 files changed

+118
-118
lines changed

4 files changed

+118
-118
lines changed

.github/workflows/ci-build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,21 +110,21 @@ jobs:
110110
echo "::set-output name=PYANSYS_VERSION::$(python -c "from pyansys import __version__; print(__version__)")"
111111
id: version
112112

113-
- name: Generate wheelhouse
113+
- name: Generate wheelhouse (for all targets)
114114
run: |
115115
pip install wheel
116-
pip wheel . -w wheelhouse
116+
pip wheel .[all] -w wheelhouse
117117
118118
- name: Zip wheelhouse
119119
uses: vimtor/action-zip@v1
120120
with:
121121
files: wheelhouse
122-
dest: ${{ env.PACKAGE_NAME }}-v${{ steps.version.outputs.PYANSYS_VERSION }}-wheelhouse-${{ runner.os }}-${{ matrix.python-version }}-core.zip
122+
dest: ${{ env.PACKAGE_NAME }}-v${{ steps.version.outputs.PYANSYS_VERSION }}-wheelhouse-${{ runner.os }}-${{ matrix.python-version }}.zip
123123

124124
- name: Upload Wheelhouse
125125
uses: actions/upload-artifact@v3
126126
with:
127-
name: ${{ env.PACKAGE_NAME }}-v${{ steps.version.outputs.PYANSYS_VERSION }}-wheelhouse-${{ runner.os }}-${{ matrix.python-version }}-core
127+
name: ${{ env.PACKAGE_NAME }}-v${{ steps.version.outputs.PYANSYS_VERSION }}-wheelhouse-${{ runner.os }}-${{ matrix.python-version }}
128128
path: '*.zip'
129129
retention-days: 7
130130

README.rst

Lines changed: 112 additions & 103 deletions
Original file line numberDiff line numberDiff line change
@@ -1,153 +1,162 @@
1-
PyAnsys
2-
=======
3-
Welcome to the PyAnsys project. While this project originated as a single ``pyansys`` package,
4-
it is now a collection of many Python packages for using Ansys products through Python:
5-
6-
- `PyAEDT <https://aedtdocs.pyansys.com/>`__ : Pythonic interface to AEDT (Ansys Electronic Desktop)
7-
- `PyDPF-Core <https://dpfdocs.pyansys.com/>`__ : Pythonic interface to DPF (Data Processing Framework) for building more advanced and customized workflows
8-
- `PyDPF-Post <https://postdocs.pyansys.com/>`__ : Pythonic interface to DPF's postprocessing toolbox for manipulating and transforming simulation data
9-
- `PyMAPDL <https://mapdldocs.pyansys.com/>`__ : Pythonic interface to MAPDL.
10-
- `PyMAPDL Reader <https://readerdocs.pyansys.com/>`__: Pythonic interface to read legacy MAPDL result files (MAPDL 14.5 and later)
11-
- `PyFluent <https://fluentdocs.pyansys.com/>`__ : Pythonic interface to Ansys Fluent
12-
- `PyPIM <https://pypim.docs.pyansys.com/>`__: Pythonic interface to communicate with the PIM (Product Instance Management) API
13-
- `Granta MI BoM Analytics <https://grantami.docs.pyansys.com/>`__: Pythonic interface to Granta MI BoM Analytics services
1+
PyAnsys metapackage
2+
===================
3+
|pyansys| |python| |pypi| |GH-CI| |MIT| |black|
4+
5+
.. |pyansys| image:: https://img.shields.io/badge/Py-Ansys-ffc107.svg?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAABDklEQVQ4jWNgoDfg5mD8vE7q/3bpVyskbW0sMRUwofHD7Dh5OBkZGBgW7/3W2tZpa2tLQEOyOzeEsfumlK2tbVpaGj4N6jIs1lpsDAwMJ278sveMY2BgCA0NFRISwqkhyQ1q/Nyd3zg4OBgYGNjZ2ePi4rB5loGBhZnhxTLJ/9ulv26Q4uVk1NXV/f///////69du4Zdg78lx//t0v+3S88rFISInD59GqIH2esIJ8G9O2/XVwhjzpw5EAam1xkkBJn/bJX+v1365hxxuCAfH9+3b9/+////48cPuNehNsS7cDEzMTAwMMzb+Q2u4dOnT2vWrMHu9ZtzxP9vl/69RVpCkBlZ3N7enoDXBwEAAA+YYitOilMVAAAAAElFTkSuQmCC
6+
:target: https://docs.pyansys.com/
7+
:alt: PyAnsys
8+
9+
.. |python| image:: https://img.shields.io/pypi/pyversions/pyansys?logo=pypi
10+
:target: https://pypi.org/project/pyansys/
11+
:alt: Python
12+
13+
.. |pypi| image:: https://img.shields.io/pypi/v/pyansys.svg?logo=python&logoColor=white
14+
:target: https://pypi.org/project/pyansys/
15+
:alt: PyPI
16+
17+
.. |GH-CI| image:: https://github.com/pyansys/pyansys/actions/workflows/ci-build.yml/badge.svg
18+
:target: https://github.com/pyansys/pyansys/actions/workflows/ci-build.yml
19+
:alt: GH-CI
20+
21+
.. |MIT| image:: https://img.shields.io/badge/License-MIT-yellow.svg
22+
:target: https://opensource.org/licenses/MIT
23+
:alt: MIT
24+
25+
.. |black| image:: https://img.shields.io/badge/code%20style-black-000000.svg?style=flat
26+
:target: https://github.com/psf/black
27+
:alt: Black
28+
29+
Welcome to the PyAnsys metapackage repository. This project originated as a single ``pyansys`` package,
30+
which provides support to Ansys product releases. Compatibility of these packages amongst themselves
31+
and with the Ansys product release they are linked to is ensured.
32+
33+
At this moment, this package ensures the compatibility between the following PyAnsys packages:
34+
35+
- `PyAEDT <https://aedt.docs.pyansys.com/>`_ : Pythonic interface to AEDT (Ansys Electronic Desktop)
36+
- `PyDPF-Core <https://dpf.docs.pyansys.com/>`_ : Pythonic interface to DPF (Data Processing Framework) for building more advanced and customized workflows
37+
- `PyDPF-Post <https://post.docs.pyansys.com/>`_ : Pythonic interface to DPF's postprocessing toolbox for manipulating and transforming simulation data
38+
- `PyFluent <https://fluent.docs.pyansys.com/>`_ : Pythonic interface to Ansys Fluent
39+
- `PyFluent-Parametric <https://fluentparametric.docs.pyansys.com/>`_ : Pythonic interface to Ansys Fluent parametric workflows
40+
- `PyFluent-Visualization <https://fluentvisualization.docs.pyansys.com/>`_ : Pythonic interface to visualize Ansys Fluent simulations using Python
41+
- `PyMAPDL <https://mapdl.docs.pyansys.com/>`_ : Pythonic interface to MAPDL.
42+
- `PyMAPDL Reader <https://reader.docs.pyansys.com/>`_: Pythonic interface to read legacy MAPDL result files (MAPDL 14.5 and later)
43+
- `PyPIM <https://pypim.docs.pyansys.com/>`_: Pythonic interface to communicate with the PIM (Product Instance Management) API
44+
- `Granta MI BoM Analytics <https://grantami.docs.pyansys.com/>`_: Pythonic interface to Granta MI BoM Analytics services
1445
- `Shared Components <https://shared.docs.pyansys.com/>`_: Shared software components to enable package interoperability and minimize maintenance
1546

1647
Much effort is underway to continue expanding and developing packages in the
1748
`PyAnsys GitHub <https://github.com/pyansys/>`__ account. On the ``Issues`` page
1849
for each package, you can post issues and request new features. You can also email
1950
questions to `PyAnsys Support <mailto:[email protected]>`_.
2051

21-
Package installation
22-
--------------------
23-
You must install the applicable packages for an Ansys product on your local machine.
24-
While there are multiple ways to install a Python package, using `pip
25-
<https://pypi.org/project/pip/>`_, the package installer for Python, is recommended.
26-
For your convenience, this section provides ``pip`` commands for downloading
27-
and installing the most recent PyAnsys packages and links to comprehensive resources.
28-
29-
PyAEDT
30-
~~~~~~
31-
32-
.. code::
33-
34-
pip install pyaedt
35-
36-
37-
- `PyAEDT Documentation <https://aedtdocs.pyansys.com/>`_
38-
- `PyAEDT PyPI <https://pypi.org/project/pyaedt/>`_
39-
- `PyAEDT GitHub <https://github.com/pyansys/PyAEDT/>`_
40-
41-
42-
PyDPF-Core
43-
~~~~~~~~~~
44-
45-
.. code::
52+
By default, the PyAnsys package installs these core modules:
4653

47-
pip install ansys-dpf-core
54+
- `PyAEDT`_
55+
- `PyDPF-Core`_
56+
- `PyDPF-Post`_
57+
- `PyFluent`_
58+
- `PyMAPDL`_
59+
- `PyPIM`_
60+
- `Granta MI BoM Analytics`_
61+
- `Shared Components`_
4862

63+
However, the ``pyansys`` package also contains certain extra targets, which can be installed upon request:
4964

50-
- `DPF-Core Documentation <https://dpfdocs.pyansys.com/>`__
51-
- `DPF-Core PyPI <https://pypi.org/project/ansys-dpf-core/>`__
52-
- `DPF-Core GitHub <https://github.com/pyansys/pydpf-core>`__
65+
- **mapdl-all**: this target installs the core packages and `PyMAPDL Reader`_.
66+
- **fluent-all**: this target installs the core packages and `PyFluent-Parametric`_ and `PyFluent-Visualization`_.
67+
- **all**: this target install all extra ``pyansys`` packages.
5368

69+
Package installation
70+
--------------------
5471

55-
PyDPF-Post
56-
~~~~~~~~~~
57-
58-
.. code::
59-
60-
pip install ansys-dpf-post
61-
62-
63-
- `DPF-Post Documentation <https://postdocs.pyansys.com/>`_
64-
- `DPF-Post PyPI <https://pypi.org/project/ansys-dpf-post/>`_
65-
- `DPF-Post GitHub <https://github.com/pyansys/pydpf-post>`_
66-
67-
68-
PyMAPDL
69-
~~~~~~~
70-
71-
.. code::
72+
Two installation modes are provided: user and offline.
7273

73-
pip install ansys-mapdl-core
74+
User mode installation
75+
^^^^^^^^^^^^^^^^^^^^^^
7476

77+
Before installing ``pyansys`` in user mode, ensure that you have the latest
78+
version of `pip <https://pypi.org/project/pip/>`_ with:
7579

76-
- `PyMAPDL Documentation <https://mapdldocs.pyansys.com/>`_
77-
- `PyMAPDL PyPI <https://pypi.org/project/ansys-mapdl-core/>`_
78-
- `PyMAPDL GitHub <https://github.com/pyansys/pymapdl/>`_
80+
.. code:: bash
81+
82+
python -m pip install -U pip
7983
84+
Then, install ``pyansys`` with:
8085

81-
PyMAPDL Reader
82-
~~~~~~~~~~~~~~
86+
.. code:: bash
8387
84-
.. code::
88+
python -m pip install pyansys
8589
86-
pip install ansys-mapdl-reader
90+
If you are interested in **installing an extra target** such as ``fluent-all``:
8791

92+
.. code:: bash
8893
89-
- `Legacy PyMAPDL Reader Documentation <https://readerdocs.pyansys.com/>`_
90-
- `Legacy PyMAPDL Reader PyPI <https://pypi.org/project/ansys-mapdl-reader/>`_
91-
- `Legacy PyMAPDL Reader GitHub <https://github.com/pyansys/pymapdl-reader>`_
94+
python -m pip install pyansys[fluent-all]
9295
96+
If you are interested in **installing a specific version** such as ``2023.1.0``:
9397

94-
PyFluent
95-
~~~~~~~~
98+
.. code:: bash
9699
97-
.. code::
100+
python -m pip install pyansys==2023.1.0
98101
99-
pip install ansys-fluent-core
102+
Offline mode installation
103+
^^^^^^^^^^^^^^^^^^^^^^^^^
100104

101-
- `PyFluent Documentation <https://fluentdocs.pyansys.com/>`_
102-
- `PyFluent PyPI <https://pypi.org/project/ansys-fluent-core>`_
103-
- `PyFluent GitHub <https://github.com/pyansys/pyfluent/>`_
105+
If you lack an internet connection on your installation machine, the recommended way of installing
106+
the ``pyansys`` metapackage is downloading the wheelhouse archive from the
107+
`Releases Page <https://github.com/pyansys/pyansys/releases>`_ for your corresponding machine architecture.
104108

109+
Each wheelhouse archive contains all the Python wheels necessary to install ``pyansys`` metapackage from
110+
scratch on Windows, Linux, and MacOS from Python 3.7 to 3.10. You can install this on an isolated system with
111+
a fresh Python installation or on a virtual environment.
105112

106-
PyPIM
107-
~~~~~
113+
For example, on Linux with Python 3.7, unzip the wheelhouse archive and install it with the following:
108114

109-
.. code::
115+
.. code:: bash
110116
111-
pip install ansys-platform-instancemanagement
117+
unzip pyansys-v2023.1.dev0-wheelhouse-Linux-3.7-core.zip wheelhouse
118+
pip install pyansys -f wheelhouse --no-index --upgrade --ignore-installed
112119
120+
If you're on Windows with Python 3.9, unzip to a wheelhouse directory and install using the same command as above.
113121

114-
- `PyPIM Documentation <https://pypim.docs.pyansys.com/>`_
115-
- `PyPIM PyPI <https://pypi.org/project/ansys-platform-instancemanagement/>`_
116-
- `PyPIM GitHub <https://github.com/pyansys/pypim/>`_
122+
Consider installing using a `virtual environment <https://docs.python.org/3/library/venv.html>`_.
117123

124+
Versioning system
125+
-----------------
118126

119-
Granta MI BoM Analytics
120-
~~~~~~~~~~~~~~~~~~~~~~~
127+
The ``pyansys`` metapackage follows a semantic-like versioning system, though it has been adapted to the
128+
Ansys product release mechanism. In that sense, the following kind of versioning system is followed:
121129

122-
.. code::
130+
.. code:: bash
123131
124-
pip install ansys-grantami-bomanalytics
132+
XXXX.Y.ZZ
125133
134+
Where:
126135

127-
- `Granta MI BoM Analytics Documentation <https://grantami.docs.pyansys.com/>`_
128-
- `Granta MI BoM Analytics PyPI <https://pypi.org/project/ansys-grantami-bomanalytics/>`_
129-
- `Granta MI BoM Analytics GitHub <https://github.com/pyansys/grantami-bomanalytics/>`_
136+
- ``XXXX`` is the Ansys product release year (for example, 2022)
137+
- ``Y`` is the Ansys product release within the same year (for example, 1, which relates to R1)
138+
- ``ZZ`` is the patched versions to the ``pyansys`` metapackage, if any.
130139

140+
Consequently, the first ``pyansys`` metapackage compatible with the 2024 R2 release would be:
131141

132-
Shared components
133-
~~~~~~~~~~~~~~~~~
134-
The PyAnsys project publishes and consumes shared software components that enable
135-
interoperability between PyAnsys packages and minimize maintenance. For more
136-
information, see the `Shared Components documentation <https://shared.docs.pyansys.com/>`_.
142+
.. code:: bash
137143
144+
2024.2.0
138145
139-
The OpenAPI Common library is a shared component. Here is the command for downloading
140-
and installing the most recent package and links to its comprehensive resources:
146+
And any subsequent patched version of that package would be:
141147

142-
.. code::
148+
.. code:: bash
143149
144-
pip install ansys-openapi-common
150+
2024.2.1
151+
2024.2.2
152+
2024.2.3
153+
...
145154
155+
You can request for a specific version install when pip installing your package:
146156

147-
- `OpenAPI Common Documentation <https://openapi.docs.pyansys.com/index.html/>`_
148-
- `OpenAPI Common PyPI <https://pypi.org/project/ansys-openapi-common/>`_
149-
- `OpenAPI Common GitHub <https://github.com/pyansys/openapi-common/>`_
157+
.. code:: bash
150158
159+
python -m pip install pyansys==2024.2.0
151160
152161
License and acknowledgments
153162
---------------------------

doc/source/index.rst

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,6 @@
22
:hidden:
33
:maxdepth: 3
44

5-
PyAEDT <https://aedtdocs.pyansys.com/>
6-
PyDPF-Core <https://dpfdocs.pyansys.com/>
7-
PyDPF-Post <https://postdocs.pyansys.com/>
8-
PyMAPDL <https://mapdldocs.pyansys.com/>
9-
PyMAPDL Reader <https://readerdocs.pyansys.com/>
10-
PyFluent <https://fluentdocs.pyansys.com/>
11-
PyPIM <https://pypim.docs.pyansys.com/>
12-
Granta MI BoM Analytics <https://grantami.docs.pyansys.com/>
13-
Shared Components <https://shared.docs.pyansys.com/>
14-
155
..
166
Simply reuse the README.rst to avoid duplication
177

doc/styles/Vocab/ANSYS/accept.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ PyDPF-Post
1313
PyDPF
1414
PyFluent
1515
PyPIM
16-
Granta MI BoM Analytics
16+
Granta MI BoM Analytics
17+
metapackage

0 commit comments

Comments
 (0)