From 6dabaefcb18b04b94ed8b859adac4e9b93ea664b2f529e2c16ce8d9ec0e17c88 Mon Sep 17 00:00:00 2001 From: Jan Matejek Date: Fri, 24 Feb 2017 14:34:42 +0000 Subject: [PATCH] Accepting request 460231 from devel:languages:python:singlespec - 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 OBS-URL: https://build.opensuse.org/request/show/460231 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hypothesis?expand=0&rev=9 --- hypothesis-3.1.3.tar.gz | 3 --- hypothesis-3.6.1.tar.gz | 3 +++ python-hypothesis.changes | 13 +++++++++++ python-hypothesis.spec | 45 ++++++++++++++++++++++----------------- 4 files changed, 42 insertions(+), 22 deletions(-) delete mode 100644 hypothesis-3.1.3.tar.gz create mode 100644 hypothesis-3.6.1.tar.gz diff --git a/hypothesis-3.1.3.tar.gz b/hypothesis-3.1.3.tar.gz deleted file mode 100644 index 1ce6c5a..0000000 --- a/hypothesis-3.1.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2e4837ad871fbbd0015fd530139c2e0fac4ffd8121f26f8a875138bd6e651dd4 -size 69172 diff --git a/hypothesis-3.6.1.tar.gz b/hypothesis-3.6.1.tar.gz new file mode 100644 index 0000000..1e7c0e9 --- /dev/null +++ b/hypothesis-3.6.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d4a0aa584ee4654819b8bfc8b5791669ad229eb1db949716543d7c31219cb35b +size 75106 diff --git a/python-hypothesis.changes b/python-hypothesis.changes index 2253f6d..be5930f 100644 --- a/python-hypothesis.changes +++ b/python-hypothesis.changes @@ -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 diff --git a/python-hypothesis.spec b/python-hypothesis.spec index bc0ae98..9f44841 100644 --- a/python-hypothesis.spec +++ b/python-hypothesis.spec @@ -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}/*