pandas.git
19 months agoMerge pandas (2.1.4+dfsg-8) import into refs/heads/workingbranch
Rebecca N. Palmer [Sun, 21 Apr 2024 12:50:13 +0000 (13:50 +0100)]
Merge pandas (2.1.4+dfsg-8) import into refs/heads/workingbranch

19 months agoIgnore dask test failures
Debian Science Team [Sun, 21 Apr 2024 12:50:13 +0000 (13:50 +0100)]
Ignore dask test failures

(to unblock other fixes -
these are probably a real bug but not in pandas)

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Bug-Debian: https://bugs.debian.org/1068422
Forwarded: no

Gbp-Pq: Name 1068422_ignore_dask_tests.patch

19 months agoDon't require 32-bit to be time32
Debian Science Team [Sun, 21 Apr 2024 12:50:13 +0000 (13:50 +0100)]
Don't require 32-bit to be time32

Debian armhf/armel (but not i386) are now time64

Author: Graham Inggs
Bug-Debian: https://bugs.debian.org/1068104
Forwarded: no

Gbp-Pq: Name 1068104_time64.patch

19 months agoAvoid test-failing xarray warning
Debian Science Team [Sun, 21 Apr 2024 12:50:13 +0000 (13:50 +0100)]
Avoid test-failing xarray warning

Author: Luke Manley
Origin: upstream https://github.com/pandas-dev/pandas/pull/56949
Bug-Debian: https://bugs.debian.org/1066801
Forwarded: not-needed

Gbp-Pq: Name xarray2024_compat.patch

19 months agoDon't fail sum test on near-cancelling inputs
Debian Science Team [Sun, 21 Apr 2024 12:50:13 +0000 (13:50 +0100)]
Don't fail sum test on near-cancelling inputs

Failed in 1.5.3+dfsg-11 after it happened to select an input that
cancelled to ~1e-5 (on i386, so x87 excess precision might be involved)

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name sum_loosen_test_tolerance.patch

19 months agoAllow blosc2 to report the type used
Debian Science Team [Sun, 21 Apr 2024 12:50:13 +0000 (13:50 +0100)]
Allow blosc2 to report the type used

e.g. the bug had blosc2:blosclz

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Bug-Debian: https://bugs.debian.org/1061043
Forwarded: no - upstream 55524 xfailed some but not all cases

Gbp-Pq: Name test_complibs_blosc2.patch

19 months agoIgnore DeprecationWarnings from Python 3.12
Debian Science Team [Sun, 21 Apr 2024 12:50:13 +0000 (13:50 +0100)]
Ignore DeprecationWarnings from Python 3.12

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name ignore_python3p12_deprecations.patch

19 months agoIgnore pytables test failures with Python 3.12
Debian Science Team [Sun, 21 Apr 2024 12:50:13 +0000 (13:50 +0100)]
Ignore pytables test failures with Python 3.12

The combined xfails are because two separate xfails where only one
has run=False may run, which is a problem when the run=False exists
to avoid a crash - see 1.5.3+dfsg-8 armhf build log

Bug-Debian: https://bugs.debian.org/1055801
Bug-Ubuntu: https://launchpad.net/ubuntu/+bug/2043895
Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name pytables_python3p12.patch

19 months agoFix test failures when xlsxwriter is not installed
Debian Science Team [Sun, 21 Apr 2024 12:50:13 +0000 (13:50 +0100)]
Fix test failures when xlsxwriter is not installed

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name 2p1_openpyxl_errors.patch

19 months agoMark tests that need openpyxl
Debian Science Team [Sun, 21 Apr 2024 12:50:13 +0000 (13:50 +0100)]
Mark tests that need openpyxl

(These do the usual loop through engine/read_ext but
actually use .xlsx every time)

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name allow_no_openpyxl.patch

19 months agoWork around xarray wrongly reporting its version
Debian Science Team [Sun, 21 Apr 2024 12:50:13 +0000 (13:50 +0100)]
Work around xarray wrongly reporting its version

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name xarray_version_workaround.patch

19 months agoIgnore exceptions in documentation examples
Debian Science Team [Sun, 21 Apr 2024 12:50:13 +0000 (13:50 +0100)]
Ignore exceptions in documentation examples

Some examples download data, and/or depend on
packages Debian doesn't have, so can't run in a Debian build

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: not-needed

Gbp-Pq: Name ignore_ipython_exceptions.patch

19 months agoDon't crash on clean
Debian Science Team [Sun, 21 Apr 2024 12:50:13 +0000 (13:50 +0100)]
Don't crash on clean

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name unbreak_clean.patch

