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

[maint] support Python 3.12, ect #62

Merged
merged 5 commits into from
Jul 14, 2024
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
2 changes: 1 addition & 1 deletion .github/workflows/build_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
strategy:
matrix:
os: ['ubuntu-latest']
environment-file: [ci/311.yaml]
environment-file: [ci/312-latest.yaml]
experimental: [false]
defaults:
run:
Expand Down
30 changes: 14 additions & 16 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,36 +30,34 @@ jobs:
matrix:
os: [ubuntu-latest]
environment-file:
- ci/39-MIN.yaml
- ci/310.yaml
- ci/311.yaml
- ci/311-DEV.yaml
- ci/39-oldest.yaml
- ci/310-oldest.yaml
- ci/310-latest.yaml
- ci/311-latest.yaml
- ci/312-latest.yaml
- ci/312-dev.yaml
include:
- environment-file: ci/311.yaml
os: macos-latest
- environment-file: ci/311.yaml
- environment-file: ci/312-latest.yaml
os: macos-13 # Intel
- environment-file: ci/312-latest.yaml
os: macos-14 # Apple Silicon
- environment-file: ci/312-latest.yaml
os: windows-latest
fail-fast: false

steps:
- name: checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history for all branches and tags.

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

- name: install bleeding edge libpysal & spreg (Ubuntu / latest Python)
shell: bash -l {0}
run: |
pip install git+https://github.com/pysal/libpysal.git@main
pip install git+https://github.com/pysal/spreg.git@main
if: matrix.os == 'ubuntu-latest' && contains(matrix.environment-file, 'DEV')

- name: environment info
shell: bash -l {0}
run: |
micromamba info
micromamba list
Expand Down
2 changes: 0 additions & 2 deletions ci/310.yaml → ci/310-latest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@ channels:
dependencies:
- python=3.10
# required
- git
- libpysal
- numpy
- pip
- scipy
- spreg
# testing
Expand Down
2 changes: 1 addition & 1 deletion ci/39-MIN.yaml → ci/310-oldest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: test
channels:
- conda-forge
dependencies:
- python=3.9
- python=3.10
# required
- git
- libpysal=4.5
Expand Down
6 changes: 4 additions & 2 deletions ci/311-DEV.yaml → ci/311-latest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ channels:
dependencies:
- python=3.11
# required
- git
- pip
- libpysal
- numpy
- scipy
- spreg
# testing
- codecov
- pytest
Expand Down
20 changes: 20 additions & 0 deletions ci/312-dev.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: test
channels:
- conda-forge
dependencies:
- python=3.12
# required
- git
- pip
# testing
- codecov
- pytest
- pytest-cov
- pytest-xdist
- pip:
# dev versions of packages
- --pre --index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple --extra-index-url https://pypi.org/simple
- numpy
- scipy
- git+https://github.com/pysal/libpysal.git@main
- git+https://github.com/pysal/spreg.git@main
4 changes: 1 addition & 3 deletions ci/311.yaml → ci/312-latest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@ name: test
channels:
- conda-forge
dependencies:
- python=3.11
- python=3.12
# required
- git
- libpysal
- numpy
- pip
- scipy
- spreg
# testing
Expand Down
15 changes: 15 additions & 0 deletions ci/39-oldest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: test
channels:
- conda-forge
dependencies:
- python=3.9
# required
- libpysal=4.5
- numpy=1.23
- scipy=1.8
- spreg=1.2
# testing
- codecov
- pytest
- pytest-cov
- pytest-xdist
3 changes: 0 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@ keywords = ["spatial statistics"]
readme = "README.md"
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Intended Audience :: Science/Research",
Expand Down
Loading