14
0
forked from pool/python-PyNaCl

Accepting request 707227 from home:pgajdos

- run the testsuite
- added patches
  a8c08b18f3
  + python-PyNaCl-hypothesis-remove-average_size.patch

OBS-URL: https://build.opensuse.org/request/show/707227
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyNaCl?expand=0&rev=7
This commit is contained in:
Tomáš Chvátal
2019-06-03 15:03:37 +00:00
committed by Git OBS Bridge
parent fd6001c459
commit d2302a1307
3 changed files with 40 additions and 1 deletions

View File

@@ -0,0 +1,21 @@
iff --git a/tests/test_bindings.py b/tests/test_bindings.py
index 22930cc7..d7951a21 100644
--- a/tests/test_bindings.py
+++ b/tests/test_bindings.py
@@ -306,7 +306,6 @@ def test_unpad_not_padded():
@given(binary(min_size=0,
- average_size=128,
max_size=2049),
integers(min_value=16,
max_value=256)
@@ -320,7 +319,6 @@ def test_pad_sizes(msg, bl_sz):
@given(binary(min_size=0,
- average_size=128,
max_size=2049),
integers(min_value=16,
max_value=256)

View File

@@ -1,3 +1,11 @@
-------------------------------------------------------------------
Mon Jun 3 14:17:29 UTC 2019 - pgajdos@suse.com
- run the testsuite
- added patches
https://github.com/pyca/pynacl/commit/a8c08b18f3a2e8f2140c531afaf42715fcab68e7
+ python-PyNaCl-hypothesis-remove-average_size.patch
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Dec 12 13:05:57 UTC 2018 - Antonio Larrosa <alarrosa@suse.com> Wed Dec 12 13:05:57 UTC 2018 - Antonio Larrosa <alarrosa@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-PyNaCl # spec file for package python-PyNaCl
# #
# 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 # 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
@@ -25,11 +25,17 @@ License: Apache-2.0
Group: Development/Languages/Python Group: Development/Languages/Python
Url: https://github.com/pyca/pynacl/ Url: https://github.com/pyca/pynacl/
Source: https://pypi.org/packages/source/P/PyNaCl/PyNaCl-%{version}.tar.gz Source: https://pypi.org/packages/source/P/PyNaCl/PyNaCl-%{version}.tar.gz
# https://github.com/pyca/pynacl/commit/a8c08b18f3a2e8f2140c531afaf42715fcab68e7
Patch0: python-PyNaCl-hypothesis-remove-average_size.patch
BuildRequires: %{python_module base} BuildRequires: %{python_module base}
BuildRequires: %{python_module cffi} BuildRequires: %{python_module cffi}
BuildRequires: %{python_module devel} BuildRequires: %{python_module devel}
BuildRequires: %{python_module pycparser} BuildRequires: %{python_module pycparser}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
# SECTION test requirements
BuildRequires: %{python_module hypothesis >= 3.27.0}
BuildRequires: %{python_module pytest >= 3.2.1}
# /SECTION
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: pkgconfig BuildRequires: pkgconfig
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
@@ -44,6 +50,7 @@ speed.
%prep %prep
%setup -q -n PyNaCl-%{version} %setup -q -n PyNaCl-%{version}
%patch0 -p1
rm -Rf src/libsodium rm -Rf src/libsodium
%build %build
@@ -54,6 +61,9 @@ export SODIUM_INSTALL="system"
%python_install %python_install
%python_expand %fdupes %{buildroot}/%{$python_sitearch} %python_expand %fdupes %{buildroot}/%{$python_sitearch}
%check
%pytest_arch -v
%files %{python_files} %files %{python_files}
%license LICENSE %license LICENSE
%doc README.rst %doc README.rst