From 55bfc16d5456d3b9582ad0787a39084fdc758e48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Brigitta=20Sip=C5=91cz?= Date: Wed, 8 Jan 2025 23:13:03 -0800 Subject: [PATCH 1/3] MAINT: ignoring IERS warnings for now to pass tests on old python where there are no more updates --- setup.cfg | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/setup.cfg b/setup.cfg index a31efda2..f51901a8 100644 --- a/setup.cfg +++ b/setup.cfg @@ -17,6 +17,10 @@ filterwarnings = # Numpy 2.0 deprecations triggered by upstream libraries. # Exact warning messages differ, thus using a super generic filter. ignore:numpy.core:DeprecationWarning +# Added for python 3.8, cleanup once old python version support is removed +# (adding it to conftest is ineffective as the PrototypeWarning line above already +# triggers this warning at the time of collection + ignore::astropy.utils.iers.iers.IERSStaleWarning # We need to ignore this module level warning to not cause issues at collection time. # Remove it once warning is removed from code (in 1.7). ignore:pyvo.discover:pyvo.utils.prototype.PrototypeWarning From 651e46499c72b0cc4f31bdc8f339ce1cfd6e955a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Brigitta=20Sip=C5=91cz?= Date: Thu, 9 Jan 2025 09:22:19 -0800 Subject: [PATCH 2/3] MAINT: ignoring ErfaWarnings for now, too --- setup.cfg | 3 +++ 1 file changed, 3 insertions(+) diff --git a/setup.cfg b/setup.cfg index f51901a8..492a65ab 100644 --- a/setup.cfg +++ b/setup.cfg @@ -21,6 +21,9 @@ filterwarnings = # (adding it to conftest is ineffective as the PrototypeWarning line above already # triggers this warning at the time of collection ignore::astropy.utils.iers.iers.IERSStaleWarning +# These two are also needed for python 3.8 + ignore:Importing ErfaWarning:astropy.utils.exceptions.AstropyDeprecationWarning + ignore::astropy.utils.exceptions.ErfaWarning # We need to ignore this module level warning to not cause issues at collection time. # Remove it once warning is removed from code (in 1.7). ignore:pyvo.discover:pyvo.utils.prototype.PrototypeWarning From 890b9905f564787c7493b04f04f9a92dd3664210 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Brigitta=20Sip=C5=91cz?= Date: Thu, 9 Jan 2025 14:11:48 -0800 Subject: [PATCH 3/3] DOC: some more g-vo fix that was missed earlier --- docs/dal/index.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/dal/index.rst b/docs/dal/index.rst index 47384808..832b39e3 100644 --- a/docs/dal/index.rst +++ b/docs/dal/index.rst @@ -264,7 +264,7 @@ starting it, it creates a new object :py:class:`~pyvo.dal.AsyncTAPJob`. .. doctest-remote-data:: >>> job.url - 'http://dc.g-vo.org/__system__/tap/run/async/0nh4f2pt' + 'http://dc.g-vo.org/__system__/tap/run/async/...' The job URL mentioned before is available in the ``url`` attribute. Clicking on the URL leads you to the query itself, where you can check @@ -818,7 +818,6 @@ previews: ... ).run_sync("select top 5 * from califadr3.cubes order by califaid") >>> for dl in rows.iter_datalinks(): # doctest: +IGNORE_WARNINGS ... print(next(dl.bysemantics("#preview"))["access_url"]) - http://dc.zah.uni-heidelberg.de/getproduct/califa/datadr3/V1200/IC5376.V1200.rscube.fits?preview=True http://dc.g-vo.org/getproduct/califa/datadr3/V1200/IC5376.V1200.rscube.fits?preview=True http://dc.g-vo.org/getproduct/califa/datadr3/COMB/IC5376.COMB.rscube.fits?preview=True http://dc.g-vo.org/getproduct/califa/datadr3/V500/IC5376.V500.rscube.fits?preview=True