Skip to content

Commit

Permalink
fix pytest error and restore py39
Browse files Browse the repository at this point in the history
  • Loading branch information
xoolive committed Oct 28, 2024
1 parent 35ba9aa commit 6409324
Show file tree
Hide file tree
Showing 4 changed files with 546 additions and 54 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
workflow_dispatch:

env:
PYTHON_VERSION: "3.10"
PYTHON_VERSION: "3.12"

jobs:
deploy:
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@ jobs:
strategy:
matrix:
# os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.10", "3.11", "3.12", "3.13"]
python-version:
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3.13"
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -59,7 +64,7 @@ jobs:
LD_LIBRARY_PATH: /usr/local/lib
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
uv run pytest --cov --cov-report xml
uv run pytest tests --cov --cov-report xml
- name: Upload coverage to Codecov
if: ${{ github.event_name != 'pull_request_target' }}
Expand Down
15 changes: 9 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description = "A generic toolbox for building maps in Python"
authors = [{ name = "Xavier Olive", email = "[email protected]" }]
license = "MIT"
readme = "readme.md"
requires-python = ">=3.10"
requires-python = ">=3.9"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Information Technology",
Expand All @@ -25,19 +25,22 @@ dependencies = [
"altair>=5.4.1",
"appdirs>=1.4.4",
"beautifulsoup4>=4.12.3",
"cartopy>=0.23.0",
"cartopy>=0.23.0; python_version<'3.10'",
"cartopy>=0.24.1; python_version>='3.10'",
"fastapi>=0.115.0",
"geopandas>=1.0.1",
"httpx[http2]>=0.27.2",
"jsonschema>=4.23.0",
"lxml>=5.3.0",
"matplotlib>=3.9.2",
"nest-asyncio>=1.6.0",
"numpy>=2.0.2",
"numpy>=2.0.2; python_version<'3.10'",
"numpy>=2.1.2; python_version>='3.10'",
"pandas>=2.2.3",
"pyproj<3.7.1; python_version<'3.10'",
"pyproj>=3.7.0; python_version>='3.10'",
"scipy>=1.13.1",
"scipy>=1.13.1; python_version<'3.10'",
"scipy>=1.14.1; python_version>='3.10'",
"shapely>=2.0.6",
"tqdm>=4.66.5",
"uvicorn>=0.31.0",
Expand All @@ -64,8 +67,8 @@ dev-dependencies = [
"pytest>=8.3.3",
"pytest-cov>=5.0.0",
"ruff>=0.6.8",
"sphinx>=7.4.7",
"sphinx-rtd-theme>=2.0.0",
"sphinx>=7.4.7; python_version>'3.11'",
"sphinx-rtd-theme>=2.0.0; python_version>'3.11'",
"vega-datasets>=0.9.0",
"exceptiongroup>=1.2.2;python_version<'3.11'",
]
Expand Down
Loading

0 comments on commit 6409324

Please sign in to comment.