8 Commits

Author SHA256 Message Date
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 118 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.14.2.tar.gz Normal file
View File

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

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,65 @@
---
test/pytest/src/CMakeLists.txt | 37 +++++++++++++++++++------------------
1 file changed, 19 insertions(+), 18 deletions(-)
Index: NumCpp-Version_2.14.0/test/pytest/src/CMakeLists.txt
===================================================================
--- NumCpp-Version_2.14.0.orig/test/pytest/src/CMakeLists.txt
+++ NumCpp-Version_2.14.0/test/pytest/src/CMakeLists.txt
@@ -17,25 +17,25 @@ foreach(_source IN ITEMS ${_source_list}
source_group("${_group_path}" FILES "${_source}")
endforeach()
-add_library(${TARGET_NAME} SHARED
- Constants.cpp
- Coordinates.cpp
- Core.cpp
- DataCube.cpp
+add_library(${TARGET_NAME} SHARED
+ Constants.cpp
+ Coordinates.cpp
+ Core.cpp
+ DataCube.cpp
DateTime.cpp
- Filter.cpp
- Functions.cpp
- ImageProcessing.cpp
- Integrate.cpp
- Linalg.cpp
+ Filter.cpp
+ Functions.cpp
+ ImageProcessing.cpp
+ Integrate.cpp
+ Linalg.cpp
Logger.cpp
- NdArray.cpp
- Polynomial.cpp
- Random.cpp
- Roots.cpp
- Rotations.cpp
- Special.cpp
- Utils.cpp
+ NdArray.cpp
+ Polynomial.cpp
+ Random.cpp
+ Roots.cpp
+ Rotations.cpp
+ Special.cpp
+ Utils.cpp
Vector.cpp
NumCppPy.cpp
${_source_list}
@@ -56,11 +56,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,44 @@
-------------------------------------------------------------------
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
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,16 +16,16 @@
#
# %%define __builder ninja
%define __builder ninja
Name: NumCpp
Version: 2.12.1
Version: 2.14.2
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
@@ -66,10 +66,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