Skip to content

Commit ceb2c41

Browse files
author
Jeff Whitaker
committed
test using certifi/nc_rc_set to find SSL certs
1 parent cb5640b commit ceb2c41

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

.github/workflows/build-wheels-linux.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ jobs:
5252
PKG_NAME: netcdf4-python
5353
#MB_ML_VER: _2_28
5454
MB_ML_VER: 2014
55-
BUILD_COMMIT: v1.6.3rel
55+
#BUILD_COMMIT: v1.6.3rel
56+
BUILD_COMMIT: issue1246
5657
UNICODE_WIDTH: 32
5758
MB_PYTHON_VERSION: ${{ matrix.python-version }}
5859
TRAVIS_PYTHON_VERSION: ${{ matrix.python-version }}

config.sh

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export NO_PLUGINS=1
1212

1313
# Compile libs for macOS 10.9 or later
1414
export MACOSX_DEPLOYMENT_TARGET="10.9"
15-
export NETCDF_VERSION="4.9.1"
15+
export NETCDF_VERSION="4.9.2"
1616
export HDF5_VERSION="1.12.2"
1717
export OPENSSL_ROOT=openssl-1.1.1t
1818
export OPENSSL_HASH=8dee9b24bdb1dcbf0c3d1e9b02fb8f6bf22165e807f45adeb7c9677536859d3b
@@ -290,14 +290,14 @@ function run_tests {
290290
# add test for netcdf4-python issue #1246 (opendap with ssl)
291291
export CURLOPT_VERBOSE=1
292292
URL='https://icdc.cen.uni-hamburg.de/thredds/dodsC/ftpthredds/hamtide/m2.hamtide11a.nc'
293-
if [ -z "$IS_MACOS" ]; then # only needed for Linux
294-
# these should work, but don't
295-
#echo "HTTP.SSL.CAINFO=/etc/ssl/certs/ca-certificates.crt" > $HOME/.ncrc
296-
#export CURL_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
297-
#echo "cacert=/etc/ssl/certs/ca-certificates.crt" > $HOME/.curlrc
298-
# this works
299-
mkdir -p /etc/pki/tls/certs
300-
ln -s /etc/ssl/certs/ca-certificates.crt /etc/pki/tls/certs/ca-bundle.crt
301-
fi
293+
#if [ -z "$IS_MACOS" ]; then # only needed for Linux
294+
# # these should work, but don't
295+
# #echo "HTTP.SSL.CAINFO=/etc/ssl/certs/ca-certificates.crt" > $HOME/.ncrc
296+
# #export CURL_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
297+
# #echo "cacert=/etc/ssl/certs/ca-certificates.crt" > $HOME/.curlrc
298+
# # this works
299+
# mkdir -p /etc/pki/tls/certs
300+
# ln -s /etc/ssl/certs/ca-certificates.crt /etc/pki/tls/certs/ca-bundle.crt
301+
#fi
302302
python -c "from netCDF4 import Dataset; nc=Dataset(\"${URL}\"); print(nc)"
303303
}

0 commit comments

Comments
 (0)