[med-svn] [Git][med-team/python-gtfparse][master] New upstream version, introduced dependency on python-polars
Steffen Möller (@moeller)
gitlab at salsa.debian.org
Sun Nov 8 22:09:48 GMT 2026
Steffen Möller pushed to branch master at Debian Med / python-gtfparse
Commits:
0bcc1d8b by Steffen Moeller at 2026-11-08T23:08:24+01:00
New upstream version, introduced dependency on python-polars
- - - - -
8 changed files:
- + debian/.gitignore
- debian/README.test
- debian/changelog
- debian/control
- + debian/patches/polars-schema-error.patch
- + debian/patches/series
- debian/tests/control
- debian/tests/run-unit-test
Changes:
=====================================
debian/.gitignore
=====================================
@@ -0,0 +1,5 @@
+/*substvars
+/*.debhelper*
+/*debhelper*
+/python3-gtfparse/
+/files
=====================================
debian/README.test
=====================================
@@ -1,9 +1,9 @@
Notes on how this package can be tested.
────────────────────────────────────────
-This package can be tested by running the provided test:
+With the package and test dependencies installed, run from the source tree:
- sh run-unit-test
+ AUTOPKGTEST_TMP=$(mktemp -d) sh debian/tests/run-unit-test
in order to confirm its integrity.
────────────────────────────────────────
=====================================
debian/changelog
=====================================
@@ -1,6 +1,17 @@
+python-gtfparse (2.9.1+ds-1) unstable; urgency=medium
+
+ * New upstream release; build-depend on python3-polars, now in the archive.
+ * Preserve ParsingError for malformed GTF input with Polars 2.x, which
+ raises SchemaError for mismatched column names instead of ShapeError.
+ * d/.gitignore: Added.
+ * Update autopkgtests to use supported Python versions and depend on
+ python3-all; run the full tests/ suite against the installed package
+ with each selected interpreter.
+
+ -- Steffen Moeller <moeller at debian.org> Sun, 04 Oct 2026 19:59:37 +0200
+
python-gtfparse (2.0.1+ds-1) UNRELEASED; urgency=medium
- * Team upload.
* Section: python
TODO: New dependency: https://github.com/pola-rs/polars
=====================================
debian/control
=====================================
@@ -8,9 +8,10 @@ Build-Depends:
dh-sequence-python3,
python3-all,
python3-pandas,
+ python3-polars,
python3-pytest,
python3-setuptools,
-Standards-Version: 4.7.3
+Standards-Version: 4.7.4
Homepage: https://github.com/openvax/gtfparse
Vcs-Browser: https://salsa.debian.org/med-team/python-gtfparse
Vcs-Git: https://salsa.debian.org/med-team/python-gtfparse.git
=====================================
debian/patches/polars-schema-error.patch
=====================================
@@ -0,0 +1,22 @@
+Description: Preserve ParsingError for malformed input with Polars 2.x
+ Polars 2.x raises SchemaError rather than ShapeError when new_columns does
+ not match the number of columns in the input. Handle both exceptions so
+ malformed GTF input continues to raise the documented ParsingError.
+ The existing test_parse_gtf_lines_error_too_few_fields covers this case.
+Author: Steffen Moeller <moeller at debian.org>
+Forwarded: no
+Last-Update: 2026-11-08
+Index: python-gtfparse/gtfparse/read_gtf.py
+===================================================================
+--- python-gtfparse.orig/gtfparse/read_gtf.py
++++ python-gtfparse/gtfparse/read_gtf.py
+@@ -124,7 +124,8 @@ def parse_with_polars_lazy(
+ }
+ try:
+ df = polars.read_csv(filepath_or_buffer, new_columns=REQUIRED_COLUMNS, **kwargs).lazy()
+- except polars.exceptions.ShapeError as err:
++ # Polars 2.x reports mismatched column names as SchemaError.
++ except (polars.exceptions.ShapeError, polars.exceptions.SchemaError) as err:
+ raise ParsingError("Wrong number of columns") from err
+
+ # Drop empty lines that may appear as all-null rows
=====================================
debian/patches/series
=====================================
@@ -0,0 +1 @@
+polars-schema-error.patch
=====================================
debian/tests/control
=====================================
@@ -1,6 +1,7 @@
Tests:
run-unit-test,
Depends:
+ python3-all,
python3-pytest,
@,
Restrictions:
=====================================
debian/tests/run-unit-test
=====================================
@@ -1,11 +1,11 @@
-#!/bin/bash
-set -e
-for py in $(py3versions -r 2> /dev/null)
-do echo "Testing with $py in $(pwd):"
-pytest-3 -v test/test_create_missing_features.py
-pytest-3 -v test/test_expand_attributes.py
-pytest-3 -v test/test_multiple_values_for_tag_attribute.py
-pytest-3 -v test/test_parse_gtf_lines.py
-done
+#!/bin/sh
+set -eu
+
+# Run outside the source tree to exercise the installed package.
+cp -a tests "$AUTOPKGTEST_TMP/"
+cd "$AUTOPKGTEST_TMP"
-#This is done because data/ dir is not vendored on pypi as mentioned in d/rules
+for py in $(py3versions -s); do
+ echo "Testing with $py in $(pwd):"
+ "$py" -m pytest -v tests
+done
View it on GitLab: https://salsa.debian.org/med-team/python-gtfparse/-/commit/0bcc1d8b199e20615630d9d407bbfc6e166edb38
--
View it on GitLab: https://salsa.debian.org/med-team/python-gtfparse/-/commit/0bcc1d8b199e20615630d9d407bbfc6e166edb38
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/20261108/e77aa3d4/attachment-0001.htm>
More information about the debian-med-commit
mailing list