From f76025fbb9be944ba0ed3d5224b79632244f85ac Mon Sep 17 00:00:00 2001 From: Zach Burnett Date: Wed, 22 Mar 2023 12:13:20 -0400 Subject: [PATCH 1/4] run tests on minimum dependencies --- .github/workflows/roman_ci.yml | 2 ++ tox.ini | 7 ++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/roman_ci.yml b/.github/workflows/roman_ci.yml index 23adba4d7..187520845 100644 --- a/.github/workflows/roman_ci.yml +++ b/.github/workflows/roman_ci.yml @@ -63,6 +63,8 @@ jobs: cache-path: /tmp/crds_cache cache-key: crds-${{ needs.crds_context.outputs.pmap }} envs: | + - linux: test-oldestdeps-cov-xdist + python-version: 3.8 - linux: test-xdist python-version: 3.8 - linux: test-xdist diff --git a/tox.ini b/tox.ini index b94df9499..1b090b5ea 100644 --- a/tox.ini +++ b/tox.ini @@ -37,6 +37,7 @@ description = run tests alldeps: with all optional dependencies devdeps: with the latest developer version of key dependencies + oldestdeps: with the oldest supported version of key dependencies pyargs: with --pyargs on installed package warnings: treating warnings as errors regtests: with --bigdata and --slow flags @@ -57,11 +58,11 @@ extras = deps = xdist: pytest-xdist devdeps: -rrequirements-dev.txt - numpy120: numpy==1.20.* - numpy121: numpy==1.21.* - numpy122: numpy==1.22.* ddtrace: ddtrace + oldestdeps: minimum_dependencies commands_pre = + oldestdeps: minimum_dependencies romancal --filename requirements-min.txt + oldestdeps: pip install -r requirements-min.txt pip freeze commands = pytest \ From 938d2a792f7ba9a383e0fb4b82d3b3d9ef713270 Mon Sep 17 00:00:00 2001 From: Zach Burnett Date: Wed, 22 Mar 2023 12:53:53 -0400 Subject: [PATCH 2/4] pin `jsonschema>=4.0.1` to satisfy minimum dependencies --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index ce81af6fb..2f9848d4c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,7 +17,7 @@ dependencies = [ 'astropy >=5.0.4', 'crds >=11.16.16', 'gwcs >=0.18.1', - 'jsonschema >=3.0.2', + 'jsonschema >=4.0.1', 'numpy >=1.20', 'pyparsing >=2.4.7', 'requests >=2.22', From 25dfe7ad8a81a27ec3db7ab4b60dc02d41ca79f8 Mon Sep 17 00:00:00 2001 From: Zach Burnett Date: Wed, 22 Mar 2023 12:57:38 -0400 Subject: [PATCH 3/4] pin `asdf>=2.14.2` to satisfy minimum dependencies --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 2f9848d4c..2db4234dc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,7 +12,7 @@ classifiers = [ 'Programming Language :: Python :: 3', ] dependencies = [ - 'asdf >=2.13.0', + 'asdf >=2.14.2', 'asdf-astropy >=0.4.0', 'astropy >=5.0.4', 'crds >=11.16.16', From 39e1fba8664aedc8252cf02f5d45741da5753924 Mon Sep 17 00:00:00 2001 From: Zach Burnett Date: Wed, 22 Mar 2023 13:29:46 -0400 Subject: [PATCH 4/4] add change log entry --- CHANGES.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGES.rst b/CHANGES.rst index abbf58715..b913bd8aa 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -7,6 +7,8 @@ general - Update non-VOunits to using ``astropy.units``. [#658] +- update minimum version of ``asdf`` to ``2.14.2`` and ``jsonschema`` to ``4.0.1`` and added minimum dependency checks to CI [#664] + 0.10.0 (2023-02-21) ===================