14
0
forked from pool/python-PyJWT

- Version update to 1.6.3:

* Dropped support for python 2.6 and 3.3 #301
  * An invalid signature now raises an InvalidSignatureError instead of DecodeError #316
  * Fix over-eager fallback to stdin #304
  * Audience parameter throws InvalidAudienceError when application does not specify an audience, but the token does. #336
  * All exceptions inherit from PyJWTError #340
  * Add type hints #344
  * Add help module 7ca41e5
- Drop pointless _service file

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyJWT?expand=0&rev=32
This commit is contained in:
Tomáš Chvátal
2018-05-23 10:42:43 +00:00
committed by Git OBS Bridge
parent 56e0aca105
commit fba477add0
5 changed files with 28 additions and 27 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:500be75b17a63f70072416843dc80c8821109030be824f4d14758f114978bae7
size 73044

3
PyJWT-1.6.3.tar.gz Normal file
View File

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

View File

@@ -1,7 +0,0 @@
<services>
<service name="download_files" mode="localonly">
<param name="enforceupstream">yes</param>
<param name="changesgenerate">enable</param>
</service>
<service name="set_version" mode="localonly"/>
</services>

View File

@@ -1,3 +1,16 @@
-------------------------------------------------------------------
Wed May 23 10:35:21 UTC 2018 - tchvatal@suse.com
- Version update to 1.6.3:
* Dropped support for python 2.6 and 3.3 #301
* An invalid signature now raises an InvalidSignatureError instead of DecodeError #316
* Fix over-eager fallback to stdin #304
* Audience parameter throws InvalidAudienceError when application does not specify an audience, but the token does. #336
* All exceptions inherit from PyJWTError #340
* Add type hints #344
* Add help module 7ca41e5
- Drop pointless _service file
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Feb 23 19:47:34 UTC 2018 - tbechtold@suse.com Fri Feb 23 19:47:34 UTC 2018 - tbechtold@suse.com

View File

@@ -18,32 +18,27 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-PyJWT Name: python-PyJWT
Version: 1.5.3 Version: 1.6.3
Release: 0 Release: 0
Summary: JSON Web Token implementation in Python Summary: JSON Web Token implementation in Python
License: MIT License: MIT
Group: Development/Languages/Python Group: Development/Languages/Python
Url: https://github.com/progrium/pyjwt URL: https://github.com/progrium/pyjwt
Source: https://files.pythonhosted.org/packages/source/P/PyJWT/PyJWT-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/P/PyJWT/PyJWT-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: %{python_module cryptography >= 1.4}
BuildRequires: %{python_module cryptography}
BuildRequires: %{python_module devel} BuildRequires: %{python_module devel}
BuildRequires: %{python_module ecdsa}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: dos2unix BuildRequires: dos2unix
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-cryptography >= 1.4
Requires: python-cryptography
Requires: python-ecdsa Requires: python-ecdsa
Requires: python-setuptools Requires: python-setuptools
Requires(post): update-alternatives
Requires(post): update-alternatives Requires(postun): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
%description %description
@@ -56,7 +51,7 @@ dos2unix jwt/__main__.py
%build %build
%python_build %python_build
#remove shebang from all non executable files #remove shebang from all non executable files
find ./ -type f -name "*.py" -perm 644 -exec sed -i -e '1{\@^#!/usr/bin/env python@d}' {} \; find ./ -type f -name "*.py" -perm 644 -exec sed -i -e '1{\@^#!%{_bindir}/env python@d}' {} \;
%install %install
%python_install %python_install
@@ -72,11 +67,11 @@ find ./ -type f -name "*.py" -perm 644 -exec sed -i -e '1{\@^#!/usr/bin/env pyth
%python_uninstall_alternative pyjwt %python_uninstall_alternative pyjwt
%check %check
%{python_expand PYTHONPATH=%{buildroot}%{python_sitelib} py.test-%{py_ver} -o addopts="" -k "not test_verify_false_deprecated" } %{python_expand PYTHONPATH=%{buildroot}%{python_sitelib} py.test-%{$python_version} -o addopts="" -k "not test_verify_false_deprecated" }
%files %python_files %files %{python_files}
%defattr(-,root,root,-) %license LICENSE
%doc AUTHORS CHANGELOG.md LICENSE README.rst %doc AUTHORS CHANGELOG.md README.rst
%{python_sitelib}/* %{python_sitelib}/*
%python_alternative %{_bindir}/pyjwt %python_alternative %{_bindir}/pyjwt