Skip to content

Commit 73b4a3a

Browse files
authored
standardize requirements structure (SciTools#5204)
1 parent b228f20 commit 73b4a3a

17 files changed

+17
-17
lines changed

.readthedocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ build:
1919
- git stash pop
2020

2121
conda:
22-
environment: requirements/ci/readthedocs.yml
22+
environment: requirements/readthedocs.yml
2323

2424
sphinx:
2525
configuration: docs/src/conf.py

docs/src/common_links.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@
3030
.. _pull request: https://github.com/SciTools/iris/pulls
3131
.. _pull requests: https://github.com/SciTools/iris/pulls
3232
.. _Read the Docs: https://scitools-iris.readthedocs.io/en/latest/
33-
.. _readthedocs.yml: https://github.com/SciTools/iris/blob/main/requirements/ci/readthedocs.yml
33+
.. _readthedocs.yml: https://github.com/SciTools/iris/blob/main/requirements/readthedocs.yml
3434
.. _SciTools: https://github.com/SciTools
3535
.. _scitools-iris: https://pypi.org/project/scitools-iris/
3636
.. _sphinx: https://www.sphinx-doc.org/en/master/
3737
.. _test-iris-imagehash: https://github.com/SciTools/test-iris-imagehash
3838
.. _using git: https://docs.github.com/en/github/using-git
39-
.. _requirements/ci/: https://github.com/SciTools/iris/tree/main/requirements/ci
39+
.. _requirements: https://github.com/SciTools/iris/tree/main/requirements
4040
.. _CF-UGRID: https://ugrid-conventions.github.io/ugrid-conventions/
4141
.. _issues on GitHub: https://github.com/SciTools/iris/issues?q=is%3Aopen+is%3Aissue+sort%3Areactions-%2B1-desc
4242
.. _python-stratify: https://github.com/SciTools/python-stratify

docs/src/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def _dotv(version):
122122

123123
# Automate the discovery of the python versions tested with CI.
124124
python_support = sorted(
125-
[fname.stem for fname in Path(".").glob("../../requirements/ci/py*.yml")]
125+
[fname.stem for fname in Path(".").glob("../../requirements/py*.yml")]
126126
)
127127

128128
if not python_support:

docs/src/developers_guide/contributing_ci_tests.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,18 +48,18 @@ GitHub Actions Test Environment
4848
-------------------------------
4949

5050
The CI test environments for our GHA is determined from the requirement files
51-
in ``requirements/ci/pyXX.yml``. These are conda environment files list the top-level
51+
in ``requirements/pyXX.yml``. These are conda environment files list the top-level
5252
package dependencies for running and testing Iris.
5353

5454
For reproducible test results, these environments are resolved for all their dependencies
55-
and stored as conda lock files in the ``requirements/ci/nox.lock`` directory. The test environments
55+
and stored as conda lock files in the ``requirements/locks`` directory. The test environments
5656
will not resolve the dependencies each time, instead they will use the lock files to reproduce the
5757
exact same environment each time.
5858

5959
**If you have updated the requirement YAML files with new dependencies, you will need to
6060
generate new lock files.** To do this, run the command::
6161

62-
python tools/update_lockfiles.py -o requirements/ci/nox.lock requirements/ci/py*.yml
62+
python tools/update_lockfiles.py -o requirements/locks requirements/py*.yml
6363

6464
or simply::
6565

@@ -76,7 +76,7 @@ and add the changed lockfiles to your pull request.
7676

7777
New lockfiles are generated automatically each week to ensure that Iris continues to be
7878
tested against the latest available version of its dependencies.
79-
Each week the yaml files in ``requirements/ci`` are resolved by a GitHub Action.
79+
Each week the yaml files in ``requirements`` are resolved by a GitHub Action.
8080
If the resolved environment has changed, a pull request is created with the new lock files.
8181
The CI test suite will run on this pull request. If the tests fail, a developer
8282
will need to create a new branch based off the ``auto-update-lockfiles`` branch

docs/src/developers_guide/contributing_pull_request_checklist.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ is merged. Before submitting a pull request please consider this list.
2929
#. **Check all modified and new source files conform to the required**
3030
:ref:`code_formatting`.
3131

32-
#. **Check all new dependencies added to the** `requirements/ci/`_ **yaml
32+
#. **Check all new dependencies added to the** `requirements`_ **yaml
3333
files.** If dependencies have been added then new nox testing lockfiles
3434
should be generated too, see :ref:`gha_test_env`.
3535

docs/src/installing.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ Once conda is installed, you can install Iris using conda and then activate
8282
it. The example commands below assume you are in the root directory of your
8383
local copy of Iris::
8484

85-
conda env create --force --file=requirements/ci/iris.yml
85+
conda env create --force --file=requirements/iris.yml
8686
conda activate iris-dev
8787

8888
.. note::
@@ -92,20 +92,20 @@ local copy of Iris::
9292
particularly useful when rebuilding your environment due to a change in
9393
requirements.
9494

95-
The ``requirements/ci/iris.yml`` file defines the Iris development conda
95+
The ``requirements/iris.yml`` file defines the Iris development conda
9696
environment *name* and all the relevant *top level* `conda-forge` package
9797
dependencies that you need to **code**, **test**, and **build** the
9898
documentation. If you wish to minimise the environment footprint, simply
9999
remove any unwanted packages from the requirements file e.g., if you don't
100100
intend to run the Iris tests locally or build the documentation, then remove
101101
all the packages from the `testing` and `documentation` sections.
102102

103-
.. note:: The ``requirements/ci/iris.yml`` file will always use the latest
103+
.. note:: The ``requirements/iris.yml`` file will always use the latest
104104
Iris tested Python version available. For all Python versions that
105105
are supported and tested against by Iris, view the contents of
106-
the `requirements/ci`_ directory.
106+
the `requirements`_ directory.
107107

108-
.. _requirements/ci: https://github.com/scitools/iris/tree/main/requirements/ci
108+
.. _requirements: https://github.com/scitools/iris/tree/main/requirements
109109

110110
Finally you need to run the command to configure your shell environment
111111
to find your local Iris code::

docs/src/whatsnew/2.1.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,5 +97,5 @@ Internal
9797
__ `netCDF4`_
9898

9999
* Iris now requires version 2 of Matplotlib, and ``>=1.14`` of NumPy.
100-
Full requirements can be seen in the `requirements <https://github.com/SciTools/iris/>`_
100+
Full requirements can be seen in the `requirements`_
101101
directory of the Iris' the source.

noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
def session_lockfile(session: nox.sessions.Session) -> Path:
4242
"""Return the path of the session lockfile."""
4343
return Path(
44-
f"requirements/ci/nox.lock/py{session.python.replace('.', '')}-linux-64.lock"
44+
f"requirements/locks/py{session.python.replace('.', '')}-linux-64.lock"
4545
)
4646

4747

File renamed without changes.

0 commit comments

Comments
 (0)