Pyproj 3.7.2 - and include pyogrio v0.11.1 #73
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Linux wheels x86_64 | |
on: | |
workflow_dispatch: | |
inputs: | |
debug_enabled: | |
type: boolean | |
description: "tmate debugging enabled" | |
required: false | |
default: false | |
pull_request: | |
env: | |
WHEEL_SDIR: wheelhouse | |
jobs: | |
build_psutil: | |
name: psutil ${{ matrix.python }} ${{ matrix.os-name }} ${{ matrix.platform }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ["ubuntu-24.04"] | |
python: ["3.11", "3.12"] | |
platform: ["x86_64"] | |
os-name: ["jammy"] | |
env: | |
REPO_DIR: psutil | |
BUILD_COMMIT: release-7.0.0 | |
WHEEL_SDIR: wheelhouse | |
PLAT: "${{ matrix.platform }}" | |
MB_PYTHON_VERSION: "${{ matrix.python }}" | |
MB_ML_VER: "2014" | |
BUILD_DEPENDS: "wheel numpy==2.2.6 build pip==25.2 Cython==3.1.4 setuptools==80.9.0 tomli==2.2.1 versioneer[toml]==0.28" | |
TEST_DEPENDS: "cython" | |
TRAVIS_OS_NAME: ${{ matrix.os-name }} | |
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.macos-target }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- name: get code of psutil | |
run: | | |
echo $PATH | |
bash -x .github/workflows/build.sh | |
- name: Build Wheel of psutil | |
run: | | |
sudo apt install python3-virtualenv | |
- name: Build Wheel of psutil | |
run: | | |
bash -x .github/workflows/wheel.sh | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: "wheels_psutil_${{ matrix.python }}" | |
path: wheelhouse/psutil*whl | |
build_pyproj: | |
name: pyproj ${{ matrix.python }} ${{ matrix.os-name }} ${{ matrix.platform }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ["ubuntu-24.04"] | |
python: ["3.11", "3.12"] | |
platform: ["x86_64"] | |
os-name: ["jammy"] | |
env: | |
REPO_DIR: pyproj | |
BUILD_COMMIT: 3.7.2 | |
WHEEL_SDIR: wheelhouse | |
PLAT: "${{ matrix.platform }}" | |
MB_PYTHON_VERSION: "${{ matrix.python }}" | |
MB_ML_VER: "2014" | |
BUILD_DEPENDS: "wheel numpy==2.2.6 build pip==25.2 Cython==3.1.4 setuptools==80.9.0 tomli==2.2.1 versioneer[toml]==0.28" | |
TEST_DEPENDS: "cython" | |
TRAVIS_OS_NAME: ${{ matrix.os-name }} | |
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.macos-target }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- name: get code of pyproj | |
run: | | |
echo $PATH | |
bash -x .github/workflows/build.sh | |
- name: Build Wheel of pyproj | |
run: | | |
echo $PATH | |
sudo apt install python3-virtualenv | |
bash -x .github/workflows/wheel.sh | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: "wheels_pyproj_${{ matrix.python }}" | |
path: wheelhouse/pyproj*whl | |
build_Fiona: | |
name: Fiona ${{ matrix.python }} ${{ matrix.os-name }} ${{ matrix.platform }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ["ubuntu-24.04"] | |
python: ["3.11", "3.12"] | |
platform: ["x86_64"] | |
os-name: ["jammy"] | |
env: | |
REPO_DIR: Fiona | |
BUILD_COMMIT: 1.10.1 | |
GDAL_FIONA: 3.10.3 | |
PLAT: "${{ matrix.platform }}" | |
MB_PYTHON_VERSION: "${{ matrix.python }}" | |
MB_ML_VER: "2014" | |
BUILD_DEPENDS: "oldest-supported-numpy wheel numpy==2.2.6 build pip==25.2 Cython==3.1.4 setuptools==80.9.0 tomli==2.2.1 versioneer[toml]==0.28" | |
TEST_DEPENDS: "oldest-supported-numpy attrs pytest click mock boto3 packaging hypothesis wheel pytz numpy==2.2.6 setuptools matplotlib pyparsing fsspec gcsfs" | |
TRAVIS_OS_NAME: ${{ matrix.os-name }} | |
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.macos-target }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- name: get code of Fiona | |
run: | | |
echo $PATH | |
bash -x .github/workflows/build.sh | |
- name: Build Wheel of Fiona | |
run: | | |
echo $PATH | |
sudo apt install python3-virtualenv | |
bash -x .github/workflows/wheel.sh | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: "wheels_fiona_${{ matrix.python }}" | |
path: wheelhouse/fiona*whl | |
build_GDAL: | |
name: GDAL ${{ matrix.python }} ${{ matrix.os-name }} ${{ matrix.platform }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ["ubuntu-24.04"] | |
python: ["3.11", "3.12"] | |
platform: ["x86_64"] | |
os-name: ["jammy"] | |
env: | |
REPO_DIR: gdal | |
BUILD_COMMIT: v3.10.3 | |
WHEEL_SDIR: wheelhouse | |
PLAT: "${{ matrix.platform }}" | |
MB_PYTHON_VERSION: "${{ matrix.python }}" | |
MB_ML_VER: "2014" | |
BUILD_DEPENDS: "wheel numpy==2.2.6 build pip==25.2 Cython==3.1.4 setuptools==80.9.0 tomli==2.2.1 versioneer[toml]==0.28" | |
TRAVIS_OS_NAME: ${{ matrix.os-name }} | |
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.macos-target }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- name: get code of GDAL | |
run: | | |
bash -x .github/workflows/build.sh | |
- name: Build Wheel of GDAL | |
run: | | |
sudo apt install python3-virtualenv | |
bash -x .github/workflows/wheel.sh | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: "wheels_gdal_${{ matrix.python }}" | |
path: wheelhouse/gdal*whl | |
build_pyogrio: | |
name: pyogrio ${{ matrix.python }} ${{ matrix.os-name }} ${{ matrix.platform }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ["ubuntu-24.04"] | |
python: ["3.11", "3.12"] | |
platform: ["x86_64"] | |
os-name: ["jammy"] | |
env: | |
REPO_DIR: pyogrio | |
BUILD_COMMIT: v0.11.1 | |
PYOGRIO_VERISON: | |
WHEEL_SDIR: wheelhouse | |
PLAT: "${{ matrix.platform }}" | |
MB_PYTHON_VERSION: "${{ matrix.python }}" | |
MB_ML_VER: "2014" | |
#deps values from pyogrio github action | |
BUILD_DEPENDS: "wheel numpy==2.2.6 build pip==25.2 Cython==3.1.4 setuptools==80.9.0 tomli==2.2.1 versioneer[toml]==0.28" | |
TRAVIS_OS_NAME: ${{ matrix.os-name }} | |
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.macos-target }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- name: get code of pyogrio | |
run: | | |
bash -x .github/workflows/build.sh | |
- name: Build Wheel of pyogrio | |
run: | | |
sudo apt install python3-virtualenv | |
bash -x .github/workflows/wheel.sh | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: "wheels_pyogrio${{ matrix.python }}" | |
path: wheelhouse/pyogrio*whl | |
build_geopandas: | |
name: geopandas ${{ matrix.python }} ${{ matrix.os-name }} ${{ matrix.platform }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ["ubuntu-24.04"] | |
python: ["3.11", "3.12"] | |
platform: ["x86_64"] | |
os-name: ["jammy"] | |
env: | |
REPO_DIR: geopandas | |
BUILD_COMMIT: v1.1.1 | |
PYOGRIO_VERISON: | |
WHEEL_SDIR: wheelhouse | |
PLAT: "${{ matrix.platform }}" | |
MB_PYTHON_VERSION: "${{ matrix.python }}" | |
MB_ML_VER: "2014" | |
#deps values from pyogrio github action | |
BUILD_DEPENDS: "wheel numpy==2.2.6 build pip==25.2 Cython==3.1.4 setuptools==80.9.0 tomli==2.2.1 versioneer[toml]==0.28" | |
TRAVIS_OS_NAME: ${{ matrix.os-name }} | |
MACOSX_DEPLOYMENT_TARGET: ${{ matrix.macos-target }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- name: get code of geopandas | |
run: | | |
bash -x .github/workflows/build.sh | |
- name: Build Wheel of geopandas | |
run: | | |
sudo apt install python3-virtualenv | |
bash -x .github/workflows/wheel.sh | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: "wheels_geopandas${{ matrix.python }}" | |
path: wheelhouse/geopandas*whl | |
test_wheel: | |
needs: [build_GDAL, build_pyproj, build_Fiona] | |
runs-on: ubuntu-24.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.11", "3.12"] | |
env: | |
BRANCH_TEST: ae_numpy2 | |
PYTHON_VERSION: "${{ matrix.python-version }}" | |
steps: | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: download artifact | |
uses: actions/download-artifact@v4 | |
id: download | |
with: | |
path: wheelhouse | |
- name: "Echo artifact download path" | |
run: echo ${{steps.download.outputs.download-path}} | |
- name: Setup debugging session | |
uses: mxschmitt/action-tmate@v3 | |
timeout-minutes: 90 | |
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }} | |
- name: Test wheels with python ${{ matrix.python-version }} | |
shell: bash | |
run: | | |
set -x | |
echo "engine installation to test wheel" | |
python3 -m venv $HOME/openquake | |
source $HOME/openquake/bin/activate | |
pip install -U pip wheel setuptools | |
cd ${{steps.download.outputs.download-path}} | |
PYCUT=`echo "${PYTHON_VERSION//.}"` | |
cd $HOME | |
git clone -b ${BRANCH_TEST} https://github.com/gem/oq-engine.git | |
cd oq-engine | |
git status | |
pip install -r requirements-py"${PYCUT}"-macos_arm64.txt | |
cd $RUNNER_WORKSPACE | |
find . -name \*cp"${PYCUT}"\* -type f -print0 | xargs -0 pip install | |
find . -name \*geopandas\*whl -type f | grep "${PYTHON_VERSION}" -print0 | xargs -0 pip install | |
cd $HOME | |
pip install -e oq-engine/ | |
cd $HOME/oq-engine | |
oq engine --upgrade-db | |
sleep 5 | |
python -c "import sys; print(sys.version)" | |
python -c "import geopandas; from shapely.geometry import Point;d = {'col1': ['name1', 'name2'], 'geometry': [Point(1, 2), Point(2, 1)]};print(geopandas.GeoDataFrame(d, crs='EPSG:4326')) " | |
sleep 5 | |
pytest -vsx --color=yes openquake/sep/tests/test_utils.py | |
pytest -vsx --color=yes openquake/sep | |
pytest -vsx --color=yes openquake/hazardlib/tests/gsim/kotha_2020_test.py | |
oq engine --run https://downloads.openquake.org/jobs/risk_test.zip |