From f8b3275658ac7d1b281b326f0c39fc8f98183fc7 Mon Sep 17 00:00:00 2001 From: Sergey Guenender Date: Sun, 30 Jun 2024 11:17:29 +0300 Subject: [PATCH 1/3] enable Python 3.6.9 --- pyfcm/baseapi.py | 6 +++--- setup.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pyfcm/baseapi.py b/pyfcm/baseapi.py index ad4ef98..0f774b9 100644 --- a/pyfcm/baseapi.py +++ b/pyfcm/baseapi.py @@ -1,4 +1,4 @@ -from __future__ import annotations +#from __future__ import annotations import json import os @@ -28,13 +28,13 @@ class BaseAPI(object): def __init__( self, - service_account_file: str | None, + service_account_file: str, project_id: str, credentials=None, proxy_dict=None, env=None, json_encoder=None, - adapter=None, + adapter=None ): """ Override existing init function to give ability to use v1 endpoints of Firebase Cloud Messaging API diff --git a/setup.py b/setup.py index 5f0eff2..f30ce64 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() -install_requires = ["requests", "urllib3>=1.26.0", "google-auth>=2.29.0"] +install_requires = ["requests", "urllib3>=1.26.0", "google-auth>=2.22.0", "aiohttp==3.8.6"] tests_require = ["pytest"] # We can't get the values using `from pyfcm import __meta__`, because this would import From 9f5ee5e652637497749dc8f3227e496b190f9df9 Mon Sep 17 00:00:00 2001 From: "Emmanuel O. Adegbite" Date: Tue, 16 Jul 2024 15:46:04 +0100 Subject: [PATCH 2/3] formatting --- pyfcm/baseapi.py | 4 ++-- setup.py | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/pyfcm/baseapi.py b/pyfcm/baseapi.py index 0f774b9..147050b 100644 --- a/pyfcm/baseapi.py +++ b/pyfcm/baseapi.py @@ -1,4 +1,4 @@ -#from __future__ import annotations +# from __future__ import annotations import json import os @@ -34,7 +34,7 @@ def __init__( proxy_dict=None, env=None, json_encoder=None, - adapter=None + adapter=None, ): """ Override existing init function to give ability to use v1 endpoints of Firebase Cloud Messaging API diff --git a/setup.py b/setup.py index f30ce64..294940d 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,12 @@ def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() -install_requires = ["requests", "urllib3>=1.26.0", "google-auth>=2.22.0", "aiohttp==3.8.6"] +install_requires = [ + "requests", + "urllib3>=1.26.0", + "google-auth>=2.22.0", + "aiohttp==3.8.6", +] tests_require = ["pytest"] # We can't get the values using `from pyfcm import __meta__`, because this would import From 0d850a8ddb4e8192cfb3de15ceeb43d888c630ca Mon Sep 17 00:00:00 2001 From: "Emmanuel O. Adegbite" Date: Tue, 16 Jul 2024 15:47:39 +0100 Subject: [PATCH 3/3] Update __meta__.py --- pyfcm/__meta__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyfcm/__meta__.py b/pyfcm/__meta__.py index 8fdb2d3..0f2680a 100644 --- a/pyfcm/__meta__.py +++ b/pyfcm/__meta__.py @@ -2,7 +2,7 @@ __summary__ = "Python client for FCM - Firebase Cloud Messaging (Android, iOS and Web)" __url__ = "https://github.com/olucurious/pyfcm" -__version__ = "2.0.4" +__version__ = "2.0.5" __author__ = "Emmanuel Adegbite" __email__ = "olucurious@gmail.com"