Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
b65fd03
Replace appveyor with gh actions
caspervdw Aug 26, 2021
b18dafe
Quotes
caspervdw Aug 26, 2021
a8a463c
Fix build matrix
caspervdw Aug 26, 2021
f66a2cc
Try bash shell
caspervdw Aug 26, 2021
dd33fbc
Integrate windows into linux workflow
caspervdw Aug 26, 2021
eef5307
Adapt build script
caspervdw Aug 26, 2021
ec3a484
Fix script and prune cache
caspervdw Aug 26, 2021
5487f74
Fix
caspervdw Aug 26, 2021
d36570e
Add osx
caspervdw Aug 26, 2021
e9b531f
Simplify conda and move doctest to pip
caspervdw Aug 26, 2021
2efc541
Attempt fix
caspervdw Aug 26, 2021
eb6ed0d
Update install_geos.sh
caspervdw Aug 27, 2021
e79ed8c
Update install_geos.sh
caspervdw Aug 27, 2021
ee20b71
Update install_geos.sh
caspervdw Aug 27, 2021
89ecb14
Update install_geos.sh
caspervdw Aug 27, 2021
4912edc
Update install_geos.sh
caspervdw Aug 27, 2021
88cf878
Update test-pip.yml
caspervdw Aug 28, 2021
946a001
Backslashes ...
caspervdw Aug 28, 2021
0a020af
Retry slash replacement
caspervdw Aug 28, 2021
8cd9a34
Fix
caspervdw Aug 28, 2021
8005421
Update install_geos.sh
caspervdw Aug 28, 2021
b7dc701
Revert to 3.8.1
caspervdw Aug 29, 2021
0b6102b
Update test-pip.yml
caspervdw Aug 29, 2021
cdabbf0
Update test-pip.yml
caspervdw Aug 29, 2021
2f7b395
Update test-pip.yml
caspervdw Aug 29, 2021
d8e6661
Update setup.py
caspervdw Aug 29, 2021
9852039
Python or GEOS issue?
caspervdw Aug 30, 2021
990c286
Also bump numpy
caspervdw Aug 30, 2021
ddfcedf
Revert [ci skip]
caspervdw Aug 30, 2021
b35e320
Maybe numpy is the problem
caspervdw Aug 30, 2021
671d458
Update test-pip.yml
caspervdw Aug 31, 2021
9966bf0
Update test-pip.yml
caspervdw Aug 31, 2021
e4f0015
Update test-pip.yml
caspervdw Aug 31, 2021
945513d
Update test-pip.yml
caspervdw Aug 31, 2021
e6cf279
Update test-pip.yml
caspervdw Aug 31, 2021
0d858bb
Update test-pip.yml
caspervdw Aug 31, 2021
cc4ab51
Update test-conda.yml
caspervdw Sep 1, 2021
6a86b1c
PR Change
caspervdw Sep 2, 2021
620a045
Add comment and clean osx setting
caspervdw Sep 2, 2021
d2ea4e0
Include 32-bit windows
caspervdw Sep 7, 2021
10589f9
Remove conda actions runner [skip ci]
caspervdw Sep 7, 2021
6c3a1a7
Adapt name [skip ci]
caspervdw Sep 7, 2021
31b4773
Set up matrix differently
caspervdw Sep 7, 2021
333ca92
Enable only 2 windows 32 builds
caspervdw Sep 7, 2021
a67004e
Fix badges [skip ci]
caspervdw Sep 9, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ jobs:
CIBW_ENVIRONMENT_MACOS:
GEOS_INSTALL=${{ github.workspace }}/geos-${{ env.GEOS_VERSION }}
GEOS_CONFIG=${{ github.workspace }}/geos-${{ env.GEOS_VERSION }}/bin/geos-config
DYLD_FALLBACK_LIBRARY_PATH=${{ github.workspace }}/geos-${{ env.GEOS_VERSION }}/lib
LDFLAGS=-Wl,-rpath,${{ github.workspace }}/geos-${{ env.GEOS_VERSION }}/lib
CIBW_ENVIRONMENT_WINDOWS:
GEOS_INSTALL='${{ github.workspace }}\geos-${{ env.GEOS_VERSION }}'
Expand Down
78 changes: 0 additions & 78 deletions .github/workflows/test-conda.yml

This file was deleted.

87 changes: 0 additions & 87 deletions .github/workflows/test-linux.yml

This file was deleted.

137 changes: 137 additions & 0 deletions .github/workflows/test-pip.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
name: Test

on: [push, pull_request]

