Package: pandas / 1.5.3+dfsg-2

Metadata

Package Version Patches format
pandas 1.5.3+dfsg-2 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
deb_nonversioneer_version.patch | (download)

pandas/__init__.py | 8 1 + 7 - 0 !
pandas/tests/api/test_api.py | 2 1 + 1 - 0 !
pandas/tests/test_common.py | 2 1 + 1 - 0 !
3 files changed, 3 insertions(+), 9 deletions(-)

 don't try to use git to find the version number

Needed as Debian buildds use tarballs

deb_doc_donotoverride_PYTHONPATH.patch | (download)

doc/make.py | 5 3 + 2 - 0 !
1 file changed, 3 insertions(+), 2 deletions(-)

 don't try to import from the source directory

Needed as we build the extension modules elsewhere

xfail_tests_nonintel_io.patch | (download)

pandas/_testing/_warnings.py | 3 3 + 0 - 0 !
pandas/io/pytables.py | 11 10 + 1 - 0 !
pandas/io/stata.py | 5 5 + 0 - 0 !
pandas/tests/io/pytables/test_append.py | 5 5 + 0 - 0 !
pandas/tests/io/pytables/test_file_handling.py | 6 6 + 0 - 0 !
pandas/tests/io/pytables/test_read.py | 5 4 + 1 - 0 !
pandas/tests/io/pytables/test_store.py | 5 5 + 0 - 0 !
pandas/tests/io/pytables/test_timezones.py | 3 3 + 0 - 0 !
pandas/tests/io/test_common.py | 6 3 + 3 - 0 !
pandas/tests/io/test_stata.py | 11 7 + 4 - 0 !
10 files changed, 51 insertions(+), 9 deletions(-)

 hdf5 and stata i/o are broken on some architectures

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

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 also fails on qemu-ppc64el, but not real ppc64el

deb_disable_googleanalytics.patch | (download)

doc/source/conf.py | 1 0 + 1 - 0 !
pandas/tests/io/data/html/spam.html | 44 4 + 40 - 0 !
web/pandas/_templates/layout.html | 8 0 + 8 - 0 !
3 files changed, 4 insertions(+), 49 deletions(-)

 avoid privacy breach by google analytics

mathjax path.patch | (download)

doc/source/conf.py | 2 2 + 0 - 0 !
1 file changed, 2 insertions(+)

 use debian packaged mathjax

skip_noencoding_locales.patch | (download)

pandas/_config/localization.py | 5 4 + 1 - 0 !
1 file changed, 4 insertions(+), 1 deletion(-)

 don't test datetime in locales with no encoding

Some datetime tests run the test in every available locale.
If this set includes locales without an encoding (currently dsb_DE
and sah_RU), it fails due to Python bug
https://bugs.python.org/issue20088

Failure log
https://tests.reproducible-builds.org/debian/rbuild/buster/amd64/pandas_0.23.3+dfsg-3.rbuild.log.gz

use_system_intersphinx.patch | (download)

doc/source/conf.py | 12 6 + 6 - 0 !
1 file changed, 6 insertions(+), 6 deletions(-)

 use packaged intersphinx indexes

contributor_list_not_in_tarball.patch | (download)

doc/sphinxext/contributors.py | 3 1 + 2 - 0 !
1 file changed, 1 insertion(+), 2 deletions(-)

 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.

tests_dont_assume_endian.patch | (download)

pandas/tests/arrays/floating/test_arithmetic.py | 2 1 + 1 - 0 !
pandas/tests/frame/methods/test_to_records.py | 5 3 + 2 - 0 !
pandas/tests/scalar/timedelta/test_arithmetic.py | 2 1 + 1 - 0 !
3 files changed, 5 insertions(+), 4 deletions(-)

 fix or skip tests that assume the wrong endianness

This is a bug in the tests not pandas itself -
the expected values explicitly specify little-endian

fix_random_seeds.patch | (download)

doc/source/getting_started/comparison/comparison_with_r.rst | 1 1 + 0 - 0 !
doc/source/user_guide/advanced.rst | 1 1 + 0 - 0 !
doc/source/user_guide/visualization.rst | 1 1 + 0 - 0 !
3 files changed, 3 insertions(+)

 use fixed seeds for reproducible pseudorandomness

xfail_c_locale.patch | (download)

pandas/tests/config/test_localization.py | 1 1 + 0 - 0 !
1 file changed, 1 insertion(+)

 xfail a test that doesn't work in the c locale

privacy.patch | (download)

doc/source/development/community.rst | 6 1 + 5 - 0 !
1 file changed, 1 insertion(+), 5 deletions(-)

 link to rather than embed google calendar

find_test_data.patch | (download)

pandas/conftest.py | 8 6 + 2 - 0 !
pandas/tests/io/formats/style/test_html.py | 1 1 + 0 - 0 !
pandas/tests/util/test_util.py | 1 1 + 0 - 0 !
3 files changed, 8 insertions(+), 2 deletions(-)

 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

remove_ccbysa_snippets.patch | (download)

doc/source/user_guide/cookbook.rst | 22 22 + 0 - 0 !
doc/source/user_guide/index.rst | 1 0 + 1 - 0 !
pandas/io/sql.py | 10 5 + 5 - 0 !
pandas/tests/groupby/aggregate/test_other.py | 30 0 + 30 - 0 !
pandas/tests/groupby/test_categorical.py | 23 0 + 23 - 0 !
pandas/tests/indexing/multiindex/test_chaining_and_caching.py | 25 0 + 25 - 0 !
pandas/tests/indexing/multiindex/test_setitem.py | 30 0 + 30 - 0 !
pandas/tests/indexing/test_chaining_and_caching.py | 17 0 + 17 - 0 !
pandas/tests/io/parser/common/test_common_basic.py | 18 0 + 18 - 0 !
9 files changed, 27 insertions(+), 149 deletions(-)

 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

