-
Notifications
You must be signed in to change notification settings - Fork 697
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SEDONA-227] Implemented Python geometry serializer as a native exten…
…sion (#767)
- Loading branch information
1 parent
b9a1b91
commit 9fdab1e
Showing
17 changed files
with
3,161 additions
and
612 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: Python build extension | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- '*' | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
os: ['ubuntu-latest', 'windows-latest', 'macos-latest'] | ||
python: ['3.10', '3.9', '3.8'] | ||
|
||
runs-on: ${{ matrix.os }} | ||
defaults: | ||
run: | ||
shell: bash | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: Install pipenv | ||
run: pip install -U pipenv | ||
- name: Install dependencies | ||
run: | | ||
cd python | ||
pipenv --python ${{ matrix.python }} | ||
pipenv install --dev | ||
- name: Build extension | ||
run: | | ||
cd python | ||
pipenv run python setup.py build_ext --inplace | ||
- name: Run tests | ||
run: | | ||
cd python | ||
pipenv run pytest tests/utils/test_geomserde_speedup.py | ||
- name: Run tests on Shapely 2.0 | ||
run: | | ||
cd python | ||
pipenv install shapely~=2.0 | ||
pipenv run pytest tests/utils/test_geomserde_speedup.py | ||
- name: Run tests on Shapley 1.7 | ||
# Shapely 1.7 only provides wheels for cp36 ~ cp39, so we'll skip running | ||
# this test for recent python versions. | ||
if: ${{ matrix.python == '3.9' || matrix.python == '3.8' }} | ||
run: | | ||
cd python | ||
pipenv install shapely~=1.7 | ||
pipenv run pytest tests/utils/test_geomserde_speedup.py |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Python build wheels | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- '*' | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
os: ['ubuntu-latest', 'windows-latest', 'macos-latest'] | ||
|
||
runs-on: ${{ matrix.os }} | ||
defaults: | ||
run: | ||
shell: bash | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Build wheels | ||
uses: pypa/cibuildwheel@v2.12.0 | ||
env: | ||
CIBW_SKIP: 'pp* *musl*' | ||
CIBW_ARCHS: 'auto64' | ||
with: | ||
package-dir: python | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
path: ./wheelhouse/*.whl |
This file contains 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
Oops, something went wrong.