Skip to content

Commit

Permalink
bump github workflow versions (#216)
Browse files Browse the repository at this point in the history
* bump minor version
* compile sqlite on macOS outside brew (recommended in cibuildwheel docs)
* add python 3.12 and 3.13
  • Loading branch information
PeterPetrik authored Sep 12, 2024
1 parent a698475 commit db6ed20
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 33 deletions.
80 changes: 50 additions & 30 deletions .github/workflows/python_packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,15 @@ jobs:
- uses: actions/setup-python@v3
name: Install Python
with:
python-version: '3.8'
python-version: '3.9'

- name: Build wheels
uses: pypa/cibuildwheel@v2.17.0
uses: pypa/cibuildwheel@v2.20.0

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
path: ./wheelhouse/*.whl
name: wheels-manylinux_2_28

build_linux_wheels_manylinux2014:
name: Build wheels for manylinux2014
Expand All @@ -45,14 +46,15 @@ jobs:
- uses: actions/setup-python@v3
name: Install Python
with:
python-version: '3.8'
python-version: '3.9'

- name: Build wheels
uses: pypa/cibuildwheel@v2.17.0
uses: pypa/cibuildwheel@v2.20.0

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
path: ./wheelhouse/*.whl
name: wheels-manylinux2014

build_linux_wheels_musllinux_x86_64:
name: Build wheels for musllinux_x86_64 (alpine)
Expand All @@ -69,14 +71,15 @@ jobs:
- uses: actions/setup-python@v3
name: Install Python
with:
python-version: '3.8'
python-version: '3.9'

- name: Build wheels
uses: pypa/cibuildwheel@v2.17.0
uses: pypa/cibuildwheel@v2.20.0

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
path: ./wheelhouse/*.whl
name: wheels-musllinux_x86_64

build_windows_wheels:
name: Build wheels on windows-latest
Expand All @@ -94,7 +97,7 @@ jobs:
- uses: actions/setup-python@v3
name: Install Python
with:
python-version: '3.8'
python-version: '3.9'

- name: Install Deps
run: |
Expand All @@ -104,11 +107,12 @@ jobs:
dir "C:/vcpkg/installed/x64-windows/bin"
- name: Build wheels
uses: pypa/cibuildwheel@v2.17.0
uses: pypa/cibuildwheel@v2.20.0

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
path: ./wheelhouse/*.whl
name: wheels-windows

build_windows_32_wheels:
name: Build 32bit wheels on windows-latest
Expand All @@ -127,7 +131,7 @@ jobs:
- uses: actions/setup-python@v3
name: Install Python
with:
python-version: '3.8'
python-version: '3.9'
architecture: x86

- name: Install Deps
Expand All @@ -138,69 +142,82 @@ jobs:
dir "C:/vcpkg/installed/x86-windows/bin"
- name: Build wheels
uses: pypa/cibuildwheel@v2.17.0
uses: pypa/cibuildwheel@v2.20.0

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
path: ./wheelhouse/*.whl
name: wheels-windows_32

build_macos_arm64_wheels:
name: Build wheels on macos-14 (arm64)
runs-on: macos-14
env:
SQLite3_ROOT: /opt/homebrew/opt/sqlite
SQLite3_ROOT: ${{ github.workspace }}/libs
MACOSX_DEPLOYMENT_TARGET: '14.0'
CIBW_SKIP: cp27-* cp35-* cp36-*
CIBW_TEST_COMMAND: python -c "import pygeodiff; pygeodiff.GeoDiff().version()"
CIBW_BEFORE_ALL: >
wget https://www.sqlite.org/2024/sqlite-autoconf-3460100.tar.gz &&
tar -xzvf sqlite-autoconf-3460100.tar.gz &&
cd sqlite-autoconf-3460100 &&
CC=clang CFLAGS="-arch arm64 -O3 -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_RTREE -DSQLITE_ENABLE_COLUMN_METADATA" ./configure --enable-dynamic-extensions --prefix=${{ github.workspace }}/libs/ &&
make install
steps:
- uses: actions/checkout@v3

- uses: actions/setup-python@v3
name: Install Python
with:
python-version: '3.8'
python-version: '3.9'

- name: Install Deps
run: |
brew install sqlite3
pip install setuptools scikit-build wheel cmake
ls -la /opt/homebrew
- name: Build wheels
uses: pypa/cibuildwheel@v2.17.0
uses: pypa/cibuildwheel@v2.20.0

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
path: ./wheelhouse/*.whl
name: wheels-macos_arm64

build_macos_wheels:
name: Build wheels on macos-13
runs-on: macos-13
env:
SQLite3_ROOT: /usr/local/opt/sqlite
SQLite3_ROOT: ${{ github.workspace }}/libs
MACOSX_DEPLOYMENT_TARGET: '10.9'
CIBW_SKIP: cp27-* cp35-* cp36-*
CIBW_TEST_COMMAND: python -c "import pygeodiff; pygeodiff.GeoDiff().version()"

CIBW_BEFORE_ALL: >
wget https://www.sqlite.org/2024/sqlite-autoconf-3460100.tar.gz &&
tar -xzvf sqlite-autoconf-3460100.tar.gz &&
cd sqlite-autoconf-3460100 &&
CC=clang CFLAGS="-arch x86_64 -O3 -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_RTREE -DSQLITE_ENABLE_COLUMN_METADATA" ./configure --enable-dynamic-extensions --prefix=${{ github.workspace }}/libs/ &&
make install
steps:
- uses: actions/checkout@v3

- uses: actions/setup-python@v3
name: Install Python
with:
python-version: '3.8'
python-version: '3.9'

- name: Install Deps
run: |
brew install sqlite3
pip install setuptools scikit-build wheel cmake
- name: Build wheels
uses: pypa/cibuildwheel@v2.17.0
uses: pypa/cibuildwheel@v2.20.0

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
path: ./wheelhouse/*.whl
name: dist-macos

build_sdist:
name: Build source distribution
Expand All @@ -211,7 +228,7 @@ jobs:
- uses: actions/setup-python@v3
name: Install Python
with:
python-version: '3.8'
python-version: '3.9'

- name: Install deps
run: |
Expand All @@ -221,9 +238,10 @@ jobs:
- name: Build sdist
run: python setup.py sdist

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
path: dist/*.tar.gz
name: dist-source

upload_pypi:
needs: [build_windows_wheels, build_linux_wheels_manylinux_2_28, build_linux_wheels_manylinux2014, build_linux_wheels_musllinux_x86_64, build_macos_wheels, build_macos_arm64_wheels, build_sdist]
Expand All @@ -233,6 +251,8 @@ jobs:
- uses: actions/download-artifact@v4.1.7
with:
name: artifact
pattern: dist-*
merge-multiple: true
path: dist

- uses: pypa/gh-action-pypi-publish@release/v1
Expand Down
2 changes: 1 addition & 1 deletion geodiff/src/geodiff.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
// use scripts/update_version.py to update the version here and in other places at once
const char *GEODIFF_version()
{
return "2.0.2";
return "2.0.3";
}

int GEODIFF_driverCount( GEODIFF_ContextH /*contextHandle*/ )
Expand Down
2 changes: 1 addition & 1 deletion pygeodiff/__about__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
__description__ = "Diff tool for geo-spatial data"
__url__ = "https://github.com/MerginMaps/geodiff"
# use scripts/update_version.py to update the version here and in other places at once
__version__ = "2.0.2"
__version__ = "2.0.3"
__author__ = "Lutra Consulting Ltd."
__author_email__ = "info@merginmaps.com"
__maintainer__ = "Lutra Consulting Ltd."
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import platform

# use scripts/update_version.py to update the version here and in other places at once
VERSION = "2.0.2"
VERSION = "2.0.3"

cmake_args = [
'-DENABLE_TESTS:BOOL=OFF',
Expand Down

0 comments on commit db6ed20

Please sign in to comment.