forked from pool/python-hypothesis
Accepting request 460260 from devel:languages:python
first batch of singlespec packages OBS-URL: https://build.opensuse.org/request/show/460260 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-hypothesis?expand=0&rev=4
This commit is contained in:
commit
1dde5aadb9
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:2e4837ad871fbbd0015fd530139c2e0fac4ffd8121f26f8a875138bd6e651dd4
|
|
||||||
size 69172
|
|
3
hypothesis-3.6.1.tar.gz
Normal file
3
hypothesis-3.6.1.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:d4a0aa584ee4654819b8bfc8b5791669ad229eb1db949716543d7c31219cb35b
|
||||||
|
size 75106
|
@ -1,3 +1,16 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Feb 21 14:06:42 UTC 2017 - jmatejek@suse.com
|
||||||
|
|
||||||
|
- update for singlespec
|
||||||
|
- test requirements are now conditional --with=test, to shorten build loop
|
||||||
|
for new submission
|
||||||
|
(this will be reverted soon)
|
||||||
|
- update to 3.6.1
|
||||||
|
* better thread safety
|
||||||
|
* support for --hypothesis-show-statistics in pytest
|
||||||
|
* better python 3.4 support
|
||||||
|
* renamed fake-factory dependency to Faker
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu May 12 16:35:11 UTC 2016 - toddrme2178@gmail.com
|
Thu May 12 16:35:11 UTC 2016 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-hypothesis
|
# spec file for package python-hypothesis
|
||||||
#
|
#
|
||||||
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2017 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
|
||||||
@ -16,34 +16,39 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%bcond_with test
|
||||||
|
|
||||||
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
|
%define oldpython python
|
||||||
Name: python-hypothesis
|
Name: python-hypothesis
|
||||||
Version: 3.1.3
|
Version: 3.6.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: A library for property based testing
|
Summary: A library for property based testing
|
||||||
License: MPL-2.0
|
License: MPL-2.0
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Url: https://github.com/DRMacIver/hypothesis
|
Url: https://github.com/DRMacIver/hypothesis
|
||||||
Source: https://files.pythonhosted.org/packages/source/h/hypothesis/hypothesis-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/h/hypothesis/hypothesis-%{version}.tar.gz
|
||||||
BuildRequires: python-devel
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: python-setuptools
|
|
||||||
BuildRequires: python-Django >= 1.7
|
|
||||||
BuildRequires: python-enum34
|
BuildRequires: python-enum34
|
||||||
BuildRequires: python-fake-factory >= 0.5.2
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: python-numpy >= 1.9.0
|
%if %{with test}
|
||||||
BuildRequires: python-pytest >= 2.7.0
|
BuildRequires: %{python_module Django >= 1.7}
|
||||||
BuildRequires: python-pytz
|
BuildRequires: %{python_module Faker >= 0.7.0}
|
||||||
Requires: python-enum34
|
BuildRequires: %{python_module numpy >= 1.9.0}
|
||||||
|
BuildRequires: %{python_module pytest >= 2.7.0}
|
||||||
|
BuildRequires: %{python_module pytz}
|
||||||
|
%endif
|
||||||
|
%ifpython2
|
||||||
|
Requires: %{oldpython}-enum34
|
||||||
|
%endif
|
||||||
Recommends: python-Django >= 1.7
|
Recommends: python-Django >= 1.7
|
||||||
Recommends: python-fake-factory >= 0.5.2
|
Recommends: python-Faker >= 0.7.0
|
||||||
Recommends: python-numpy >= 1.9.0
|
Recommends: python-numpy >= 1.9.0
|
||||||
Recommends: python-pytest >= 2.7.0
|
Recommends: python-pytest >= 2.7.0
|
||||||
Recommends: python-pytz
|
Recommends: python-pytz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
|
||||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
||||||
%else
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%endif
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Hypothesis is a library for testing your Python code against a much larger range
|
Hypothesis is a library for testing your Python code against a much larger range
|
||||||
@ -64,15 +69,17 @@ work on Jython or on Python 3.0 through 3.2.
|
|||||||
%setup -q -n hypothesis-%{version}
|
%setup -q -n hypothesis-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
python setup.py build
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
%python_install
|
||||||
|
|
||||||
|
%if %{with test}
|
||||||
%check
|
%check
|
||||||
python setup.py test
|
%python_exec setup.py test
|
||||||
|
%endif
|
||||||
|
|
||||||
%files
|
%files %{python_files}
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
Loading…
Reference in New Issue
Block a user