From e9bbd26a86f26cb5739b799a3861eb23c63eb67a Mon Sep 17 00:00:00 2001 From: "P. L. Lim" <2090236+pllim@users.noreply.github.com> Date: Tue, 21 Nov 2023 16:29:43 -0500 Subject: [PATCH] TST: Fix devdeps (#1075) * TST: Use pyerfa-dev for devdeps * TST: Ignore dateutil deprecation warning about utcfromtimestamp in Python 3.12 --- setup.cfg | 2 ++ tox.ini | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index ba10291c1..b2cbaa491 100644 --- a/setup.cfg +++ b/setup.cfg @@ -8,6 +8,8 @@ filterwarnings = ignore:numpy.ndarray size changed:RuntimeWarning ignore:numpy.ufunc size changed:RuntimeWarning ignore:distutils Version classes are deprecated:DeprecationWarning + # matplotlib + python-dateutil<=2.8.2 + Python 3.12 + ignore:datetime\.datetime\.utcfromtimestamp:DeprecationWarning [bdist_wheel] universal = 1 diff --git a/tox.ini b/tox.ini index afa269f5d..b1fe538b4 100644 --- a/tox.ini +++ b/tox.ini @@ -7,7 +7,7 @@ envlist = [testenv] setenv = - devdeps: PIP_EXTRA_INDEX_URL = https://pypi.anaconda.org/astropy/simple https://pypi.anaconda.org/scientific-python-nightly-wheels/simple + devdeps: PIP_EXTRA_INDEX_URL = https://pypi.anaconda.org/astropy/simple https://pypi.anaconda.org/liberfa/simple https://pypi.anaconda.org/scientific-python-nightly-wheels/simple # Pass through the following environemnt variables which are needed for the CI passenv = HOME,WINDIR,CC,CI @@ -46,6 +46,7 @@ deps = devdeps: numpy>=0.0.dev0 devdeps: scipy>=0.0.dev0 devdeps: matplotlib>=0.0.dev0 + devdeps: pyerfa>=0.0.dev0 devdeps: astropy>=0.0.dev0 devdeps: git+https://github.com/astropy/photutils@main#egg=photutils