Compare commits

...
Sign in to create a new pull request.

61 commits

Author SHA1 Message Date
Fedora Release Engineering
14b64b75af Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild 2026-07-17 09:08:01 +00:00
Fedora Release Engineering
8353711aec Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild 2026-01-17 20:34:46 +00:00
Packit
d778415115 Update to 5.2.6 upstream release
- Resolves: rhbz#2416738

Commit authored by Packit automation (https://packit.dev/)
2025-11-24 16:45:06 +00:00
Elliott Sales de Andrade
715eb251d6 Update to latest version (#2349512) 2025-09-21 15:41:00 -04:00
Elliott Sales de Andrade
b47ecc8029 Add Packit configuration 2025-08-24 23:42:22 -04:00
Fedora Release Engineering
6ff579c6fc Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 20:44:52 +00:00
Fedora Release Engineering
d13ae02137 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-19 15:39:48 +00:00
Elliott Sales de Andrade
f292f75025 Correct license 2024-09-22 05:00:21 -04:00
Miroslav Suchý
f70e25b5d6 convert license to SPDX
This is part of https://fedoraproject.org/wiki/Changes/SPDX_Licenses_Phase_4
2024-09-04 22:52:31 +02:00
Elliott Sales de Andrade
c7b6f0e334 Update to latest version (#2263428) 2024-08-08 05:01:01 -04:00
Elliott Sales de Andrade
98e922d83b Merge #2 Update to 5.1.0 2024-08-08 08:45:37 +00:00
Fedora Release Engineering
ed77e0db6b Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-20 09:55:17 +00:00
Benson Muite
8b4af5d04a Update to 5.1.0 2024-07-14 16:15:16 +03:00
Fedora Release Engineering
abb5eb002f Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-27 09:31:33 +00:00
Elliott Sales de Andrade
cf06ac4f13 Update to latest version (#2256781) 2024-01-07 04:20:02 -05:00
Elliott Sales de Andrade
468f62bc99 Update to latest version (#2252266) 2023-12-03 03:41:22 -05:00
Elliott Sales de Andrade
14b0072979 Update to latest version (#2240272) 2023-10-08 04:25:55 -04:00
Fedora Release Engineering
def077ae50 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-22 18:42:41 +00:00
Elliott Sales de Andrade
ae40bd3eac Update to latest version (#2211103) 2023-07-03 20:43:50 -04:00
Elliott Sales de Andrade
4bff22283c Update to latest version (#2007795) 2023-01-22 01:13:45 -05:00
Elliott Sales de Andrade
83fd7dd20d Drop support for i686 2023-01-22 01:13:45 -05:00
Fedora Release Engineering
7388acfbdb Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-21 07:20:13 +00:00
Elliott Sales de Andrade
bf8ade803c Backport fixes to messages to match schemas 2022-10-17 05:36:22 -04:00
Fedora Release Engineering
12b9a35c2a Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-23 12:59:25 +00:00
Fedora Release Engineering
dd4ff20e04 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-22 04:58:38 +00:00
Elliott Sales de Andrade
62c27263dc Merge remote-tracking branch 'refs/remotes/origin/rawhide' into rawhide 2021-09-18 16:04:26 -04:00
Elliott Sales de Andrade
980d19d940 Update to latest version (#2003853) 2021-09-18 05:35:11 -04:00
Sahana Prasad
6a088e6c80 Rebuilt with OpenSSL 3.0.0 2021-09-14 19:18:01 +02:00
Elliott Sales de Andrade
cfff3b2908 Update to latest version (#1981750) 2021-08-22 01:07:36 -04:00
Elliott Sales de Andrade
bc261a2588 Convert to rpmautospec. 2021-08-22 01:01:36 -04:00
Fedora Release Engineering
b8dc771644 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-23 21:27:08 +00:00
Elliott Sales de Andrade
d76d0bbca2 Update to latest version.
Fix various build issues.
2021-07-11 20:32:22 -04:00
Elliott Sales de Andrade
8a83eb1261 Update to latest version. 2021-02-24 05:13:55 -05:00
Elliott Sales de Andrade
6b46ea4ee1 Update to latest version. 2021-02-07 18:29:32 -05:00
Fedora Release Engineering
5c54f89059 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-27 23:56:09 +00:00
Tom Stellard
5b7998ea14 Add BuildRequires: make
https://fedoraproject.org/wiki/Changes/Remove_make_from_BuildRoot
2021-01-09 01:16:40 +00:00
Elliott Sales de Andrade
592df094d8 Update to latest version. 2020-12-12 04:40:19 -05:00
Elliott Sales de Andrade
db3d07b08b Update to latest version. 2020-11-28 02:43:36 -05:00
Elliott Sales de Andrade
c47d502337 Update to latest version. 2020-11-19 01:30:33 -05:00
Elliott Sales de Andrade
6c4287e111 Update to latest version. 2020-11-09 22:25:04 -05:00
Elliott Sales de Andrade
d5ace9e40c Update to latest version. 2020-11-08 04:03:40 -05:00
Elliott Sales de Andrade
8741881598 Update to latest version. 2020-10-06 22:37:07 -04:00
Elliott Sales de Andrade
5fe9288511 Fix for cmake change. 2020-08-01 22:55:01 -04:00
Fedora Release Engineering
5cf0f64667 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-08-01 09:41:18 +00:00
Fedora Release Engineering
6e921bba14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-29 14:36:20 +00:00
Elliott Sales de Andrade
2d847226c9 Update to latest version. 2020-06-26 23:27:52 -04:00
Elliott Sales de Andrade
ac5311daea Update to latest version. 2020-06-13 01:39:30 -04:00
Elliott Sales de Andrade
705ac6e6c6 Merge branch 'f31' 2020-05-18 04:05:27 -04:00
Elliott Sales de Andrade
3937d792dd Update to latest version. 2020-05-18 04:05:08 -04:00
Elliott Sales de Andrade
acab7ad483 Merge branch 'f31' 2020-03-25 01:58:06 -04:00
Elliott Sales de Andrade
977ba7cabc Update to latest version. 2020-03-25 01:57:44 -04:00
Elliott Sales de Andrade
e53c2ac585 Merge branch 'f31' 2020-03-14 20:27:44 -04:00
Elliott Sales de Andrade
ff34109acd Update to latest version. 2020-03-14 20:27:34 -04:00
Elliott Sales de Andrade
92443f5520 Merge branch 'f31' 2020-03-03 02:17:55 -05:00
Elliott Sales de Andrade
852ad70c4d Update to latest version. 2020-03-03 02:17:27 -05:00
Elliott Sales de Andrade
aafb091482 Re-enable build on armv7hl and ppc64le. 2020-02-14 22:07:43 -05:00
Elliott Sales de Andrade
a0ee3c5351 Update to latest version. 2020-02-14 22:06:49 -05:00
Fedora Release Engineering
259e2454b0 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-31 04:17:46 +00:00
Elliott Sales de Andrade
c46db4e1f0 Update to latest version. 2020-01-09 04:55:52 -05:00
Elliott Sales de Andrade
d1354d1696 Rebuild for correct cppzmq. 2019-09-23 20:16:56 -04:00
Elliott Sales de Andrade
935864ea0e Remove unused patches. 2019-09-23 20:14:57 -04:00
9 changed files with 148 additions and 261 deletions

28
.gitignore vendored
View file

@ -1,2 +1,30 @@
/xeus-0.23.1.tar.gz
/xeus-0.23.2.tar.gz
/xeus-0.23.3.tar.gz
/xeus-0.23.5.tar.gz
/xeus-0.23.6.tar.gz
/xeus-0.23.8.tar.gz
/xeus-0.23.9.tar.gz
/xeus-0.23.14.tar.gz
/xeus-0.24.0.tar.gz
/xeus-0.24.1.tar.gz
/xeus-0.24.2.tar.gz
/xeus-0.24.3.tar.gz
/xeus-0.24.4.tar.gz
/xeus-0.25.0.tar.gz
/xeus-0.25.1.tar.gz
/xeus-0.25.3.tar.gz
/xeus-1.0.0.tar.gz
/xeus-1.0.1.tar.gz
/xeus-1.0.3.tar.gz
/xeus-1.0.4.tar.gz
/xeus-2.0.0.tar.gz
/xeus-3.0.5.tar.gz
/xeus-3.1.1.tar.gz
/xeus-3.1.3.tar.gz
/xeus-3.1.4.tar.gz
/xeus-3.1.5.tar.gz
/xeus-5.1.1.tar.gz
/xeus-5.2.3.tar.gz
/xeus-5.2.4.tar.gz
/xeus-5.2.6.tar.gz

18
.packit.yaml Normal file
View file

@ -0,0 +1,18 @@
# See the documentation for more information:
# https://packit.dev/docs/configuration/
---
jobs:
- job: pull_from_upstream
trigger: release
dist_git_branches:
rawhide:
fast_forward_merge_into:
- fedora-branched
- job: koji_build
trigger: commit
dist_git_branches:
- fedora-all
- job: bodhi_update
trigger: commit
dist_git_branches:
- fedora-all

View file

@ -1,31 +0,0 @@
From c15a7b64d1ab035dbdf0f4fdb0bada91cc4495f8 Mon Sep 17 00:00:00 2001
From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
Date: Sat, 7 Sep 2019 20:42:41 -0400
Subject: [PATCH] Don't set _any_ options if DISABLE_ARCH_NATIVE=ON.
On some platforms (e.g., s390x), even -mtune=generic is not allowed, so
just don't pass anything.
Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
---
CMakeLists.txt | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a331df6..9d54cf3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -236,9 +236,7 @@ macro(xeus_create_target target_name linkage output_name)
target_compile_options(${target_name} PUBLIC -Wunused-parameter -Wextra -Wreorder)
- if (DISABLE_ARCH_NATIVE)
- target_compile_options(${target_name} PUBLIC -mtune=generic)
- else ()
+ if (NOT DISABLE_ARCH_NATIVE)
target_compile_options(${target_name} PUBLIC -march=native)
endif ()
--
2.21.0

View file

@ -1,37 +0,0 @@
From aba9b9899f38849f6ac6ad668c72083efd92e4c9 Mon Sep 17 00:00:00 2001
From: Sylvain Corlay <sylvain.corlay@gmail.com>
Date: Thu, 5 Sep 2019 00:31:00 +0200
Subject: [PATCH] Do not use MDC2
---
CMakeLists.txt | 2 +-
src/xauthentication.cpp | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index fb91263..a331df6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -49,7 +49,7 @@ message(STATUS "xeus binary version: v${XEUS_BINARY_VERSION}")
set(nlohmann_json_REQUIRED_VERSION 3.2.0)
set(xtl_REQUIRED_VERSION 0.5)
set(cppzmq_REQUIRED_VERSION 4.3.0)
-set(zeromq_REQUIRED_VERSION 4.2.3)
+set(zeromq_REQUIRED_VERSION 4.2.5)
find_package(nlohmann_json ${nlohmann_json_REQUIRED_VERSION} REQUIRED)
find_package(xtl ${xtl_REQUIRED_VERSION} REQUIRED)
diff --git a/src/xauthentication.cpp b/src/xauthentication.cpp
index 8039fa9..ff95141 100644
--- a/src/xauthentication.cpp
+++ b/src/xauthentication.cpp
@@ -108,7 +108,8 @@ namespace xeus
static const std::map<std::string, const EVP_MD*(*)()> schemes = {
{"hmac-md5", EVP_md5},
{"hmac-sha1", EVP_sha1},
- {"hmac-mdc2", EVP_mdc2},
+ // MDC2 is disabled by default unless enable-mdc2 is specified
+ // {"hmac-mdc2", EVP_mdc2},
{"hmac-ripemd160", EVP_ripemd160},
#if OPENSSL_VERSION_NUMBER >= 0x10100000L
{"hmac-blake2b512", EVP_blake2b512},

3
README.packit Normal file
View file

@ -0,0 +1,3 @@
This repository is maintained by packit.
https://packit.dev/
The file was generated using packit 1.12.0.post1.dev18+gc39b0e7d4.

78
changelog Normal file
View file

@ -0,0 +1,78 @@
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Sun Jul 11 2021 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.0.3-1
- Update to latest version (#1965198)
- Fix build with Sphinx 4 (#1977665)
- Remove unnecessary RPATH directories
* Wed Feb 24 2021 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.0.1-1
- Update to latest version (#1929422)
* Sun Feb 07 2021 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.0.0-1
- Update to latest version (#1919068)
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.25.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Sat Dec 12 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.25.3-1
- Update to latest version (#1906253)
* Sat Nov 28 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.25.1-1
- Update to latest version (#1900027)
* Thu Nov 19 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.25.0-1
- Update to latest version (#1898255)
* Mon Nov 09 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.24.4-1
- Update to latest version (#1896206)
* Sun Nov 08 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.24.3-1
- Update to latest version (#1895579)
* Tue Oct 06 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.24.2-1
- Update to latest version (#1884918)
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.24.1-3
- Second attempt - Rebuilt for
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.24.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Fri Jun 26 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.24.1-1
- Update to latest version
* Sat Jun 13 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.24.0-1
- Update to latest version
* Mon May 18 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.23.14-1
- Update to latest version
* Wed Mar 25 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.23.9-1
- Update to latest version
* Sat Mar 14 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.23.8-1
- Update to latest version
* Tue Mar 03 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.23.6-1
- Update to latest version
* Fri Feb 14 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.23.5-1
- Update to latest version
- Re-enable build on armv7hl and ppc64le
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.23.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Thu Jan 09 2020 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.23.3-1
- Update to latest version
* Tue Sep 24 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.23.2-2
- rebuilt
* Mon Sep 23 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.23.2-1
- Update to latest version
* Sat Sep 07 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.23.1-1
- Initial package release

View file

@ -1,162 +0,0 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a331df6..228fb0b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -301,14 +301,14 @@ endif ()
# Tests
# =====
-OPTION(BUILD_TESTS "xeus test suite" OFF)
+include(CTest)
OPTION(DOWNLOAD_GTEST "build gtest from downloaded sources" OFF)
if(DOWNLOAD_GTEST OR GTEST_SRC_DIR)
- set(BUILD_TESTS ON)
+ set(BUILD_TESTING ON)
endif()
-if(BUILD_TESTS)
+if(BUILD_TESTING)
add_subdirectory(test)
endif()
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 4061248..e04d98d 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -81,6 +81,9 @@ endif()
find_package(Threads)
+find_program(PYTEST
+ NAMES pytest-3 pytest py.test-3 py.test)
+
include_directories(${GTEST_INCLUDE_DIRS})
set(XEUS_TESTS
@@ -115,23 +118,21 @@ foreach(filename IN LISTS XEUS_TESTS)
add_test(NAME ${targetname} COMMAND ${targetname})
endforeach()
-add_executable(test_xeus ${XEUS_TESTS} ${XEUS_HEADERS})
if(DOWNLOAD_GTEST OR GTEST_SRC_DIR)
- add_dependencies(test_xeus gtest_main)
-
# https://github.com/QuantStack/xeus/pull/126
+ # This should really just be post gtest and gtest_main targets, but CMake
+ # won't allow us to do that. So do it after the last test (which depends on
+ # those anyway.)
if (BUILD_SHARED_LIBS)
add_custom_command(
- TARGET test_xeus POST_BUILD
+ TARGET ${targetname} POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy "$<TARGET_FILE:gtest>" "${CMAKE_CURRENT_BINARY_DIR}/")
+
add_custom_command(
- TARGET test_xeus POST_BUILD
+ TARGET ${targetname} POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy "$<TARGET_FILE:gtest_main>" "${CMAKE_CURRENT_BINARY_DIR}/")
endif ()
endif()
-target_link_libraries(test_xeus ${xeus_TARGET} ${GTEST_BOTH_LIBRARIES} Threads::Threads ${nlohmann_json_TARGET})
-
-add_custom_target(xtest COMMAND test_xeus DEPENDS test_xeus)
# Test_kernel tests
# =================
@@ -141,9 +142,9 @@ set(TEST_KERNEL_SOURCES
test_interpreter.hpp
main.cpp)
-configure_file (
+configure_file(
"${XEUS_TEST_DIR}/test_kernel/kernel.json.in"
- "${XEUS_TEST_DIR}/test_kernel/kernel.json"
+ "kernels/test_kernel/kernel.json"
)
add_executable(test_kernel ${TEST_KERNEL_SOURCES})
@@ -153,12 +154,16 @@ target_compile_features(test_kernel PRIVATE cxx_std_11)
set(CONNECTION_FILE ${CMAKE_CURRENT_SOURCE_DIR}/connection.json)
-add_custom_command(
- TARGET test_kernel POST_BUILD
- COMMAND jupyter-kernelspec install "${XEUS_TEST_DIR}/test_kernel" --sys-prefix)
-add_custom_command(
- TARGET test_kernel POST_BUILD
- COMMAND ${CMAKE_COMMAND} -E copy "${XEUS_TEST_DIR}/test_kernel.py" "${CMAKE_CURRENT_BINARY_DIR}/")
+configure_file(
+ "${XEUS_TEST_DIR}/test_kernel.py"
+ "${CMAKE_CURRENT_BINARY_DIR}/"
+ COPYONLY)
+
+add_test(NAME test_kernel
+ COMMAND ${PYTEST} test_kernel.py)
+set_tests_properties(test_kernel
+ PROPERTIES
+ ENVIRONMENT "JUPYTER_PATH=${CMAKE_CURRENT_BINARY_DIR}")
# Test_kernel_control tests
# =========================
@@ -170,7 +175,7 @@ set(TEST_KERNEL_SPLIT_SOURCES
configure_file(
"${XEUS_TEST_DIR}/test_kernel_control/kernel.json.in"
- "${XEUS_TEST_DIR}/test_kernel_control/kernel.json"
+ "kernels/test_kernel_control/kernel.json"
)
add_executable(test_kernel_control ${TEST_KERNEL_SPLIT_SOURCES})
@@ -180,12 +185,16 @@ target_compile_features(test_kernel_control PRIVATE cxx_std_11)
set(CONNECTION_FILE ${CMAKE_CURRENT_SOURCE_DIR}/connection.json)
-add_custom_command(
- TARGET test_kernel_control POST_BUILD
- COMMAND jupyter-kernelspec install "${XEUS_TEST_DIR}/test_kernel_control" --sys-prefix)
-add_custom_command(
- TARGET test_kernel_control POST_BUILD
- COMMAND ${CMAKE_COMMAND} -E copy "${XEUS_TEST_DIR}/test_kernel_control.py" "${CMAKE_CURRENT_BINARY_DIR}/")
+configure_file(
+ "${XEUS_TEST_DIR}/test_kernel_control.py"
+ "${CMAKE_CURRENT_BINARY_DIR}/"
+ COPYONLY)
+
+add_test(NAME test_kernel_control
+ COMMAND ${PYTEST} test_kernel_control.py)
+set_tests_properties(test_kernel_control
+ PROPERTIES
+ ENVIRONMENT "JUPYTER_PATH=${CMAKE_CURRENT_BINARY_DIR}")
# Test_kernel_shell tests
# =======================
@@ -197,7 +206,7 @@ set(TEST_KERNEL_SPLIT_SOURCES
configure_file(
"${XEUS_TEST_DIR}/test_kernel_shell/kernel.json.in"
- "${XEUS_TEST_DIR}/test_kernel_shell/kernel.json"
+ "kernels/test_kernel_shell/kernel.json"
)
add_executable(test_kernel_shell ${TEST_KERNEL_SPLIT_SOURCES})
@@ -207,9 +216,13 @@ target_compile_features(test_kernel_shell PRIVATE cxx_std_11)
set(CONNECTION_FILE ${CMAKE_CURRENT_SOURCE_DIR}/connection.json)
-add_custom_command(
- TARGET test_kernel_shell POST_BUILD
- COMMAND jupyter-kernelspec install "${XEUS_TEST_DIR}/test_kernel_shell" --sys-prefix)
-add_custom_command(
- TARGET test_kernel_shell POST_BUILD
- COMMAND ${CMAKE_COMMAND} -E copy "${XEUS_TEST_DIR}/test_kernel_shell.py" "${CMAKE_CURRENT_BINARY_DIR}/")
+configure_file(
+ "${XEUS_TEST_DIR}/test_kernel_shell.py"
+ "${CMAKE_CURRENT_BINARY_DIR}/"
+ COPYONLY)
+
+add_test(NAME test_kernel_shell
+ COMMAND ${PYTEST} test_kernel_shell.py)
+set_tests_properties(test_kernel_shell
+ PROPERTIES
+ ENVIRONMENT "JUPYTER_PATH=${CMAKE_CURRENT_BINARY_DIR}")

View file

@ -1 +1 @@
SHA512 (xeus-0.23.2.tar.gz) = c322503ae6686f79028717cfb5e2355dc8dc5a5395537f76d0d1803d1dd6cf664010b8e59d5c9be140324a6bb74c580857cef3f06010b66c623b253db0a3e7db
SHA512 (xeus-5.2.6.tar.gz) = f931ed1ba0122ee3855f4ce6bb3e30506a3fd56011c9594679baad7382372aa39e2088d1e84c6c730334e27c94080fc3b381073e987afd68186d64626abb32f6

View file

@ -1,27 +1,23 @@
Name: xeus
Version: 0.23.2
Release: 1%{?dist}
Version: 5.2.6
Release: %autorelease
Summary: C++ implementation of the Jupyter kernel protocol
License: BSD
URL: https://github.com/QuantStack/xeus
Source0: https://github.com/QuantStack/xeus/archive/%{version}/%{name}-%{version}.tar.gz
License: BSD-3-Clause
URL: https://github.com/jupyter-xeus/xeus
Source0: https://github.com/jupyter-xeus/xeus/archive/%{version}/%{name}-%{version}.tar.gz
# xtl is broken on some arches.
# https://bugzilla.redhat.com/show_bug.cgi?id=1745840
# https://bugzilla.redhat.com/show_bug.cgi?id=1745841
ExcludeArch: armv7hl ppc64le
# https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
ExcludeArch: %{ix86}
BuildRequires: cmake >= 3.8
BuildRequires: cmake(cppzmq) >= 4.3.0
BuildRequires: cmake(nlohmann_json) >= 3.2.0
BuildRequires: cmake(xtl) >= 0.5
BuildRequires: cmake(nlohmann_json) >= 3.11.0
BuildRequires: doctest-devel
BuildRequires: doxygen
BuildRequires: gcc-c++
BuildRequires: gtest-devel
BuildRequires: libuuid-devel
BuildRequires: openssl-devel >= 1.0.1
BuildRequires: pkgconfig(libzmq) >= 4.2.5
BuildRequires: make
BuildRequires: pkgconfig(uuid)
BuildRequires: python3dist(breathe)
BuildRequires: python3dist(jupyter-kernel-test)
BuildRequires: python3dist(pytest)
@ -47,27 +43,25 @@ Development files for %{name} library.
%build
mkdir build && cd build
%cmake -DBUILD_STATIC_LIBS=OFF -DDISABLE_ARCH_NATIVE=ON ..
%make_build
%cmake -DXEUS_BUILD_STATIC_LIBS=OFF -DXEUS_DISABLE_ARCH_NATIVE=ON -DXEUS_BUILD_TESTS=ON
%cmake_build
make -C ../docs SPHINXBUILD=sphinx-build-3 html BUILDDIR=${PWD}
rm html/.buildinfo
make -C docs SPHINXBUILD=sphinx-build-3 html
rm docs/build/html/.buildinfo
%install
%make_install -C build
%cmake_install
%check
cd build
ctest -V
%ctest
%files
%doc README.md build/html
%doc README.md docs/build/html
%license LICENSE
%{_libdir}/libxeus.so.1*
%{_libdir}/libxeus.so.13{,.*}
%files devel
%{_includedir}/xeus/
@ -76,8 +70,4 @@ ctest -V
%changelog
* Mon Sep 23 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.23.2-1
- Update to latest version
* Sat Sep 07 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0.23.1-1
- Initial package release
%autochangelog