From 61da1383ba603c3a5317d066984ddc0227d1f7be Mon Sep 17 00:00:00 2001 From: Ole Streicher Date: Thu, 6 Jan 2022 20:48:03 +0100 Subject: [PATCH 1/2] Remove astropy dependency This removal breaks the circular dependency astropy --> pytest-astropy --> pytest-arraydiff which may be problematic when upgrading or so. It also eases the use of pytest-arraydiff in non-astropy environments. Astropy is only needed to compare FITS files. --- setup.cfg | 3 +++ 1 file changed, 3 insertions(+) diff --git a/setup.cfg b/setup.cfg index 858027a..e215b67 100644 --- a/setup.cfg +++ b/setup.cfg @@ -32,6 +32,9 @@ setup_requires = install_requires = pytest>=4.6 numpy + +[options.extras_require] +test = astropy [options.entry_points] From 2d3e67e26159238a361b6af1f4e21ce4fecaa3c8 Mon Sep 17 00:00:00 2001 From: "P. L. Lim" <2090236+pllim@users.noreply.github.com> Date: Thu, 6 Jan 2022 14:59:10 -0500 Subject: [PATCH 2/2] Install test dependencies for CI --- tox.ini | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index f1833ab..c278ab9 100644 --- a/tox.ini +++ b/tox.ini @@ -19,7 +19,8 @@ deps = pytest61: pytest==6.1.* pytest62: pytest==6.2.* pytestdev: git+https://github.com/pytest-dev/pytest#egg=pytest - +extras = + test commands = pip freeze pytest {toxinidir}/tests {posargs}