Skip to content
This repository was archived by the owner on Feb 16, 2023. It is now read-only.

Commit 596de99

Browse files
authored
Build v1.1.0 (#10)
* update multibuild to latest devel commit * Appveyor: drop Python 2.7 and add Python 3.8 * Travis: drop Python 2.7 and 3.4 * Travis: add Python 3.8 * build from master for testing * nose -> pytest * add new python install script on Appveyor * add nose back to test requirements Only NumPy >= 1.15 has switched to pytest * init submodules prior to calling multibuild\install_python.ps1 * update config.sh to call tests appropriately remove nose again (tests get running using current NumPy) * bump NP_TEST_DEP to avoid need for nose * bump minimum NP_BUILD_DEP to 1.13.3 to match setup.py * make sure appveyor updates to the latest setuptools and wheel as well * set MB_PYTHON_OSX_VER=10.9 on Travis * build v1.1.0
1 parent 63fe4d0 commit 596de99

File tree

4 files changed

+63
-67
lines changed

4 files changed

+63
-67
lines changed

.travis.yml

Lines changed: 29 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
env:
22
global:
33
- REPO_DIR="pywt"
4-
- BUILD_COMMIT=v1.0.3
4+
- BUILD_COMMIT=v1.1.0
55
- PLAT=x86_64
66
- UNICODE_WIDTH=32
7-
- NP_BUILD_DEP="numpy==1.9.1"
8-
- NP_TEST_DEP="numpy==1.9.1"
7+
- NP_BUILD_DEP="numpy==1.13.3"
8+
- NP_TEST_DEP="numpy==1.15.4" # >=1.15 so NumPy works with pytest
99
- WHEELHOUSE_UPLOADER_USERNAME=travis-worker
10+
- EXTRA_ARGV="'--disable-pytest-warnings'"
1011
# Following generated with
1112
# travis encrypt -r scikit-image/scikit-image-wheels WHEELHOUSE_UPLOADER_SECRET=<the api key>
1213
- secure:
@@ -24,91 +25,71 @@ matrix:
2425
# Exclude the default Python 3.5 build
2526
- python: 3.5
2627
include:
27-
- os: linux
28-
env:
29-
- MB_PYTHON_VERSION=2.7
30-
- os: linux
31-
env:
32-
- MB_PYTHON_VERSION=2.7
33-
- UNICODE_WIDTH=16
34-
- os: linux
35-
env:
36-
- MB_PYTHON_VERSION=2.7
37-
- PLAT=i686
38-
- os: linux
39-
env:
40-
- MB_PYTHON_VERSION=2.7
41-
- PLAT=i686
42-
- UNICODE_WIDTH=16
43-
- os: linux
44-
env:
45-
- MB_PYTHON_VERSION=3.4
46-
- os: linux
47-
env:
48-
- MB_PYTHON_VERSION=3.4
49-
- PLAT=i686
5028
- os: linux
5129
env:
5230
- MB_PYTHON_VERSION=3.5
53-
- NP_BUILD_DEP=numpy==1.9.3
54-
- NP_TEST_DEP=numpy==1.9.3
5531
- os: linux
5632
env:
5733
- MB_PYTHON_VERSION=3.5
5834
- PLAT=i686
59-
- NP_BUILD_DEP=numpy==1.9.3
60-
- NP_TEST_DEP=numpy==1.9.3
6135
- os: linux
6236
env:
6337
- MB_PYTHON_VERSION=3.6
64-
- NP_BUILD_DEP=numpy==1.11.3
65-
- NP_TEST_DEP=numpy==1.11.3
6638
- os: linux
6739
env:
6840
- MB_PYTHON_VERSION=3.6
6941
- PLAT=i686
70-
- NP_BUILD_DEP=numpy==1.11.3
71-
- NP_TEST_DEP=numpy==1.11.3
7242
- os: linux
7343
env:
7444
- MB_PYTHON_VERSION=3.7
7545
- NP_BUILD_DEP=numpy==1.14.5
76-
- NP_TEST_DEP=numpy==1.14.5
7746
- os: linux
7847
env:
7948
- MB_PYTHON_VERSION=3.7
8049
- PLAT=i686
8150
- NP_BUILD_DEP=numpy==1.14.5
82-
- NP_TEST_DEP=numpy==1.14.5
83-
- os: osx
84-
language: generic
85-
env: MB_PYTHON_VERSION=2.7
86-
- os: osx
87-
language: generic
51+
- os: linux
8852
env:
89-
- MB_PYTHON_VERSION=3.4
53+
- MB_PYTHON_VERSION=3.8
54+
- NP_BUILD_DEP=numpy==1.17.3
55+
- NP_TEST_DEP=numpy==1.17.3
56+
- os: linux
57+
env:
58+
- MB_PYTHON_VERSION=3.8
59+
- PLAT=i686
60+
- NP_BUILD_DEP=numpy==1.17.3
61+
- NP_TEST_DEP=numpy==1.17.3
9062
- os: osx
9163
language: generic
9264
env:
9365
- MB_PYTHON_VERSION=3.5
94-
- NP_BUILD_DEP=numpy==1.9.3
95-
- NP_TEST_DEP=numpy==1.9.3
66+
- NP_BUILD_DEP=numpy==1.13.3
67+
- NP_TEST_DEP=numpy==1.15.4
9668
- os: osx
9769
language: generic
9870
env:
9971
- MB_PYTHON_VERSION=3.6
100-
- NP_BUILD_DEP=numpy==1.11.3
101-
- NP_TEST_DEP=numpy==1.11.3
72+
- MB_PYTHON_OSX_VER=10.9
73+
- NP_BUILD_DEP=numpy==1.13.3
74+
- NP_TEST_DEP=numpy==1.15.4
10275
- os: osx
10376
language: generic
10477
env:
10578
- MB_PYTHON_VERSION=3.7
79+
- MB_PYTHON_OSX_VER=10.9
10680
- NP_BUILD_DEP=numpy==1.14.5
107-
- NP_TEST_DEP=numpy==1.14.5
81+
- NP_TEST_DEP=numpy==1.15.4
82+
- os: osx
83+
language: generic
84+
env:
85+
- MB_PYTHON_VERSION=3.8
86+
- MB_PYTHON_OSX_VER=10.9
87+
- NP_BUILD_DEP=numpy==1.17.3
88+
- NP_TEST_DEP=numpy==1.17.3
10889

10990
before_install:
11091
- BUILD_DEPENDS="$NP_BUILD_DEP Cython"
111-
- TEST_DEPENDS="$NP_TEST_DEP nose"
92+
- TEST_DEPENDS="$NP_TEST_DEP pytest"
11293
- source multibuild/common_utils.sh
11394
- source multibuild/travis_steps.sh
11495
- before_install

appveyor.yml

Lines changed: 25 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,34 +11,42 @@ os: Visual Studio 2015
1111
environment:
1212
global:
1313
# Remember to edit .travis.yml too
14-
BUILD_COMMIT: v1.0.3
14+
BUILD_COMMIT: v1.1.0
1515
WHEELHOUSE_UPLOADER_USERNAME: travis-worker
1616
WHEELHOUSE_UPLOADER_SECRET:
1717
secure:
1818
9s0gdDGnNnTt7hvyNpn0/ZzOMGPdwPp2SewFTfGzYk7uI+rdAN9rFq2D1gAP4NQh
19-
NP_BUILD_DEP: "1.10.4"
20-
NP_TEST_DEP: "1.10.4"
19+
NP_BUILD_DEP: "1.13.3"
20+
NP_TEST_DEP: "1.15.4"
2121

2222
matrix:
23+
- PYTHON: C:\Python38
24+
NP_BUILD_DEP: "1.17.3"
25+
NP_TEST_DEP: "1.17.3"
26+
- PYTHON: C:\Python38-x64
27+
NP_BUILD_DEP: "1.17.3"
28+
NP_TEST_DEP: "1.17.3"
2329
- PYTHON: C:\Python37
2430
NP_BUILD_DEP: "1.14.5"
25-
NP_TEST_DEP: "1.14.5"
2631
- PYTHON: C:\Python37-x64
2732
NP_BUILD_DEP: "1.14.5"
28-
NP_TEST_DEP: "1.14.5"
2933
- PYTHON: C:\Python36
30-
NP_BUILD_DEP: "1.11.3"
31-
NP_TEST_DEP: "1.11.3"
3234
- PYTHON: C:\Python36-x64
33-
NP_BUILD_DEP: "1.11.3"
34-
NP_TEST_DEP: "1.11.3"
3535
- PYTHON: C:\Python35
3636
- PYTHON: C:\Python35-x64
37-
- PYTHON: C:\Python27
38-
- PYTHON: C:\Python27-x64
3937

4038
install:
41-
- cmd: echo "Using cmd"
39+
- cmd: echo "Filesystem root:"
40+
- dir C:\
41+
42+
- echo "Installed SDKs:"
43+
- dir "C:/Program Files/Microsoft SDKs/Windows"
44+
45+
# Get needed submodules
46+
- git submodule update --init
47+
48+
# Install new Python if necessary
49+
- ps: .\multibuild\install_python.ps1
4250

4351
# Prepend newly installed Python to the PATH of this build (this cannot be
4452
# done from inside the powershell script as it would require to restart
@@ -54,9 +62,9 @@ install:
5462
- python --version
5563
- python -c "import struct; print(struct.calcsize('P') * 8)"
5664

57-
- python -m pip install --upgrade pip
58-
# Pin wheel to 0.26 to avoid Windows ABI tag for built wheel
59-
- pip install wheel==0.26
65+
# Upgrade to the latest pip, setuptools, and wheel
66+
- python -m pip install --upgrade pip setuptools wheel
67+
6068
- git submodule update --init
6169
# Dependencies for package
6270
- pip install numpy==%NP_BUILD_DEP% Cython
@@ -81,8 +89,8 @@ test_script:
8189
# Run some tests
8290
- mkdir tmp
8391
- cd tmp
84-
- pip install numpy==%NP_TEST_DEP% nose
85-
- nosetests ..\pywt\tests
92+
- pip install numpy==%NP_TEST_DEP% pytest
93+
- pytest --pyargs pywt
8694
- cd ..
8795

8896
after_test:

config.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,15 @@ function pre_build {
77
:
88
}
99

10+
function get_test_cmd {
11+
local extra_argv=${1:-$EXTRA_ARGV}
12+
echo "import sys; import pywt; \
13+
sys.exit(not pywt.test('full', \
14+
extra_argv=[${extra_argv}]))"
15+
}
16+
1017
function run_tests {
1118
# Runs tests on installed distribution from an empty directory
1219
python --version
13-
nosetests ../pywt/pywt/tests
20+
python -c "$(get_test_cmd)"
1421
}

0 commit comments

Comments
 (0)