diff --git a/README.md b/README.md index 6a7bfb1afa86413df9076a9ac8e89619f9019bd8..9d3d82692b1b45529cce6296d8f527b453bf2273 100644 --- a/README.md +++ b/README.md @@ -1,37 +1,94 @@ -# python-h5io +.. -*- mode: rst -*- -#### 介绍 -Python Objects Onto HDF5 +|Travis|_ |Appveyor|_ |Codecov|_ -#### 软件架构 -软件架构说明 +.. |Travis| image:: https://api.travis-ci.org/h5io/h5io.png?branch=master +.. _Travis: https://travis-ci.org/h5io/h5io +.. |Appveyor| image:: https://ci.appveyor.com/api/projects/status/puwaarmllxq5wfvm?svg=true +.. _Appveyor: https://ci.appveyor.com/project/larsoner/h5io/branch/master -#### 安装教程 +.. |Codecov| image:: https://codecov.io/gh/h5io/h5io/branch/master/graph/badge.svg +.. _Codecov: https://codecov.io/gh/h5io/h5io -1. xxxx -2. xxxx -3. xxxx +`h5io `_ +======================================================= -#### 使用说明 +h5io is a package designed to facilitate saving some standard Python +objects into the forward-compatible HDF5 format. It is a higher-level +package than ``h5py``. -1. xxxx -2. xxxx -3. xxxx +Get the latest code +^^^^^^^^^^^^^^^^^^^ -#### 参与贡献 +To get the latest code using git, simply type:: -1. Fork 本仓库 -2. 新建 Feat_xxx 分支 -3. 提交代码 -4. 新建 Pull Request + git clone git://github.com/h5io/h5io.git +If you don't have git installed, you can download a zip or tarball +of the latest code: https://github.com/h5io/h5io/archives/master -#### 码云特技 +Install h5io +^^^^^^^^^^^^ -1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md -2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com) -3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目 -4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目 -5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) -6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) +As any Python packages, to install h5io, go in the source code directory +and do:: + + python setup.py install + +or if you don't have admin access to your python setup (permission denied +when install) use:: + + python setup.py install --user + +You can also install the latest release version with pip:: + + pip install h5io --upgrade + +or for the latest development version (the most up to date):: + + pip install -e git+https://github.com/h5io/h5io#egg=h5io-dev --user + +Dependencies +^^^^^^^^^^^^ + +The required dependencies to build the software are ``h5py`` and ``numpy``. +``scipy`` is required for sparse matrix IO support. + +Licensing +^^^^^^^^^ + +h5io is **BSD-licenced** (3 clause): + + This software is OSI Certified Open Source Software. + OSI Certified is a certification mark of the Open Source Initiative. + + Copyright (c) 2011, authors of h5io + All rights reserved. + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + * Neither the names of h5io authors nor the names of any + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + + **This software is provided by the copyright holders and contributors + "as is" and any express or implied warranties, including, but not + limited to, the implied warranties of merchantability and fitness for + a particular purpose are disclaimed. In no event shall the copyright + owner or contributors be liable for any direct, indirect, incidental, + special, exemplary, or consequential damages (including, but not + limited to, procurement of substitute goods or services; loss of use, + data, or profits; or business interruption) however caused and on any + theory of liability, whether in contract, strict liability, or tort + (including negligence or otherwise) arising in any way out of the use + of this software, even if advised of the possibility of such + damage.** diff --git a/h5io-0.1.2.tar.gz b/h5io-0.1.2.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..cb3c90327db2ea8d3e848caf59df62a49b759137 Binary files /dev/null and b/h5io-0.1.2.tar.gz differ diff --git a/python-h5io.spec b/python-h5io.spec new file mode 100644 index 0000000000000000000000000000000000000000..8461e98875381462b875c908a1ecebb7fcaaffe6 --- /dev/null +++ b/python-h5io.spec @@ -0,0 +1,59 @@ +%global modname h5io + +Name: python-%{modname} +Version: 0.1.2 +Release: 1 +Summary: Read and write simple Python objects using HDF5 + +License: BSD +URL: https://github.com/h5io/h5io +Source0: https://github.com/h5io/h5io/archive/refs/tags/h5io-0.1.2.tar.gz + +BuildArch: noarch + +%description +h5io is a package designed to facilitate saving some standard Python objects +into the forward-compatible HDF5 format. +It is a higher-level package than h5py. + +%package -n python3-%{modname} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{modname}} +BuildRequires: python3-devel +BuildRequires: python3dist(setuptools) +BuildRequires: python3dist(numpy) +BuildRequires: python3dist(h5py) +BuildRequires: python3dist(scipy) +BuildRequires: python3dist(pytest) +BuildRequires: python3dist(pytest-cov) +Requires: python%{python3_version}dist(numpy) +Requires: python%{python3_version}dist(h5py) +Recommends: python%{python3_version}dist(scipy) + +%description -n python3-%{modname} +h5io is a package designed to facilitate saving some standard Python objects +into the forward-compatible HDF5 format. +It is a higher-level package than h5py. + +Python 3 version. + +%prep +%autosetup -n %{modname}-%{modname}-%{version} + +%build +%py3_build + +%install +%py3_install + +%check +pytest-%{python3_version} -v + +%files -n python3-%{modname} +%license LICENSE.txt +%doc README.rst +%{python3_sitelib}/%{modname}* + +%changelog +* Fri Jul 9 2021 liuzhaoyang - 1.3-1 +- Package init