From 0be78765979be34911357390d5bec0c51b04622d Mon Sep 17 00:00:00 2001 From: jamaalscarlett Date: Wed, 24 Sep 2025 00:12:18 -0500 Subject: [PATCH 1/2] Adds a deprection warning for python <= 3.9 Python 3.9 is EOL in 10/2025. --- .gitignore | 2 ++ push_notifications/__init__.py | 11 +++++++++++ 2 files changed, 13 insertions(+) diff --git a/.gitignore b/.gitignore index 271b55b6..bc5a1dfc 100644 --- a/.gitignore +++ b/.gitignore @@ -24,3 +24,5 @@ coverage.xml # vscode files .vscode/* + +dist/ \ No newline at end of file diff --git a/push_notifications/__init__.py b/push_notifications/__init__.py index 24a7be7e..523ab7c7 100644 --- a/push_notifications/__init__.py +++ b/push_notifications/__init__.py @@ -1,3 +1,6 @@ +import sys +import warnings + try: # Python 3.8+ import importlib.metadata as importlib_metadata @@ -5,4 +8,12 @@ # Date: Wed, 24 Sep 2025 05:13:13 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .gitignore | 2 +- push_notifications/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index bc5a1dfc..4275fa1e 100644 --- a/.gitignore +++ b/.gitignore @@ -25,4 +25,4 @@ coverage.xml # vscode files .vscode/* -dist/ \ No newline at end of file +dist/ diff --git a/push_notifications/__init__.py b/push_notifications/__init__.py index 523ab7c7..4c56fc4e 100644 --- a/push_notifications/__init__.py +++ b/push_notifications/__init__.py @@ -14,6 +14,6 @@ "Please upgrade to Python 3.10 or later.", UserWarning, stacklevel=2 - ) + ) __version__ = importlib_metadata.version("django-push-notifications")