-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6ca09bb
commit c04e051
Showing
26 changed files
with
251 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
To install into a development shell the dependencies needed to build docs: | ||
|
||
``` | ||
source install-deps | ||
``` | ||
|
||
To build docs: | ||
|
||
``` | ||
make html | ||
``` | ||
|
||
To view docs in browser, visit URL | ||
|
||
``` | ||
file://<path-to-this-directory>/build/html/index.html | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
conda install -y $(python -c "import yaml; f=open('$(dirname ${BASH_SOURCE[0]})/environment.yml'); print(' '.join(yaml.safe_load(f)['dependencies']))") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ Contributor Guide | |
developer_setup | ||
code_quality | ||
fork_pr_model | ||
documentation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.. include:: ../links.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
.. _Anaconda: https://anaconda.org | ||
.. _black: https://black.readthedocs.io/en/stable/ | ||
.. _conda: https://docs.conda.io/en/latest/ | ||
.. _Miniconda: https://docs.conda.io/en/latest/miniconda.html | ||
.. _Miniforge3: https://github.com/conda-forge/miniforge#download | ||
.. _Miniforge: https://github.com/conda-forge/miniforge | ||
.. _black: https://black.readthedocs.io/en/stable/ | ||
.. _conda-forge: https://conda-forge.org/ | ||
.. _condev: https://github.com/maddenp/condev | ||
.. _conda: https://docs.conda.io/en/latest/ | ||
.. _condev demo: https://github.com/maddenp/condev/tree/main/demo | ||
.. _coverage: https://coverage.readthedocs.io/en/7.2.7/ | ||
.. _docformatter: https://docformatter.readthedocs.io/en/stable/ | ||
.. _condev: https://github.com/maddenp/condev | ||
.. _coverage: https://coverage.readthedocs.io/en/7.2.7/ | ||
.. _docformatter: https://docformatter.readthedocs.io/en/stable/ | ||
.. _isort: https://pycqa.github.io/isort/ | ||
.. _jq: https://jqlang.github.io/jq/manual/v1.6/ | ||
.. _Miniconda: https://docs.conda.io/en/latest/miniconda.html | ||
.. _Miniforge: https://github.com/conda-forge/miniforge | ||
.. _Miniforge3: https://github.com/conda-forge/miniforge#download | ||
.. _jq: https://jqlang.github.io/jq/manual/v1.6/ | ||
.. _mypy: https://mypy.readthedocs.io/en/stable/ | ||
.. _pylint: https://pylint.readthedocs.io/en/stable/ | ||
.. _pytest: https://docs.pytest.org/en/stable/ | ||
.. _pytest: https://docs.pytest.org/en/stable/ | ||
.. _semantic versioning: https://semver.org/ | ||
.. _workflow-tools repository: https://github.com/ufs-community/workflow-tools |
9 changes: 5 additions & 4 deletions
9
docs/sections/Miniforge3_instructions.rst → docs/sections/miniforge3_instructions.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
********************** | ||
``uwtools.api.config`` | ||
********************** | ||
|
||
.. automodule:: uwtools.api.config | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
************************ | ||
``uwtools.api.forecast`` | ||
************************ | ||
|
||
.. automodule:: uwtools.api.forecast | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,9 @@ | |
API | ||
*** | ||
|
||
TBD | ||
.. toctree:: | ||
config | ||
forecast | ||
logging | ||
rocoto | ||
template |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
*********************** | ||
``uwtools.api.logging`` | ||
*********************** | ||
|
||
.. automodule:: uwtools.api.logging | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
********************** | ||
``uwtools.api.rocoto`` | ||
********************** | ||
|
||
.. automodule:: uwtools.api.rocoto | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
************************ | ||
``uwtools.api.template`` | ||
************************ | ||
|
||
.. automodule:: uwtools.api.template | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,45 @@ | ||
.. include:: ../links.rst | ||
.. include:: links.rst | ||
|
||
************ | ||
Installation | ||
************ | ||
|
||
- If you are a **developer**, please visit the `Developer Setup <../contributor_guide/developer_setup.html>`_ section located in the `Contributor Guide <../contributor_guide/index.html>`_. | ||
|
||
- If you are a Developer, skip the User Installation and continue on to the `Developer Setup <../contributor_guide/developer_setup.html>`_ located in the Contributor Guide. | ||
|
||
The recommended installation mechanism uses the Python package and virtual-environment manager `conda`_. Specifically, these instructions detail the use of the minimal `Miniforge`_ variant of `Miniconda`_, built to use, by default, packages from the `conda-forge`_ project. | ||
The recommended installation mechanism uses the Python package and virtual-environment manager `conda`_. Specifically, these instructions detail the use of the minimal `Miniforge`_ variant of `Miniconda`_, built to use, by default, packages from the `conda-forge`_ project. | ||
|
||
Users of the original Miniconda (or the `Anaconda`_ distribution) may need to add the flags ``-c conda-forge --override-channels`` to ``conda build``, ``conda create``, and ``conda install`` commands to specify the use of conda-forge packages. | ||
|
||
|
||
Using a fresh Miniforge installation | ||
==================================== | ||
|
||
.. include:: ../Miniforge3_instructions.rst | ||
|
||
.. include:: ../miniforge3_instructions.rst | ||
|
||
2. Install the ``conda-build`` and ``conda-verify`` packages into the base environment. If ``conda-build`` and ``conda-verify`` are already installed in the your installation’s base environment, you may skip this step. | ||
|
||
|
||
.. code:: sh | ||
conda install -y conda-build conda-verify | ||
3. In a clone of the `workflow-tools repository`_, build and install the ``uwtools`` package. | ||
|
||
|
||
.. code:: sh | ||
cd /to/your/workflow-tools/clone | ||
conda build recipe | ||
conda create -y -n uwtools -c local uwtools | ||
4. Activate the ``uwtools`` environment. | ||
|
||
|
||
.. code:: sh | ||
conda activate uwtools | ||
In future shells, you can activate and use this environment with: | ||
|
||
|
||
.. code:: sh | ||
source ~/conda/etc/profile.d/conda.sh | ||
conda activate uwtools | ||
Note that the ``uwtools`` package’s actual name will contain version and build information, e.g. ``uwtools-0.1.0-py_0``. The ``conda create`` command will find and use the most recent `semantic versioning`_ - compliant package name given the base name ``uwtools``. It could also be explicitly specified as ``uwtools=0.1.0=py_0``. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.. include:: ../links.rst |
Oops, something went wrong.