jobs:
TestLinux:
name: ${{ matrix.os }}-${{ matrix.architecture }} Py${{ matrix.python }} GEOS ${{ matrix.geos }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-2019]
architecture: [x64]
geos: [3.6.4, 3.7.3, 3.8.1, 3.9.1, main]
include:
# 2017
- python: 3.6
geos: 3.6.4
numpy: 1.13.3
# 2018
- python: 3.7
geos: 3.7.3
numpy: 1.15.4
# 2019
- python: 3.8
geos: 3.8.1
numpy: 1.17.5
# 2020
- python: 3.9
geos: 3.9.1
numpy: 1.19.5
# dev
- python: 3.9
geos: main
# enable two 32-bit windows builds:
- os: windows-2019
architecture: x86
python: 3.6
geos: 3.6.4
numpy: 1.13.3
- os: windows-2019
architecture: x86
python: 3.9
geos: 3.9.1
numpy: 1.19.5

env:
GEOS_VERSION: ${{ matrix.geos }}
GEOS_INSTALL: ${{ github.workspace }}/geosinstall/geos-${{ matrix.geos }}

steps:
- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
architecture: ${{ matrix.architecture }}

- name: Cache GEOS and pip packages
uses: actions/cache@v2
with:
key: ${{ matrix.os }}-${{ matrix.architecture }}-geos-${{ matrix.geos }}
path: |
~/.cache/pip
${{ github.workspace }}/geosinstall

- name: Activate MSVC
uses: ilammy/msvc-dev-cmd@v1
with:
arch: ${{ matrix.architecture }}
if: ${{ matrix.os == 'windows-2019' }}

- name: Correct slashes in GEOS_INSTALL (Windows)
shell: bash
run: |
echo 'GEOS_INSTALL=${{ github.workspace }}\geosinstall\geos-${{ matrix.geos }}' >> $GITHUB_ENV
if: ${{ matrix.os == 'windows-2019' }}

- name: Install GEOS
shell: bash
run: |
./ci/install_geos.sh
cd '${{ github.workspace }}'

- name: Install python dependencies
shell: bash
run: |
pip install --disable-pip-version-check --upgrade pip
pip install --upgrade wheel setuptools
if [ "$GEOS_VERSION" = "main" ]; then
pip install --upgrade --pre Cython numpy pytest;
else
pip install --upgrade Cython numpy==${{ matrix.numpy }} pytest;
fi
pip list

- name: Set environment variables (Linux)
shell: bash
run: |
echo "${{ env.GEOS_INSTALL }}/bin" >> $GITHUB_PATH
echo "LD_LIBRARY_PATH=${{ env.GEOS_INSTALL }}/lib" >> $GITHUB_ENV
if: ${{ matrix.os == 'ubuntu-latest' }}

- name: Set environment variables (OSX)
shell: bash
run: |
echo "${{ env.GEOS_INSTALL }}/bin" >> $GITHUB_PATH
echo "LDFLAGS=-Wl,-rpath,${{ env.GEOS_INSTALL }}/lib" >> $GITHUB_ENV
if: ${{ matrix.os == 'macos-latest' }}

# Python >=3.8 ignores the PATH for finding DLLs. We copy them into the package dir.
- name: Set environment variables + copy DLLs (Windows)
shell: bash
run: |
cp geosinstall/geos-${{ matrix.geos }}/bin/*.dll pygeos
echo 'GEOS_LIBRARY_PATH=${{ env.GEOS_INSTALL }}\lib' >> $GITHUB_ENV
echo 'GEOS_INCLUDE_PATH=${{ env.GEOS_INSTALL }}\include' >> $GITHUB_ENV
if: ${{ matrix.os == 'windows-2019' }}

- name: Build PyGEOS
shell: bash
run: |
python setup.py build_ext --inplace
pip install --no-deps -e .

- name: Run tests
shell: bash
continue-on-error: ${{ matrix.geos == 'main' }}
run: |
pytest pygeos

- name: Run doctests
shell: bash
run: |
pytest --doctest-modules pygeos --ignore=pygeos/tests
if: ${{ matrix.os == 'ubuntu-latest' && matrix.python == '3.8' }}
14 changes: 2 additions & 12 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,9 @@ PyGEOS

.. Github Actions status — https://github.com/pygeos/pygeos/actions

.. image:: https://github.com/pygeos/pygeos/workflows/Linux/badge.svg
.. image:: https://github.com/pygeos/pygeos/workflows/Test/badge.svg
:alt: Github Actions status
:target: https://github.com/pygeos/pygeos/actions/workflows/test-linux.yml?query=branch%3Amaster

.. image:: https://github.com/pygeos/pygeos/workflows/Conda/badge.svg
:alt: Github Actions status
:target: https://github.com/pygeos/pygeos/actions/workflows/test-conda.yml?query=branch%3Amaster

.. Appveyor CI status — https://ci.appveyor.com

.. image:: https://ci.appveyor.com/api/projects/status/jw48gpd88f188av6/branch/master?svg=true
:alt: Appveyor CI status
:target: https://ci.appveyor.com/project/caspervdw/pygeos-3e5cu/branch/master
:target: https://github.com/pygeos/pygeos/actions/workflows/test-pip.yml?query=branch%3Amaster

.. Travis CI status -- https://travis-ci.com

Expand Down
Loading