# Check that the hard Depends are enough for import
# cd to not-the-source-directory to get the installed pandas
Test-Command: cd "$AUTOPKGTEST_TMP" && python3 -c "import pandas;a=pandas.DataFrame([[1,2],[3,4]])"
Depends: python3-pandas
Restrictions: allow-stderr

# According to pandas/doc/source/install.rst, running the unit tests looks like:
# `pytest --skip-slow --skip-network /usr/lib/python3/dist-packages/pandas/ -v -rs`
# Or simply `python3 -c "import pandas as pd; pd.test()"`, which doesn't require
# us to specify the path (pandas.__path__) in command line.
# See: pandas/util/_tester.py
Tests: unittests3
# xml test_wrong_url fails without ca-certificates
Depends: python3-pandas,
         ca-certificates,
         locales-all,
         python3-all,
# this is a copy of Build-Depends (hence the indentation) except:
# remove python3-mesonpy, python3-versioneer (build tools)
# add python3-fastparquet, python3-pyreadstat, python3-xarray (-indep in build)
# we don't seem to have adbc-driver-postgresql/adbc-driver-sqlite
# python3-blosc is not actually used (blosc is used through python3-tables instead)
               python3-bottleneck (>= 1.4.2~),
               python3-bs4 (>= 4.12.3~),
# not in Debian python3-calamine (>= 0.3.0~),
               python3-dask (>= 2023.2.0~),
               python3-dateutil (>= 2.8.2~),
               python3-fsspec (>= 2024.10.0~),
               python3-html5lib (>= 1.1~),
               python3-hypothesis (>= 6.116.0~),
               python3-jinja2 (>= 3.1.5~),
               python3-lxml (>= 5.3.0~),
               python3-matplotlib (>= 3.9.3~) [!alpha !hurd-any !loong64 !m68k !powerpc !sh4 !sparc64 !x32],
               python3-mesonpy (>= 0.17.1~),
# all architectures where numba is available (since we dropped numba_warn_nonx86, we want to check that they all work)
               python3-numba (>= 0.60.0~) [amd64 arm64 ppc64el],
               python3-numexpr (>= 2.10.2~) [!hurd-any],
               python3-numpy (>= 1:2.3.3~),
               python3-odf (>= 1.4.1~),
               python3-openpyxl (>= 3.1.5~),
# doesn't seem to work in this test environment               python3-psycopg2 (>= 2.9.10~),
               python3-pyarrow (>= 13.0.0~) [amd64 arm64 loong64 ppc64el riscv64],
# doesn't seem to work in this test environment               python3-pymysql (>= 1.1.1~),
               python3-pyqt5 (>= 5.15.9~),
               python3-pytest (>= 8.3.4~),
               python3-pytest-asyncio (>= 0.17~),
               python3-pytest-forked,
               python3-pytest-localserver,
               python3-pytest-xdist (>= 3.6.1~),
               python3-pytestqt (>= 4.4.0~),
               python3-pytz (>= 2020.1~),
# we don't have python3-pyxlsb
               python3-s3fs (>= 2024.10.0~),
               python3-scipy (>= 1.14.1~),
               python3-setuptools (>= 51~),
               python3-sqlalchemy (>= 2.0.36~) [!hurd-any !hppa !powerpc !sparc64],
# python3-tables is now little-endian only, and also unavailable on some ports
               python3-tables (>= 3.10.1~) [!s390x !hppa !powerpc !ppc64 !sparc64 !hurd-any !alpha],
               python3-tabulate (>= 0.9.0~),
               python3-tk,
               python3-xlrd (>= 2.0.1~),
               python3-xlsxwriter,
               python3-versioneer,
               python3-zstandard (>= 0.23.0~),
# raises on import #1141635                     python3-fastparquet (>= 2024.11.0~),
                     python3-pyreadstat (>= 1.2.8~),
                     python3-xarray (>= 2024.10.0~),
         tzdata-legacy,
         xauth,
         xvfb,
         xsel
Restrictions: allow-stderr, needs-internet

# this test does not actually fail on failure - it exists to produce a log for monitoring known issues
# (we can't use plain xfails for this, because some of these crash not just fail)
Tests: ignoredtests
# identical dependencies to above except that:
# numba may be required on more architectures
# psycopg2/pymysql are included
Depends: python3-pandas,
         ca-certificates,
         locales-all,
         python3-all,
# we don't seem to have adbc-driver-postgresql/adbc-driver-sqlite
# python3-blosc is not actually used (blosc is used through python3-tables instead)
               python3-bottleneck (>= 1.4.2~),
               python3-bs4 (>= 4.12.3~),
# not in Debian python3-calamine (>= 0.3.0~),
               python3-dask (>= 2023.2.0~),
               python3-dateutil (>= 2.8.2~),
               python3-fsspec (>= 2024.10.0~),
               python3-html5lib (>= 1.1~),
               python3-hypothesis (>= 6.116.0~),
               python3-jinja2 (>= 3.1.5~),
               python3-lxml (>= 5.3.0~),
               python3-matplotlib (>= 3.9.3~) [!alpha !hurd-any !loong64 !m68k !powerpc !sh4 !sparc64 !x32],
               python3-mesonpy (>= 0.17.1~),
# all architectures where numba is available (since we dropped numba_warn_nonx86, we want to check that they all work)
               python3-numba (>= 0.60.0~) [amd64 arm64 ppc64el],
               python3-numexpr (>= 2.10.2~) [!hurd-any],
               python3-numpy (>= 1:2.3.3~),
               python3-odf (>= 1.4.1~),
               python3-openpyxl (>= 3.1.5~),
               python3-psycopg2 (>= 2.9.10~),
               python3-pyarrow (>= 13.0.0~) [amd64 arm64 loong64 ppc64el riscv64],
               python3-pymysql (>= 1.1.1~),
               python3-pyqt5 (>= 5.15.9~),
               python3-pytest (>= 8.3.4~),
               python3-pytest-asyncio (>= 0.17~),
               python3-pytest-forked,
               python3-pytest-localserver,
               python3-pytest-xdist (>= 3.6.1~),
               python3-pytestqt (>= 4.4.0~),
               python3-pytz (>= 2020.1~),
# we don't have python3-pyxlsb
               python3-s3fs (>= 2024.10.0~),
               python3-scipy (>= 1.14.1~),
               python3-setuptools (>= 51~),
               python3-sqlalchemy (>= 2.0.36~) [!hurd-any !hppa !powerpc !sparc64],
# python3-tables is now little-endian only, and also unavailable on some ports
               python3-tables (>= 3.10.1~) [!s390x !hppa !powerpc !ppc64 !sparc64 !hurd-any !alpha],
               python3-tabulate (>= 0.9.0~),
               python3-tk,
               python3-xlrd (>= 2.0.1~),
               python3-xlsxwriter,
               python3-versioneer,
               python3-zstandard (>= 0.23.0~),
# raises on import #1141635                     python3-fastparquet (>= 2024.11.0~),
                     python3-pyreadstat (>= 1.2.8~),
                     python3-xarray (>= 2024.10.0~),
         tzdata-legacy,
         xauth,
         xvfb,
         xsel
Restrictions: allow-stderr, needs-internet
