2019-12-03 17:35:36 +08:00
|
|
|
%{?python_enable_dependency_generator}
|
|
|
|
|
Name: python-hypothesis
|
2020-08-08 16:14:10 +08:00
|
|
|
Version: 5.20.3
|
2021-03-02 16:50:25 +08:00
|
|
|
Release: 2
|
2019-12-03 17:35:36 +08:00
|
|
|
Summary: based testing for python code
|
|
|
|
|
License: MPLv2.0
|
|
|
|
|
URL: https://github.com/HypothesisWorks/hypothesis-python
|
2020-08-08 16:14:10 +08:00
|
|
|
Source0: https://github.com/HypothesisWorks/hypothesis/archive/hypothesis-python-%{version}.tar.gz
|
2019-12-03 17:35:36 +08:00
|
|
|
BuildRequires: python-sphinx
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
This package provides a library called hypothesis for testing Python code,
|
|
|
|
|
which has more examples and is based on the Haskell library, Quickcheck,
|
|
|
|
|
which is used to integrate directly into your existing Python unit testing work.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n python3-hypothesis
|
|
|
|
|
Summary: based testing for python code
|
|
|
|
|
%{?python_provide:%python_provide python3-hypothesis}
|
|
|
|
|
Obsoletes: platform-python-hypothesis < %{version}-%{release}
|
|
|
|
|
BuildRequires: python3-devel python3-setuptools python3dist(attrs)
|
|
|
|
|
|
|
|
|
|
%description -n python3-hypothesis
|
|
|
|
|
This package provides a library called hypothesis for testing Python code,
|
|
|
|
|
which has more examples and is based on the Haskell library, Quickcheck,
|
|
|
|
|
which is used to integrate directly into your existing Python unit testing work.
|
|
|
|
|
Python 3 version.
|
|
|
|
|
|
|
|
|
|
%package help
|
|
|
|
|
Summary: help document for the python-hypothesis
|
|
|
|
|
|
|
|
|
|
%description help
|
|
|
|
|
Help document for the python-hypothesis
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n hypothesis-hypothesis-python-%{version}/hypothesis-python -p1
|
2021-03-02 16:50:25 +08:00
|
|
|
sed -i -e '/sphinx.ext.intersphinx/d' docs/conf.py
|
2019-12-03 17:35:36 +08:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%py3_build
|
|
|
|
|
PYTHONPATH=src READTHEDOCS=True sphinx-build -b man docs docs/_build/man
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%py3_install
|
|
|
|
|
%{__install} -Dpm0644 -t %{buildroot}%{_mandir}/man1 docs/_build/man/hypothesis.1
|
|
|
|
|
|
|
|
|
|
%files help
|
|
|
|
|
%{_mandir}/man1/hypothesis.1*
|
|
|
|
|
%doc README.rst
|
|
|
|
|
|
|
|
|
|
%files -n python3-hypothesis
|
|
|
|
|
%doc ../LICENSE.txt
|
|
|
|
|
%{python3_sitelib}/hypothesis-*.egg-info
|
|
|
|
|
%{python3_sitelib}/hypothesis/
|
|
|
|
|
|
|
|
|
|
%changelog
|
2021-03-02 16:50:25 +08:00
|
|
|
* Tue Mar 2 2021 lingsheng<lingsheng@huawei.com> - 5.20.3-2
|
|
|
|
|
- Disable Sphinx extensions that require Internet access
|
|
|
|
|
|
2020-08-08 16:14:10 +08:00
|
|
|
* Sat Aug 8 2020 tianwei<tianwei12@huawei.com> - 5.20.3-1
|
|
|
|
|
- update release to 5.20.3
|
|
|
|
|
|
2020-06-24 17:28:32 +08:00
|
|
|
* Wed Jun 24 2020 lingsheng<lingsheng@huawei.com> - 3.66.11-3
|
|
|
|
|
- Add support for positional only arguments
|
|
|
|
|
|
2019-12-03 17:35:36 +08:00
|
|
|
* Thu Nov 28 2019 likexin<likexin4@huawei.com> - 3.66.11-2
|
|
|
|
|
- Package init
|