12 Commits

Author SHA256 Message Date
792625097d Accepting request 1322798 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/1322798
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/NumCpp?expand=0&rev=9
2025-12-15 10:59:14 +00:00
26ced02809 Update to version 2.16.0.
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/NumCpp?expand=0&rev=18
2025-12-13 19:31:24 +00:00
e5496d2e07 Accepting request 1306688 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/1306688
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/NumCpp?expand=0&rev=8
2025-09-23 14:08:02 +00:00
7e722c4098 - libboost_system was removed upstream (bsc#1249900)
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/NumCpp?expand=0&rev=16
2025-09-23 10:15:52 +00:00
3d3830ae22 Accepting request 1292530 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/1292530
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/NumCpp?expand=0&rev=7
2025-07-14 08:54:51 +00:00
6e130ceaee Update to version 2.14.2.
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/NumCpp?expand=0&rev=14
2025-07-13 15:00:27 +00:00
85d235800c Accepting request 1276280 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/1276280
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/NumCpp?expand=0&rev=6
2025-05-09 16:52:19 +00:00
766312f10b Update to version 2.14.1.
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/NumCpp?expand=0&rev=12
2025-05-09 13:37:45 +00:00
dca2d10627 Accepting request 1244763 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/1244763
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/NumCpp?expand=0&rev=5
2025-02-10 16:31:18 +00:00
f7ee698195 * Update to version 2.14.0.
* Drop upstreamed or otherwise no longer required patches: NumCpp-disable-pytest.patch NumCpp-add-tests.patch
* Add NumCpp-pytest-link-python.patch: Fix linking to python when building for openSUSE [gh#dpilger26/NumCpp#222].

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/NumCpp?expand=0&rev=10
2025-02-10 13:45:26 +00:00
3ebaafec9d Accepting request 1238691 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/1238691
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/NumCpp?expand=0&rev=4
2025-01-19 20:49:05 +00:00
b93bd49076 * Update to version 2.13.0.
* Update NumCpp-disable-pytest.patch: In addition to disabling pytest tests (not yet resolved), uncomment to enable gtest based tests [gh#dpilger26/NumCpp#222].
* Add NumCpp-add-tests.patch: Add `multitest` and `cppcheck` tests to ctest to make testing during %check easy.
* Restore ninja for build, does not affect issues related to python linking errors during tests (disabled by NumCpp-disable-pytest.patch).

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/NumCpp?expand=0&rev=8
2025-01-18 14:46:47 +00:00
6 changed files with 103 additions and 29 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f462ecd27126e6057b31fa38f1f72cef2c4223c9d848515412970714a5bb6d16
size 3442619

3
NumCpp-2.16.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a63cf216a1cb5a33c89053a01b1e761fe8e005d2b8e0dcf47cdebd01c4fba9ba
size 3815068

View File

@@ -1,18 +0,0 @@
---
test/CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: NumCpp-Version_2.12.1/test/CMakeLists.txt
===================================================================
--- NumCpp-Version_2.12.1.orig/test/CMakeLists.txt
+++ NumCpp-Version_2.12.1/test/CMakeLists.txt
@@ -1,7 +1,7 @@
if(BUILD_TESTS)
message(STATUS "Configuring Unit Tests")
add_subdirectory(gtest)
- add_subdirectory(pytest)
+ # add_subdirectory(pytest)
endif()
if(BUILD_MULTIPLE_TEST)

View File

@@ -0,0 +1,22 @@
---
test/pytest/src/CMakeLists.txt | 37 +++++++++++++++++++------------------
1 file changed, 19 insertions(+), 18 deletions(-)
Index: NumCpp-Version_2.16.0/test/pytest/src/CMakeLists.txt
===================================================================
--- NumCpp-Version_2.16.0.orig/test/pytest/src/CMakeLists.txt
+++ NumCpp-Version_2.16.0/test/pytest/src/CMakeLists.txt
@@ -57,11 +57,12 @@ find_package(Python 3.11 REQUIRED
if(UNIX)
execute_process(
COMMAND
- python3-config --ldflags
+ python3-config --embed --ldflags
OUTPUT_VARIABLE
PYTHON_LD_FLAGS
OUTPUT_STRIP_TRAILING_WHITESPACE
)
+ string(STRIP ${PYTHON_LD_FLAGS} PYTHON_LD_FLAGS)
endif()
target_link_libraries(${TARGET_NAME} PRIVATE

View File

@@ -1,3 +1,68 @@
-------------------------------------------------------------------
Thu Dec 11 10:06:29 UTC 2025 - Atri Bhattacharya <badshah400@gmail.com>
- Update to version 2.16.0:
* Added:
- eig() [gh#dpilger26/NumCpp#143].
- eigvals() [gh#dpilger26/NumCpp#143].
- svdvals.
* Bug fixes:
- outer function now operates on arrays of different sizes
[gh#dpilger26/NumCpp#144].
- pinv function has been corrected [gh#dpilger26/NumCpp#215].
- Changes from version 2.15.0:
* Added:
- fft module [gh#dpilger26/NumCpp#137].
- divmod.
- find_duplicates.
- mode.
-------------------------------------------------------------------
Tue Sep 23 11:27:17 CEST 2025 - aschnell@suse.com
- libboost_system was removed upstream (bsc#1249900)
-------------------------------------------------------------------
Fri Jul 11 10:22:42 UTC 2025 - Atri Bhattacharya <badshah400@gmail.com>
- Update to version 2.14.2:
* Fix error in ENURollPitchYawToECEFEuler() function.
-------------------------------------------------------------------
Tue May 6 12:19:45 UTC 2025 - Atri Bhattacharya <badshah400@gmail.com>
- Update to version 2.14.1:
* Make behavior of linalg::lstsq match NumPy when inputting a
multidimensional b array [gh#dpilger26/NumCpp#229].
-------------------------------------------------------------------
Sun Feb 9 15:05:23 UTC 2025 - Atri Bhattacharya <badshah400@gmail.com>
- Update to version 2.14.0:
* added argpartition() for gh#dpilger26/NumCpp#225.
- Drop upstreamed or otherwise no longer required patches:
* NumCpp-disable-pytest.patch
* NumCpp-add-tests.patch
- Add NumCpp-pytest-link-python.patch: Fix linking to python when
building for openSUSE [gh#dpilger26/NumCpp#222].
-------------------------------------------------------------------
Tue Jan 14 12:39:50 UTC 2025 - Atri Bhattacharya <badshah400@gmail.com>
- Update to version 2.13.0:
* Added putAlongAxis() [gh#dpilger26/NumCpp#217].
* Fixed random seeding [gh#dpilger26/NumCpp#218].
* Fixed error in fromfile() that limited filesize to 4GB
[gh#dpilger26/NumCpp#219].
- Update NumCpp-disable-pytest.patch: In addition to disabling
pytest tests (not yet resolved), uncomment to enable gtest based
tests [gh#dpilger26/NumCpp#222].
- Add NumCpp-add-tests.patch: Add `multitest` and `cppcheck` tests
to ctest to make testing during %check easy.
- Restore ninja for build, does not affect issues related to
python linking errors during tests (disabled by
NumCpp-disable-pytest.patch).
-------------------------------------------------------------------
Mon Dec 16 09:31:06 UTC 2024 - Atri Bhattacharya <badshah400@gmail.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package NumCpp
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,23 +16,25 @@
#
# %%define __builder ninja
%define __builder ninja
Name: NumCpp
Version: 2.12.1
Version: 2.16.0
Release: 0
Summary: C++ implementation of the Python Numpy library
License: MIT
URL: https://github.com/dpilger26/NumCpp
Source: %{url}/archive/refs/tags/Version_%{version}.tar.gz#/%{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM NumCpp-disable-pytest.patch badshah400@gmail.com -- Disable pytests that are incorrectly setup for pybind11
Patch0: NumCpp-disable-pytest.patch
# PATCH-FEATURE-OPENSUSE NumCpp-pytest-link-python.patch gh#dpilger26/NumCpp#222 badshah400@gmail.com -- Fix python linking on openSUSE for pytest based tests
Patch0: NumCpp-pytest-link-python.patch
BuildRequires: c++_compiler
BuildRequires: cmake
BuildRequires: doxygen
BuildRequires: gtest
BuildRequires: libboost_date_time-devel
BuildRequires: libboost_log-devel
%if 0%{?suse_version} < 1600
BuildRequires: libboost_system-devel
%endif
BuildRequires: libboost_thread-devel
BuildRequires: ninja
BuildRequires: pkgconfig
@@ -52,7 +54,9 @@ Requires: libboost_headers-devel
Requires: libboost_log-devel
Requires: libboost_numpy3-devel
Requires: libboost_python3-devel
%if 0%{?suse_version} < 1600
Requires: libboost_system-devel
%endif
Requires: libboost_thread-devel
Requires: python3-pybind11-devel
BuildArch: noarch
@@ -66,10 +70,11 @@ This package provides the header files for compiling code using NumCpp.
%build
%cmake \
-DNUMCPP_USE_MULTITHREAD:BOOL=ON \
-DBUILD_TESTS:BOOL=ON \
-DBUILD_DOCS:BOOL=ON \
-DNUMCPP_INCLUDE_PYBIND_PYTHON_INTERFACE:BOOL=ON \
-DNUMCPP_INCLUDE_BOOST_PYTHON_INTERFACE:BOOL=ON \
-DBUILD_TESTS:BOOL=ON \
-DBUILD_MULTIPLE_TEST:BOOL=ON \
-DBUILD_CPPCHECK_TEST:BOOL=ON \
-Wno-dev \
%{nil}
%cmake_build