Update to v3.1.3
This commit is contained in:
parent
9d8c2c5b47
commit
5b5cd6a8e0
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
|||||||
/hypothesis-2.0.0.tar.gz
|
/hypothesis-3.1.3.tar.gz
|
||||||
|
|||||||
@ -1,14 +1,11 @@
|
|||||||
|
%{!?__python2: %global __python2 /usr/bin/python2}
|
||||||
%global srcname hypothesis
|
%global srcname hypothesis
|
||||||
%global sum A library for property based testing
|
|
||||||
|
|
||||||
%if 0%{?fedora}
|
|
||||||
%global with_python3 1
|
|
||||||
%endif
|
|
||||||
|
|
||||||
Name: python-%{srcname}
|
Name: python-%{srcname}
|
||||||
Version: 2.0.0
|
Version: 3.1.3
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: %{sum}
|
Summary: A library for property based testing
|
||||||
|
|
||||||
License: MPLv2.0
|
License: MPLv2.0
|
||||||
URL: https://github.com/DRMacIver/hypothesis
|
URL: https://github.com/DRMacIver/hypothesis
|
||||||
@ -19,13 +16,6 @@ Patch0: %{srcname}-2.0.0-offline.patch
|
|||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: python2-devel
|
BuildRequires: python2-devel
|
||||||
BuildRequires: python-sphinx
|
BuildRequires: python-sphinx
|
||||||
BuildRequires: python-sphinx_rtd_theme
|
|
||||||
# Test dependencies
|
|
||||||
BuildRequires: numpy
|
|
||||||
BuildRequires: pytest
|
|
||||||
BuildRequires: pytz
|
|
||||||
#BuildRequires: python-django
|
|
||||||
BuildRequires: python-flake8
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Hypothesis is a library for testing your Python code against a much
|
Hypothesis is a library for testing your Python code against a much
|
||||||
@ -36,18 +26,15 @@ flow.
|
|||||||
|
|
||||||
|
|
||||||
%package -n python2-%{srcname}
|
%package -n python2-%{srcname}
|
||||||
Summary: %{sum}
|
Summary: A library for property based testing
|
||||||
%{?python_provide:%python_provide python2-%{srcname}}
|
|
||||||
Obsoletes: python-%{srcname} < 1.11.1-1
|
Obsoletes: python-%{srcname} < 1.11.1-1
|
||||||
%if 0%{?with_python3}
|
|
||||||
# needed only by hypothesis-extras
|
%if 0%{?fedora}
|
||||||
|
%{?python_provide:%python_provide python2-%{srcname}}
|
||||||
Suggests: numpy
|
Suggests: numpy
|
||||||
# fake-factory not packaged yet
|
|
||||||
# Suggests: python2-fake-factory
|
|
||||||
Suggests: pytz
|
Suggests: pytz
|
||||||
# Django support requires fake-factory
|
%else
|
||||||
# TODO - update to python2-django once available
|
Provides: python-hypothesis
|
||||||
# Enhances: python-django
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%description -n python2-%{srcname}
|
%description -n python2-%{srcname}
|
||||||
@ -58,26 +45,13 @@ to integrate seamlessly into your existing Python unit testing work
|
|||||||
flow.
|
flow.
|
||||||
|
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
%if 0%{?fedora}
|
||||||
%package -n python3-%{srcname}
|
%package -n python3-%{srcname}
|
||||||
Summary: %{sum}
|
Summary: A library for property based testing
|
||||||
%{?python_provide:%python_provide python3-%{srcname}}
|
%{?python_provide:%python_provide python3-%{srcname}}
|
||||||
# needed only by hypothesis-extras
|
|
||||||
# fake-factory not packaged yet
|
|
||||||
# Suggests: python3-fake-factory
|
|
||||||
Suggests: python3-numpy
|
Suggests: python3-numpy
|
||||||
Suggests: python3-pytz
|
Suggests: python3-pytz
|
||||||
# Django support requires fake-factory
|
|
||||||
# Enhances: python3-django
|
|
||||||
|
|
||||||
BuildRequires: python3-devel
|
|
||||||
#BuildRequires: python3-django
|
|
||||||
BuildRequires: python3-flake8
|
|
||||||
BuildRequires: python3-numpy
|
|
||||||
BuildRequires: python3-pytest
|
|
||||||
BuildRequires: python3-pytz
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%description -n python3-%{srcname}
|
%description -n python3-%{srcname}
|
||||||
Hypothesis is a library for testing your Python code against a much
|
Hypothesis is a library for testing your Python code against a much
|
||||||
@ -89,53 +63,42 @@ flow.
|
|||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{srcname}-%{version} -p1
|
%autosetup -n %{srcname}-python-%{version} -p1
|
||||||
|
|
||||||
# remove shebang, mergedbs gets installed in sitelib
|
# remove shebang, mergedbs gets installed in sitelib
|
||||||
%{__sed} -i -e 1,2d src/hypothesis/tools/mergedbs.py
|
%{__sed} -i -e 1,2d src/hypothesis/tools/mergedbs.py
|
||||||
# remove Django tests for now
|
|
||||||
rm -rf tests/django
|
|
||||||
# remove fakefactory tests, not packaged yet
|
|
||||||
rm -rf tests/fakefactory
|
|
||||||
# remove slow tests
|
|
||||||
rm -rf tests/nocover
|
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if 0%{?fedora}
|
||||||
%py2_build
|
%py2_build
|
||||||
%if 0%{?with_python3}
|
|
||||||
%py3_build
|
%py3_build
|
||||||
#(cd docs && READTHEDOCS=True make man)
|
READTHEDOCS=True sphinx-build -b man docs docs/_build/man
|
||||||
sphinx-build -b man -d docs/_build/doctrees docs docs/_build/man
|
%else
|
||||||
|
%{__python2} setup.py build
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
%if 0%{?fedora}
|
||||||
%py2_install
|
%py2_install
|
||||||
%if 0%{?with_python3}
|
|
||||||
%py3_install
|
%py3_install
|
||||||
%{__install} -Dp -m 644 docs/_build/man/hypothesis.1 \
|
%{__install} -Dp -m 644 docs/_build/man/hypothesis.1 \
|
||||||
$RPM_BUILD_ROOT%{_mandir}/man1/hypothesis.1
|
$RPM_BUILD_ROOT%{_mandir}/man1/hypothesis.1
|
||||||
|
%else
|
||||||
|
%{__python2} setup.py install --skip-build --prefix=%{_prefix} --root %{buildroot}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%check
|
|
||||||
#{__python2} setup.py test
|
|
||||||
|
|
||||||
# remove py2-specific tests
|
|
||||||
rm -rf tests/py2
|
|
||||||
#{__python3} setup.py test
|
|
||||||
|
|
||||||
|
|
||||||
%files -n python2-%{srcname}
|
%files -n python2-%{srcname}
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%{python2_sitelib}/*
|
%{python2_sitelib}/*
|
||||||
%if 0%{?with_python3}
|
%if 0%{?fedora}
|
||||||
%{_mandir}/man1/hypothesis.1*
|
%{_mandir}/man1/hypothesis.1*
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
%if 0%{?fedora}
|
||||||
%files -n python3-%{srcname}
|
%files -n python3-%{srcname}
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
@ -144,6 +107,11 @@ rm -rf tests/py2
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed May 04 2016 Nathaniel McCallum <npmccallum@redhat.com> - 3.1.3-1
|
||||||
|
- Update to 3.1.3
|
||||||
|
- Remove unused code
|
||||||
|
- Remove unused dependencies
|
||||||
|
|
||||||
* Sun Feb 14 2016 Michel Salim <salimma@fedoraproject.org> - 2.0.0-1
|
* Sun Feb 14 2016 Michel Salim <salimma@fedoraproject.org> - 2.0.0-1
|
||||||
- Update to 2.0.0
|
- Update to 2.0.0
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user