Accepting request 717721 from devel:languages:python:numeric
OBS-URL: https://build.opensuse.org/request/show/717721 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-GridDataFormats?expand=0&rev=2
This commit is contained in:
parent
a285bcb255
commit
376d9baaa0
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:f81d6b75aa7ebd9e8b64e14558c2d2583a0589829382beb4ef69860110261512
|
||||
size 63643
|
3
GridDataFormats-0.5.0.tar.gz
Normal file
3
GridDataFormats-0.5.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:f317ed60708de22d1b2a76ce89a00f722d903291b1055ff1018d441870c39d69
|
||||
size 1982315
|
@ -1,24 +0,0 @@
|
||||
From 069422d54344034b8f31bb19eee8a097b582c0e1 Mon Sep 17 00:00:00 2001
|
||||
From: Dominik 'Rathann' Mierzejewski <dominik@greysector.net>
|
||||
Date: Fri, 19 Jan 2018 14:56:52 +0100
|
||||
Subject: [PATCH] use longdouble instead of float128 in
|
||||
test_write_dx_ValueError
|
||||
|
||||
float128 doesn't exist on 32-bit arches and longdouble maps to float96
|
||||
there. See also https://github.com/numpy/numpy/issues/5272 .
|
||||
This fixes issue #44.
|
||||
---
|
||||
gridData/tests/test_dx.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/gridData/tests/test_dx.py b/gridData/tests/test_dx.py
|
||||
index 9c7714b..36c1e81 100644
|
||||
--- a/gridData/tests/test_dx.py
|
||||
+++ b/gridData/tests/test_dx.py
|
||||
@@ -85,5 +85,5 @@ def test_write_dx_byte(nptype="uint8", dxtype="byte"):
|
||||
|
||||
|
||||
@raises(ValueError)
|
||||
-def test_write_dx_ValueError(nptype="float128", dxtype="unknown"):
|
||||
+def test_write_dx_ValueError(nptype="longdouble", dxtype="unknown"):
|
||||
return _test_write_dx(nptype=nptype, dxtype=dxtype)
|
@ -1,3 +1,20 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 23 02:20:35 UTC 2019 - Todd R <toddrme2178@gmail.com>
|
||||
|
||||
- Update to 0.5.0
|
||||
+ Changes
|
||||
* supported/tested on Python 2.7, >=3.5 (official 3.4 support was
|
||||
dropped: it might still work but is not tested anymore)
|
||||
+ Enhancements
|
||||
* Allow parsing DX files by NAMD's GridForces module (new typequote keyword)
|
||||
* New keyword argument ``Grid(grid=<file>, file_format=<str>)`` to set file format when
|
||||
reading from a file
|
||||
+ Fixes
|
||||
* Allow parsing DX files by Pymol's buggy floating-point parser
|
||||
* Fixed loading of pickle files with .pkl suffix
|
||||
* Better input handling when constructing a Grid object
|
||||
- Remove upstream-included no_float128.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue May 15 18:49:17 UTC 2018 - toddrme2178@gmail.com
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-GridDataFormats
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -15,32 +15,25 @@
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
# Tests fail due to missing test directory
|
||||
%bcond_without tests
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-GridDataFormats
|
||||
Version: 0.4.0
|
||||
Version: 0.5.0
|
||||
Release: 0
|
||||
Summary: Python Tools for Reading and writing of data on regular grids
|
||||
License: GPL-3.0
|
||||
Group: Development/Libraries/Python
|
||||
Url: https://github.com/MDAnalysis/GridDataFormats/
|
||||
Source0: https://files.pythonhosted.org/packages/source/G/GridDataFormats/GridDataFormats-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM no_float128.patch -- https://github.com/MDAnalysis/GridDataFormats/issues/44
|
||||
Patch0: no_float128.patch
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module paramiko}
|
||||
BuildRequires: %{python_module numpy >= 1.0.3}
|
||||
BuildRequires: %{python_module paramiko}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module six}
|
||||
BuildRequires: %{python_module xml}
|
||||
%if %{with tests}
|
||||
BuildRequires: %{python_module nose}
|
||||
%endif
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module pytest}
|
||||
# /SECTION
|
||||
Requires: python-numpy >= 1.0.3
|
||||
Requires: python-six
|
||||
Requires: python-xml
|
||||
@ -56,7 +49,6 @@ write out the data again.
|
||||
|
||||
%prep
|
||||
%setup -n GridDataFormats-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@ -65,13 +57,10 @@ write out the data again.
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%if %{with tests}
|
||||
%check
|
||||
%python_expand nosetests-%{$python_bin_suffix}
|
||||
%endif
|
||||
%pytest
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root)
|
||||
%doc AUTHORS CHANGELOG README.rst
|
||||
%license COPYING*
|
||||
%{python_sitelib}/gridData
|
||||
|
Loading…
x
Reference in New Issue
Block a user