19 months agoDon't try to run matplotlib-using tests without it
Debian Science Team [Sun, 21 Apr 2024 12:50:13 +0000 (13:50 +0100)]
Don't try to run matplotlib-using tests without it

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name allow_no_matplotlib.patch

19 months agoOn mips, 1**np.nan and np.nan**0 may be NaN not 1
Debian Science Team [Sun, 21 Apr 2024 12:50:13 +0000 (13:50 +0100)]
On mips, 1**np.nan and np.nan**0 may be NaN not 1

Done this way not a plain xfail to allow only this difference,
not clearly wrong answers

(The same hardware's "invalid value encountered" warnings,
probably from sNaN/qNaN being reversed, are ignored elsewhere:
d/rules and xfail_tests_nonintel_io.patch)

https://en.wikipedia.org/wiki/NaN#Encoding

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name mips_pow_nan.patch

19 months agoWarn that numba may not work on non-x86
Debian Science Team [Sun, 21 Apr 2024 12:50:13 +0000 (13:50 +0100)]
Warn that numba may not work on non-x86

Currently known issues are crashes, not wrong answers, but because
the test setup doesn't allow ignoring crashes but failing on
wrong answers, it would be easy to not notice if this changed

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name numba_warn_nonx86.patch

19 months agoDon't require python3-tzdata
Debian Science Team [Sun, 21 Apr 2024 12:50:13 +0000 (13:50 +0100)]
Don't require python3-tzdata

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Bug-Debian: https://bugs.debian.org/1043968
Forwarded: no

Gbp-Pq: Name accept_system_tzdata.patch

19 months agoDon't assume little-endian in test references
Debian Science Team [Sun, 21 Apr 2024 12:50:13 +0000 (13:50 +0100)]
Don't assume little-endian in test references

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name tests_dont_assume_endian.patch

19 months agoAllow building docs with Sphinx 7
Debian Science Team [Sun, 21 Apr 2024 12:50:13 +0000 (13:50 +0100)]
Allow building docs with Sphinx 7

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Bug-Debian: https://bugs.debian.org/1042672
Forwarded: https://github.com/pandas-dev/pandas/pull/54653

Gbp-Pq: Name sphinx7_compat.patch

19 months agoDon't fail plot tests on rounding error
Debian Science Team [Sun, 21 Apr 2024 12:50:13 +0000 (13:50 +0100)]
Don't fail plot tests on rounding error

(upstream seem to have _disabled_ the affected tests
...see also test_series)

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Bug-Debian: https://bugs.debian.org/1029251
Forwarded: no

Gbp-Pq: Name 1029251_ignore_rounding_error.patch

19 months agoAllow building with Debian's pydata-sphinx-theme
Debian Science Team [Sun, 21 Apr 2024 12:50:13 +0000 (13:50 +0100)]
Allow building with Debian's pydata-sphinx-theme

This is currently too old to have all the options upstream expects

Gbp-Pq: Name sphinx_old_pydata_theme.patch

19 months agoDon't try to use a Sphinx extension we don't have
Debian Science Team [Sun, 21 Apr 2024 12:50:13 +0000 (13:50 +0100)]
Don't try to use a Sphinx extension we don't have

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: not-needed

Gbp-Pq: Name no_sphinx_toggleprompt.patch

19 months agoDon't require a warning armel numpy doesn't have
Debian Science Team [Sun, 21 Apr 2024 12:50:13 +0000 (13:50 +0100)]
Don't require a warning armel numpy doesn't have

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no (this version requires dpkg)

Gbp-Pq: Name armel_ignore_nonwarning.patch

19 months agoFix test failures on 32-bit systems
Debian Science Team [Sun, 21 Apr 2024 12:50:13 +0000 (13:50 +0100)]
Fix test failures on 32-bit systems

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Bug-Debian: partly https://bugs.debian.org/1026351
Forwarded: no

Gbp-Pq: Name tests_dont_assume_64bit.patch

19 months agoFix arch-specific upstream xfails
Debian Science Team [Sun, 21 Apr 2024 12:50:13 +0000 (13:50 +0100)]
Fix arch-specific upstream xfails

We test on more architectures, so upstream's xfails are not always
correct everywhere.  On those known to fail:
arm64 xfail -> all non-x86 xfail
x86 or unconditional strict xfail -> unconditional nonstrict xfail

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Bug: https://github.com/pandas-dev/pandas/issues/38921, https://github.com/pandas-dev/pandas/issues/38798, https://github.com/pandas-dev/pandas/issues/41740, https://github.com/numpy/numpy/issues/19146
Forwarded: no

Gbp-Pq: Name fix_overly_arch_specific_xfails.patch

19 months agoSkip test that fails from outside the source tree
Debian Science Team [Sun, 21 Apr 2024 12:50:13 +0000 (13:50 +0100)]
Skip test that fails from outside the source tree

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: not-needed

