Louis-Philippe Véronneau pushed to branch master at lintian / lintian
Commits:
98164462 by Maytham Alsudany at 2025-03-28T17:13:08+00:00
Update check for dependency on python3-numpy-abi
The release of NumPy 2 means that the name of the virtual package has
changed from python3-numpy-abiN to python3-numpy2-abiN. This commit
updates the check to account for this change.
This commit also updates the check to allow an alternative dependency
specifically on "python3-numpy2-abi0 | python3-numpy-abi9", since the
first ABI release of NumPy 2 is backwards compatible with the last ABI
release of NumPy 1, and this is what dh_numpy generates.
The ability to add a strict dependency on python3-numpy without
depending on the -abi package has been removed, since this practise is
obsolete and it's preferred to depend on the -abi package instead.
Closes: #1094364
- - - - -
1 changed file:
- lib/Lintian/Check/Binaries/Prerequisites/Numpy.pm
Changes:
=====================================
lib/Lintian/Check/Binaries/Prerequisites/Numpy.pm
=====================================
@@ -74,22 +74,20 @@ sub installable {
my $depends = $self->processable->relation('strong');
- # Check for dependency on python3-numpy-abiN dependency (or strict
- # versioned dependency on python3-numpy)
+ # Check for dependency on python3-numpy-abiN dependency
# We do not allow alternatives as it would mostly likely
# defeat the purpose of this relation. Also, we do not allow
# versions for -abi as it is a virtual package.
$self->hint('missing-dependency-on-numpy-abi')
if $self->uses_numpy_c_abi
- && !$depends->matches(qr/^python3?-numpy-abi\d+$/,
- Lintian::Relation::VISIT_OR_CLAUSE_FULL)
&& (
- !$depends->matches(
- qr/^python3-numpy \(>[>=][^\|]+$/,
- Lintian::Relation::VISIT_OR_CLAUSE_FULL
- )
- || !$depends->matches(
- qr/^python3-numpy \(<[<=][^\|]+$/,
+ !$depends->matches(qr/^python3-numpy2?-abi\d+$/,
+ Lintian::Relation::VISIT_OR_CLAUSE_FULL)
+ # First ABI release of NumPy 2 is backwards-compatible with the last
+ # ABI release on NumPy 1, therefore the following is permittied; see
+ # Bug#1094364
+ && !$depends->matches(
+ qr/^python3-numpy2-abi0 | python3-numpy-abi9$/,
Lintian::Relation::VISIT_OR_CLAUSE_FULL
)
)
View it on GitLab:
https://salsa.debian.org/lintian/lintian/-/commit/9816446239742f53e479bd8a9a8928d0f357b9af
--
View it on GitLab:
https://salsa.debian.org/lintian/lintian/-/commit/9816446239742f53e479bd8a9a8928d0f357b9af
You're receiving this email because of your account on salsa.debian.org.