From fd75a74462c9ef273be412df9079b594dd10b1a8 Mon Sep 17 00:00:00 2001 From: Brett Date: Wed, 9 Oct 2024 13:14:55 -0400 Subject: [PATCH 1/3] add abacusutils to downstream --- .github/workflows/downstream.yml | 1 + tox.ini | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/.github/workflows/downstream.yml b/.github/workflows/downstream.yml index 74a3643e8..b8d464061 100644 --- a/.github/workflows/downstream.yml +++ b/.github/workflows/downstream.yml @@ -73,3 +73,4 @@ jobs: - linux: weldx - linux: sunpy - linux: dkist + - linux: abacusutils diff --git a/tox.ini b/tox.ini index 326489c2a..68544abf7 100644 --- a/tox.ini +++ b/tox.ini @@ -324,3 +324,20 @@ commands = # https://github.com/sunpy/sunpy/pull/7432 pytest dkist --benchmark-skip \ -W "ignore::asdf.exceptions.AsdfManifestURIMismatchWarning" + +[testenv:abacusutils] +change_dir = {env_tmp_dir} +allowlist_externals = + git + bash +extras = +commands_pre = + bash -c "pip freeze -q | grep 'asdf @' > {env_tmp_dir}/requirements.txt" + git clone https://github.com/abacusorg/abacusutils.git + pip install -vU setuptools wheel scipy Cython 'numpy<2' # for classy and corrfunc + pip install --no-build-isolation classy corrfunc + pip install -e abacusutils[test] + pip install -r {env_tmp_dir}/requirements.txt + pip freeze +commands = + pytest abacusutils From b160de4df68934dd78f817a7f6700e3a46c04efb Mon Sep 17 00:00:00 2001 From: Brett Date: Wed, 9 Oct 2024 13:29:16 -0400 Subject: [PATCH 2/3] make blank pytest.ini for abacusutils --- tox.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/tox.ini b/tox.ini index 68544abf7..bdf22827e 100644 --- a/tox.ini +++ b/tox.ini @@ -338,6 +338,7 @@ commands_pre = pip install --no-build-isolation classy corrfunc pip install -e abacusutils[test] pip install -r {env_tmp_dir}/requirements.txt + bash -c "echo '' > pytest.ini" pip freeze commands = pytest abacusutils From 7db64706bc12b4db6dcd6db8e28c4fcaab29af08 Mon Sep 17 00:00:00 2001 From: Brett Date: Wed, 9 Oct 2024 16:40:49 -0400 Subject: [PATCH 3/3] restrict abacusutils tests --- tox.ini | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index bdf22827e..9161ab209 100644 --- a/tox.ini +++ b/tox.ini @@ -338,7 +338,12 @@ commands_pre = pip install --no-build-isolation classy corrfunc pip install -e abacusutils[test] pip install -r {env_tmp_dir}/requirements.txt +# make an empty pytest.ini to prevent pytest from crawling up +# one directory and finding the pytest configuration for the asdf +# repo clone bash -c "echo '' > pytest.ini" pip freeze commands = - pytest abacusutils +# only running a subset of tests since only a portion of abacusutils +# relies on asdf + pytest abacusutils/tests/test_data.py