Gbp-Pq: Name skip_test_missing_required_dependency.patch

19 months agoAvoid test failures on Hurd
Debian Science Team [Sun, 21 Apr 2024 12:50:13 +0000 (13:50 +0100)]
Avoid test failures on Hurd

Allow multiprocessing to be unavailable
Accept any errno not just 2 for (intentionally) nonexistent files
(Hurd appears to use 2**30+2)

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name hurd_compat.patch

19 months agoAllow some numba errors on 32-bit
Debian Science Team [Sun, 21 Apr 2024 12:50:13 +0000 (13:50 +0100)]
Allow some numba errors on 32-bit

Specifying the exception type allows only explicit errors,
not silently wrong answers

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name numba_fail_32bit.patch

19 months agoRemove code from Stack Overflow
Debian Science Team [Sun, 21 Apr 2024 12:50:13 +0000 (13:50 +0100)]
Remove code from Stack Overflow

Stack Overflow content is CC-BY-SA licensed,
which this package is not supposed to be.  These snippets may be
too small to be copyrightable, but removing them to be safe.

https://lists.debian.org/debian-legal/2020/04/threads.html#00018

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no - deletes some tests/examples without replacement

Gbp-Pq: Name remove_ccbysa_snippets.patch

19 months agoAllow tests to use the data files in the source tree
Debian Science Team [Sun, 21 Apr 2024 12:50:13 +0000 (13:50 +0100)]
Allow tests to use the data files in the source tree

We don't ship these in the package,
but do want to run the tests that use them

tests_path() is removed completely because it is unclear whether it
should point to the tests code or the directory above the test data

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: https://github.com/pandas-dev/pandas/issues/54907

Gbp-Pq: Name find_test_data.patch

19 months agoLink to rather than embed Google calendar
Debian Science Team [Sun, 21 Apr 2024 12:50:13 +0000 (13:50 +0100)]
Link to rather than embed Google calendar

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: not-needed

Gbp-Pq: Name privacy.patch

19 months agoUse fixed seeds for reproducible pseudorandomness
Debian Science Team [Sun, 21 Apr 2024 12:50:13 +0000 (13:50 +0100)]
Use fixed seeds for reproducible pseudorandomness

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name fix_random_seeds.patch

19 months agoDon't try to read a contributor list from the git log
Debian Science Team [Sun, 21 Apr 2024 12:50:13 +0000 (13:50 +0100)]
Don't try to read a contributor list from the git log

Debian packages are built from tarballs, so there isn't a git log.

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: not-needed

Gbp-Pq: Name contributor_list_not_in_tarball.patch

19 months agoUse packaged intersphinx indexes
Debian Science Team [Sun, 21 Apr 2024 12:50:13 +0000 (13:50 +0100)]
Use packaged intersphinx indexes

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Bug-Debian: https://bugs.debian.org/876417
Forwarded: not-needed

Gbp-Pq: Name use_system_intersphinx.patch

19 months agoUse Debian packaged mathjax
Debian Science Team [Sun, 21 Apr 2024 12:50:13 +0000 (13:50 +0100)]
Use Debian packaged mathjax

Author: Andreas Tille <tille@debian.org>
Forwarded: not-needed

Gbp-Pq: Name mathjax-path.patch

19 months agoAvoid privacy breach by Google Analytics
Debian Science Team [Sun, 21 Apr 2024 12:50:13 +0000 (13:50 +0100)]
Avoid privacy breach by Google Analytics

Author: Yaroslav Halchenko <debian@onerussian.com>,
        Andreas Tille <tille@debian.org>,
        Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: not-needed

Gbp-Pq: Name deb_disable_googleanalytics.patch

19 months agoHDF5 and Stata I/O are broken on some architectures
Debian Science Team [Sun, 21 Apr 2024 12:50:13 +0000 (13:50 +0100)]
HDF5 and Stata I/O are broken on some architectures

Fix some issues, warn on use and xfail tests for the remainder

Everything that has a run=False xfail in here should also be in
the run-and-ignore set in debian/tests/numbatests

armhf TestHDF5Store::test*encoding only sometimes crashes
(1.1.3+dfsg-1 passed on build but failed autopkgtest)

HDF5 and Stata are known to fail on big-endian architectures
Stata was previously seen to fail on qemu-ppc64el, but not real ppc64el

Author: Andreas Tille <tille@debian.org>, Graham Inggs <ginggs@debian.org>, Yaroslav Halchenko <debian@onerussian.com>, Rebecca N. Palmer <rebecca_palmer@zoho.com>
Bug-Debian: https://bugs.debian.org/877419
Bug: partly https://github.com/pandas-dev/pandas/issues/54396
Forwarded: no

