Accepting request 609904 from devel:languages:python
Python Tools for Reading and writing of data on regular grids OBS-URL: https://build.opensuse.org/request/show/609904 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-GridDataFormats?expand=0&rev=1
This commit is contained in:
commit
a285bcb255
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
3
GridDataFormats-0.4.0.tar.gz
Normal file
3
GridDataFormats-0.4.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:f81d6b75aa7ebd9e8b64e14558c2d2583a0589829382beb4ef69860110261512
|
||||||
|
size 63643
|
24
no_float128.patch
Normal file
24
no_float128.patch
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
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)
|
65
python-GridDataFormats.changes
Normal file
65
python-GridDataFormats.changes
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue May 15 18:49:17 UTC 2018 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
- Add no_float128.patch
|
||||||
|
Fixes tests
|
||||||
|
See https://github.com/MDAnalysis/GridDataFormats/issues/44
|
||||||
|
From https://github.com/MDAnalysis/GridDataFormats/pull/45/commits/069422d54344034b8f31bb19eee8a097b582c0e1
|
||||||
|
Should be in next release
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri May 11 22:22:31 UTC 2018 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
- Update to 0.4.0
|
||||||
|
* Type of DX arrays is now set based on the numpy array dtype or can
|
||||||
|
be manually set by the user to increase interoperability with
|
||||||
|
tools such as PyMOL (issue #35)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon May 15 21:09:08 UTC 2017 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
- Implement single-spec version.
|
||||||
|
- Fix source URL.
|
||||||
|
- Run unit tests.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Nov 17 10:13:47 UTC 2016 - alinm.elena@gmail.com
|
||||||
|
|
||||||
|
- updated to version 0.3.3
|
||||||
|
* removed SUMMARY.txt
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Mar 12 13:46:25 UTC 2014 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
- Update to 2.4
|
||||||
|
* No upstream changelog
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Oct 24 11:06:21 UTC 2013 - speilicke@suse.com
|
||||||
|
|
||||||
|
- Require python-setuptools instead of distribute (upstreams merged)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jun 22 12:36:30 UTC 2012 - saschpe@suse.de
|
||||||
|
|
||||||
|
- Update to version 0.2.2:
|
||||||
|
+ Upstream provides no changelog
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jan 12 10:19:15 UTC 2012 - saschpe@suse.de
|
||||||
|
|
||||||
|
- Package AUTHORS, COPYING, README
|
||||||
|
- Spec cleanup:
|
||||||
|
+ Removed %clean section (sane default)
|
||||||
|
+ Simpler macros
|
||||||
|
+ No CFLAGS for Python-only package needed
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jan 11 14:56:08 UTC 2012 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
- Cleaned up spec file
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Sep 8 23:50:57 UTC 2011 - alinm.elena@gmail.com
|
||||||
|
|
||||||
|
- initial commit
|
||||||
|
|
80
python-GridDataFormats.spec
Normal file
80
python-GridDataFormats.spec
Normal file
@ -0,0 +1,80 @@
|
|||||||
|
#
|
||||||
|
# spec file for package python-GridDataFormats
|
||||||
|
#
|
||||||
|
# Copyright (c) 2018 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
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# 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
|
||||||
|
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 six}
|
||||||
|
BuildRequires: %{python_module xml}
|
||||||
|
%if %{with tests}
|
||||||
|
BuildRequires: %{python_module nose}
|
||||||
|
%endif
|
||||||
|
Requires: python-numpy >= 1.0.3
|
||||||
|
Requires: python-six
|
||||||
|
Requires: python-xml
|
||||||
|
Recommends: python-scipy
|
||||||
|
BuildArch: noarch
|
||||||
|
%python_subpackages
|
||||||
|
|
||||||
|
%description
|
||||||
|
The *gridDataFormats* package provides classes to unify reading and
|
||||||
|
writing n-dimensional datasets. One can read grid data from files,
|
||||||
|
make them available as a :class:`Grid` object, and allows one to
|
||||||
|
write out the data again.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -n GridDataFormats-%{version}
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
%python_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%python_install
|
||||||
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
|
%if %{with tests}
|
||||||
|
%check
|
||||||
|
%python_expand nosetests-%{$python_bin_suffix}
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%files %{python_files}
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%doc AUTHORS CHANGELOG README.rst
|
||||||
|
%license COPYING*
|
||||||
|
%{python_sitelib}/gridData
|
||||||
|
%{python_sitelib}/GridDataFormats-%{version}-py*.egg-info
|
||||||
|
|
||||||
|
%changelog
|
Loading…
x
Reference in New Issue
Block a user