Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shapely>=2 & other minimum version deps #377

Merged
merged 11 commits into from
May 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
13 changes: 7 additions & 6 deletions .ci/310.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,18 @@ channels:
- conda-forge
dependencies:
- python=3.10
- geopandas>=0.10.0
- geopandas
- libpysal
- mapclassify
- matplotlib
- networkx
- numpy>=1.21
- pandas>=1.0.5
- scikit-learn>=0.22
- scipy>=1.3.2
- numpy
- pandas
- scikit-learn
- scipy
- shapely
- spaghetti
- tqdm>=4.27.0
- tqdm
# testing
- codecov
- coverage
Expand Down
11 changes: 6 additions & 5 deletions .ci/311-DEV.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@ dependencies:
- python=3.11
- geopandas
- libpysal
- mapclassify
- matplotlib
- networkx
- numpy>=1.21
- pandas>=1.0.5
- scikit-learn>=0.22
- scipy>=1.3.2
- numpy
- pandas
- scikit-learn
- scipy
- spaghetti
- tqdm>=4.27.0
- tqdm
# testing
- codecov
- coverage
Expand Down
11 changes: 6 additions & 5 deletions .ci/311.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@ dependencies:
- python=3.11
- geopandas
- libpysal
- mapclassify
- matplotlib
- networkx
- numpy>=1.21
- pandas>=1.0.5
- scikit-learn>=0.22
- scipy>=1.3.2
- numpy
- pandas
- scikit-learn
- scipy
- spaghetti
- tqdm=>4.27.0
- tqdm
# testing
- codecov
- coverage
Expand Down
12 changes: 6 additions & 6 deletions .ci/38-MIN.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ channels:
- conda-forge
dependencies:
- python=3.8
- geopandas=0.10.0
- geopandas=0.10
- libpysal
- matplotlib
- networkx
- networkx=2.6
- numpy=1.21
- pandas=1.0.5
- scikit-learn=0.22
- scipy=1.3.2
- shapely
- pandas=1.3
- scikit-learn=1.0
- scipy=1.7
- shapely=2.0
- spaghetti
# testing
- codecov
Expand Down
10 changes: 5 additions & 5 deletions .ci/39.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ dependencies:
- python=3.9
- geopandas
- libpysal
- mapclassify
- matplotlib
- networkx
- numpy>=1.21
- pandas>=1.0.5
- scikit-learn>=0.22
- scipy>=1.3.2
- numpy
- pandas
- scikit-learn
- scipy
- shapely
- spaghetti
- tqdm=4.27.0
# testing
- codecov
- coverage
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
uses: actions/checkout@v3

- name: setup micromamba
uses: mamba-org/provision-with-micromamba@main
uses: mamba-org/setup-micromamba@v1
with:
environment-file: ${{ matrix.environment-file }}
micromamba-version: 'latest'
Expand Down
28 changes: 11 additions & 17 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
name: ${{ matrix.os }}, ${{ matrix.environment-file }}
runs-on: ${{ matrix.os }}
timeout-minutes: 30
env:
RUN_TEST: pytest spopt -v -r a -n auto --cov spopt --color yes --cov-report term-missing --cov-append --cov-report xml .
strategy:
matrix:
os: [ubuntu-latest]
Expand All @@ -33,43 +31,39 @@
- environment-file: .ci/311.yaml
os: windows-latest
fail-fast: false


defaults:
run:
shell: bash -l {0}

steps:
- name: checkout repo
uses: actions/checkout@v3

- name: setup micromamba
uses: mamba-org/provision-with-micromamba@main
uses: mamba-org/setup-micromamba@v1
with:
environment-file: ${{ matrix.environment-file }}
micromamba-version: 'latest'
channel-priority: 'flexible'

##############################################################################
#- name: install pulp via pip
# shell: bash -l {0}
# run: pip install pulp
# run: |
jGaboardi marked this conversation as resolved.
Show resolved Hide resolved
# pip install pulp
# pulptest
##############################################################################

- name: environment info
shell: bash -l {0}
run: |
micromamba info
micromamba list

- name: spatial versions
shell: bash -l {0}
run: 'python -c "import geopandas; geopandas.show_versions();"'

- name: run tests - bash
shell: bash -l {0}
run: ${{ env.RUN_TEST }}
if: matrix.os != 'windows-latest'

- name: run tests - powershell
shell: powershell
run: ${{ env.RUN_TEST }}
if: matrix.os == 'windows-latest'
run: |
pytest spopt -v -r a -n auto --cov spopt --color yes --cov-report term-missing --cov-append --cov-report xml .

- name: codecov
uses: codecov/codecov-action@v3
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ All examples can be run interactively by launching this repository as a [![Binde
- [scikit-learn](https://scikit-learn.org/stable/)
- [geopandas](https://geopandas.org/)
- [pulp](https://coin-or.github.io/pulp/)
- [shapely](https://shapely.readthedocs.io/en/stable/)
- [spaghetti](https://github.com/pysal/spaghetti)

## Installation
Expand Down
11 changes: 6 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,16 @@ classifiers = [
]
requires-python = ">=3.8"
dependencies = [
"geopandas>=0.10.0",
"geopandas>=0.10",
"libpysal",
"mapclassify",
"networkx",
"networkx>=2.6",
"numpy>=1.21",
"pandas>=1.0.5",
"pandas>=1.3,!=1.5.0",
"pulp",
"scikit-learn>=0.22",
"scipy>=1.3.2",
"scikit-learn>=1.0",
"scipy>=1.7",
"shapely>=2",
"spaghetti",
"tqdm>=4.27.0",
]
Expand Down