public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-opfunu] rawhide: Update to 1.0.4
@ 2026-08-06 0:50 Filipe Rosset
0 siblings, 0 replies; only message in thread
From: Filipe Rosset @ 2026-08-06 0:50 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-opfunu
Branch : rawhide
Commit : 624efddb8d0bee770ae007fa72a4e63fa62e30e1
Author : Filipe Rosset <rosset.filipe@gmail.com>
Date : 2026-08-05T21:48:31-03:00
Stats : +22/-76 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/python-opfunu/c/624efddb8d0bee770ae007fa72a4e63fa62e30e1?branch=rawhide
Log:
Update to 1.0.4
Resolves: rhbz#2485915
Resolves: rhbz#2504556
---
diff --git a/0001-do-not-package-tests-examples.patch b/0001-do-not-package-tests-examples.patch
deleted file mode 100644
index a178213..0000000
--- a/0001-do-not-package-tests-examples.patch
+++ /dev/null
@@ -1,19 +0,0 @@
-diff -urN a/setup.py b/setup.py
---- a/setup.py 2022-07-13 11:47:45.000000000 +0200
-+++ b/setup.py 2022-09-02 14:58:07.914211624 +0200
-@@ -23,7 +23,7 @@
- long_description_content_type="text/markdown",
- url="https://github.com/thieu1995/opfunu",
- download_url="https://github.com/thieu1995/opfunu/archive/v1.0.0.zip",
-- packages=find_packages(),
-+ packages=find_packages(exclude=("*tests.*", "*tests", "*examples.*", "*examples")),
- include_package_data=True,
- license="MIT",
- classifiers=[
-@@ -52,4 +52,4 @@
- ],
- install_requires=["numpy>=1.15.1", "matplotlib>=3.1.3"],
- python_requires='>=3.6',
--)
-\ No newline at end of file
-+)
diff --git a/12.patch b/12.patch
deleted file mode 100644
index d253383..0000000
--- a/12.patch
+++ /dev/null
@@ -1,32 +0,0 @@
-From 61ad94274896047410f37bf78f5acfa5a71f2efa Mon Sep 17 00:00:00 2001
-From: "Benjamin A. Beasley" <code@musicinmybrain.net>
-Date: Sat, 25 Feb 2023 11:02:17 -0500
-Subject: [PATCH] Do not import numpy.int, which was deprecated and removed
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-This has always just aliased Python’s built-in int type; it was
-deprecated in 1.20.0
-(https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations) and
-removed in 1.24.0
-(https://numpy.org/devdocs/release/1.24.0-notes.html#expired-deprecations).
-
-We simply omit the import and use the built-in int type directly.
----
- opfunu/cec/cec2020/engineering.py | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/opfunu/cec/cec2020/engineering.py b/opfunu/cec/cec2020/engineering.py
-index ee5bf0e..3bb8afa 100644
---- a/opfunu/cec/cec2020/engineering.py
-+++ b/opfunu/cec/cec2020/engineering.py
-@@ -7,7 +7,7 @@
- # Github: https://github.com/thieu1995 %
- # -------------------------------------------------------------------------------------------------------%
-
--from numpy import zeros, array, log, abs, exp, sqrt, pi, round, sin, cos, arccos, remainder, arcsin, int, arctan, imag, log10
-+from numpy import zeros, array, log, abs, exp, sqrt, pi, round, sin, cos, arccos, remainder, arcsin, arctan, imag, log10
- from scipy.optimize import fminbound
- from opfunu.cec.cec2020 import constant
-
diff --git a/python-opfunu.spec b/python-opfunu.spec
index 51eaed3..c4338f2 100644
--- a/python-opfunu.spec
+++ b/python-opfunu.spec
@@ -1,7 +1,8 @@
%global desc %{expand: \
A collection of Benchmark functions for numerical optimization problems.
-Current information can always be found from the repository - https://github.com/thieu1995/opfunu}
+Current information can always be found from the repository:
+https://github.com/thieu1995/opfunu}
# enable when new Sphinx stack is available on all platforms
%bcond_with docs
@@ -11,7 +12,7 @@ Current information can always be found from the repository - https://github.com
%global forgeurl https://github.com/thieu1995/opfunu
Name: python-opfunu
-Version: 1.0.0
+Version: 1.0.4
Release: %autorelease
Summary: Benchmark functions for numerical optimization problems
@@ -21,14 +22,6 @@ License: GPL-3.0-only
URL: https://github.com/thieu1995/opfunu
Source0: %forgesource
-# This patch is intended not to package tests.
-# It was not submitted to the upstream since this is optional
-# for the upstream to apply this.
-Patch: 0001-do-not-package-tests-examples.patch
-# Do not import numpy.int, which was deprecated and removed
-# https://github.com/thieu1995/opfunu/pull/12
-Patch: %{url}/pull/12.patch
-
BuildArch: noarch
%description
@@ -36,38 +29,37 @@ BuildArch: noarch
%package -n python3-opfunu
Summary: %{summary}
-BuildRequires: python3-devel
-BuildRequires: python3-pkg-resources
-BuildRequires: %{py3_dist requests}
+BuildRequires: hardlink
+BuildRequires: python3-devel
+BuildRequires: python3-pkg-resources
+BuildRequires: %{py3_dist Pillow}
+BuildRequires: %{py3_dist pandas}
+BuildRequires: %{py3_dist requests}
+BuildRequires: %{py3_dist scipy}
%if %{with tests}
-BuildRequires: %{py3_dist pytest}
+BuildRequires: %{py3_dist pytest}
%endif
%if %{with docs}
+BuildRequires: latexmk
BuildRequires: make
BuildRequires: python3-sphinx-latex
-BuildRequires: latexmk
BuildRequires: %{py3_dist sphinx}
BuildRequires: %{py3_dist sphinx-rtd-theme}
%endif
-# scipy, Pillow, requests and pandas are missing in setup file
-BuildRequires: %{py3_dist scipy}
-BuildRequires: %{py3_dist Pillow}
-BuildRequires: %{py3_dist pandas}
-Requires: %{py3_dist Pillow}
-Requires: %{py3_dist pandas}
-Requires: %{py3_dist requests}
-Requires: %{py3_dist scipy}
-BuildRequires: hardlink
+Requires: %{py3_dist Pillow}
+Requires: %{py3_dist pandas}
+Requires: %{py3_dist requests}
+Requires: %{py3_dist scipy}
%description -n python3-opfunu
%{desc}
%package doc
BuildArch: noarch
-Summary: %{summary}
+Summary: %{summary} (documentation)
%description doc
Documentation for %{name}.
@@ -82,6 +74,9 @@ find examples -type f -name '*.py' ! -name '__init__.py' \
find opfunu tests -type f -name '*.py' \
-execdir sed -r -i '1{/^#!/d}' '{}' '+'
+# Strip Python version restriction in setup.py
+sed -i "s/python_requires='>=3.7, <3.12'/python_requires='>=3.7'/" setup.py
+
%py3_shebang_fix examples
%generate_buildrequires
@@ -102,6 +97,8 @@ find opfunu tests -type f -name '*.py' \
hardlink '%{buildroot}%{python3_sitelib}/opfunu'
%check
+%pyproject_check_import
+
%if %{with tests}
%pytest
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-06 0:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-06 0:50 [rpms/python-opfunu] rawhide: Update to 1.0.4 Filipe Rosset
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox