forked from pool/python-python-jose
Accepting request 693036 from home:jayvdb:django
- Activate test suite, using GitHub archive - Add unpin-deps.patch to fix broken installed egg-info, and remove unused dependency on python-future - Remove undesirable < comparator in build and runtime dependencies, and remove duplicated dependencies OBS-URL: https://build.opensuse.org/request/show/693036 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-jose?expand=0&rev=3
This commit is contained in:
committed by
Git OBS Bridge
parent
079abb878f
commit
d907e187d3
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-python-jose
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -24,28 +24,23 @@ Summary: JOSE implementation in Python
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
URL: http://github.com/mpdavis/python-jose
|
||||
Source: https://files.pythonhosted.org/packages/source/p/python-jose/python-jose-%{version}.tar.gz
|
||||
Source: https://github.com/mpdavis/python-jose/archive/%{version}.tar.gz#/python-jose-%{version}.tar.gz
|
||||
Patch0: unpin-deps.patch
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-ecdsa < 1.0
|
||||
Requires: python-future < 1.0
|
||||
Requires: python-ecdsa
|
||||
Requires: python-rsa
|
||||
Requires: python-six < 2.0
|
||||
Requires: python-six
|
||||
Recommends: python-cryptography
|
||||
Recommends: python-pycryptodome >= 3.3.1
|
||||
BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module cryptography}
|
||||
BuildRequires: %{python_module ecdsa < 1.0}
|
||||
BuildRequires: %{python_module ecdsa}
|
||||
BuildRequires: %{python_module future < 1.0}
|
||||
BuildRequires: %{python_module future}
|
||||
BuildRequires: %{python_module pytest-cov}
|
||||
BuildRequires: %{python_module pycryptodome >= 3.3.1}
|
||||
BuildRequires: %{python_module pytest-runner}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module rsa}
|
||||
BuildRequires: %{python_module six < 2.0}
|
||||
BuildRequires: %{python_module six}
|
||||
# /SECTION
|
||||
%python_subpackages
|
||||
@@ -56,6 +51,8 @@ implementation in Python.
|
||||
|
||||
%prep
|
||||
%setup -q -n python-jose-%{version}
|
||||
%patch0 -p1
|
||||
sed -i '/addopts/d' setup.cfg
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -64,6 +61,9 @@ implementation in Python.
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%python_exec setup.py test
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.rst
|
||||
%license LICENSE
|
||||
|
Reference in New Issue
Block a user