Gbp-Pq: Name xfail_tests_nonintel_io.patch

19 months agoDon't try to import from the source directory
Debian Science Team [Sun, 21 Apr 2024 12:50:13 +0000 (13:50 +0100)]
Don't try to import from the source directory

Needed as we build the extension modules elsewhere

Author: Yaroslav Halchenko
Forwarded: not-needed

Gbp-Pq: Name deb_doc_donotoverride_PYTHONPATH.patch

19 months agoDon't try to use git to find the version number
Debian Science Team [Sun, 21 Apr 2024 12:50:13 +0000 (13:50 +0100)]
Don't try to use git to find the version number

Needed as Debian buildds use tarballs

Author: Yaroslav Halchenko
Forwarded: not-needed

Gbp-Pq: Name deb_nonversioneer_version.patch

19 months agopandas (2.1.4+dfsg-8) unstable; urgency=medium
Rebecca N. Palmer [Sun, 21 Apr 2024 12:50:13 +0000 (13:50 +0100)]
pandas (2.1.4+dfsg-8) unstable; urgency=medium

  * Re-enable the documentation.
  * Bump Standards-Version to 4.7.0 (no changes needed).

[dgit import unpatched pandas 2.1.4+dfsg-8]

19 months agoImport pandas_2.1.4+dfsg-8.debian.tar.xz
Rebecca N. Palmer [Sun, 21 Apr 2024 12:50:13 +0000 (13:50 +0100)]
Import pandas_2.1.4+dfsg-8.debian.tar.xz

[dgit import tarball pandas 2.1.4+dfsg-8 pandas_2.1.4+dfsg-8.debian.tar.xz]

22 months agoMerge pandas (2.1.4+dfsg-5) import into refs/heads/workingbranch
Rebecca N. Palmer [Sun, 18 Feb 2024 20:31:18 +0000 (20:31 +0000)]
Merge pandas (2.1.4+dfsg-5) import into refs/heads/workingbranch

22 months agoDon't fail sum test on near-cancelling inputs
Debian Science Team [Sun, 18 Feb 2024 20:31:18 +0000 (20:31 +0000)]
Don't fail sum test on near-cancelling inputs

Failed in 1.5.3+dfsg-11 after it happened to select an input that
cancelled to ~1e-5 (on i386, so x87 excess precision might be involved)

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name sum_loosen_test_tolerance.patch

22 months agoAllow blosc2 to report the type used
Debian Science Team [Sun, 18 Feb 2024 20:31:18 +0000 (20:31 +0000)]
Allow blosc2 to report the type used

e.g. the bug had blosc2:blosclz

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Bug-Debian: https://bugs.debian.org/1061043
Forwarded: no - upstream 55524 xfailed some but not all cases

Gbp-Pq: Name test_complibs_blosc2.patch

22 months agoIgnore DeprecationWarnings from Python 3.12
Debian Science Team [Sun, 18 Feb 2024 20:31:18 +0000 (20:31 +0000)]
Ignore DeprecationWarnings from Python 3.12

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name ignore_python3p12_deprecations.patch

22 months agoIgnore pytables test failures with Python 3.12
Debian Science Team [Sun, 18 Feb 2024 20:31:18 +0000 (20:31 +0000)]
Ignore pytables test failures with Python 3.12

The combined xfails are because two separate xfails where only one
has run=False may run, which is a problem when the run=False exists
to avoid a crash - see 1.5.3+dfsg-8 armhf build log

Bug-Debian: https://bugs.debian.org/1055801
Bug-Ubuntu: https://launchpad.net/ubuntu/+bug/2043895
Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name pytables_python3p12.patch

22 months agoFix test failures when xlsxwriter is not installed
Debian Science Team [Sun, 18 Feb 2024 20:31:18 +0000 (20:31 +0000)]
Fix test failures when xlsxwriter is not installed

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name 2p1_openpyxl_errors.patch

22 months agoMark tests that need openpyxl
Debian Science Team [Sun, 18 Feb 2024 20:31:18 +0000 (20:31 +0000)]
Mark tests that need openpyxl

(These do the usual loop through engine/read_ext but
actually use .xlsx every time)

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name allow_no_openpyxl.patch

22 months agoWork around xarray wrongly reporting its version
Debian Science Team [Sun, 18 Feb 2024 20:31:18 +0000 (20:31 +0000)]
Work around xarray wrongly reporting its version

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name xarray_version_workaround.patch

22 months agoIgnore exceptions in documentation examples
Debian Science Team [Sun, 18 Feb 2024 20:31:18 +0000 (20:31 +0000)]
Ignore exceptions in documentation examples

Some examples download data, and/or depend on
packages Debian doesn't have, so can't run in a Debian build

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: not-needed

