Debian Patches

Status for pandas/3.0.4+dfsg-1

Patch Description Author Forwarded Bugs Origin Last update
deb_nonversioneer_version.patch In tests, expect a non-git version number
(This number is set in debian/rules.)

Needed as Debian buildds use tarballs
Rebecca N. Palmer <rebecca_palmer@zoho.com> not-needed
deb_doc_donotoverride_PYTHONPATH.patch Don't try to import from the source directory
Needed as we build the extension modules elsewhere
Yaroslav Halchenko not-needed
xfail_tests_nonintel_io.patch 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
(the pandas/tests/io/test_common.py patch for hdf5 was removed in
2.3.1 because that test is currently xfailed upstream for other
reasons - it may need to be re-added if this is fixed)
Stata was previously seen to fail on qemu-ppc64el, but not real ppc64el
Andreas Tille <tille@debian.org>, Graham Inggs <ginggs@debian.org>, Yaroslav Halchenko <debian@onerussian.com>, Rebecca N. Palmer <rebecca_palmer@zoho.com> no debian upstream
deb_disable_analytics.patch Avoid privacy breach by analytics
Andreas Tille <tille@debian.org>,
Rebecca N. Palmer <rebecca_palmer@zoho.com>
Yaroslav Halchenko <debian@onerussian.com>, not-needed
mathjax-path.patch Use Debian packaged mathjax Andreas Tille <tille@debian.org> not-needed
use_system_intersphinx.patch Use packaged intersphinx indexes Rebecca N. Palmer <rebecca_palmer@zoho.com> not-needed debian
contributor_list_not_in_tarball.patch 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.
Rebecca N. Palmer <rebecca_palmer@zoho.com> not-needed
fix_random_seeds.patch Use fixed seeds for reproducible pseudorandomness Rebecca N. Palmer <rebecca_palmer@zoho.com> no
privacy.patch Link to rather than embed Google calendar Rebecca N. Palmer <rebecca_palmer@zoho.com> not-needed
find_test_data.patch 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
Rebecca N. Palmer <rebecca_palmer@zoho.com> yes
remove_ccbysa_snippets1.patch 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
Rebecca N. Palmer <rebecca_palmer@zoho.com> invalid
remove_ccbysa_snippets_generated.patch 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

The contents of this patch are generated by the following Python code (and added to it with git diff pandas >> debian/patches/remove_ccbysa_snippets_generated.patch)

import pathlib
import re