numba_fail_32bit.patch | (download)

pandas/compat/_optional.py | 5 5 + 0 - 0 !
pandas/tests/groupby/aggregate/test_numba.py | 12 12 + 0 - 0 !
pandas/tests/groupby/test_numba.py | 10 9 + 1 - 0 !
pandas/tests/groupby/test_timegrouper.py | 2 2 + 0 - 0 !
pandas/tests/groupby/transform/test_numba.py | 17 17 + 0 - 0 !
pandas/tests/window/conftest.py | 3 2 + 1 - 0 !
pandas/tests/window/test_numba.py | 15 15 + 0 - 0 !
pandas/tests/window/test_online.py | 6 6 + 0 - 0 !
8 files changed, 68 insertions(+), 2 deletions(-)

 allow some numba errors on non-amd64, warn on non-x86

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

Numba has been observed to give wrong answers on mipsel,
and crash on armel (LLVM ERROR) and s390x (segfault).

hurd_compat.patch | (download)

pandas/tests/io/parser/common/test_file_buffer_url.py | 4 2 + 2 - 0 !
pandas/tests/io/parser/common/test_float.py | 2 1 + 1 - 0 !
pandas/tests/io/parser/test_multi_thread.py | 7 6 + 1 - 0 !
pandas/tests/io/test_common.py | 18 9 + 9 - 0 !
pandas/tests/test_downstream.py | 5 5 + 0 - 0 !
5 files changed, 23 insertions(+), 13 deletions(-)

 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)

968208_rounding.patch | (download)

pandas/tests/window/test_rolling.py | 8 7 + 1 - 0 !
1 file changed, 7 insertions(+), 1 deletion(-)

 don't fail test for rounding difference on i386

skip_test_missing_required_dependency.patch | (download)

pandas/tests/test_downstream.py | 1 1 + 0 - 0 !
1 file changed, 1 insertion(+)

 skip test that fails from outside the source tree

fix_overly_arch_specific_xfails.patch | (download)

pandas/tests/groupby/test_groupby.py | 4 2 + 2 - 0 !
pandas/tests/io/parser/test_c_parser_only.py | 7 5 + 2 - 0 !
pandas/tests/tools/test_to_numeric.py | 2 1 + 1 - 0 !
pandas/tests/window/test_rolling.py | 7 6 + 1 - 0 !
4 files changed, 14 insertions(+), 6 deletions(-)

 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

pandas/tests/window/test_rolling.py also gets an i386 xfail for
rounding error that may be x87 excess precision

mips_warning.patch | (download)

pandas/__init__.py | 6 6 + 0 - 0 !
1 file changed, 6 insertions(+)

 warn that pandas is possibly broken on mips(64)(el)

Tests disabled in d/rules

tests_dont_assume_64bit.patch | (download)

pandas/core/arrays/_ranges.py | 8 2 + 6 - 0 !
pandas/tests/frame/test_stack_unstack.py | 2 2 + 0 - 0 !
pandas/tests/reshape/test_pivot.py | 2 2 + 0 - 0 !
pandas/tests/series/methods/test_round.py | 3 1 + 2 - 0 !
pandas/tests/test_downstream.py | 2 1 + 1 - 0 !
pandas/tests/test_sorting.py | 2 2 + 0 - 0 !
6 files changed, 10 insertions(+), 9 deletions(-)

 fix test failures on 32-bit systems

armel_ignore_nonwarning.patch | (download)

pandas/tests/apply/test_str.py | 8 7 + 1 - 0 !
1 file changed, 7 insertions(+), 1 deletion(-)

 don't require a warning armel numpy doesn't have

float_to_datetime.patch | (download)

pandas/_libs/tslib.pyx | 16 10 + 6 - 0 !
1 file changed, 10 insertions(+), 6 deletions(-)

 float-to-datetime conversion fixes

Avoid assuming that NaN casts to NaT (= fails on riscv64/hppa ?)
Don't round to int for the bounds check when we don't for the real
conversion (wrong near the bounds, and maybe also a waste of time)

no_sphinx_toggleprompt.patch | (download)

doc/source/conf.py | 1 0 + 1 - 0 !
1 file changed, 1 deletion(-)

 don't try to use a sphinx extension we don't have

sphinx_old_pydata_theme.patch | (download)

doc/_templates/sidebar-nav-bs.html | 4 2 + 2 - 0 !
doc/source/conf.py | 7 1 + 6 - 0 !
2 files changed, 3 insertions(+), 8 deletions(-)

 allow building with debian's pydata-sphinx-theme

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


1029251_ignore_rounding_error.patch | (download)

pandas/tests/plotting/frame/test_frame_subplots.py | 7 4 + 3 - 0 !
pandas/tests/plotting/test_series.py | 9 5 + 4 - 0 !
2 files changed, 9 insertions(+), 7 deletions(-)

 don't fail plot tests on rounding error

numpy1p24.patch | (download)

pandas/tests/test_downstream.py | 6 3 + 3 - 0 !
1 file changed, 3 insertions(+), 3 deletions(-)

 ignore extra warning from numpy 1.24

1031437.patch | (download)

pandas/tests/tseries/offsets/test_dst.py | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 use a non-backzone timezone for test