Skip to content

Commit 2263cc5

Browse files
authored
Merge pull request #1225 from PyAutoLabs/feature/default-branch-release-to-main
docs(install): clone workspace at tag matching library version
2 parents e946023 + ec9f2f9 commit 2263cc5

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

docs/installation/conda.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,15 @@ the installation has clean dependencies):
2828
2929
pip install autofit
3030
31-
Next, clone the ``autofit workspace`` (the line ``--depth 1`` clones only the most recent branch on
32-
the ``autofit_workspace``, reducing the download size):
31+
Next, clone the ``autofit_workspace`` at the tag matching your installed ``PyAutoFit`` version. Each
32+
``PyAutoFit`` release tags a paired ``autofit_workspace`` snapshot, so cloning by tag guarantees that the
33+
example scripts and notebooks were generated against the library version you installed:
3334

3435
.. code-block:: bash
3536
3637
cd /path/on/your/computer/you/want/to/put/the/autofit_workspace
37-
git clone https://github.com/Jammy2211/autofit_workspace --depth 1
38+
AUTOFIT_VERSION=$(python -c "import autofit; print(autofit.__version__)")
39+
git clone https://github.com/Jammy2211/autofit_workspace --branch $AUTOFIT_VERSION --depth 1
3840
cd autofit_workspace
3941
4042
Run the `welcome.py` script to get started!

docs/installation/pip.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,15 @@ the installation has clean dependencies):
1717
If this raises no errors **PyAutoFit** is installed! If there is an error check out
1818
the `troubleshooting section <https://pyautofit.readthedocs.io/en/latest/installation/troubleshooting.html>`_.
1919

20-
Next, clone the ``autofit workspace`` (the line ``--depth 1`` clones only the most recent branch on
21-
the ``autofit_workspace``, reducing the download size):
20+
Next, clone the ``autofit_workspace`` at the tag matching your installed ``PyAutoFit`` version. Each
21+
``PyAutoFit`` release tags a paired ``autofit_workspace`` snapshot, so cloning by tag guarantees that the
22+
example scripts and notebooks were generated against the library version you installed:
2223

2324
.. code-block:: bash
2425
2526
cd /path/on/your/computer/you/want/to/put/the/autofit_workspace
26-
git clone https://github.com/Jammy2211/autofit_workspace --depth 1
27+
AUTOFIT_VERSION=$(python -c "import autofit; print(autofit.__version__)")
28+
git clone https://github.com/Jammy2211/autofit_workspace --branch $AUTOFIT_VERSION --depth 1
2729
cd autofit_workspace
2830
2931
Run the ``welcome.py`` script to get started!

0 commit comments

Comments
 (0)