From d1841e0f79705f9956d13e3e8fbeec3d34999f26 Mon Sep 17 00:00:00 2001 From: Tom Picton Date: Fri, 17 Sep 2021 13:36:59 -0700 Subject: [PATCH 1/3] Fix relative import syntax --- APNSWrapper/__init__.py | 10 +++++----- APNSWrapper/connection.py | 4 ++-- APNSWrapper/feedback.py | 2 +- APNSWrapper/notifications.py | 8 ++++---- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/APNSWrapper/__init__.py b/APNSWrapper/__init__.py index d50ef9b..c87bdb4 100644 --- a/APNSWrapper/__init__.py +++ b/APNSWrapper/__init__.py @@ -10,8 +10,8 @@ # limitations under the License. -from utils import _doublequote, if_else, find_executable -from apnsexceptions import * -from connection import * -from notifications import * -from feedback import * +from .utils import _doublequote, if_else, find_executable +from .apnsexceptions import * +from .connection import * +from .notifications import * +from .feedback import * diff --git a/APNSWrapper/connection.py b/APNSWrapper/connection.py index ebfd0da..655bdd9 100644 --- a/APNSWrapper/connection.py +++ b/APNSWrapper/connection.py @@ -15,8 +15,8 @@ from socket import SHUT_RDWR import subprocess -from apnsexceptions import * -from utils import * +from .apnsexceptions import * +from .utils import * __all__ = ('APNSConnectionContext', 'OpenSSLCommandLine', \ diff --git a/APNSWrapper/feedback.py b/APNSWrapper/feedback.py index 6d2a68d..0c60255 100644 --- a/APNSWrapper/feedback.py +++ b/APNSWrapper/feedback.py @@ -13,7 +13,7 @@ import sys import struct -from connection import * +from .connection import * __all__ = ('APNSFeedbackWrapper',) diff --git a/APNSWrapper/notifications.py b/APNSWrapper/notifications.py index 0403ea3..ec217fd 100644 --- a/APNSWrapper/notifications.py +++ b/APNSWrapper/notifications.py @@ -14,10 +14,10 @@ import base64 import binascii -from __init__ import * -from connection import * -from apnsexceptions import * -from utils import _doublequote +from .__init__ import * +from .connection import * +from .apnsexceptions import * +from .utils import _doublequote from select import select NULL = 'null' From e8d7af7d40f0f24bac1bf5aafe0600c09a273c4f Mon Sep 17 00:00:00 2001 From: Tom Picton Date: Fri, 17 Sep 2021 13:46:05 -0700 Subject: [PATCH 2/3] Remove usage of print statement --- APNSWrapper/connection.py | 2 +- APNSWrapper/notifications.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/APNSWrapper/connection.py b/APNSWrapper/connection.py index 655bdd9..f767624 100644 --- a/APNSWrapper/connection.py +++ b/APNSWrapper/connection.py @@ -373,7 +373,7 @@ def write(self, data=None): """ Make connection to the host and port. """ - print self.connectionContext + print(self.connectionContext) return self.connectionContext.write(data) def connect(self, host, port): diff --git a/APNSWrapper/notifications.py b/APNSWrapper/notifications.py index ec217fd..53b3837 100644 --- a/APNSWrapper/notifications.py +++ b/APNSWrapper/notifications.py @@ -265,12 +265,12 @@ def notify(self): if error_detected: cmd, status, identifier = struct.unpack("!BBL", self.read_buf[0]) - print "Error detected on notification: %d" % (identifier) + print("Error detected on notification: %d" % (identifier)) for i, (wrapper_id, global_id) in enumerate(sent_notifications): if wrapper_id == identifier: sent_notifications = sent_notifications[:i] break - print sent_notifications + print(sent_notifications) try: self.disconnect() From 5ce80eb7bf9a7c9276b478632081b133462e3c53 Mon Sep 17 00:00:00 2001 From: firech13f <49689953+firech13f@users.noreply.github.com> Date: Tue, 11 Feb 2025 00:07:10 -0500 Subject: [PATCH 3/3] Metadata Ingestion for IdP! MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit adds a file to this repository, to ingest metadata, making it officially part of the EverHealth IdP. 🚀 🔧 What's inside? ✅ Metadata ingestion file ✅ Integration with EverHealth IdP ✅ One step closer to a unified catalog! --- catalog-info.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 catalog-info.yaml diff --git a/catalog-info.yaml b/catalog-info.yaml new file mode 100644 index 0000000..dfa66cf --- /dev/null +++ b/catalog-info.yaml @@ -0,0 +1,16 @@ +apiVersion: backstage.io/v1alpha1 +kind: Component +metadata: + name: apns-python-wrapper + description: Apple Push Notification Python Wrapper + annotations: + business-unit: EverHealth + github.com/project-slug: drchrono/apns-python-wrapper + product: DRC +spec: + type: service + lifecycle: production + owner: EverHealth + implementation: + languages: + - Python