[med-svn] [Git][med-team/python-pandera][master] Fix build and run all tests that are possible
Andreas Tille (@tille)
gitlab at salsa.debian.org
Thu Nov 12 06:59:26 GMT 2026
Andreas Tille pushed to branch master at Debian Med / python-pandera
Commits:
4b85dd08 by Andreas Tille at 2026-11-12T07:55:18+01:00
Fix build and run all tests that are possible
- - - - -
4 changed files:
- debian/control
- + debian/patches/0001-ship-all-subpackages.patch
- + debian/patches/series
- debian/rules
Changes:
=====================================
debian/control
=====================================
@@ -2,22 +2,39 @@ Source: python-pandera
Section: science
Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.org>
Uploaders: Andreas Tille <tille at debian.org>
-Build-Depends: debhelper-compat (= 13),
+Build-Depends: black <!nocheck>,
+ debhelper-compat (= 13),
dh-python,
pybuild-plugin-pyproject,
- python3-all-dev,
python3-build,
+ python3-dask <!nocheck>,
+ python3-dev,
+ python3-fastapi <!nocheck>,
+ python3-geopandas <!nocheck>,
python3-hypothesis <!nocheck>,
+ python3-joblib <!nocheck>,
python3-narwhals <!nocheck>,
python3-numpy <!nocheck>,
+ python3-packaging <!nocheck>,
python3-pandas <!nocheck>,
python3-polars <!nocheck>,
+ python3-pyarrow <!nocheck>,
+ python3-pydantic <!nocheck>,
python3-pytest <!nocheck>,
- python3-torch <!nocheck>,
- python3-typing-extensions <!nocheck>,
+ python3-python-multipart <!nocheck>,
+ python3-pytz <!nocheck>,
+ python3-requests <!nocheck>,
+ python3-rich <!nocheck>,
+ python3-scipy <!nocheck>,
python3-setuptools,
python3-setuptools-scm,
+ python3-typeguard <!nocheck>,
+ python3-typer <!nocheck>,
+ python3-typing-extensions <!nocheck>,
+ python3-typing-inspect <!nocheck>,
python3-xarray <!nocheck>,
+ tzdata-legacy <!nocheck>,
+ uvicorn <!nocheck>
Standards-Version: 4.7.4
Vcs-Browser: https://salsa.debian.org/med-team/python-pandera
Vcs-Git: https://salsa.debian.org/med-team/python-pandera.git
=====================================
debian/patches/0001-ship-all-subpackages.patch
=====================================
@@ -0,0 +1,30 @@
+Description: Ship all pandera subpackages
+ The packaging metadata declared a single, non-recursive setuptools
+ package ("packages = ["pandera"]"), so the built wheel contained only
+ the top-level modules: pandera/api, pandera/typing, pandera/backends,
+ pandera/engines and the other subpackages were silently dropped.
+ Installing that wheel produces a pandera that cannot even be imported
+ ("from pandera import dtypes, typing" fails), which also made every
+ upstream test fail during the build.
+Origin: other
+Forwarded: not-needed
+Assisted-By: aim2balance/a2b-code
+Last-Update: 2026-11-11
+--
+diff --git a/pyproject.toml b/pyproject.toml
+index 98b72d8..e7d2a78 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -206,9 +206,11 @@ docs = [
+ ]
+
+ [tool.setuptools]
+-packages = ["pandera"]
+ package-data = {"pandera" = ["py.typed"]}
+
++[tool.setuptools.packages.find]
++include = ["pandera*"]
++
+ [tool.pyright]
+ typeCheckingMode = "basic"
+ include = ["pandera", "tests"]
=====================================
debian/patches/series
=====================================
@@ -0,0 +1 @@
+0001-ship-all-subpackages.patch
=====================================
debian/rules
=====================================
@@ -1,13 +1,32 @@
#!/usr/bin/make -f
export PYBUILD_NAME=pandera
-export PYBUILD_TEST_ARGS=--ignore=tests/pyspark --ignore=tests/tensordict --ignore=tests/modin
+
+# sbuild exports http_proxy pointing at its apt cache, so the requests calls to
+# the fastapi test server on 127.0.0.1 would go through it and fail.
+export no_proxy=127.0.0.1,localhost
+export NO_PROXY=127.0.0.1,localhost
+
+# The upstream test suite is a matrix over optional dataframe backends. The
+# suites for backends without a Debian package are skipped so that the build
+# time tests exercise everything that can actually be installed on a Debian
+# system. test_docs_setting_column_widths.py is skipped because it imports
+# docs/source/conf.py, and the documentation tree is not part of the package.
+# tests/narwhals needs ibis in its conftest.py, and the parametrized ibis
+# cases everywhere else are deselected with the "ibis" marker. The
+# frictionless and pyspark dispatch tests need libraries that have no Debian
+# package.
+export PYBUILD_TEST_ARGS=-m "not ibis" \
+ --ignore=tests/pyspark \
+ --ignore=tests/modin \
+ --ignore=tests/tensordict \
+ --ignore=tests/ibis \
+ --ignore=tests/narwhals \
+ --ignore=tests/datafusion \
+ --ignore=tests/mypy \
+ --ignore=tests/xarray/test_cf_xarray.py \
+ --ignore=tests/pandas/test_docs_setting_column_widths.py \
+ -k "not frictionless and not test_pyspark_pandas_does_not_route_to_pyspark_sql"
%:
dh $@ --with python3 --buildsystem=pybuild
-
-override_dh_auto_test:
- # pybuild runs the upstream test suite of pandera during dh_auto_test;
- # it requires optional dependencies (pyspark and others)
- # true
- dh_auto_test
View it on GitLab: https://salsa.debian.org/med-team/python-pandera/-/commit/4b85dd084877bdf53ac758cdad1a836b93f32f43
--
View it on GitLab: https://salsa.debian.org/med-team/python-pandera/-/commit/4b85dd084877bdf53ac758cdad1a836b93f32f43
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20261112/f9826205/attachment-0001.htm>
More information about the debian-med-commit
mailing list