|
|
616e0f0 |
Name: python-deap
|
|
|
2ab4119 |
Version: 1.3.1
|
|
|
28b237c |
Release: 3%{?dist}
|
|
|
616e0f0 |
Summary: Distributed Evolutionary Algorithms in Python
|
|
|
616e0f0 |
|
|
|
616e0f0 |
License: LGPLv3
|
|
|
616e0f0 |
URL: https://www.github.com/deap
|
|
|
2ab4119 |
Source0: %{pypi_source}
|
|
|
616e0f0 |
|
|
|
5cc5b81 |
# Fixes error "Reason: TemplateNotFound()"
|
|
|
5cc5b81 |
Patch1: remove-sidebar.diff
|
|
|
5cc5b81 |
|
|
|
616e0f0 |
BuildRequires: gcc
|
|
|
616e0f0 |
BuildRequires: gcc-c++
|
|
|
616e0f0 |
|
|
|
616e0f0 |
BuildRequires: python3-devel
|
|
|
616e0f0 |
BuildRequires: python3-setuptools
|
|
|
616e0f0 |
BuildRequires: python3-pypandoc
|
|
|
616e0f0 |
BuildRequires: python3-nose
|
|
|
616e0f0 |
BuildRequires: python3-numpy
|
|
|
616e0f0 |
|
|
|
616e0f0 |
# documentation
|
|
|
616e0f0 |
BuildRequires: python3-sphinx
|
|
|
616e0f0 |
BuildRequires: texlive-scheme-basic
|
|
|
5cc5b81 |
BuildRequires: tex(ucs.sty)
|
|
|
5cc5b81 |
BuildRequires: tex(anyfontsize.sty)
|
|
|
616e0f0 |
BuildRequires: python3-numpy
|
|
|
616e0f0 |
BuildRequires: python3-matplotlib
|
|
|
616e0f0 |
|
|
|
a7da16d |
%global _description %{expand:
|
|
|
a7da16d |
DEAP is a novel evolutionary computation framework for rapid
|
|
|
a7da16d |
prototyping and testing of ideas that implements a number of genetic
|
|
|
a7da16d |
optimization algorithms behind a common interface.}
|
|
|
616e0f0 |
|
|
|
616e0f0 |
%description %_description
|
|
|
616e0f0 |
|
|
|
616e0f0 |
%package -n python3-deap
|
|
|
616e0f0 |
Requires: python3-numpy
|
|
|
616e0f0 |
Summary: %{summary}
|
|
|
616e0f0 |
%{?python_provide:%python_provide python3-deap}
|
|
|
616e0f0 |
|
|
|
616e0f0 |
%description -n python3-deap %_description
|
|
|
616e0f0 |
|
|
|
616e0f0 |
%package -n python-deap-doc
|
|
|
616e0f0 |
Summary: Documentation for deap
|
|
|
616e0f0 |
BuildArch: noarch
|
|
|
616e0f0 |
%description -n python-deap-doc
|
|
|
616e0f0 |
%{summary}.
|
|
|
616e0f0 |
|
|
|
616e0f0 |
%prep
|
|
|
a7da16d |
%autosetup -n deap-%{version} -p1
|
|
|
616e0f0 |
sed -i 's/\["git", "rev-parse", "HEAD"\]/["echo", "deap-%{version}-%{release}"]/' \
|
|
|
616e0f0 |
doc/conf.py
|
|
|
616e0f0 |
|
|
|
a7da16d |
2to3 -nw doc/conf.py
|
|
|
a7da16d |
|
|
|
a7da16d |
# # Work around for https://github.com/matplotlib/matplotlib/issues/7313
|
|
|
a7da16d |
# sed -i -r 's/arange\(([-0-9.]+), ([-0-9.]+), [-0-9.]+\)/linspace(\1, \2, 20)/' doc/code/benchmarks/*.py
|
|
|
616e0f0 |
|
|
|
1f4b3dd |
# https://bugzilla.redhat.com/show_bug.cgi?id=1644771
|
|
|
1f4b3dd |
sed -i -r "s|'matplotlib.sphinxext.only_directives',||" doc/conf.py
|
|
|
1f4b3dd |
|
|
|
616e0f0 |
%build
|
|
|
616e0f0 |
%py3_build
|
|
|
616e0f0 |
|
|
|
616e0f0 |
# generate html docs
|
|
|
616e0f0 |
PYTHONPATH=build/lib.%{python3_platform}-%{python3_version} sphinx-build-3 doc build/html
|
|
|
616e0f0 |
|
|
|
616e0f0 |
# remove the sphinx-build leftovers
|
|
|
616e0f0 |
rm -rf build/html/.{doctrees,buildinfo}
|
|
|
616e0f0 |
|
|
|
616e0f0 |
%global _docdir_fmt %{name}
|
|
|
616e0f0 |
|
|
|
616e0f0 |
%install
|
|
|
616e0f0 |
%py3_install
|
|
|
616e0f0 |
|
|
|
616e0f0 |
%check
|
|
|
0131299 |
%ifarch s390x
|
|
|
0131299 |
# Fails with: AssertionError: CMA algorithm did not converged properly.
|
|
|
0131299 |
%global test_options --exclude test_cma
|
|
|
0131299 |
%endif
|
|
|
0131299 |
|
|
|
0131299 |
%{__python3} setup.py nosetests %{?test_options}
|
|
|
616e0f0 |
|
|
|
616e0f0 |
%files -n python3-deap
|
|
|
616e0f0 |
%license LICENSE.txt
|
|
|
616e0f0 |
%doc README.md
|
|
|
616e0f0 |
%{python3_sitearch}/deap
|
|
|
616e0f0 |
%{python3_sitearch}/deap-*.egg-info
|
|
|
616e0f0 |
|
|
|
616e0f0 |
%files -n python-deap-doc
|
|
|
616e0f0 |
%license LICENSE.txt
|
|
|
616e0f0 |
%doc build/html
|
|
|
616e0f0 |
|
|
|
616e0f0 |
%changelog
|
|
|
28b237c |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.1-3
|
|
|
28b237c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
28b237c |
|
|
|
a49d30a |
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.3.1-2
|
|
|
a49d30a |
- Rebuilt for Python 3.9
|
|
|
a49d30a |
|
|
|
2ab4119 |
* Wed Feb 19 2020 Aniket Pradhan <major AT fedoraproject DOT org> - 1.3.1-1
|
|
|
2ab4119 |
- Version update to 1.3.1
|
|
|
2ab4119 |
- New version fixes fails to build with Python 3.9: imports abc from collections (#1792065)
|
|
|
2ab4119 |
|
|
|
54dfeba |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-2
|
|
|
54dfeba |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
54dfeba |
|
|
|
a7da16d |
* Sun Sep 29 2019 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.3.0-1
|
|
|
a7da16d |
- Update to 1.3.0 (#1514435)
|
|
|
a7da16d |
|
|
|
0b5d354 |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.1-14.20160624git232ed17
|
|
|
0b5d354 |
- Rebuilt for Python 3.8
|
|
|
0b5d354 |
|
|
|
bb2ed12 |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-13.20160624git232ed17
|
|
|
bb2ed12 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
bb2ed12 |
|
|
|
5cc5b81 |
* Mon May 20 2019 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.0.1-12.20160624git232ed17
|
|
|
5cc5b81 |
- Fix build with sphinx 2
|
|
|
5cc5b81 |
|
|
|
c32bb49 |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-11.20160624git232ed17
|
|
|
c32bb49 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
c32bb49 |
|
|
|
616e0f0 |
* Wed Oct 31 2018 Miro Hrončok <mhroncok@redhat.com> - 1.0.1-10.20160624git232ed17
|
|
|
1f4b3dd |
- Subpackage python2-deap has been removed (#1630955)
|
|
|
616e0f0 |
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
|
|
1f4b3dd |
- Remove use of only_directives sphinx extension to fix build (#1606870)
|
|
|
616e0f0 |
|
|
|
616e0f0 |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-9.20160624git232ed17
|
|
|
616e0f0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
616e0f0 |
|
|
|
616e0f0 |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.0.1-8.20160624git232ed17
|
|
|
616e0f0 |
- Rebuilt for Python 3.7
|
|
|
616e0f0 |
|
|
|
616e0f0 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-7.20160624git232ed17
|
|
|
616e0f0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
616e0f0 |
|
|
|
616e0f0 |
* Tue Jan 16 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.0.1-6.20160624git232ed17
|
|
|
616e0f0 |
- Update Python 2 dependency declarations to new packaging standards
|
|
|
616e0f0 |
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
|
616e0f0 |
|
|
|
616e0f0 |
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-5.20160624git232ed17
|
|
|
616e0f0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
616e0f0 |
|
|
|
616e0f0 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-4.20160624git232ed17
|
|
|
616e0f0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
616e0f0 |
|
|
|
616e0f0 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-3.20160624git232ed17
|
|
|
616e0f0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
616e0f0 |
|
|
|
616e0f0 |
* Sat Jan 07 2017 Adam Williamson <awilliam@redhat.com> - 1.0.1-2.20160624git232ed17
|
|
|
616e0f0 |
- Tweak setup.py so Python 3 tests will run on 2to3'ed code
|
|
|
616e0f0 |
- Add appropriate buildrequires and enable tests
|
|
|
616e0f0 |
- Remove some unneeded conditionals for EOL Fedora releases
|
|
|
616e0f0 |
|
|
|
616e0f0 |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com>
|
|
|
616e0f0 |
- Rebuild for Python 3.6
|
|
|
616e0f0 |
|
|
|
616e0f0 |
* Tue Oct 18 2016 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.0.1-1.20160624git232ed17
|
|
|
616e0f0 |
- Update to latest git snapshot
|
|
|
616e0f0 |
- The version was wrong (upstream never released anything after
|
|
|
616e0f0 |
1.0.1). I forgot to actually create an update with the initial
|
|
|
616e0f0 |
version of this package. Luckily, this package was only built in
|
|
|
616e0f0 |
F22-24, and failed to build in rawhide, so it was never possible to
|
|
|
616e0f0 |
install it from repositories. I think this means it is possible to
|
|
|
616e0f0 |
lower the version without bumping the epoch.
|
|
|
616e0f0 |
|
|
|
616e0f0 |
* Thu Apr 07 2016 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.1.10-0.20160402gita4dc752
|
|
|
616e0f0 |
- Initial package.
|