Upstream version bump
This commit is contained in:
parent
b5c8075b61
commit
673377ac85
4 changed files with 7 additions and 32 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1 +1,2 @@
|
|||
/xtensor-0.20.8.tar.gz
|
||||
/xtensor-0.21.2.tar.gz
|
||||
|
|
|
|||
|
|
@ -1,26 +0,0 @@
|
|||
From 842d79cc7aea882ad69dfe5ebcd6ad8a7be24624 Mon Sep 17 00:00:00 2001
|
||||
From: Zhihao Yuan <zy@simplerose.com>
|
||||
Date: Sat, 27 Jul 2019 21:08:09 -0500
|
||||
Subject: [PATCH] Fix UB when parsing 1-dimension npy
|
||||
|
||||
---
|
||||
include/xtensor/xnpy.hpp | 2 --
|
||||
test/CMakeLists.txt | 1 +
|
||||
test/files/xnpy_files/int.npy | Bin 0 -> 148 bytes
|
||||
test/test_xnpy.cpp | 5 +++++
|
||||
4 files changed, 6 insertions(+), 2 deletions(-)
|
||||
create mode 100644 test/files/xnpy_files/int.npy
|
||||
|
||||
diff --git a/include/xtensor/xnpy.hpp b/include/xtensor/xnpy.hpp
|
||||
index a3479a62..20b3c63c 100644
|
||||
--- a/include/xtensor/xnpy.hpp
|
||||
+++ b/include/xtensor/xnpy.hpp
|
||||
@@ -317,8 +317,6 @@ namespace xt
|
||||
dim_s = shape_s.substr(pos);
|
||||
}
|
||||
|
||||
- pop_char(dim_s, ',');
|
||||
-
|
||||
if (dim_s.length() == 0)
|
||||
{
|
||||
if (pos_next != std::string::npos)
|
||||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
SHA512 (xtensor-0.20.8.tar.gz) = a014914206a8a0e74056b41f7a059654ff7873a16dc42588146f6e6138df13ff97fc878c11360c36c83511361793fffebd6b02f2c141a68b5fdb040e0aa82324
|
||||
SHA512 (xtensor-0.21.2.tar.gz) = c7166bdf3e6d5b8278ef5d3280acb25f44b7ade78d4e3837a1498e9d26175297f8e7611e5748f74d55e3c58674f84a3b4251d56389bb6b04cff8ba71958b0c24
|
||||
|
|
|
|||
10
xtensor.spec
10
xtensor.spec
|
|
@ -1,6 +1,6 @@
|
|||
Name: xtensor
|
||||
Version: 0.20.8
|
||||
Release: 0%{?dist}
|
||||
Version: 0.21.2
|
||||
Release: 1%{?dist}
|
||||
Summary: C++ tensors with broadcasting and lazy computing
|
||||
License: BSD
|
||||
URL: http://xtensor.readthedocs.io/
|
||||
|
|
@ -8,9 +8,6 @@ URL: http://xtensor.readthedocs.io/
|
|||
%global github https://github.com/QuantStack/xtensor
|
||||
Source0: %{github}/archive/%{version}/%{name}-%{version}.tar.gz
|
||||
|
||||
#see https://github.com/QuantStack/xtensor/commit/842d79cc7aea882ad69dfe5ebcd6ad8a7be24624
|
||||
Patch1: 842d79cc7aea882ad69dfe5ebcd6ad8a7be24624.patch
|
||||
|
||||
# because xtl does so for armv7hl && ppc64le
|
||||
# because tests fail for s390x
|
||||
ExcludeArch: armv7hl ppc64le s390x
|
||||
|
|
@ -68,5 +65,8 @@ Requires: xsimd-devel
|
|||
%{_libdir}/pkgconfig/%{name}.pc
|
||||
|
||||
%changelog
|
||||
* Thu Jan 16 2020 sguelton@redhat.com - 0.21.2-1
|
||||
- Upstream version bump
|
||||
|
||||
* Tue Sep 3 2019 sguelton@redhat.com - 0.20.8-1
|
||||
- Initial package
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue