From 02ed4a19ff406a508216a1e9bd033ec3513488d7 Mon Sep 17 00:00:00 2001 From: Raphael Hagen Date: Fri, 14 Jun 2024 13:53:15 -0600 Subject: [PATCH] github release --- pangeo_forge_ndpyramid/__init__.py | 6 ++++++ pyproject.toml | 10 +++------- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/pangeo_forge_ndpyramid/__init__.py b/pangeo_forge_ndpyramid/__init__.py index e69de29..71b2aa4 100644 --- a/pangeo_forge_ndpyramid/__init__.py +++ b/pangeo_forge_ndpyramid/__init__.py @@ -0,0 +1,6 @@ +from importlib.metadata import version as _version + +try: + __version__ = _version("pangeo-forge-ndpyramid") +except Exception: + __version__ = "9999" diff --git a/pyproject.toml b/pyproject.toml index 1314e58..09365af 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ description = "Pangeo Forge extension libary to generate multi-scale pyramids th readme = "README.md" license = {text = "MIT"} authors = [{name = "CarbonPlan", email = "tech@carbonplan.org"}] -requires-python = ">=3.9" +requires-python = ">=3.10" dynamic = ["version"] classifiers = [ "Development Status :: 4 - Beta", @@ -51,17 +51,13 @@ build-backend = "setuptools.build_meta" [tool.setuptools_scm] -write_to = "pangeo_forge_ndpyramid/_version.py" -write_to_template = ''' -__version__ = "{version}" -''' +local_scheme = "guess-next-dev" +fallback_version = "9999" [tool.setuptools.packages.find] exclude = ["docs", "tests", "tests.*", "docs.*"] - - [mypy] files = "pangeo-forge-ndpyramid/**/*.py" show_error_codes = true