Gbp-Pq: Name ignore_ipython_exceptions.patch

22 months agoDon't crash on clean
Debian Science Team [Sun, 18 Feb 2024 20:31:18 +0000 (20:31 +0000)]
Don't crash on clean

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name unbreak_clean.patch

22 months agoDon't try to run matplotlib-using tests without it
Debian Science Team [Sun, 18 Feb 2024 20:31:18 +0000 (20:31 +0000)]
Don't try to run matplotlib-using tests without it

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name allow_no_matplotlib.patch

22 months agoOn mips, 1**np.nan and np.nan**0 may be NaN not 1
Debian Science Team [Sun, 18 Feb 2024 20:31:18 +0000 (20:31 +0000)]
On mips, 1**np.nan and np.nan**0 may be NaN not 1

Done this way not a plain xfail to allow only this difference,
not clearly wrong answers

(The same hardware's "invalid value encountered" warnings,
probably from sNaN/qNaN being reversed, are ignored elsewhere:
d/rules and xfail_tests_nonintel_io.patch)

https://en.wikipedia.org/wiki/NaN#Encoding

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name mips_pow_nan.patch

22 months agoWarn that numba may not work on non-x86
Debian Science Team [Sun, 18 Feb 2024 20:31:18 +0000 (20:31 +0000)]
Warn that numba may not work on non-x86

Currently known issues are crashes, not wrong answers, but because
the test setup doesn't allow ignoring crashes but failing on
wrong answers, it would be easy to not notice if this changed

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name numba_warn_nonx86.patch

22 months agoDon't require python3-tzdata
Debian Science Team [Sun, 18 Feb 2024 20:31:18 +0000 (20:31 +0000)]
Don't require python3-tzdata

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Bug-Debian: https://bugs.debian.org/1043968
Forwarded: no

Gbp-Pq: Name accept_system_tzdata.patch

22 months agoDon't assume little-endian in test references
Debian Science Team [Sun, 18 Feb 2024 20:31:18 +0000 (20:31 +0000)]
Don't assume little-endian in test references

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name tests_dont_assume_endian.patch

22 months agoAllow building docs with Sphinx 7
Debian Science Team [Sun, 18 Feb 2024 20:31:18 +0000 (20:31 +0000)]
Allow building docs with Sphinx 7

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Bug-Debian: https://bugs.debian.org/1042672
Forwarded: https://github.com/pandas-dev/pandas/pull/54653

Gbp-Pq: Name sphinx7_compat.patch

22 months agoDon't fail plot tests on rounding error
Debian Science Team [Sun, 18 Feb 2024 20:31:18 +0000 (20:31 +0000)]
Don't fail plot tests on rounding error

(upstream seem to have _disabled_ the affected tests
...see also test_series)

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Bug-Debian: https://bugs.debian.org/1029251
Forwarded: no

Gbp-Pq: Name 1029251_ignore_rounding_error.patch

22 months agoAllow building with Debian's pydata-sphinx-theme
Debian Science Team [Sun, 18 Feb 2024 20:31:18 +0000 (20:31 +0000)]
Allow building with Debian's pydata-sphinx-theme

This is currently too old to have all the options upstream expects

Gbp-Pq: Name sphinx_old_pydata_theme.patch

22 months agoDon't try to use a Sphinx extension we don't have
Debian Science Team [Sun, 18 Feb 2024 20:31:18 +0000 (20:31 +0000)]
Don't try to use a Sphinx extension we don't have

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: not-needed

Gbp-Pq: Name no_sphinx_toggleprompt.patch

22 months agoDon't require a warning armel numpy doesn't have
Debian Science Team [Sun, 18 Feb 2024 20:31:18 +0000 (20:31 +0000)]
Don't require a warning armel numpy doesn't have

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no (this version requires dpkg)

Gbp-Pq: Name armel_ignore_nonwarning.patch

22 months agoFix test failures on 32-bit systems
Debian Science Team [Sun, 18 Feb 2024 20:31:18 +0000 (20:31 +0000)]
Fix test failures on 32-bit systems

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Bug-Debian: partly https://bugs.debian.org/1026351
Forwarded: no

Gbp-Pq: Name tests_dont_assume_64bit.patch

22 months agoFix arch-specific upstream xfails
Debian Science Team [Sun, 18 Feb 2024 20:31:18 +0000 (20:31 +0000)]
Fix arch-specific upstream xfails

We test on more architectures, so upstream's xfails are not always
correct everywhere.  On those known to fail:
arm64 xfail -> all non-x86 xfail
x86 or unconditional strict xfail -> unconditional nonstrict xfail

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Bug: https://github.com/pandas-dev/pandas/issues/38921, https://github.com/pandas-dev/pandas/issues/38798, https://github.com/pandas-dev/pandas/issues/41740, https://github.com/numpy/numpy/issues/19146
Forwarded: no

