From bea3d7128f4f47bc1488c931040d5702e65bafe0 Mon Sep 17 00:00:00 2001 From: Brett Date: Fri, 20 Dec 2024 13:05:23 -0500 Subject: [PATCH] cleanup downstream - remove weldx - only clone 1 deep - change abacusutils tests per suggestion --- .github/workflows/downstream.yml | 1 - tox.ini | 40 +++++++++++++++----------------- 2 files changed, 19 insertions(+), 22 deletions(-) diff --git a/.github/workflows/downstream.yml b/.github/workflows/downstream.yml index 95c644d82..12cd63e40 100644 --- a/.github/workflows/downstream.yml +++ b/.github/workflows/downstream.yml @@ -70,7 +70,6 @@ jobs: # Any env name which does not start with `pyXY` will use this Python version. default_python: '3.12' envs: | - - linux: weldx - linux: sunpy - linux: dkist - linux: abacusutils diff --git a/tox.ini b/tox.ini index 9161ab209..21d8d3bd5 100644 --- a/tox.ini +++ b/tox.ini @@ -63,7 +63,7 @@ allowlist_externals = extras = commands_pre = bash -c "pip freeze -q | grep 'asdf @' > {env_tmp_dir}/requirements.txt" - git clone https://github.com/asdf-format/asdf-standard.git + git clone --depth 1 https://github.com/asdf-format/asdf-standard.git pip install -e asdf-standard[test] pip install -r {env_tmp_dir}/requirements.txt pip freeze @@ -78,7 +78,7 @@ allowlist_externals = extras = commands_pre = bash -c "pip freeze -q | grep 'asdf @' > {env_tmp_dir}/requirements.txt" - git clone https://github.com/asdf-format/asdf-compression.git + git clone --depth 1 https://github.com/asdf-format/asdf-compression.git pip install -e asdf-compression[tests,all] pip install -r {env_tmp_dir}/requirements.txt pip freeze @@ -93,7 +93,7 @@ allowlist_externals = extras = commands_pre = bash -c "pip freeze -q | grep 'asdf @' > {env_tmp_dir}/requirements.txt" - git clone https://github.com/asdf-format/asdf-zarr.git + git clone --depth 1 https://github.com/asdf-format/asdf-zarr.git pip install -e asdf-zarr[tests] pip install -r {env_tmp_dir}/requirements.txt pip freeze @@ -108,7 +108,7 @@ allowlist_externals = extras = commands_pre = bash -c "pip freeze -q | grep 'asdf @' > {env_tmp_dir}/requirements.txt" - git clone https://github.com/asdf-format/asdf-transform-schemas.git + git clone --depth 1 https://github.com/asdf-format/asdf-transform-schemas.git pip install -e asdf-transform-schemas[test] pip install -r {env_tmp_dir}/requirements.txt pip freeze @@ -123,7 +123,7 @@ allowlist_externals = extras = commands_pre = bash -c "pip freeze -q | grep 'asdf @' > {env_tmp_dir}/requirements.txt" - git clone https://github.com/asdf-format/asdf-wcs-schemas.git + git clone --depth 1 https://github.com/asdf-format/asdf-wcs-schemas.git pip install -e asdf-wcs-schemas[test] pip install -r {env_tmp_dir}/requirements.txt pip freeze @@ -138,7 +138,7 @@ allowlist_externals = extras = commands_pre = bash -c "pip freeze -q | grep 'asdf @' > {env_tmp_dir}/requirements.txt" - git clone https://github.com/asdf-format/asdf-coordinates-schemas.git + git clone --depth 1 https://github.com/asdf-format/asdf-coordinates-schemas.git pip install -e asdf-coordinates-schemas[test] pip install -r {env_tmp_dir}/requirements.txt pip freeze @@ -153,7 +153,7 @@ allowlist_externals = extras = commands_pre = bash -c "pip freeze -q | grep 'asdf @' > {env_tmp_dir}/requirements.txt" - git clone https://github.com/astropy/asdf-astropy.git + git clone --depth 1 https://github.com/astropy/asdf-astropy.git pip install -e asdf-astropy[test] pip install -r {env_tmp_dir}/requirements.txt pip freeze @@ -168,7 +168,7 @@ allowlist_externals = extras = commands_pre = bash -c "pip freeze -q | grep 'asdf @' > {env_tmp_dir}/requirements.txt" - git clone https://github.com/astropy/specutils.git + git clone --depth 1 https://github.com/astropy/specutils.git pip install -e specutils[test] pip install -r {env_tmp_dir}/requirements.txt pip freeze @@ -183,7 +183,7 @@ allowlist_externals = extras = commands_pre = bash -c "pip freeze -q | grep 'asdf @' > {env_tmp_dir}/requirements.txt" - git clone https://github.com/spacetelescope/astrocut.git + git clone --depth 1 https://github.com/spacetelescope/astrocut.git pip install -e astrocut[test] pip install -r {env_tmp_dir}/requirements.txt pip freeze @@ -198,7 +198,7 @@ allowlist_externals = extras = commands_pre = bash -c "pip freeze -q | grep 'asdf @' > {env_tmp_dir}/requirements.txt" - git clone https://github.com/spacetelescope/gwcs.git + git clone --depth 1 https://github.com/spacetelescope/gwcs.git pip install -e gwcs[test] pip install -r {env_tmp_dir}/requirements.txt pip freeze @@ -220,7 +220,7 @@ set_env = CRDS_CLIENT_RETRY_DELAY_SECONDS = 20 commands_pre = bash -c "pip freeze -q | grep 'asdf @' > {env_tmp_dir}/requirements.txt" - git clone https://github.com/spacetelescope/jwst.git + git clone --depth 1 https://github.com/spacetelescope/jwst.git pip install -e jwst[test] pip install -r {env_tmp_dir}/requirements.txt pip freeze @@ -240,7 +240,7 @@ set_env = CRDS_CLIENT_RETRY_DELAY_SECONDS = 20 commands_pre = bash -c "pip freeze -q | grep 'asdf @' > {env_tmp_dir}/requirements.txt" - git clone https://github.com/spacetelescope/stdatamodels.git + git clone --depth 1 https://github.com/spacetelescope/stdatamodels.git pip install -e stdatamodels[test] pip install -r {env_tmp_dir}/requirements.txt pip freeze @@ -254,7 +254,7 @@ allowlist_externals = bash commands_pre = bash -c "pip freeze -q | grep 'asdf @' > {env_tmp_dir}/requirements.txt" - git clone https://github.com/spacetelescope/stpipe.git + git clone --depth 1 https://github.com/spacetelescope/stpipe.git pip install -e stpipe[test] pip install -r {env_tmp_dir}/requirements.txt pip freeze @@ -269,7 +269,7 @@ allowlist_externals = extras = commands_pre = bash -c "pip freeze -q | grep 'asdf @' > {env_tmp_dir}/requirements.txt" - git clone https://github.com/spacetelescope/roman_datamodels.git + git clone --depth 1 https://github.com/spacetelescope/roman_datamodels.git pip install -e roman_datamodels[test] pip install -r {env_tmp_dir}/requirements.txt pip freeze @@ -284,7 +284,7 @@ allowlist_externals = extras = commands_pre = bash -c "pip freeze -q | grep 'asdf @' > {env_tmp_dir}/requirements.txt" - git clone https://github.com/BAMWelDX/weldx.git + git clone --depth 1 https://github.com/BAMWelDX/weldx.git pip install -e weldx[test,media] pip install -r {env_tmp_dir}/requirements.txt pip freeze @@ -299,7 +299,7 @@ allowlist_externals = extras = commands_pre = bash -c "pip freeze -q | grep 'asdf @' > {env_tmp_dir}/requirements.txt" - git clone https://github.com/sunpy/sunpy.git + git clone --depth 1 https://github.com/sunpy/sunpy.git pip install -e sunpy[tests,all] pip install -r {env_tmp_dir}/requirements.txt pip freeze @@ -314,7 +314,7 @@ allowlist_externals = extras = commands_pre = bash -c "pip freeze -q | grep 'asdf @' > {env_tmp_dir}/requirements.txt" - git clone https://github.com/DKISTDC/dkist.git + git clone --depth 1 https://github.com/DKISTDC/dkist.git pip install -e dkist[tests] pip install -r {env_tmp_dir}/requirements.txt pip freeze @@ -333,10 +333,8 @@ allowlist_externals = 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] + git clone --depth 1 https://github.com/abacusorg/abacusutils.git + pip install -e ./abacusutils pytest 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