-
Notifications
You must be signed in to change notification settings - Fork 0
Improve backwards compatibility documentation #175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
81fbb9a
3d44368
4d7513d
02c85e4
fb6952f
e75cbbf
46eae62
861ff04
fdd785f
e5c4fa0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,60 @@ | ||
Getting started | ||
=============== | ||
|
||
The ``pygranta`` metapackage ensures compatibility between PyGranta packages and | ||
provides a convenient method for installing packages compatible with a specific | ||
release of Ansys Granta MI. | ||
The ``pygranta`` metapackage guarantees mutual compatibility between all PyGranta packages. The packages referenced by a | ||
``pygranta`` metapackage version are certified to be compatible with each other and with the corresponding Granta MI | ||
version. | ||
|
||
Most packages require access to an installation of Ansys Granta MI. For more | ||
information on getting a licensed copy of Ansys products, visit the `Ansys website <https://www.ansys.com/>`_. | ||
.. note:: | ||
The ``ansys-grantami-bomanalytics`` and ``ansys-grantami-bomanalytics-openapi`` versions included in the metapackage | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure exactly how I would phrase this, it's a tricky one, but perhaps something like "The This is normally the latest version available at the time of the metapackage release, however multiple versions of BoM Analytics Services are compatible with a single version of Granta MI." This is probably the fiddliest section There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've re-worked this section slightly. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. And I have added a link to the corresponding part of the RS installation guide |
||
are instead compatible with the corresponding version of *BoM Analytics Services*. BoM Analytics Services is the REST | ||
API used by ``ansys-grantami-bomanalytics``, and is provided as part of the *Granta MI Restricted Substances and | ||
Sustainability Reports* package. Multiple versions of the reports package are available for a single version of | ||
Granta MI. | ||
|
||
************ | ||
Installation | ||
************ | ||
The selected version of the reports package, and therefore the required version of ``ansys-grantami-bomanalytics``, | ||
depends on the *Restricted Substances and Sustainability* database version. | ||
|
||
There are several ways of installing PyGranta depending on your use case, but | ||
the easiest is simply to run this command: | ||
Refer to :MI_docs:`the Restricted Substances and Sustainability Install and Configuration guide | ||
<RS_and_Sustainability_Install/rs_and_sustainability/planning_your_implementation_rsands.html>` for more details on | ||
*Granta MI Restricted Substances and Sustainability Reports* versioning and installation. | ||
|
||
.. code:: bash | ||
|
||
pip install pygranta | ||
Most packages require access to an installation of Ansys Granta MI. For more information on getting a licensed copy of | ||
Ansys products, visit the `Ansys website <https://www.ansys.com/>`_. | ||
|
||
This installs all the PyGranta packages for the latest released version of Granta MI. | ||
Installing the latest version | ||
----------------------------- | ||
|
||
If you are interested in **installing a specific version**, such as ``2023.2.0``, you | ||
can run a command like this one: | ||
To install the latest version of the ``pygranta`` metapackage, run: | ||
|
||
.. code:: bash | ||
pip install pygranta==2023.2.0 | ||
pip install pygranta | ||
This installs all the PyGranta packages certified to be compatible with the latest released version of Granta MI. | ||
|
||
.. note:: | ||
The versions of ansys-grantami-bomanalytics and ansys-grantami-bomanalytics-openapi included in the metapackage | ||
are compatible with that version of *BoM Analytics Services*, included with Granta MI Restricted | ||
Substances and Sustainability Reports. Multiple versions of BoM Analytics Services are compatible with a single | ||
version of Granta MI. | ||
|
||
You can always install PyGranta packages individually by following the installation | ||
instructions for each package. For example, the instructions for PyGranta | ||
RecordLists have you install it by running this command: | ||
Installing packages compatible with a specific version of Granta MI | ||
------------------------------------------------------------------- | ||
|
||
To install the version of the ``pygranta`` metapackage associated with a specific version of Granta MI, provide the | ||
version number during installation. For example, to install the version associated with Granta MI 2023 R2, specify the | ||
``pygranta`` metapackage version ``2023.2.0``: | ||
|
||
.. code:: bash | ||
pip install ansys-grantami-recordlists | ||
pip install pygranta==2023.2.0 | ||
More detailed guidance on selecting package versions which are compatible with specific Granta MI versions is available | ||
on the :doc:`package_versions` page. This page also includes a list of all PyGranta packages associated with each | ||
``pygranta`` metapackage version. | ||
|
||
See `Versioning system`_ for more details on PyGranta package version numbers. | ||
|
||
|
||
User mode installation | ||
^^^^^^^^^^^^^^^^^^^^^^ | ||
---------------------- | ||
|
||
Before installing the ``pygranta`` metapackage in user mode, ensure that you have the | ||
latest version of `pip <https://pypi.org/project/pip/>`_ by running this command: | ||
|
@@ -67,8 +77,8 @@ can run a command like this one: | |
python -m pip install pygranta==2023.2.0 | ||
Offline mode installation | ||
^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
Offline installation | ||
-------------------- | ||
|
||
If you lack an internet connection on your installation machine, the | ||
recommended way of installing the ``pygranta`` metapackage is downloading the | ||
|
@@ -94,6 +104,7 @@ using the same command as for Linux. | |
|
||
Consider installing using a `virtual environment <https://docs.python.org/3/library/venv.html>`_. | ||
|
||
|
||
Versioning system | ||
----------------- | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,39 @@ | ||
PyGranta and Granta MI compatibility | ||
Andy-Grigg marked this conversation as resolved.
Show resolved
Hide resolved
|
||
==================================== | ||
|
||
PyGranta packages have always been compatible with the Granta MI version they were delivered against. | ||
|
||
Starting with ``pygranta 2025.2.0`` (released with Granta MI 2025 R2), where possible, PyGranta packages are | ||
backwards compatible with all supported Granta MI versions at the time of release. This allows access to improvements | ||
and bug fixes without having to upgrade Granta MI. | ||
|
||
.. note:: | ||
Full backwards compatibility for all supported Granta MI versions is not always guaranteed. Check the README or | ||
"Getting Started" guide for the individual PyGranta package to confirm the minimum required Granta MI version and for | ||
installation instructions. | ||
|
||
If the latest PyGranta package version does not support the required Granta MI version, either: | ||
|
||
* Use previous versions of the PyGranta package documentation to check compatibility of previous package versions, or | ||
* Use the table in the `Package versions`_ section to identify the version of the PyGranta package released with the | ||
required Granta MI version. | ||
|
||
In addition, forwards compatibility of PyGranta packages with future Granta MI releases is not guaranteed. PyGranta | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unimportant addition: since we're suggesting that clients are backwards compatible, the recommended approach would be to update clients first |
||
packages should always be upgraded following a Granta MI server upgrade. | ||
|
||
|
||
Package versions | ||
================ | ||
---------------- | ||
|
||
These tables map a PyGranta metapackage version to the individual PyGranta package included within it. In most cases, | ||
this can be used to determine which PyGranta package is compatible with a given version of Granta MI. | ||
These tables map a PyGranta metapackage version to the individual PyGranta package associated with it. This can be used | ||
to determine the **minimum** PyGranta package that is compatible with a given version of Granta MI. However, due to | ||
backwards compatibility, it may be possible to use more modern package versions. | ||
|
||
.. note:: | ||
The versions of ansys-grantami-bomanalytics and ansys-grantami-bomanalytics-openapi included in a metapackage version | ||
are compatible with that version of *BoM Analytics Services*, included with Granta MI Restricted | ||
Substances and Sustainability Reports. Multiple versions of BoM Analytics Services are compatible with a single | ||
version of Granta MI. | ||
The ``ansys-grantami-bomanalytics`` and ``ansys-grantami-bomanalytics-openapi`` versions included in the metapackage | ||
are compatible with that version of *BoM Analytics Services*, included with Granta MI Restricted Substances and | ||
Sustainability Reports. Multiple versions of BoM Analytics Services are compatible with a single version of Granta | ||
MI. | ||
|
||
.. jinja:: package_versions_ctx | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.