Skip to content

Commit

Permalink
pyproj 3.7.0 & PROJ 9.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Snow committed Oct 1, 2024
1 parent ae2b298 commit 18088a4
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 17 deletions.
13 changes: 8 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ env:
global:
- REPO_DIR=pyproj
# Commit from your-project that you want to build
- BUILD_COMMIT=3.6.1
- BUILD_COMMIT=3.7.0rc0
- BUILD_DEPENDS="Cython" # pip dependencies to _build_ your project
# pip dependencies to _test_ your project. Include any dependencies
# that you need, that are also specified in BUILD_DEPENDS, this will be
Expand All @@ -12,6 +12,9 @@ env:
- PLAT=x86_64
- MB_ML_VER=2014
- TWINE_USERNAME=__token__
- OPENSSL_ROOT=openssl-3.2.1
# Hash from https://www.openssl.org/source/openssl-3.2.1.tar.gz.sha256
- OPENSSL_HASH=6ae015467dabf0469b139ada93319327be24b98251ffaeceda0221848dc09262
# TWINE_PASSWORD is secure env var
- WHEELHOUSE_UPLOADER_USERNAME=travis-worker
# Following generated with
Expand All @@ -31,7 +34,7 @@ matrix:
virt: vm
group: edge
env:
- MB_PYTHON_VERSION=3.9
- MB_PYTHON_VERSION=3.10
- PLAT=aarch64
- MB_ML_VER=2014
- DOCKER_TEST_IMAGE=multibuild/focal_{PLAT}
Expand All @@ -41,7 +44,7 @@ matrix:
virt: vm
group: edge
env:
- MB_PYTHON_VERSION=3.10
- MB_PYTHON_VERSION=3.11
- PLAT=aarch64
- MB_ML_VER=2014
- DOCKER_TEST_IMAGE=multibuild/focal_{PLAT}
Expand All @@ -51,7 +54,7 @@ matrix:
virt: vm
group: edge
env:
- MB_PYTHON_VERSION=3.11
- MB_PYTHON_VERSION=3.12
- PLAT=aarch64
- MB_ML_VER=2014
- DOCKER_TEST_IMAGE=multibuild/focal_{PLAT}
Expand All @@ -61,7 +64,7 @@ matrix:
virt: vm
group: edge
env:
- MB_PYTHON_VERSION=3.12
- MB_PYTHON_VERSION=3.13
- PLAT=aarch64
- MB_ML_VER=2014
- DOCKER_TEST_IMAGE=multibuild/focal_{PLAT}
Expand Down
34 changes: 24 additions & 10 deletions config.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Define custom utilities
# Test for macOS with [ -n "$IS_OSX" ]
SQLITE_VERSION=3420000
LIBTIFF_VERSION=4.5.0
CURL_VERSION=8.1.2
NGHTTP2_VERSION=1.54.0
SQLITE_VERSION=3460100
LIBTIFF_VERSION=4.6.0
CURL_VERSION=8.6.0
NGHTTP2_VERSION=1.60.0

export PROJ_WHEEL=true
export PROJ_VERSION=9.3.0
export PROJ_VERSION=9.4.1


