Skip to content

Commit

Permalink
update from python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentsarago committed Oct 1, 2024
1 parent 9c3cbfc commit 45fd81e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## Unreleased

* update BaseBackend to use a default coord_crs from the tms (author @AndrewAnnex, https://github.com/developmentseed/cogeo-mosaic/pull/234)
* add python 3.12 support

## 7.1.0 (2023-12-06)

Expand Down
9 changes: 7 additions & 2 deletions cogeo_mosaic/scripts/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,27 @@
import json
import multiprocessing
import os
import sys

import click
import cligj
import morecantile
from click_plugins import with_plugins
from pkg_resources import iter_entry_points

from cogeo_mosaic import __version__ as cogeo_mosaic_version
from cogeo_mosaic.backends import MosaicBackend
from cogeo_mosaic.mosaic import MosaicJSON
from cogeo_mosaic.utils import get_footprints

if sys.version_info < (3, 10):
from importlib_metadata import entry_points
else:
from importlib.metadata import entry_points

tms = morecantile.tms.get("WebMercatorQuad")


@with_plugins(iter_entry_points("cogeo_mosaic.plugins"))
@with_plugins(entry_points(group="cogeo_mosaic.plugins"))
@click.group()
@click.version_option(version=cogeo_mosaic_version, message="%(version)s")
def cogeo_cli():
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: GIS",
]
dynamic = ["version", "readme"]
Expand All @@ -35,6 +36,7 @@ dependencies = [
"click",
"cligj",
"click_plugins",
"importlib_metadata; python_version < '3.10'",
]

[project.optional-dependencies]
Expand Down

0 comments on commit 45fd81e

Please sign in to comment.