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
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# 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
|
||||
# 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
|
||||
Version: 3.1.3
|
||||
Version: 3.6.1
|
||||
Release: 0
|
||||
Summary: A library for property based testing
|
||||
License: MPL-2.0
|
||||
Group: Development/Languages/Python
|
||||
Url: https://github.com/DRMacIver/hypothesis
|
||||
Source: https://files.pythonhosted.org/packages/source/h/hypothesis/hypothesis-%{version}.tar.gz
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: python-Django >= 1.7
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: python-enum34
|
||||
BuildRequires: python-fake-factory >= 0.5.2
|
||||
BuildRequires: python-numpy >= 1.9.0
|
||||
BuildRequires: python-pytest >= 2.7.0
|
||||
BuildRequires: python-pytz
|
||||
Requires: python-enum34
|
||||
BuildRequires: python-rpm-macros
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module Django >= 1.7}
|
||||
BuildRequires: %{python_module Faker >= 0.7.0}
|
||||
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-fake-factory >= 0.5.2
|
||||
Recommends: python-Faker >= 0.7.0
|
||||
Recommends: python-numpy >= 1.9.0
|
||||
Recommends: python-pytest >= 2.7.0
|
||||
Recommends: python-pytz
|
||||
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
|
||||
%endif
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
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}
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
%python_install
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
python setup.py test
|
||||
%python_exec setup.py test
|
||||
%endif
|
||||
|
||||
%files
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc README.rst
|
||||
%{python_sitelib}/*
|
||||
|
Loading…
Reference in New Issue
Block a user