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

Commit 34dd45d

Browse files
grlee77mattip
andauthored
switch from Rackspace uploads to Anaconda.org (#13)
* switch from Rackspace uploads to Anaconda.org * change python from 3.5 to 3.6 and drop Python 3.5 cases * update style to avoid warnings from Travis-CI's online YAML parser * update multibuild * Appveyor: drop Python 3.5 cases. Try calling pytest via 'python -m pytest' * install pytest-env for testing * appveyor syntax fix PYWAVELETS_STAGING_UPLOAD_TOKEN was also regenerated with correct scope * Update .travis.yml Co-authored-by: Matti Picus <[email protected]>
1 parent cea3717 commit 34dd45d

File tree

3 files changed

+31
-59
lines changed

3 files changed

+31
-59
lines changed

.travis.yml

Lines changed: 20 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -6,65 +6,38 @@ env:
66
- UNICODE_WIDTH=32
77
- NP_BUILD_DEP="numpy==1.13.3"
88
- NP_TEST_DEP="numpy==1.15.4" # >=1.15 so NumPy works with pytest
9-
- WHEELHOUSE_UPLOADER_USERNAME=travis-worker
109
- EXTRA_ARGV="'--disable-pytest-warnings'"
11-
# Following generated with
12-
# travis encrypt -r scikit-image/scikit-image-wheels WHEELHOUSE_UPLOADER_SECRET=<the api key>
13-
- secure:
14-
"m2ZsdrZuhsnDztkV/7Xu3sRF8KRTXaZzbeQ7IqvnamT3wbLFl6ZIaSogzDGmsBpcWlPp0VPxo1peYDZodFziqgxrsNncTHDVxMIeTXIYWV/MeF6UYtm/34P81641Tj50eu06CTBhuiIPNVncZti+Np4rWrkSBE8F2kVAfcrRthz8H6J0WF4+8UuN/rVRjtRPwUUnLTHhUlrKpDrsv0rG71HA8pP7iZIheM/hGHDQxqw5eN35ekPjU0Fqz9UBjwxDKk631MqQx7r1aDVdac8OnKw16NQ0YOJXIhomC3HirmlYRYRk8zwvvWtDR83kStXZhrosMNmIHz74TvFxFLyVBtGBDWRdTbjvt2tY8t3U7If8K31nqTMl6T1u+528PVTpmQf4346deFNCZ8HI9RaXPA/1yAxggDBm1D9LasE9HqUypXWvToYwSEFNrApUUMmwGmbJyvh3AI9bbs1QkogPTiNLFJTodzCJG3F28E+lzGA+uYNVSqsa4zV6wFHNpcSFR3bkMj/RfImJKzyb8cBLzhf3Q8t51qva7Ug/ouZY3M5r75Yp9UOU5e/JALipODNv5Y6Ti+lbk/kTUYn/TDXm/MzLt4SMjXfBIbeGKkWaMV4IS6ayrui/K9KEmTGFWp2bXpKyBNft6ka0ipA7C1U/eQ32PIrAeijg6wSn1tUlJag="
1510

1611
language: python
1712
# Default Python version is usually 2.7
18-
python: 3.5
19-
sudo: required
13+
python: 3.6
2014
dist: trusty
2115
services: docker
16+
os: linux
2217

23-
matrix:
24-
exclude:
25-
# Exclude the default Python 3.5 build
26-
- python: 3.5
18+
jobs:
2719
include:
28-
- os: linux
29-
env:
30-
- MB_PYTHON_VERSION=3.5
31-
- os: linux
32-
env:
33-
- MB_PYTHON_VERSION=3.5
34-
- PLAT=i686
35-
- os: linux
36-
env:
20+
- env:
3721
- MB_PYTHON_VERSION=3.6
38-
- os: linux
39-
env:
22+
- env:
4023
- MB_PYTHON_VERSION=3.6
4124
- PLAT=i686
42-
- os: linux
43-
env:
25+
- env:
4426
- MB_PYTHON_VERSION=3.7
4527
- NP_BUILD_DEP=numpy==1.14.5
46-
- os: linux
47-
env:
28+
- env:
4829
- MB_PYTHON_VERSION=3.7
4930
- PLAT=i686
5031
- NP_BUILD_DEP=numpy==1.14.5
51-
- os: linux
52-
env:
32+
- env:
5333
- MB_PYTHON_VERSION=3.8
5434
- NP_BUILD_DEP=numpy==1.17.3
5535
- NP_TEST_DEP=numpy==1.17.3
56-
- os: linux
57-
env:
36+
- env:
5837
- MB_PYTHON_VERSION=3.8
5938
- PLAT=i686
6039
- NP_BUILD_DEP=numpy==1.17.3
6140
- NP_TEST_DEP=numpy==1.17.3
62-
- os: osx
63-
language: generic
64-
env:
65-
- MB_PYTHON_VERSION=3.5
66-
- NP_BUILD_DEP=numpy==1.13.3
67-
- NP_TEST_DEP=numpy==1.15.4
6841
- os: osx
6942
language: generic
7043
env:
@@ -89,7 +62,7 @@ matrix:
8962

9063
before_install:
9164
- BUILD_DEPENDS="$NP_BUILD_DEP Cython"
92-
- TEST_DEPENDS="$NP_TEST_DEP pytest"
65+
- TEST_DEPENDS="$NP_TEST_DEP pytest pytest-env"
9366
- source multibuild/common_utils.sh
9467
- source multibuild/travis_steps.sh
9568
- before_install
@@ -103,9 +76,13 @@ script:
10376
- install_run $PLAT
10477

10578
after_success:
106-
# Upload wheels to Rackspace container
107-
- pip install wheelhouse-uploader
108-
- python -m wheelhouse_uploader upload --local-folder
109-
${TRAVIS_BUILD_DIR}/wheelhouse/
110-
--no-update-index
111-
wheels
79+
# Upload the generated wheel package to anaconda.org
80+
# PYWAVELETS_STAGING_UPLOAD_TOKEN is an encrypted variable
81+
# used in Appveyor CI config, originally created at
82+
# multibuild-wheels-staging site
83+
- ANACONDA_ORG="multibuild-wheels-staging";
84+
- TOKEN=${PYWAVELETS_STAGING_UPLOAD_TOKEN};
85+
- pip install git+https://github.com/Anaconda-Server/anaconda-client;
86+
- if [ -n "${TOKEN}" ] ; then
87+
anaconda -t ${TOKEN} upload -u ${ANACONDA_ORG} ${TRAVIS_BUILD_DIR}/wheelhouse/*.whl;
88+
fi

appveyor.yml

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ environment:
1212
global:
1313
# Remember to edit .travis.yml too
1414
BUILD_COMMIT: v1.1.1
15-
WHEELHOUSE_UPLOADER_USERNAME: travis-worker
16-
WHEELHOUSE_UPLOADER_SECRET:
17-
secure:
18-
9s0gdDGnNnTt7hvyNpn0/ZzOMGPdwPp2SewFTfGzYk7uI+rdAN9rFq2D1gAP4NQh
1915
NP_BUILD_DEP: "1.13.3"
2016
NP_TEST_DEP: "1.15.4"
2117

@@ -32,8 +28,6 @@ environment:
3228
NP_BUILD_DEP: "1.14.5"
3329
- PYTHON: C:\Python36
3430
- PYTHON: C:\Python36-x64
35-
- PYTHON: C:\Python35
36-
- PYTHON: C:\Python35-x64
3731

3832
install:
3933
- cmd: echo "Filesystem root:"
@@ -89,19 +83,20 @@ test_script:
8983
# Run some tests
9084
- mkdir tmp
9185
- cd tmp
92-
- pip install numpy==%NP_TEST_DEP% pytest
93-
- pytest --pyargs pywt
86+
- python -m pip install numpy==%NP_TEST_DEP% pytest pytest-env
87+
- python -m pytest --pyargs pywt
9488
- cd ..
9589

9690
after_test:
9791
# If tests are successful, create binary packages for the project.
9892
- dir dist
9993

10094
on_success:
101-
# Upload the generated wheel package to Rackspace
102-
# On Windows, Apache Libcloud cannot find a standard CA cert bundle so we
103-
# disable the ssl checks.
104-
- pip install wheelhouse-uploader
105-
- python -m wheelhouse_uploader upload
106-
--local-folder=dist --no-update-index
107-
wheels
95+
# Upload the generated wheel package to anaconda.org
96+
# PYWAVELETS_STAGING_UPLOAD_TOKEN is an encrypted variable
97+
# used in Appveyor CI config, originally created at
98+
# multibuild-wheels-staging site
99+
- cd ..\pywt
100+
- cmd: set ANACONDA_ORG="multibuild-wheels-staging"
101+
- pip install git+https://github.com/Anaconda-Server/anaconda-client
102+
- IF NOT "%PYWAVELETS_STAGING_UPLOAD_TOKEN%" == "" anaconda -t %PYWAVELETS_STAGING_UPLOAD_TOKEN% upload --force -u %ANACONDA_ORG% "dist\*.whl"

0 commit comments

Comments
 (0)