basedir = pathlib.Path.cwd()
if not (basedir / 'pandas/tests').exists():
raise FileNotFoundError('must be run from the pandas root')
for source_file,test_to_remove in [
(basedir/"pandas/tests/groupby/test_categorical.py","test_sort"),
(basedir/"pandas/tests/indexing/multiindex/test_chaining_and_caching.py","test_detect_chained_assignment"),
(basedir/"pandas/tests/indexing/multiindex/test_setitem.py","test_multiindex_setitem2"),
(basedir/"pandas/tests/indexing/test_chaining_and_caching.py","test_detect_chained_assignment_undefined_column"),
(basedir/"pandas/tests/io/parser/common/test_common_basic.py","test_escapechar"),
]:
with open(source_file, 'r') as fd:
source_text = fd.read()
source_text, n_found = re.subn(r'^ *def '+test_to_remove+r'\(.*?(^ *def test)', r'\1', source_text, flags=re.MULTILINE|re.DOTALL)
if n_found != 1:
print(f"warning - found {n_found}!=1 of {test_to_remove}")
with open(source_file, 'w') as fd:
fd.write(source_text)
Rebecca N. Palmer <rebecca_palmer@zoho.com> invalid
hurd_compat.patch 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)
Rebecca N. Palmer <rebecca_palmer@zoho.com> no
ignore_i386_excess_precision.patch Ignore x87 excess precision Rebecca N. Palmer <rebecca_palmer@zoho.com> no
tests_dont_assume_64bit.patch Fix test failures on 32-bit systems Rebecca N. Palmer <rebecca_palmer@zoho.com> no
1029251_ignore_rounding_error.patch Don't fail plot tests on rounding error
(instead of disabling them like upstream did
...see also test_series)
Rebecca N. Palmer <rebecca_palmer@zoho.com> no debian
allow_no_matplotlib.patch Don't try to run matplotlib-using tests without it
This allows the circular pandas <-> matplotlib dependency
to be broken for bootstrapping (see README.source)
Rebecca N. Palmer <rebecca_palmer@zoho.com> no
unbreak_clean.patch Don't crash on clean Rebecca N. Palmer <rebecca_palmer@zoho.com> no
ignore_ipython_exceptions.patch 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
Rebecca N. Palmer <rebecca_palmer@zoho.com> not-needed
allow_no_openpyxl.patch Mark tests that need openpyxl
(These do the usual loop through engine/read_ext but
actually use .xlsx every time)
Rebecca N. Palmer <rebecca_palmer@zoho.com> no
2p1_openpyxl_errors.patch Fix test failures when xlsxwriter is not installed Rebecca N. Palmer <rebecca_palmer@zoho.com> no
pytables_python3p12.patch 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
Rebecca N. Palmer <rebecca_palmer@zoho.com> no debian
sum_loosen_test_tolerance.patch 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)
Rebecca N. Palmer <rebecca_palmer@zoho.com> no
1068104_time64.patch Don't require 32-bit to be time32
Debian armhf/armel (but not i386) are now time64
Graham Inggs, Rebecca N. Palmer <rebecca_palmer@zoho.com> no debian
versioned_importorskip.patch Avoid failing when a dependency is too old
(some of them are pulled in by other dependencies, so
just not including them in d/control doesn't stop them being installed)

Except for the actual implementation of versioned_importorskip
(in pandas/util/_test_decorators.py) and moving the import before the
first use in pandas/tests/io/formats/style/test_exceptions.py,
the content of this patch was generated by the following Python code,
and for new versions regenerating it is likely to be easier than
refreshing it.

import pathlib
import re

basedir = pathlib.Path.cwd()
if not (basedir / 'pandas/tests').exists():
raise FileNotFoundError('must be run from the pandas root')
for source_file in basedir.glob('pandas/**/*.py'):
with open(source_file, 'r') as fd:
source_text = fd.read()
if 'pytest.importorskip' in source_text:
source_text = re.sub(r'pytest\.importorskip(.*)minversion', r'td.versioned_importorskip\1min_version', source_text)
source_text = re.sub(r'pytest\.importorskip', r'td.versioned_importorskip', source_text)
if '_test_decorators as td' not in source_text:
# add the import if it isn't already present
source_text, count = re.subn(r'^(import pandas|from pandas.*import)',r'import pandas.util._test_decorators as td\n\1', source_text, count=1, flags=re.MULTILINE)
if count != 1:
raise KeyError("failed to add import")
with open(source_file, 'w') as fd:
fd.write(source_text)
Rebecca N. Palmer <rebecca_palmer@zoho.com> no
blosc_nonstrict_xfail.patch Use nonstrict xfail
Upstream strict-xfailed this instead of changing the expected message,
which doesn't work here because it only fails in build, not autopkgtest
Rebecca N. Palmer <rebecca_palmer@zoho.com> no
no_pkg_resources.patch Stop using pkg_resources Rebecca N. Palmer <rebecca_palmer@zoho.com> invalid debian
privacy2.patch Use local logo file Rebecca N. Palmer <rebecca_palmer@zoho.com> no
ignore_bitwiseinversion_deprecation.patch ignore expected DeprecationWarning Rebecca N. Palmer <rebecca_palmer@zoho.com> no
allow_ts_round_either_way.patch Allow ts.round() to round halfway values either way
including when it (just barely) causes overflow

Fixes a recent build failure on arm64 reproducible-builds
Rebecca N. Palmer <rebecca_palmer@zoho.com> no
temp_xfails_pandasv3.patch Xfail some tests to get a first build Rebecca N. Palmer <rebecca_palmer@zoho.com> not-needed
override_xlsxwriter_version.patch ignore that Debian xlsxwriter is too old Rebecca N. Palmer <rebecca_palmer@zoho.com> not-needed

All known versions for source package 'pandas'

Links