function install_curl_certs {
Expand All @@ -25,6 +25,19 @@ function remove_curl_certs {
fi
}

function build_perl {
if [ -n "$IS_MACOS" ]; then return; fi # OSX has perl already
if [ -e perl-stamp ]; then return; fi
if [[ $MB_ML_VER == "_2_24" ]]; then
# debian:9 based distro
apt-get install -y perl
else
# centos based distro
yum_install perl-core
fi
touch perl-stamp
}

function build_nghttp2 {
if [ -e nghttp2-stamp ]; then return; fi
fetch_unpack https://github.com/nghttp2/nghttp2/releases/download/v${NGHTTP2_VERSION}/nghttp2-${NGHTTP2_VERSION}.tar.gz
Expand All @@ -44,8 +57,9 @@ function build_curl_ssl {
if [ -n "$IS_OSX" ]; then
flags="$flags --with-darwinssl"
else # manylinux
suppress build_perl
suppress build_openssl
flags="$flags --with-ssl"
flags="$flags --with-ssl --without-libpsl"
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$BUILD_PREFIX/lib
fi
fetch_unpack https://curl.haxx.se/download/curl-${CURL_VERSION}.tar.gz
Expand All @@ -72,14 +86,14 @@ function build_sqlite {
# brew install sqlite3
# sqlite3 --version
# else
build_simple sqlite-autoconf $SQLITE_VERSION https://www.sqlite.org/2023
build_simple sqlite-autoconf $SQLITE_VERSION https://www.sqlite.org/2024
# fi
touch sqlite-stamp
}

function build_proj {
if [ -e proj-stamp ]; then return; fi
get_modern_cmake
suppress get_modern_cmake
fetch_unpack https://download.osgeo.org/proj/proj-${PROJ_VERSION}.tar.gz
suppress build_curl_ssl
(cd proj-${PROJ_VERSION:0:5} \
Expand All @@ -100,7 +114,7 @@ function build_proj {
function pre_build {
# Any stuff that you need to do before you start building the wheels
# Runs in the root directory of this repository.
install_curl_certs
suppress install_curl_certs
suppress build_zlib
suppress build_sqlite
suppress build_libtiff
Expand All @@ -114,7 +128,7 @@ function pre_build {

function run_tests {
pyproj -v
python -m pip install shapely~=1.7.1 || echo "Shapely install failed"
python -m pip install shapely || echo "Shapely install failed"
# Runs tests on installed distribution from an empty directory
python --version
python -c "import pyproj; pyproj.Proj(init='epsg:4269')"
Expand Down
2 changes: 1 addition & 1 deletion pyproj
Submodule pyproj updated 95 files
+103 −1 .all-contributorsrc
+8 −4 .flake8
+3 −1 .github/ISSUE_TEMPLATE/bug_report.md
+8 −0 .github/dependabot.yml
+24 −24 .github/workflows/build_docs.yaml
+94 −39 .github/workflows/release.yaml
+9 −13 .github/workflows/test_proj_latest.yaml
+57 −70 .github/workflows/tests.yaml
+15 −8 .pre-commit-config.yaml
+7 −2 .pylintrc
+2 −2 CONTRIBUTING.md
+5 −13 HOW_TO_RELEASE.md
+1 −1 LICENSE
+0 −0 LICENSE_proj
+1 −15 Makefile
+15 −3 README.md
+4 −4 appveyor.yml
+26 −11 ci/proj-compile-wheels.sh
+3 −3 ci/vcpkg.json
+32 −10 docs/advanced_examples.rst
+2 −0 docs/api/global_context.rst
+1 −1 docs/conf.py
+1 −1 docs/crs_compatibility.rst
+3 −3 docs/examples.rst
+3 −3 docs/gotchas.rst
+56 −6 docs/history.rst
+2 −2 docs/index.rst
+13 −5 docs/installation.rst
+3 −0 docs/past_versions.rst
+1 −4 flake8/cython.cfg
+15 −13 pyproj/__init__.py
+5 −0 pyproj/_context.pxd
+7 −0 pyproj/_context.pyi
+101 −29 pyproj/_context.pyx
+7 −0 pyproj/_crs.pxd
+43 −47 pyproj/_crs.pyi
+228 −115 pyproj/_crs.pyx
+0 −6 pyproj/_datadir.pxd
+0 −6 pyproj/_datadir.pyi
+40 −6 pyproj/_geod.pyi
+237 −70 pyproj/_geod.pyx
+1 −4 pyproj/_network.pyi
+4 −16 pyproj/_network.pyx
+3 −1 pyproj/_show_versions.py
+2 −2 pyproj/_sync.pyx
+1 −0 pyproj/_transformer.pxd
+30 −20 pyproj/_transformer.pyi
+287 −160 pyproj/_transformer.pyx
+4 −0 pyproj/_version.pyi
+7 −0 pyproj/_version.pyx
+5 −4 pyproj/aoi.py
+23 −10 pyproj/crs/_cf1x8.py
+62 −79 pyproj/crs/coordinate_operation.py
+4 −7 pyproj/crs/coordinate_system.py
+143 −93 pyproj/crs/crs.py
+7 −6 pyproj/crs/datum.py
+3 −2 pyproj/crs/enums.py
+18 −18 pyproj/database.pyi
+59 −54 pyproj/database.pyx
+8 −8 pyproj/datadir.py
+2 −0 pyproj/enums.py
+6 −14 pyproj/exceptions.py
+180 −50 pyproj/geod.py
+3 −5 pyproj/list.pyi
+6 −6 pyproj/network.py
+33 −8 pyproj/proj.pxi
+11 −10 pyproj/proj.py
+20 −19 pyproj/sync.py
+97 −93 pyproj/transformer.py
+7 −6 pyproj/utils.py
+62 −2 pyproject.toml
+3 −3 requirements-test.txt
+0 −53 setup.cfg
+46 −25 setup.py
+38 −3 test/conftest.py
+169 −28 test/crs/test_crs.py
+59 −23 test/crs/test_crs_cf.py
+82 −35 test/crs/test_crs_coordinate_operation.py
+4 −7 test/crs/test_crs_maker.py
+3 −3 test/test_awips221.py
+2 −1 test/test_cli.py
+8 −0 test/test_database.py
+66 −88 test/test_datadir.py
+1 −1 test/test_datum.py
+6 −6 test/test_datum_shift.py
+4 −3 test/test_doctest_wrapper.py
+552 −271 test/test_geod.py
+5 −5 test/test_network.py
+2 −1 test/test_pickle.py
+54 −36 test/test_proj.py
+4 −2 test/test_show_versions.py
+1 −3 test/test_sync.py
+109 −3 test/test_transform.py
+267 −227 test/test_transformer.py
+17 −7 test/test_utils.py

0 comments on commit 18088a4

Please sign in to comment.