15
0
forked from pool/python-apns2

- Update to 0.7.2:

- Updated sandbox URL (#93)
  - Do not ignore custom JWT lifetime when using TokenCredentials
    (#108)
  - Fix determination of push type for empty notifications with
    badge 0 (#109)
  - LICENSE and test/eckey.pem included in source tarball (#110
    #111)
  - Changing DEFAULT_TOKEN_LIFETIME from 3600 to 2700 (#113)
  - Added upper constraint for PyJWT (<2.0.0)
- Removed additional sources as they were included in the
  upstream tarball.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-apns2?expand=0&rev=4
This commit is contained in:
2021-02-26 14:28:19 +00:00
committed by Git OBS Bridge
parent 90aa010dcd
commit 150d3b0cde
6 changed files with 22 additions and 43 deletions

21
LICENSE
View File

@@ -1,21 +0,0 @@
The MIT License (MIT)
Copyright (c) 2016 Sergey Petrov
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8c24207aa96dff4687f8d7c9149fc42086f3506b0a76da1f5bf48d74e5569567
size 11052

3
apns2-0.7.2.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4f2dae8c608961d1768f734acb1d0809a60ac71a0cdcca60f46529b73f20fb34
size 12644

View File

@@ -1,8 +0,0 @@
-----BEGIN EC PARAMETERS-----
BggqhkjOPQMBBw==
-----END EC PARAMETERS-----
-----BEGIN EC PRIVATE KEY-----
MHcCAQEEIM0scFXkVBBc7d8DSL9rfFB1PvET/dWQa9eWfxpgaqaBoAoGCCqGSM49
AwEHoUQDQgAEnVxQ41VKMN6uSsSYCCdOUhCms+HT2VpUhFGML5SzYGoodKtRD/6J
YI9Rxq1lPGHMwECSaPtPf9kVDCUM6UHvhA==
-----END EC PRIVATE KEY-----

View File

@@ -1,3 +1,19 @@
-------------------------------------------------------------------
Fri Feb 26 14:26:56 UTC 2021 - Matej Cepl <mcepl@suse.com>
- Update to 0.7.2:
- Updated sandbox URL (#93)
- Do not ignore custom JWT lifetime when using TokenCredentials
(#108)
- Fix determination of push type for empty notifications with
badge 0 (#109)
- LICENSE and test/eckey.pem included in source tarball (#110
#111)
- Changing DEFAULT_TOKEN_LIFETIME from 3600 to 2700 (#113)
- Added upper constraint for PyJWT (<2.0.0)
- Removed additional sources as they were included in the
upstream tarball.
-------------------------------------------------------------------
Tue Jun 30 09:26:41 UTC 2020 - Matej Cepl <mcepl@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-apns2
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -19,19 +19,13 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-apns2
Version: 0.7.1
Version: 0.7.2
Release: 0
Summary: Python library for the HTTP/2 Apple Push Notification Service
License: MIT
Group: Development/Languages/Python
URL: https://github.com/Pr0Ger/PyAPNs2
Source0: https://files.pythonhosted.org/packages/source/a/apns2/apns2-%{version}.tar.gz
# LICENSE gh#Pr0Ger/PyAPNs2#110 mcepl@suse.com
# Missing LICENSE file
Source1: https://raw.githubusercontent.com/Pr0Ger/PyAPNs2/master/LICENSE
# eckey.pem gh#Pr0Ger/PyAPNs2#111 mcepl@suse.com
# Unpackaged file breaks test_token_expiration test
Source2: https://raw.githubusercontent.com/Pr0Ger/PyAPNs2/master/test/eckey.pem
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@@ -53,9 +47,7 @@ A python library for interacting with the Apple Push Notification Service
via HTTP/2 protocol.
%prep
%setup -q -n apns2-%{version}
cp %{SOURCE1} .
cp %{SOURCE2} test/
%autosetup -p1 -n apns2-%{version}
%build
%python_build