forked from pool/python-py-vapid
Accepting request 917409 from devel:languages:python
- Update to 1.8.2: * allow hyphens in sub domains (#96) * Fix argument declaration (#95) * use better host validation(#92) * do not enforce dot in sub claim email host part (#90) * switch to pytest from nose * fix JWT padding (Thanks @JohnDoee) #81 - Drop skip-test_sign_01.patch, no longer required OBS-URL: https://build.opensuse.org/request/show/917409 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-py-vapid?expand=0&rev=2
This commit is contained in:
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:03057a3270ddc7d53c31e2915083d01ba8a3169f4032cab3dd9f4ebe44e2564a
|
|
||||||
size 18888
|
|
3
py-vapid-1.8.2.tar.gz
Normal file
3
py-vapid-1.8.2.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:874f21910f2103c56228cded941d6e733dd8f1eb12876137919533bfacb65a48
|
||||||
|
size 19971
|
@@ -1,3 +1,15 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Sep 8 04:27:28 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Update to 1.8.2:
|
||||||
|
* allow hyphens in sub domains (#96)
|
||||||
|
* Fix argument declaration (#95)
|
||||||
|
* use better host validation(#92)
|
||||||
|
* do not enforce dot in sub claim email host part (#90)
|
||||||
|
* switch to pytest from nose
|
||||||
|
* fix JWT padding (Thanks @JohnDoee) #81
|
||||||
|
- Drop skip-test_sign_01.patch, no longer required
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Jun 7 06:14:33 UTC 2020 - John Vandenberg <jayvdb@gmail.com>
|
Sun Jun 7 06:14:33 UTC 2020 - John Vandenberg <jayvdb@gmail.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-py-vapid
|
# spec file for package python-py-vapid
|
||||||
#
|
#
|
||||||
# Copyright (c) 2020 SUSE LLC
|
# Copyright (c) 2021 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -18,25 +18,23 @@
|
|||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-py-vapid
|
Name: python-py-vapid
|
||||||
Version: 1.7.0
|
Version: 1.8.2
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: VAPID header generation library
|
Summary: VAPID header generation library
|
||||||
License: MPL-2.0
|
License: MPL-2.0
|
||||||
Group: Development/Languages/Python
|
|
||||||
URL: https://github.com/mozilla-services/vapid
|
URL: https://github.com/mozilla-services/vapid
|
||||||
Source: https://files.pythonhosted.org/packages/source/p/py-vapid/py-vapid-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/p/py-vapid/py-vapid-%{version}.tar.gz
|
||||||
Patch0: skip-test_sign_01.patch
|
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-cryptography >= 2.5
|
Requires: python-cryptography >= 2.5
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun): update-alternatives
|
Requires(postun):update-alternatives
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module cryptography >= 2.5}
|
BuildRequires: %{python_module cryptography >= 2.5}
|
||||||
BuildRequires: %{python_module mock >= 1.0.1}
|
BuildRequires: %{python_module mock >= 1.0.1}
|
||||||
BuildRequires: %{python_module nose}
|
BuildRequires: %{python_module pytest}
|
||||||
# /SECTION
|
# /SECTION
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
@@ -45,7 +43,6 @@ VAPID header generation library.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n py-vapid-%{version}
|
%setup -q -n py-vapid-%{version}
|
||||||
%patch0 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
@@ -56,7 +53,7 @@ VAPID header generation library.
|
|||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%python_exec -m nose
|
%pytest
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%python_install_alternative vapid
|
%python_install_alternative vapid
|
||||||
|
@@ -1,12 +0,0 @@
|
|||||||
Index: py-vapid-1.7.0/py_vapid/tests/test_vapid.py
|
|
||||||
===================================================================
|
|
||||||
--- py-vapid-1.7.0.orig/py_vapid/tests/test_vapid.py
|
|
||||||
+++ py-vapid-1.7.0/py_vapid/tests/test_vapid.py
|
|
||||||
@@ -130,6 +130,7 @@ class VapidTestCase(unittest.TestCase):
|
|
||||||
self.check_keys(v1)
|
|
||||||
self.check_keys(v2)
|
|
||||||
|
|
||||||
+ @unittest.skip("Fails randomly")
|
|
||||||
def test_sign_01(self):
|
|
||||||
v = Vapid01.from_string(T_DER)
|
|
||||||
claims = {"aud": "https://example.com",
|
|
Reference in New Issue
Block a user