PyAPNs2 icon indicating copy to clipboard operation
PyAPNs2 copied to clipboard

Python 3.10 compatibility

Open to-bee opened this issue 2 years ago • 2 comments

Pyapns2 relies on hyper, hyperframe and h2. All of them currently not supporting python3.10. hyper is even an archived project. Are there any plans to further maintain those packages?

Tobi

to-bee avatar Mar 19 '22 09:03 to-bee

This appears to be a duplicate of #74 and #126

daveisfera avatar May 09 '22 16:05 daveisfera

Workaround for the meantime.

if version_info.major >= 3 and version_info.minor >= 10:
    """
    **************
    * WORKAROUND *
    **************
    
    The apns2 package is throwing errors because some aliases in collections were removed in 3.10. Specifically, the
    error is coming from a dependency of apns2 named hyper.  
    """
    import collections
    from collections import abc
    collections.Iterable = abc.Iterable
    collections.Mapping = abc.Mapping
    collections.MutableSet = abc.MutableSet
    collections.MutableMapping = abc.MutableMapping

alliefitter avatar Jun 08 '22 22:06 alliefitter

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

github-actions[bot] avatar Dec 08 '22 00:12 github-actions[bot]