From b39ac3767c110c724b3fa11041e006b5d21927252e4be65cc9685f1724c65a49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 15 Dec 2017 10:35:26 +0000 Subject: [PATCH] Accepting request 557295 from home:ecsos - Add patch python-hypothesis-build.patch to fix Factory build error OBS-URL: https://build.opensuse.org/request/show/557295 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hypothesis?expand=0&rev=40 --- python-hypothesis-build.patch | 10 ++++++++++ python-hypothesis.changes | 6 ++++++ python-hypothesis.spec | 2 ++ 3 files changed, 18 insertions(+) create mode 100644 python-hypothesis-build.patch diff --git a/python-hypothesis-build.patch b/python-hypothesis-build.patch new file mode 100644 index 0000000..b6c856d --- /dev/null +++ b/python-hypothesis-build.patch @@ -0,0 +1,10 @@ +diff -Pdpru hypothesis-python-3.42.2.orig/setup.py hypothesis-python-3.42.2/setup.py +--- hypothesis-python-3.42.2.orig/setup.py 2017-12-12 04:59:10.000000000 +0100 ++++ hypothesis-python-3.42.2/setup.py 2017-12-15 09:54:26.188604599 +0100 +@@ -95,5 +95,5 @@ setup( + entry_points={ + 'pytest11': ['hypothesispytest = hypothesis.extra.pytestplugin'], + }, +- long_description=open(README).read(), ++ long_description=open("README.rst").read(), + ) diff --git a/python-hypothesis.changes b/python-hypothesis.changes index e920de8..c76ce96 100644 --- a/python-hypothesis.changes +++ b/python-hypothesis.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Dec 15 08:55:52 UTC 2017 - ecsos@opensuse.org + +- Add patch python-hypothesis-build.patch + to fix Factory build error + ------------------------------------------------------------------- Thu Dec 14 15:00:24 UTC 2017 - tchvatal@suse.com diff --git a/python-hypothesis.spec b/python-hypothesis.spec index 8d3575c..fcd317c 100644 --- a/python-hypothesis.spec +++ b/python-hypothesis.spec @@ -30,6 +30,7 @@ License: MPL-2.0 Group: Development/Languages/Python Url: https://github.com/HypothesisWorks/hypothesis-python Source: https://github.com/HypothesisWorks/hypothesis-python/archive/%{version}.tar.gz +Patch0: %{name}-build.patch BuildRequires: %{python_module Django >= 1.8} BuildRequires: %{python_module Faker >= 0.7.0} BuildRequires: %{python_module attrs} @@ -74,6 +75,7 @@ work on Jython or on Python 3.0 through 3.2. %setup -q -n hypothesis-python-%{version} # remove py2/3 and django tests as they fail rm -rf tests/py3 tests/py2 tests/django +%patch0 -p1 %build %python_build