Accepting request 615030 from home:TheBlackCat:branches:devel:languages:python
- Use github source archive as recommended by upstream. - Remove unneeded python-hypothesis-build.patch OBS-URL: https://build.opensuse.org/request/show/615030 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hypothesis?expand=0&rev=61
This commit is contained in:
parent
d1654ba2fa
commit
815e3e08ce
@ -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.
|
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:ceb4d9b582184b041adc5647121fbafe3fcf49b7fbd218195d903c3fc6bc7916
|
|
||||||
size 156633
|
|
3
hypothesis-python-3.57.0.tar.gz
Normal file
3
hypothesis-python-3.57.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:9e2da5348d3661cc51d076172dfff221a285294ea3349a5fcfd0955dddaab6fc
|
||||||
|
size 498153
|
@ -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(),
|
|
||||||
)
|
|
@ -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
|
Thu May 31 02:56:55 UTC 2018 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
@ -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-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
%if 0%{?suse_version} > 1320
|
%if 0%{?suse_version} > 1320
|
||||||
%define oldpython python2
|
%define oldpython python2
|
||||||
@ -29,31 +34,40 @@ 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/HypothesisWorks/hypothesis-python
|
URL: https://github.com/HypothesisWorks/hypothesis-python
|
||||||
Source: https://files.pythonhosted.org/packages/source/h/hypothesis/hypothesis-%{version}.tar.gz
|
Source: https://github.com/HypothesisWorks/hypothesis/archive/hypothesis-python-3.57.0.tar.gz
|
||||||
Source10: https://raw.githubusercontent.com/HypothesisWorks/hypothesis/hypothesis-python-%{version}/LICENSE.txt
|
|
||||||
Patch0: %{name}-build.patch
|
|
||||||
BuildRequires: %{python_module setuptools >= 36}
|
BuildRequires: %{python_module setuptools >= 36}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
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
|
Requires: python-coverage
|
||||||
%if 0%{?suse_version} >= 1000 || 0%{?fedora_version} >= 24
|
%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-Faker >= 0.7.0
|
||||||
Recommends: python-numpy >= 1.9.0
|
Recommends: python-numpy >= 1.9.0
|
||||||
Recommends: python-pandas
|
Recommends: python-pandas
|
||||||
Recommends: python-pytest >= 2.8.0
|
Recommends: python-pytest >= 2.8.0
|
||||||
Recommends: python-pytz
|
Recommends: python-pytz
|
||||||
%endif
|
%endif
|
||||||
BuildArch: noarch
|
|
||||||
%if %{with python2}
|
%if %{with python2}
|
||||||
BuildRequires: python-enum34
|
BuildRequires: python-enum34
|
||||||
BuildRequires: python-ipaddress
|
BuildRequires: python-ipaddress
|
||||||
|
BuildRequires: python-mock
|
||||||
%endif
|
%endif
|
||||||
%ifpython2
|
%ifpython2
|
||||||
Requires: %{oldpython}-enum34
|
Requires: %{oldpython}-enum34
|
||||||
%endif
|
%endif
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%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.
|
work on Jython or on Python 3.0 through 3.2.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n hypothesis-%{version}
|
%setup -q -n hypothesis-hypothesis-python-%{version}/hypothesis-python
|
||||||
# remove py2/3 and django tests as they fail
|
|
||||||
rm -rf tests/py3 tests/py2 tests/django
|
|
||||||
%patch0 -p1
|
|
||||||
cp %{SOURCE10} .
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%python_install
|
||||||
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.rst
|
%doc ../CITATION README.rst
|
||||||
%license LICENSE.txt
|
%license ../LICENSE.txt
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user