[packages/python3-hypothesis] - copied from python-hypothesis.spec, updated to 5.4.1 (for python3 only)

qboosh qboosh at pld-linux.org
Sat Feb 1 21:12:05 CET 2020


commit 528fbc5b9a17b1e60d48ea2bc5128d860f32b0a6
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Feb 1 21:12:24 2020 +0100

    - copied from python-hypothesis.spec, updated to 5.4.1 (for python3 only)

 python-hypothesis.spec  | 136 ------------------------------------------------
 python3-hypothesis.spec |  69 ++++++++++++++++++++++++
 2 files changed, 69 insertions(+), 136 deletions(-)
---
diff --git a/python-hypothesis.spec b/python-hypothesis.spec
deleted file mode 100644
index 2dbe6ef..0000000
--- a/python-hypothesis.spec
+++ /dev/null
@@ -1,136 +0,0 @@
-#
-# Conditional build:
-%bcond_with	tests	# nothing currently
-%bcond_without	python2 # CPython 2.x module
-%bcond_without	python3 # CPython 3.x module
-
-Summary:	Hypothesis - library for property based testing
-Summary(pl.UTF-8):	Hypothesis - biblioteka do testowania opartego na własnościach
-Name:		python-hypothesis
-Version:	4.57.1
-Release:	1
-License:	MPL v2.0
-Group:		Libraries/Python
-#Source0Download: https://pypi.org/simple/hypothesis/
-Source0:	https://files.pythonhosted.org/packages/source/h/hypothesis/hypothesis-%{version}.tar.gz
-# Source0-md5:	019caf033d5d5e349141c1cb13860148
-URL:		https://github.com/DRMacIver/hypothesis
-BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.714
-%if %{with python2}
-BuildRequires:	python-modules >= 1:2.7
-BuildRequires:	python-setuptools >= 1:36.2
-%if %{with tests}
-BuildRequires:	python-attrs >= 19.2.0
-BuildRequires:	python-coverage >= 4.0
-BuildRequires:	python-enum34
-BuildRequires:	python-sortedcontainers >= 2.1.0
-BuildRequires:	python-sortedcontainers < 3.0.0
-%endif
-%endif
-%if %{with python3}
-BuildRequires:	python3-modules >= 1:3.5
-BuildRequires:	python3-setuptools >= 1:36.2
-%if %{with tests}
-BuildRequires:	python3-attrs >= 19.2.0
-BuildRequires:	python3-coverage >= 4.0
-BuildRequires:	python3-sortedcontainers >= 2.1.0
-BuildRequires:	python3-sortedcontainers < 3.0.0
-%endif
-%endif
-Requires:	python-modules >= 1:2.7
-# for individual -extras modules:
-#Suggests:	python-dateutil >= 1.4
-#Suggests:	python-django >= 1.11
-#Suggests:	python-dpcontracts >= 0.4
-#Suggests:	python-lark-parser >= 0.6.5
-#Suggests:	python-numpy >= 1.9.0
-#Suggests:	python-pandas >= 0.19
-#Suggests:	python-pytest >= 4.3
-#Suggests:	python-pytz >= 2014.1
-BuildArch:	noarch
-BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-Hypothesis is a library for testing your Python code against a much
-larger range of examples than you would ever want to write by hand.
-It's based on the Haskell library, Quickcheck, and is designed to
-integrate seamlessly into your existing Python unit testing work flow.
-
-%description -l pl.UTF-8
-Hypothesis to biblioteka do testowania kodu w Pythonie względem dużo
-większej liczby przykładów, niż kiedykolwiek chciałoby się pisać
-ręcznie. Jest oparta na bibliotece Quickcheck języka Haskell i została
-zaprojektowana tak, aby w sposób przezroczysty integrowała się z
-istniejącym przepływem testów jednostkowych w Pythonie.
-
-%package -n python3-hypothesis
-Summary:	Hypothesis - library for property based testing
-Summary(pl.UTF-8):	Hypothesis - biblioteka do testowania opartego na własnościach
-Group:		Libraries/Python
-Requires:	python3-modules >= 1:3.5
-#Suggests:	python3-dateutil >= 1.4
-#Suggests:	python3-django >= 1.11
-#Suggests:	python3-dpcontracts >= 0.4
-#Suggests:	python3-lark-parser >= 0.6.5
-#Suggests:	python3-numpy >= 1.9.0
-#Suggests:	python3-pandas >= 0.19
-#Suggests:	python3-pytest >= 4.3
-#Suggests:	python3-pytz >= 2014.1
-
-%description -n python3-hypothesis
-Hypothesis is a library for testing your Python code against a much
-larger range of examples than you would ever want to write by hand.
-It's based on the Haskell library, Quickcheck, and is designed to
-integrate seamlessly into your existing Python unit testing work flow.
-
-%description -n python3-hypothesis -l pl.UTF-8
-Hypothesis to biblioteka do testowania kodu w Pythonie względem dużo
-większej liczby przykładów, niż kiedykolwiek chciałoby się pisać
-ręcznie. Jest oparta na bibliotece Quickcheck języka Haskell i została
-zaprojektowana tak, aby w sposób przezroczysty integrowała się z
-istniejącym przepływem testów jednostkowych w Pythonie.
-
-%prep
-%setup -q -n hypothesis-%{version}
-
-%build
-%if %{with python2}
-%py_build
-%endif
-
-%if %{with python3}
-%py3_build
-%endif
-
-%install
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%py_install
-
-%py_postclean
-%endif
-
-%if %{with python3}
-%py3_install
-%endif
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%files
-%defattr(644,root,root,755)
-%doc README.rst
-%{py_sitescriptdir}/hypothesis
-%{py_sitescriptdir}/hypothesis-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-hypothesis
-%defattr(644,root,root,755)
-%doc README.rst
-%{py3_sitescriptdir}/hypothesis
-%{py3_sitescriptdir}/hypothesis-%{version}-py*.egg-info
-%endif
diff --git a/python3-hypothesis.spec b/python3-hypothesis.spec
new file mode 100644
index 0000000..eab5f66
--- /dev/null
+++ b/python3-hypothesis.spec
@@ -0,0 +1,69 @@
+#
+# Conditional build:
+%bcond_with	tests	# nothing currently
+
+Summary:	Hypothesis - library for property based testing
+Summary(pl.UTF-8):	Hypothesis - biblioteka do testowania opartego na własnościach
+Name:		python3-hypothesis
+Version:	5.4.1
+Release:	1
+License:	MPL v2.0
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/hypothesis/
+Source0:	https://files.pythonhosted.org/packages/source/h/hypothesis/hypothesis-%{version}.tar.gz
+# Source0-md5:	dc0ebc9701f94c2fd87f726ad2f2cc61
+URL:		https://github.com/DRMacIver/hypothesis
+BuildRequires:	python3-modules >= 1:3.5.2
+BuildRequires:	python3-setuptools >= 1:36.2
+%if %{with tests}
+BuildRequires:	python3-attrs >= 19.2.0
+BuildRequires:	python3-sortedcontainers >= 2.1.0
+BuildRequires:	python3-sortedcontainers < 3.0.0
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+Requires:	python3-modules >= 1:3.5.2
+# for individual -extras modules:
+#Suggests:	python3-dateutil >= 1.4
+#Suggests:	python3-django >= 1.11
+#Suggests:	python3-dpcontracts >= 0.4
+#Suggests:	python3-lark-parser >= 0.6.5
+#Suggests:	python3-numpy >= 1.9.0
+#Suggests:	python3-pandas >= 0.19
+#Suggests:	python3-pytest >= 4.3
+#Suggests:	python3-pytz >= 2014.1
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Hypothesis is a library for testing your Python code against a much
+larger range of examples than you would ever want to write by hand.
+It's based on the Haskell library, Quickcheck, and is designed to
+integrate seamlessly into your existing Python unit testing work flow.
+
+%description -l pl.UTF-8
+Hypothesis to biblioteka do testowania kodu w Pythonie względem dużo
+większej liczby przykładów, niż kiedykolwiek chciałoby się pisać
+ręcznie. Jest oparta na bibliotece Quickcheck języka Haskell i została
+zaprojektowana tak, aby w sposób przezroczysty integrowała się z
+istniejącym przepływem testów jednostkowych w Pythonie.
+
+%prep
+%setup -q -n hypothesis-%{version}
+
+%build
+%py3_build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.rst
+%{py3_sitescriptdir}/hypothesis
+%{py3_sitescriptdir}/hypothesis-%{version}-py*.egg-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-hypothesis.git/commitdiff/528fbc5b9a17b1e60d48ea2bc5128d860f32b0a6



More information about the pld-cvs-commit mailing list