Gbp-Pq: Name fix_overly_arch_specific_xfails.patch

22 months agoSkip test that fails from outside the source tree
Debian Science Team [Sun, 18 Feb 2024 20:31:18 +0000 (20:31 +0000)]
Skip test that fails from outside the source tree

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: not-needed

Gbp-Pq: Name skip_test_missing_required_dependency.patch

22 months agoAvoid test failures on Hurd
Debian Science Team [Sun, 18 Feb 2024 20:31:18 +0000 (20:31 +0000)]
Avoid test failures on Hurd

Allow multiprocessing to be unavailable
Accept any errno not just 2 for (intentionally) nonexistent files
(Hurd appears to use 2**30+2)

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name hurd_compat.patch

22 months agoAllow some numba errors on 32-bit
Debian Science Team [Sun, 18 Feb 2024 20:31:18 +0000 (20:31 +0000)]
Allow some numba errors on 32-bit

Specifying the exception type allows only explicit errors,
not silently wrong answers

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name numba_fail_32bit.patch

22 months agoRemove code from Stack Overflow
Debian Science Team [Sun, 18 Feb 2024 20:31:18 +0000 (20:31 +0000)]
Remove code from Stack Overflow

Stack Overflow content is CC-BY-SA licensed,
which this package is not supposed to be.  These snippets may be
too small to be copyrightable, but removing them to be safe.

https://lists.debian.org/debian-legal/2020/04/threads.html#00018

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no - deletes some tests/examples without replacement

Gbp-Pq: Name remove_ccbysa_snippets.patch

22 months agoAllow tests to use the data files in the source tree
Debian Science Team [Sun, 18 Feb 2024 20:31:18 +0000 (20:31 +0000)]
Allow tests to use the data files in the source tree

We don't ship these in the package,
but do want to run the tests that use them

tests_path() is removed completely because it is unclear whether it
should point to the tests code or the directory above the test data

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: https://github.com/pandas-dev/pandas/issues/54907

Gbp-Pq: Name find_test_data.patch

22 months agoLink to rather than embed Google calendar
Debian Science Team [Sun, 18 Feb 2024 20:31:18 +0000 (20:31 +0000)]
Link to rather than embed Google calendar

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: not-needed

Gbp-Pq: Name privacy.patch

22 months agoUse fixed seeds for reproducible pseudorandomness
Debian Science Team [Sun, 18 Feb 2024 20:31:18 +0000 (20:31 +0000)]
Use fixed seeds for reproducible pseudorandomness

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name fix_random_seeds.patch

22 months agoDon't try to read a contributor list from the git log
Debian Science Team [Sun, 18 Feb 2024 20:31:18 +0000 (20:31 +0000)]
Don't try to read a contributor list from the git log

Debian packages are built from tarballs, so there isn't a git log.

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: not-needed

Gbp-Pq: Name contributor_list_not_in_tarball.patch

22 months agoUse packaged intersphinx indexes
Debian Science Team [Sun, 18 Feb 2024 20:31:18 +0000 (20:31 +0000)]
Use packaged intersphinx indexes

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Bug-Debian: https://bugs.debian.org/876417
Forwarded: not-needed

Gbp-Pq: Name use_system_intersphinx.patch

22 months agoUse Debian packaged mathjax
Debian Science Team [Sun, 18 Feb 2024 20:31:18 +0000 (20:31 +0000)]
Use Debian packaged mathjax

Author: Andreas Tille <tille@debian.org>
Forwarded: not-needed

Gbp-Pq: Name mathjax-path.patch

22 months agoAvoid privacy breach by Google Analytics
Debian Science Team [Sun, 18 Feb 2024 20:31:18 +0000 (20:31 +0000)]
Avoid privacy breach by Google Analytics

Author: Yaroslav Halchenko <debian@onerussian.com>,
        Andreas Tille <tille@debian.org>,
        Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: not-needed

Gbp-Pq: Name deb_disable_googleanalytics.patch

22 months agoHDF5 and Stata I/O are broken on some architectures
Debian Science Team [Sun, 18 Feb 2024 20:31:18 +0000 (20:31 +0000)]
HDF5 and Stata I/O are broken on some architectures

Fix some issues, warn on use and xfail tests for the remainder

Everything that has a run=False xfail in here should also be in
the run-and-ignore set in debian/tests/numbatests

armhf TestHDF5Store::test*encoding only sometimes crashes
(1.1.3+dfsg-1 passed on build but failed autopkgtest)

HDF5 and Stata are known to fail on big-endian architectures
Stata was previously seen to fail on qemu-ppc64el, but not real ppc64el

