2015-11-11 11:36:03 +01:00
|
|
|
#
|
|
|
|
# spec file for package python-hypothesis
|
|
|
|
#
|
2018-01-03 11:00:34 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2015-11-11 11:36:03 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2015-12-09 11:08:24 +01:00
|
|
|
#
|
2015-11-11 11:36:03 +01:00
|
|
|
|
|
|
|
|
2017-02-24 15:34:42 +01:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2017-06-30 09:30:34 +02:00
|
|
|
%if 0%{?suse_version} > 1320
|
|
|
|
%define oldpython python2
|
|
|
|
%else
|
2017-02-24 15:34:42 +01:00
|
|
|
%define oldpython python
|
2017-06-30 09:30:34 +02:00
|
|
|
%endif
|
2015-11-11 11:36:03 +01:00
|
|
|
Name: python-hypothesis
|
2018-01-07 10:36:16 +01:00
|
|
|
Version: 3.44.9
|
2015-11-11 11:36:03 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: A library for property based testing
|
2015-12-09 11:08:24 +01:00
|
|
|
License: MPL-2.0
|
2015-11-11 11:36:03 +01:00
|
|
|
Group: Development/Languages/Python
|
2017-06-30 09:30:34 +02:00
|
|
|
Url: https://github.com/HypothesisWorks/hypothesis-python
|
2017-12-14 16:18:09 +01:00
|
|
|
Source: https://github.com/HypothesisWorks/hypothesis-python/archive/%{version}.tar.gz
|
2017-12-15 11:35:26 +01:00
|
|
|
Patch0: %{name}-build.patch
|
2017-12-14 16:18:09 +01:00
|
|
|
BuildRequires: %{python_module Django >= 1.8}
|
|
|
|
BuildRequires: %{python_module Faker >= 0.7.0}
|
|
|
|
BuildRequires: %{python_module attrs}
|
|
|
|
BuildRequires: %{python_module coverage}
|
|
|
|
BuildRequires: %{python_module flaky}
|
|
|
|
BuildRequires: %{python_module mock}
|
|
|
|
BuildRequires: %{python_module numpy >= 1.9.0}
|
|
|
|
BuildRequires: %{python_module pandas}
|
|
|
|
BuildRequires: %{python_module pytest >= 2.8.0}
|
|
|
|
BuildRequires: %{python_module pytz}
|
2017-02-24 15:34:42 +01:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2017-06-30 09:30:34 +02:00
|
|
|
BuildRequires: fdupes
|
2016-05-09 20:23:46 +02:00
|
|
|
BuildRequires: python-enum34
|
2017-12-14 16:18:09 +01:00
|
|
|
BuildRequires: python-ipaddress
|
2017-02-24 15:34:42 +01:00
|
|
|
BuildRequires: python-rpm-macros
|
2017-10-05 16:42:47 +02:00
|
|
|
Requires: python-attrs
|
|
|
|
Requires: python-coverage
|
2017-12-14 16:18:09 +01:00
|
|
|
Recommends: python-Django >= 1.8
|
2017-06-30 09:30:34 +02:00
|
|
|
Recommends: python-Faker >= 0.7.0
|
|
|
|
Recommends: python-numpy >= 1.9.0
|
2017-12-14 16:18:09 +01:00
|
|
|
Recommends: python-pandas
|
2017-12-15 13:03:40 +01:00
|
|
|
Recommends: python-pytest >= 2.8.0
|
2017-06-30 09:30:34 +02:00
|
|
|
Recommends: python-pytz
|
|
|
|
BuildArch: noarch
|
2017-02-24 15:34:42 +01:00
|
|
|
%ifpython2
|
|
|
|
Requires: %{oldpython}-enum34
|
|
|
|
%endif
|
|
|
|
%python_subpackages
|
2015-11-11 11:36:03 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
Hypothesis is a library for testing your Python code against a much larger range
|
|
|
|
of examples than you would ever want to write by hand. It's based on the Haskell
|
|
|
|
library, Quickcheck, and is designed to integrate seamlessly into your existing
|
|
|
|
Python unit testing work flow.
|
|
|
|
|
|
|
|
Hypothesis works with most widely used versions of Python. It supports implementations
|
|
|
|
compatible with 2.6, 2.7 and 3.3+, and is known to work on CPython and PyPy (but not
|
|
|
|
PyPy3 until they support a 3.3 compatible version of the language). It does *not* currently
|
|
|
|
work on Jython or on Python 3.0 through 3.2.
|
|
|
|
|
|
|
|
%prep
|
2017-12-14 16:18:09 +01:00
|
|
|
%setup -q -n hypothesis-python-%{version}
|
|
|
|
# remove py2/3 and django tests as they fail
|
|
|
|
rm -rf tests/py3 tests/py2 tests/django
|
2017-12-15 11:35:26 +01:00
|
|
|
%patch0 -p1
|
2015-11-11 11:36:03 +01:00
|
|
|
|
|
|
|
%build
|
2017-02-24 15:34:42 +01:00
|
|
|
%python_build
|
2015-11-11 11:36:03 +01:00
|
|
|
|
|
|
|
%install
|
2017-02-24 15:34:42 +01:00
|
|
|
%python_install
|
2017-06-30 09:30:34 +02:00
|
|
|
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
|
2015-11-11 11:36:03 +01:00
|
|
|
|
2018-01-03 11:00:34 +01:00
|
|
|
# Flaky a lot in OBS unable to reliably test
|
|
|
|
#%%check
|
|
|
|
#%%python_exec setup.py test
|
2016-05-09 20:23:46 +02:00
|
|
|
|
2017-02-24 15:34:42 +01:00
|
|
|
%files %{python_files}
|
2015-11-11 11:36:03 +01:00
|
|
|
%doc README.rst
|
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
%changelog
|