File: python3

package info (click to toggle)
scikit-learn 0.20.2%2Bdfsg-6
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 51,036 kB
  • sloc: python: 108,171; ansic: 8,722; cpp: 5,651; makefile: 192; sh: 40
file content (24 lines) | stat: -rwxr-xr-x 573 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
set -efux

pys="$(py3versions -rv 2>/dev/null)"
pkgbuild=${pkgbuild:-no}

srcdir=$PWD

test_args="-k-test_feature_importance_regression --doctest-modules"

dpkg-architecture -e arm64 && test_args="$test_args -k-test_dump"

for py in $pys; do
    echo "=== python$py ==="
    if [ "$pkgbuild" = "yes" ]; then
        module="$srcdir/debian/tmp/usr/lib/python3/dist-packages/sklearn"
        cd "$srcdir/build/"
    else
        module="/usr/lib/python3/dist-packages/sklearn"
        cd "$ADTTMP"
    fi

    python$py -m pytest -s -v $module $test_args 2>&1
done