|
3 | 3 | "project": "scitools-iris",
|
4 | 4 | "project_url": "https://github.com/SciTools/iris",
|
5 | 5 | "repo": "..",
|
6 |
| - "environment_type": "conda-delegated", |
| 6 | + "environment_type": "delegated", |
7 | 7 | "show_commit_url": "https://github.com/scitools/iris/commit/",
|
8 | 8 | "branches": ["upstream/main"],
|
9 |
| - "build_command": [ |
10 |
| - "python setup.py build", |
11 |
| - "python -mpip wheel --no-deps -w {build_cache_dir} {build_dir}" |
12 |
| - ], |
13 | 9 |
|
14 | 10 | "benchmark_dir": "./benchmarks",
|
15 | 11 | "env_dir": ".asv/env",
|
16 | 12 | "results_dir": ".asv/results",
|
17 | 13 | "html_dir": ".asv/html",
|
18 |
| - "plugins": [".asv_delegated_conda"], |
| 14 | + "plugins": [".asv_delegated"], |
| 15 | + |
| 16 | + "delegated_env_commands_comment": [ |
| 17 | + "The command(s) that create/update an environment correctly for the", |
| 18 | + "checked-out commit. Command(s) format follows `build_command`:", |
| 19 | + " https://asv.readthedocs.io/en/stable/asv.conf.json.html#build-command-install-command-uninstall-command", |
| 20 | + |
| 21 | + "The commit key indicates the earliest commit where the command(s)", |
| 22 | + "will work.", |
| 23 | + |
| 24 | + "Differences from `build_command`:", |
| 25 | + " * See: https://asv.readthedocs.io/en/stable/asv.conf.json.html#build-command-install-command-uninstall-command", |
| 26 | + " * Env vars limited to those set outside build time.", |
| 27 | + " (e.g. `{conf_dir}` available but `{build_dir}` not)", |
| 28 | + " * Run in the same environment as the ASV install itself.", |
| 29 | + |
| 30 | + "Mandatory format for the first 'command' within each commit:", |
| 31 | + " * `ENV_PARENT=path/to/parent/directory/of/env-directory`", |
| 32 | + " * Can contain env vars (e.g. `{conf_dir}`)", |
| 33 | + " * `ENV_PARENT` available as `{env_parent}` in subsequent commands", |
| 34 | + " * The environment will be detected as the most recently updated", |
| 35 | + " environment in `{env_parent}`." |
| 36 | + |
| 37 | + ], |
| 38 | + "delegated_env_commands": { |
| 39 | + "c8a663a0": [ |
| 40 | + "ENV_PARENT={conf_dir}/.asv/env/nox312", |
| 41 | + "PY_VER=3.12 nox --envdir={env_parent} --session=tests --install-only --no-error-on-external-run --verbose" |
| 42 | + ], |
| 43 | + "d58fca7e": [ |
| 44 | + "ENV_PARENT={conf_dir}/.asv/env/nox311", |
| 45 | + "PY_VER=3.11 nox --envdir={env_parent} --session=tests --install-only --no-error-on-external-run --verbose" |
| 46 | + ], |
| 47 | + "44fae030": [ |
| 48 | + "ENV_PARENT={conf_dir}/.asv/env/nox310", |
| 49 | + "PY_VER=3.10 nox --envdir={env_parent} --session=tests --install-only --no-error-on-external-run --verbose" |
| 50 | + ] |
| 51 | + }, |
19 | 52 |
|
20 |
| - // The command(s) that create/update an environment correctly for the |
21 |
| - // checked-out commit. |
22 |
| - // Interpreted the same as build_command, with following exceptions: |
23 |
| - // * No build-time environment variables. |
24 |
| - // * Is run in the same environment as the ASV install itself. |
25 |
| - "delegated_env_commands": [ |
26 |
| - "PY_VER=3.12 nox --envdir={conf_dir}/.asv/env/nox01 --session=tests --install-only --no-error-on-external-run --verbose" |
| 53 | + "command_comment": [ |
| 54 | + "We know that the Nox command takes care of installation in each", |
| 55 | + "environment, and in the case of Iris no specialised uninstall or", |
| 56 | + "build commands are needed to get it working." |
27 | 57 | ],
|
28 |
| - // The parent directory of the above environment. |
29 |
| - // The most recently modified environment in the directory will be used. |
30 |
| - "delegated_env_parent": "{conf_dir}/.asv/env/nox01" |
| 58 | + "install_command": [], |
| 59 | + "uninstall_command": [], |
| 60 | + "build_command": [] |
31 | 61 | }
|
0 commit comments