diff --git a/LICENSE.txt b/LICENSE.txt deleted file mode 100644 index 9133620..0000000 --- a/LICENSE.txt +++ /dev/null @@ -1,8 +0,0 @@ -Copyright (c) 2013, David R. MacIver - -All code in this repository except where explicitly noted otherwise is released -under the Mozilla Public License v 2.0. You can obtain a copy at http://mozilla.org/MPL/2.0/. - -Some code in this repository comes from other projects. Where applicable, the -original copyright and license are noted and any modifications made are released -dual licensed with the original license. diff --git a/hypothesis-3.57.0.tar.gz b/hypothesis-3.57.0.tar.gz deleted file mode 100644 index 151ce62..0000000 --- a/hypothesis-3.57.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ceb4d9b582184b041adc5647121fbafe3fcf49b7fbd218195d903c3fc6bc7916 -size 156633 diff --git a/hypothesis-python-3.57.0.tar.gz b/hypothesis-python-3.57.0.tar.gz new file mode 100644 index 0000000..fc4e3a0 --- /dev/null +++ b/hypothesis-python-3.57.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9e2da5348d3661cc51d076172dfff221a285294ea3349a5fcfd0955dddaab6fc +size 498153 diff --git a/python-hypothesis-build.patch b/python-hypothesis-build.patch deleted file mode 100644 index b6c856d..0000000 --- a/python-hypothesis-build.patch +++ /dev/null @@ -1,10 +0,0 @@ -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 a3453c4..45807ec 100644 --- a/python-hypothesis.changes +++ b/python-hypothesis.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Jun 4 19:27:19 UTC 2018 - toddrme2178@gmail.com + +- Use github source archive as recommended by upstream. +- Remove unneeded python-hypothesis-build.patch + ------------------------------------------------------------------- Thu May 31 02:56:55 UTC 2018 - toddrme2178@gmail.com diff --git a/python-hypothesis.spec b/python-hypothesis.spec index 87eae11..1a0c833 100644 --- a/python-hypothesis.spec +++ b/python-hypothesis.spec @@ -16,6 +16,11 @@ # +# Note: tests require some very specific tooling, context-specific environment +# variables (such as checking for travis), and very specific versions of all +# dependencies. It does not appear feasible to get it to work in a consistent +# manner. + %{?!python_module:%define python_module() python-%{**} python3-%{**}} %if 0%{?suse_version} > 1320 %define oldpython python2 @@ -29,31 +34,40 @@ Release: 0 Summary: A library for property based testing License: MPL-2.0 Group: Development/Languages/Python -Url: https://github.com/HypothesisWorks/hypothesis-python -Source: https://files.pythonhosted.org/packages/source/h/hypothesis/hypothesis-%{version}.tar.gz -Source10: https://raw.githubusercontent.com/HypothesisWorks/hypothesis/hypothesis-python-%{version}/LICENSE.txt -Patch0: %{name}-build.patch +URL: https://github.com/HypothesisWorks/hypothesis-python +Source: https://github.com/HypothesisWorks/hypothesis/archive/hypothesis-python-3.57.0.tar.gz BuildRequires: %{python_module setuptools >= 36} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-attrs +# SECTION test requirements +BuildRequires: %{python_module attrs >= 16.0.0} +BuildRequires: %{python_module coverage} +BuildRequires: %{python_module flaky} +BuildRequires: %{python_module mock} +BuildRequires: %{python_module pytest >= 2.8.0} +BuildRequires: %{python_module pytest-xdist >= 1.22.2} +BuildRequires: %{pythons} +# /SECTION +Requires: python-attrs >= 16.0.0 Requires: python-coverage %if 0%{?suse_version} >= 1000 || 0%{?fedora_version} >= 24 -Recommends: python-Django >= 1.8 +Recommends: python-Django >= 1.11 Recommends: python-Faker >= 0.7.0 Recommends: python-numpy >= 1.9.0 Recommends: python-pandas Recommends: python-pytest >= 2.8.0 Recommends: python-pytz %endif -BuildArch: noarch %if %{with python2} BuildRequires: python-enum34 BuildRequires: python-ipaddress +BuildRequires: python-mock %endif %ifpython2 Requires: %{oldpython}-enum34 %endif +BuildArch: noarch + %python_subpackages %description @@ -68,22 +82,18 @@ PyPy3 until they support a 3.3 compatible version of the language). It does *not work on Jython or on Python 3.0 through 3.2. %prep -%setup -q -n hypothesis-%{version} -# remove py2/3 and django tests as they fail -rm -rf tests/py3 tests/py2 tests/django -%patch0 -p1 -cp %{SOURCE10} . +%setup -q -n hypothesis-hypothesis-python-%{version}/hypothesis-python %build %python_build %install %python_install -%python_expand %fdupes -s %{buildroot}%{$python_sitelib} +%python_expand %fdupes %{buildroot}%{$python_sitelib} %files %{python_files} -%doc README.rst -%license LICENSE.txt +%doc ../CITATION README.rst +%license ../LICENSE.txt %{python_sitelib}/* %changelog