public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-niapy] f45: Update to 2.7.1
@ 2026-08-27 10:42 Iztok Fister Jr
  0 siblings, 0 replies; only message in thread
From: Iztok Fister Jr @ 2026-08-27 10:42 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/python-niapy
Branch : f45
Commit : c8db7010c351588983fd9d7cb28898019c8be54c
Author : Iztok Fister Jr <iztok@iztok.dev>
Date   : 2026-08-27T12:34:43+02:00
Stats  : +8/-69 in 4 file(s)
URL    : https://src.fedoraproject.org/rpms/python-niapy/c/c8db7010c351588983fd9d7cb28898019c8be54c?branch=f45

Log:
Update to 2.7.1

---
diff --git a/.gitignore b/.gitignore
index a6126ec..52ef4f0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -18,3 +18,4 @@
 /NiaPy-2.5.2.tar.gz
 /NiaPy-2.6.0.tar.gz
 /NiaPy-2.6.1.tar.gz
+/NiaPy-2.7.1.tar.gz

diff --git a/742.patch b/742.patch
deleted file mode 100644
index 0975f61..0000000
--- a/742.patch
+++ /dev/null
@@ -1,65 +0,0 @@
-From ae83472e07db5af7d15c0873c9b8bc4fb7423ca8 Mon Sep 17 00:00:00 2001
-From: "Benjamin A. Beasley" <code@musicinmybrain.net>
-Date: Fri, 5 Dec 2025 13:22:15 +0000
-Subject: [PATCH 1/2] Remove executable perms from examples/run_all.sh
-
-It has no shebang line, so having the execute bit set is not useful.
----
- examples/run_all.sh | 0
- 1 file changed, 0 insertions(+), 0 deletions(-)
- mode change 100755 => 100644 examples/run_all.sh
-
-diff --git a/examples/run_all.sh b/examples/run_all.sh
-old mode 100755
-new mode 100644
-
-From a13d955d489fd0be430a6ddc50e8292bc3633573 Mon Sep 17 00:00:00 2001
-From: "Benjamin A. Beasley" <code@musicinmybrain.net>
-Date: Fri, 5 Dec 2025 13:23:07 +0000
-Subject: [PATCH 2/2] Convert examples/run_loa line terminations from CRLF
-
----
- examples/run_loa.py | 34 +++++++++++++++++-----------------
- 1 file changed, 17 insertions(+), 17 deletions(-)
-
-diff --git a/examples/run_loa.py b/examples/run_loa.py
-index 901d6e6b..fcdb534e 100644
---- a/examples/run_loa.py
-+++ b/examples/run_loa.py
-@@ -1,18 +1,18 @@
--# encoding=utf8
--# This is temporary fix to import module from parent folder
--# It will be removed when package is published on PyPI
--import sys
--
--sys.path.append('../')
--# End of fix
--
--from niapy.algorithms.basic import LionOptimizationAlgorithm
--from niapy.task import Task
--from niapy.problems import Sphere
--
--# we will run Lion Optimization Algorithm for 5 independent runs
--for i in range(5):
--    task = Task(problem=Sphere(dimension=10), max_evals=10000)
--    algo = LionOptimizationAlgorithm(population_size=40)
--    best = algo.run(task)
-+# encoding=utf8
-+# This is temporary fix to import module from parent folder
-+# It will be removed when package is published on PyPI
-+import sys
-+
-+sys.path.append('../')
-+# End of fix
-+
-+from niapy.algorithms.basic import LionOptimizationAlgorithm
-+from niapy.task import Task
-+from niapy.problems import Sphere
-+
-+# we will run Lion Optimization Algorithm for 5 independent runs
-+for i in range(5):
-+    task = Task(problem=Sphere(dimension=10), max_evals=10000)
-+    algo = LionOptimizationAlgorithm(population_size=40)
-+    best = algo.run(task)
-     print(best)
-\ No newline at end of file

diff --git a/python-niapy.spec b/python-niapy.spec
index 65ea6ad..0f9b4eb 100644
--- a/python-niapy.spec
+++ b/python-niapy.spec
@@ -1,5 +1,5 @@
 Name:           python-niapy
-Version:        2.6.1
+Version:        2.7.1
 Release:        %autorelease
 Summary:        Micro framework for building nature-inspired algorithms
 
@@ -16,8 +16,6 @@ Source:         %{url}/archive/v%{version}/NiaPy-%{version}.tar.gz
 # Convert examples/run_loa form CRLF line terminations (DOS/Windows style) to
 # UNIX-style, to match the other files in the project.
 #
-# https://github.com/NiaOrg/NiaPy/pull/742
-Patch:          %{url}/pull/742.patch
 
 BuildSystem:            pyproject
 BuildOption(install):   -L niapy
@@ -57,6 +55,11 @@ Obsoletes:      python-niapy-doc < 2.5.2-10
 #   the upper bounds in Fedora.
 sed -r -i -e 's/^python ?=/# &/' -e 's/([^#]+ ?= ?")\^/\1>=/' pyproject.toml
 
+# Relax the uv_build upper bound
+# generally respect SemVer upper bounds.
+sed -r -i -e 's/"uv_build ?>=([0-9.]+) ?, ?<[0-9.]+"/"uv_build>=\1"/' \
+    pyproject.toml
+
 %check -a
 %pytest -ra -k "${k-}"
 

diff --git a/sources b/sources
index 9c2993b..a659b95 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (NiaPy-2.6.1.tar.gz) = 668b1d19a6cc4c7dde3ae139662177c100f5c7f9e0ba91a80a2e69ce4d89e021e81a8c124400d9a9d2753ad1fcc40616dd52d57a58363c17b54afe7b4e9d6c2e
+SHA512 (NiaPy-2.7.1.tar.gz) = 03ad70a0df14fafe80b714ed23336404c6e6ead9176ba25c9935200e651fd9242e1b2c2b4ce6f48d5db8949e1797ea9b05222b90e2d9e026d07c6114877c8767

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-27 10:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-27 10:42 [rpms/python-niapy] f45: Update to 2.7.1 Iztok Fister Jr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox