Skip to content

Commit

Permalink
Py310 (#161)
Browse files Browse the repository at this point in the history
* python 3.10
* deprecate python 3.6
* add musllinux
  • Loading branch information
PeterPetrik authored Feb 9, 2022
1 parent 84defd1 commit ae04748
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 17 deletions.
50 changes: 37 additions & 13 deletions .github/workflows/python_packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
name: Build wheels for manylinux_2_24
runs-on: ubuntu-latest
env:
CIBW_SKIP: pp* cp27-* cp35-* *-i686
CIBW_SKIP: pp* cp27-* cp35-* cp36-* *-i686 *musllinux*
CIBW_MANYLINUX_X86_64_IMAGE: manylinux_2_24
CIBW_MANYLINUX_I686_IMAGE: manylinux_2_24
CIBW_BEFORE_ALL_LINUX: apt-get update -y && apt-get install libsqlite3-dev
Expand All @@ -22,7 +22,7 @@ jobs:
python-version: '3.8'

- name: Build wheels
uses: pypa/cibuildwheel@v1.12.0
uses: pypa/cibuildwheel@v2.3.1

- uses: actions/upload-artifact@v2
with:
Expand All @@ -32,7 +32,7 @@ jobs:
name: Build wheels for manylinux2014
runs-on: ubuntu-latest
env:
CIBW_SKIP: pp* cp27-* cp35-* *-i686
CIBW_SKIP: pp* cp27-* cp35-* cp36-* *-i686 *musllinux*
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014
CIBW_MANYLINUX_I686_IMAGE: manylinux2014
CIBW_BEFORE_ALL_LINUX: yum install -y sqlite-devel
Expand All @@ -48,19 +48,43 @@ jobs:
python-version: '3.8'

- name: Build wheels
uses: pypa/[email protected]
uses: pypa/[email protected]

- uses: actions/upload-artifact@v2
with:
path: ./wheelhouse/*.whl

build_linux_wheels_musllinux_x86_64:
name: Build wheels for musllinux_x86_64 (alpine)
runs-on: ubuntu-latest
env:
CIBW_BUILD: "*musllinux*"
CIBW_BEFORE_ALL_LINUX: apk add sqlite-dev
CIBW_BEFORE_BUILD: pip install setuptools scikit-build wheel cmake
CIBW_TEST_COMMAND: python -c "import pygeodiff; pygeodiff.GeoDiff().version()"

steps:
- uses: actions/checkout@v2

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

- name: Build wheels
uses: pypa/[email protected]

- uses: actions/upload-artifact@v2
with:
path: ./wheelhouse/*.whl

build_windows_wheels:
name: Build wheels on windows-latest
runs-on: windows-latest
runs-on: windows-2019
env:
CMAKE_GENERATOR: "Visual Studio 16 2019"
SQLite3_ROOT: "C:/vcpkg/installed/x64-windows"
CIBW_SKIP: cp27-* cp35-* *-win32
CIBW_SKIP: cp27-* cp35-* cp36-* *-win32
CIBW_TEST_COMMAND: python -c "import pygeodiff; pygeodiff.GeoDiff().version()"
CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: "delvewheel repair --add-path C:/vcpkg/installed/x64-windows/bin --no-mangle-all -v -w {dest_dir} {wheel}"

Expand All @@ -79,20 +103,20 @@ jobs:
dir "C:/vcpkg/installed/x64-windows/bin"
- name: Build wheels
uses: pypa/cibuildwheel@v1.12.0
uses: pypa/cibuildwheel@v2.3.1

- uses: actions/upload-artifact@v2
with:
path: ./wheelhouse/*.whl

build_windows_32_wheels:
name: Build 32bit wheels on windows-latest
runs-on: windows-latest
runs-on: windows-2019
env:
CMAKE_GENERATOR: "Visual Studio 16 2019"
CMAKE_GENERATOR_PLATFORM: "Win32"
SQLite3_ROOT: "C:/vcpkg/installed/x86-windows"
CIBW_SKIP: cp27-* cp35-* pp* *-win_amd64
CIBW_SKIP: cp27-* cp35-* cp36-* pp* *-win_amd64
CIBW_TEST_COMMAND: python -c "import pygeodiff; pygeodiff.GeoDiff().version()"
CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: "delvewheel repair --add-path C:/vcpkg/installed/x86-windows/bin --no-mangle-all -v -w {dest_dir} {wheel}"

Expand All @@ -112,7 +136,7 @@ jobs:
dir "C:/vcpkg/installed/x86-windows/bin"
- name: Build wheels
uses: pypa/cibuildwheel@v1.12.0
uses: pypa/cibuildwheel@v2.3.1

- uses: actions/upload-artifact@v2
with:
Expand All @@ -123,7 +147,7 @@ jobs:
runs-on: macos-latest
env:
SQLite3_ROOT: /usr/local/opt/sqlite
CIBW_SKIP: cp27-* cp35-*
CIBW_SKIP: cp27-* cp35-* cp36-*
CIBW_TEST_COMMAND: python -c "import pygeodiff; pygeodiff.GeoDiff().version()"

steps:
Expand All @@ -140,7 +164,7 @@ jobs:
pip install setuptools scikit-build wheel cmake nose2
- name: Build wheels
uses: pypa/cibuildwheel@v1.12.0
uses: pypa/cibuildwheel@v2.3.1

- uses: actions/upload-artifact@v2
with:
Expand Down Expand Up @@ -170,7 +194,7 @@ jobs:
path: dist/*.tar.gz

upload_pypi:
needs: [build_windows_wheels, build_linux_wheels_manylinux_2_24, build_linux_wheels_manylinux2014, build_macos_wheels, build_sdist]
needs: [build_windows_wheels, build_linux_wheels_manylinux_2_24, build_linux_wheels_manylinux2014, build_linux_wheels_musllinux_x86_64, build_macos_wheels, build_sdist]
runs-on: ubuntu-latest
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
steps:
Expand Down
2 changes: 1 addition & 1 deletion geodiff/src/geodiff.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
// use scripts/update_version.py to update the version here and in other places at once
const char *GEODIFF_version()
{
return "1.0.5";
return "1.0.6";
}

void _errorLogCallback( void *pArg, int iErrCode, const char *zMsg )
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/lutraconsulting/geodiff'
# use scripts/update_version.py to update the version here and in other places at once
__version__ = '1.0.5'
__version__ = '1.0.6'
__author__ = 'Peter Petrik'
__author_email__ = '[email protected]'
__maintainer__ = 'Peter Petrik'
Expand Down
4 changes: 2 additions & 2 deletions setup.py
100644 → 100755
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 = '1.0.5'
VERSION = '1.0.6'

cmake_args = [
'-DENABLE_TESTS:BOOL=OFF',
Expand Down Expand Up @@ -36,7 +36,7 @@
cmake_source_dir="geodiff",
cmake_with_sdist=False,
test_suite="tests.test_project",
python_requires=">=3.6",
python_requires=">=3.7",
license="License :: OSI Approved :: MIT License",
classifiers=[
"Programming Language :: Python :: 3",
Expand Down

0 comments on commit ae04748

Please sign in to comment.