Skip to content

Commit

Permalink
Intake Take2 (#233)
Browse files Browse the repository at this point in the history
* Rebased 153 onto 187

* gelaxed intake version on pyproject.toml to >0.7 (take2) & added tox environments for take2
  • Loading branch information
charles-turner-1 authored Oct 28, 2024
1 parent 83bae08 commit 22c36c6
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ classifiers = [
dependencies = [
"cftime",
"ecgtools>=2023.7.13",
"intake==0.7.0",
"intake>=0.7.0",
"intake-dataframe-catalog>=0.2.4",
"intake-esm>=2023.11.10",
"jsonschema",
Expand Down
55 changes: 54 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
env_list =
py{310,311}-main,
py{310,311}-coords,
py{310,311}-take2,
py{310,311}-take2coords

minversion = 4.23.0

Expand All @@ -27,7 +29,8 @@ commands =
setenv =
XFAILS=1
; We expect correctness checks to fail here because coordinate discovery isn't
; enabled in the main branch of intake-esm. This enables xfail marks in conftest.py.
; enabled in the main branch of intake-esm. This toggles on xfail marks in
; conftest.py.

[testenv:coordsenabled]
setenv =
Expand All @@ -51,6 +54,22 @@ deps =
git+https://github.com/ACCESS-NRI/intake-dataframe-catalog.git@main#egg=intake_dataframe_catalog
intake==0.7.0

[testenv:base-take2]
description = Pin the intake version to 0.7.0, run pytest
deps =
{[testenv]deps}
git+https://github.com/ACCESS-NRI/intake-dataframe-catalog.git@take2#egg=intake_dataframe_catalog
intake>=2.0.0


[testenv:base-take2coords]
description = Use the ACCESS-NRI fork of intake-esm, branch issue_660-coords
deps =
{[testenv]deps}
git+https://github.com/ACCESS-NRI/intake-esm.git@take2-coords#egg=intake-esm
git+https://github.com/ACCESS-NRI/intake-dataframe-catalog.git@take2#egg=intake_dataframe_catalog
intake>=2.0.0

[testenv:py39-main]
basepython = python3.9
deps = {[testenv:base-main]deps}
Expand Down Expand Up @@ -87,4 +106,38 @@ deps = {[testenv:base-coords]deps}
setenv = {[testenv:coordsenabled]setenv}
commands = {[testenv]commands}

[testenv:py39-take2]
basepython = python3.9
deps = {[testenv:base-take2]deps}
setenv = {[testenv:coordsdisabled]setenv}
commands = {[testenv]commands}

[testenv:py310-take2]
basepython = python3.10
deps = {[testenv:base-take2]deps}
setenv = {[testenv:coordsdisabled]setenv}
commands = {[testenv]commands}

[testenv:py311-take2]
basepython = python3.11
deps = {[testenv:base-take2]deps}
setenv = {[testenv:coordsdisabled]setenv}
commands = {[testenv]commands}

[testenv:py39-take2coords]
basepython = python3.9
deps = {[testenv:base-take2coords]deps}
setenv = {[testenv:coordsenabled]setenv}
commands = {[testenv]commands}

[testenv:py310-take2coords]
basepython = python3.10
deps = {[testenv:base-take2coords]deps}
setenv = {[testenv:coordsenabled]setenv}
commands = {[testenv]commands}

[testenv:py311-take2coords]
basepython = python3.11
deps = {[testenv:base-take2coords]deps}
setenv = {[testenv:coordsenabled]setenv}
commands = {[testenv]commands}

0 comments on commit 22c36c6

Please sign in to comment.