From 406cde5047b967c61b36037b4f287ce01468deb4 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Fri, 21 Feb 2025 18:53:10 -0600 Subject: [PATCH 1/2] fix: avoid newer `EnumType` for python <= 3.10 per https://docs.python.org/3/library/enum.html#enum.EnumType --- src/wuttaweb/grids/filters.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/wuttaweb/grids/filters.py b/src/wuttaweb/grids/filters.py index 1ecee1c..dc6eb12 100644 --- a/src/wuttaweb/grids/filters.py +++ b/src/wuttaweb/grids/filters.py @@ -27,7 +27,11 @@ Grid Filters import datetime import logging from collections import OrderedDict -from enum import EnumType +try: + from enum import EnumType +except ImportError: # pragma: no cover + # nb. python <= 3.10 + from enum import EnumMeta as EnumType import sqlalchemy as sa From 32745535572bbfd13b949abd8537d2e4104fee51 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Fri, 21 Feb 2025 18:53:54 -0600 Subject: [PATCH 2/2] =?UTF-8?q?bump:=20version=200.21.4=20=E2=86=92=200.21?= =?UTF-8?q?.5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 6 ++++++ pyproject.toml | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 45cdb9d..3762a98 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to wuttaweb will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## v0.21.5 (2025-02-21) + +### Fix + +- avoid newer `EnumType` for python <= 3.10 + ## v0.21.4 (2025-02-21) ### Fix diff --git a/pyproject.toml b/pyproject.toml index c3ccaf6..ca6f1a5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "hatchling.build" [project] name = "WuttaWeb" -version = "0.21.4" +version = "0.21.5" description = "Web App for Wutta Framework" readme = "README.md" authors = [{name = "Lance Edgar", email = "lance@wuttaproject.org"}]