Author: Andreas Tille <tille@debian.org>, Graham Inggs <ginggs@debian.org>, Yaroslav Halchenko <debian@onerussian.com>, Rebecca N. Palmer <rebecca_palmer@zoho.com>
Bug-Debian: https://bugs.debian.org/877419
Bug: partly https://github.com/pandas-dev/pandas/issues/54396
Forwarded: no

Gbp-Pq: Name xfail_tests_nonintel_io.patch

22 months agoDon't try to import from the source directory
Debian Science Team [Sun, 18 Feb 2024 20:31:18 +0000 (20:31 +0000)]
Don't try to import from the source directory

Needed as we build the extension modules elsewhere

Author: Yaroslav Halchenko
Forwarded: not-needed

Gbp-Pq: Name deb_doc_donotoverride_PYTHONPATH.patch

22 months agoDon't try to use git to find the version number
Debian Science Team [Sun, 18 Feb 2024 20:31:18 +0000 (20:31 +0000)]
Don't try to use git to find the version number

Needed as Debian buildds use tarballs

Author: Yaroslav Halchenko
Forwarded: not-needed

Gbp-Pq: Name deb_nonversioneer_version.patch

22 months agopandas (2.1.4+dfsg-5) unstable; urgency=medium
Rebecca N. Palmer [Sun, 18 Feb 2024 20:31:18 +0000 (20:31 +0000)]
pandas (2.1.4+dfsg-5) unstable; urgency=medium

  * Tests: stop trying to test __pycache__. (Closes: #1063959)

[dgit import unpatched pandas 2.1.4+dfsg-5]

22 months agoImport pandas_2.1.4+dfsg-5.debian.tar.xz
Rebecca N. Palmer [Sun, 18 Feb 2024 20:31:18 +0000 (20:31 +0000)]
Import pandas_2.1.4+dfsg-5.debian.tar.xz

[dgit import tarball pandas 2.1.4+dfsg-5 pandas_2.1.4+dfsg-5.debian.tar.xz]

22 months agoMerge pandas (2.1.4+dfsg-4) import into refs/heads/workingbranch
Rebecca N. Palmer [Fri, 9 Feb 2024 20:48:14 +0000 (20:48 +0000)]
Merge pandas (2.1.4+dfsg-4) import into refs/heads/workingbranch

22 months agoDon't fail sum test on near-cancelling inputs
Debian Science Team [Fri, 9 Feb 2024 20:48:14 +0000 (20:48 +0000)]
Don't fail sum test on near-cancelling inputs

Failed in 1.5.3+dfsg-11 after it happened to select an input that
cancelled to ~1e-5 (on i386, so x87 excess precision might be involved)

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name sum_loosen_test_tolerance.patch

22 months agoAllow blosc2 to report the type used
Debian Science Team [Fri, 9 Feb 2024 20:48:14 +0000 (20:48 +0000)]
Allow blosc2 to report the type used

e.g. the bug had blosc2:blosclz

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Bug-Debian: https://bugs.debian.org/1061043
Forwarded: no - upstream 55524 xfailed some but not all cases

Gbp-Pq: Name test_complibs_blosc2.patch

22 months agoIgnore DeprecationWarnings from Python 3.12
Debian Science Team [Fri, 9 Feb 2024 20:48:14 +0000 (20:48 +0000)]
Ignore DeprecationWarnings from Python 3.12

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name ignore_python3p12_deprecations.patch

22 months agoIgnore pytables test failures with Python 3.12
Debian Science Team [Fri, 9 Feb 2024 20:48:14 +0000 (20:48 +0000)]
Ignore pytables test failures with Python 3.12

The combined xfails are because two separate xfails where only one
has run=False may run, which is a problem when the run=False exists
to avoid a crash - see 1.5.3+dfsg-8 armhf build log

Bug-Debian: https://bugs.debian.org/1055801
Bug-Ubuntu: https://launchpad.net/ubuntu/+bug/2043895
Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name pytables_python3p12.patch

22 months agoFix test failures when xlsxwriter is not installed
Debian Science Team [Fri, 9 Feb 2024 20:48:14 +0000 (20:48 +0000)]
Fix test failures when xlsxwriter is not installed

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name 2p1_openpyxl_errors.patch

22 months agoMark tests that need openpyxl
Debian Science Team [Fri, 9 Feb 2024 20:48:14 +0000 (20:48 +0000)]
Mark tests that need openpyxl

(These do the usual loop through engine/read_ext but
actually use .xlsx every time)

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name allow_no_openpyxl.patch

22 months agoWork around xarray wrongly reporting its version
Debian Science Team [Fri, 9 Feb 2024 20:48:14 +0000 (20:48 +0000)]
Work around xarray wrongly reporting its version

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name xarray_version_workaround.patch

22 months agoIgnore exceptions in documentation examples
Debian Science Team [Fri, 9 Feb 2024 20:48:14 +0000 (20:48 +0000)]
Ignore exceptions in documentation examples

Some examples download data, and/or depend on
packages Debian doesn't have, so can't run in a Debian build

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: not-needed

Gbp-Pq: Name ignore_ipython_exceptions.patch

22 months agoDon't crash on clean
Debian Science Team [Fri, 9 Feb 2024 20:48:14 +0000 (20:48 +0000)]
Don't crash on clean

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name unbreak_clean.patch

22 months agoDon't try to run matplotlib-using tests without it
Debian Science Team [Fri, 9 Feb 2024 20:48:14 +0000 (20:48 +0000)]
Don't try to run matplotlib-using tests without it

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name allow_no_matplotlib.patch

22 months agoOn mips, 1**np.nan and np.nan**0 may be NaN not 1
Debian Science Team [Fri, 9 Feb 2024 20:48:14 +0000 (20:48 +0000)]
On mips, 1**np.nan and np.nan**0 may be NaN not 1

Done this way not a plain xfail to allow only this difference,
not clearly wrong answers

(The same hardware's "invalid value encountered" warnings,
probably from sNaN/qNaN being reversed, are ignored elsewhere:
d/rules and xfail_tests_nonintel_io.patch)

https://en.wikipedia.org/wiki/NaN#Encoding

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name mips_pow_nan.patch

22 months agoWarn that numba may not work on non-x86
Debian Science Team [Fri, 9 Feb 2024 20:48:14 +0000 (20:48 +0000)]
Warn that numba may not work on non-x86

Currently known issues are crashes, not wrong answers, but because
the test setup doesn't allow ignoring crashes but failing on
wrong answers, it would be easy to not notice if this changed

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name numba_warn_nonx86.patch

22 months agoDon't require python3-tzdata
Debian Science Team [Fri, 9 Feb 2024 20:48:14 +0000 (20:48 +0000)]
Don't require python3-tzdata

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Bug-Debian: https://bugs.debian.org/1043968
Forwarded: no

Gbp-Pq: Name accept_system_tzdata.patch

22 months agoDon't assume little-endian in test references
Debian Science Team [Fri, 9 Feb 2024 20:48:14 +0000 (20:48 +0000)]
Don't assume little-endian in test references

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no

Gbp-Pq: Name tests_dont_assume_endian.patch

22 months agoAllow building docs with Sphinx 7
Debian Science Team [Fri, 9 Feb 2024 20:48:14 +0000 (20:48 +0000)]
Allow building docs with Sphinx 7

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Bug-Debian: https://bugs.debian.org/1042672
Forwarded: https://github.com/pandas-dev/pandas/pull/54653

Gbp-Pq: Name sphinx7_compat.patch

22 months agoDon't fail plot tests on rounding error
Debian Science Team [Fri, 9 Feb 2024 20:48:14 +0000 (20:48 +0000)]
Don't fail plot tests on rounding error

(upstream seem to have _disabled_ the affected tests
...see also test_series)

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Bug-Debian: https://bugs.debian.org/1029251
Forwarded: no

Gbp-Pq: Name 1029251_ignore_rounding_error.patch

22 months agoAllow building with Debian's pydata-sphinx-theme
Debian Science Team [Fri, 9 Feb 2024 20:48:14 +0000 (20:48 +0000)]
Allow building with Debian's pydata-sphinx-theme

This is currently too old to have all the options upstream expects

Gbp-Pq: Name sphinx_old_pydata_theme.patch

22 months agoDon't try to use a Sphinx extension we don't have
Debian Science Team [Fri, 9 Feb 2024 20:48:14 +0000 (20:48 +0000)]
Don't try to use a Sphinx extension we don't have

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: not-needed

Gbp-Pq: Name no_sphinx_toggleprompt.patch

22 months agoDon't require a warning armel numpy doesn't have
Debian Science Team [Fri, 9 Feb 2024 20:48:14 +0000 (20:48 +0000)]
Don't require a warning armel numpy doesn't have

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Forwarded: no (this version requires dpkg)

Gbp-Pq: Name armel_ignore_nonwarning.patch

22 months agoFix test failures on 32-bit systems
Debian Science Team [Fri, 9 Feb 2024 20:48:14 +0000 (20:48 +0000)]
Fix test failures on 32-bit systems

Author: Rebecca N. Palmer <rebecca_palmer@zoho.com>
Bug-Debian: partly https://bugs.debian.org/1026351
Forwarded: no

Gbp-Pq: Name tests_dont_assume_64bit.patch