From ea8efc9e9af5eba017da23eb74fcd0061a5a30fe Mon Sep 17 00:00:00 2001 From: iztokf Date: Jul 07 2021 08:41:21 +0000 Subject: Fix compatibility with the newest sphinx stack --- diff --git a/Patch1.patch b/Patch1.patch new file mode 100644 index 0000000..33d2b4c --- /dev/null +++ b/Patch1.patch @@ -0,0 +1,12 @@ +diff -urN a/docs/conf.py b/docs/conf.py +--- a/docs/conf.py 2021-01-03 22:30:44.000000000 +0100 ++++ b/docs/conf.py 2021-07-07 10:15:17.693692656 +0200 +@@ -164,7 +164,7 @@ + + def setup(app): + # overrides for wide tables in RTD theme +- app.add_stylesheet("theme_overrides.css") # path relative to static ++ app.add_css_file("theme_overrides.css") # path relative to static + + + # If not '', a 'Last updated on:' timestamp is inserted at every page diff --git a/python-pyswarms.spec b/python-pyswarms.spec index 2e80d0b..e890e53 100644 --- a/python-pyswarms.spec +++ b/python-pyswarms.spec @@ -10,14 +10,21 @@ interaction with swarm optimizations.} Name: python-%{pypi_name} Version: 1.3.0 -Release: 4%{?dist} +Release: 5%{?dist} Summary: A Python-based Particle Swarm Optimization (PSO) library License: MIT URL: https://github.com/ljvmiranda921/pyswarms Source0: %{pypi_source} + +# Fix compatibility with the newest sphinx stack +Patch0: Patch1.patch + BuildArch: noarch +# For the patch +BuildRequires: git-core + BuildRequires: python3-devel BuildRequires: python3dist(numpy) >= 1.10.4 BuildRequires: python3dist(scipy) >= 0.17 @@ -52,7 +59,7 @@ Summary: pyswarms documentation Documentation for pyswarms package %prep -%autosetup -n %{pypi_name}-%{version} +%autosetup -n %{pypi_name}-%{version} -S git # Remove bundled egg-info rm -rf %{pypi_name}.egg-info @@ -84,6 +91,9 @@ rm -rf %{buildroot}/%{python3_sitelib}/tests %license LICENSE %changelog +* Wed Jul 7 2021 Iztok Fister Jr. - 1.3.0-5 +- New patch for compatibility with the new sphinx stack + * Tue Jul 6 2021 Iztok Fister Jr. - 1.3.0-4 - Use pytest macro