Skip to content

Commit

Permalink
Add Python 3.12 support (#618)
Browse files Browse the repository at this point in the history
rhugonnet authored Oct 30, 2024
1 parent 5d4fab1 commit c2b0a60
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pip-checks.yml
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@ jobs:
strategy:
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
python-version: ["3.9", "3.10", "3.11"]
python-version: ["3.10", "3.11", "3.12"]

# Run all shells using bash (including Windows)
defaults:
2 changes: 1 addition & 1 deletion .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -25,7 +25,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
python-version: '3.12'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
2 changes: 1 addition & 1 deletion .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@ jobs:
strategy:
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
python-version: ["3.9", "3.10", "3.11"]
python-version: ["3.10", "3.11", "3.12"]

defaults:
run:
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@ For more details, see the rest of this document.

## Development environment

GeoUtils currently supports only Python versions of 3.9 and higher, see `environment.yml` for detailed dependencies.
GeoUtils currently supports only Python versions of 3.10 to 3.12, see `environment.yml` for detailed dependencies.

### Setup

2 changes: 1 addition & 1 deletion dev-environment.yml
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ name: geoutils-dev
channels:
- conda-forge
dependencies:
- python>=3.9,<3.12
- python>=3.10,<3.13
- geopandas>=0.12.0
- matplotlib=3.*
- pyproj=3.*
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ name: geoutils
channels:
- conda-forge
dependencies:
- python>=3.9,<3.12
- python>=3.10,<3.13
- geopandas>=0.12.0
- matplotlib=3.*
- pyproj=3.*
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@ version_file = "geoutils/_version.py"
fallback_version = "0.0.1"

[tool.black]
target_version = ['py36']
target_version = ['py310']

[tool.pytest.ini_options]
addopts = "--doctest-modules -W error::UserWarning"
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -34,7 +34,7 @@ packages = find:
scripts = bin/geoviewer.py
zip_safe = False # https://mypy.readthedocs.io/en/stable/installed_packages.html
include_package_data = True
python_requires = >=3.9,<3.13
python_requires = >=3.10,<3.13
# Avoid pinning dependencies in requirements.txt (which we don't do anyways, and we rely mostly on Conda)
# (https://caremad.io/posts/2013/07/setup-vs-requirement/, https://github.com/pypa/setuptools/issues/1951)
install_requires = file: requirements.txt

0 comments on commit c2b0a60

Please sign in to comment.