Commit 88ed97d7 authored by Jan Kotanski's avatar Jan Kotanski
Browse files

New upstream version 0.4.18

parent 842d6c6f
# Auto detect text files and perform LF normalization
* text=auto
# Source files
# ============
*.pxd text
*.py text
*.py3 text
*.pyw text
*.pyx text
*.xml text
*.md text
*.rst text
*.bat text
*.sh text
*.yaml text
*.cfg text
*.ipynb text
# Binary files
# ============
*.nxs binary
*.h5 binary
*.db binary
*.p binary
*.pkl binary
*.pyc binary
*.pyd binary
*.pyo binary
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.tif binary
*.tiff binary
*.svg binary
*.eps binary
*.ico binary
# Versioneer setting
#===================
src/nexusformat/_version.py export-subst
*.py[cod]
# C extensions
*.so
# Packages
*.egg
*.egg-info
dist
build
eggs
parts
bin
var
sdist
develop-eggs
.installed.cfg
lib
lib64
MANIFEST
# Installer logs
pip-log.txt
# Unit test / coverage reports
.coverage
.tox
nosetests.xml
# Patch files
*.patch
# Translations
*.mo
# Mr Developer
.mr.developer.cfg
# OSX files
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
Icon?
# PyCharm Files
.idea
# eclipse
.settings
.project
.pydevproject
# Emacs backup files
*~
Licensing Terms for NeXpy
-------------------------
NeXpy is licensed under the terms of the Modified BSD License (also known as
New or Revised BSD), as follows:
Copyright (c) 2014, NeXpy Development Team
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 name of the NeXpy Development Team nor the names of its
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.
About the NeXpy Development Team
----------------------------------
The NeXpy Development Team is the set of all contributors to the NeXpy
project on the Github at https://github.com/nexpy/nexpy. The project is
currently led by Ray Osborn.
Copyright
---------
The following banner should be used in any source code file to indicate the
copyright and license terms:
#-----------------------------------------------------------------------------
# Copyright (c) 2014, NeXpy Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING, distributed with this software.
#-----------------------------------------------------------------------------
Metadata-Version: 1.1
Name: nexusformat
Version: 0.4.17+54.gad6fbe0
Summary: nexusformat: Python API to access NeXus data
Home-page: http://nexpy.github.io/nexpy/
Author: NeXpy Development Team
Author-email: nexpydev@gmail.com
License: BSD
Download-URL: https://github.com/nexpy/nexusformat/
Description:
This package provides a Python API to open, create, and manipulate `NeXus data
<http://www.nexusformat.org/>`_ written in the HDF5 format. The 'nexusformat'
package provides the underlying API for `NeXpy
<http://nexpy.github.io/nexpy>`_, which provides a GUI interface. It also
contains a command-line script, `nxstack` for merging TIFF or CBF files into a
single HDF5 array.
The latest development version is always available from `NeXpy's GitHub
site <https://github.com/nexpy/nexusformat>`_.
Platform: any
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: BSD License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Scientific/Engineering :: Visualization
Introduction
============
This package provides a Python API to open, create, and manipulate [NeXus
data](http://www.nexusformat.org/) written in the HDF5 format. The
'nexusformat' package provides the underlying API for
[NeXpy](http://nexpy.github.io/nexpy), which provides a GUI interface for
visualizing and analyzing NeXus data.
The latest development version is always available from [NeXpy's GitHub
repository](https://github.com/nexpy/nexusformat).
Installing and Running
======================
Released versions of `nexusformat` can be installed using either
```
$ pip install nexusformat
```
or
```
$ easy_install nexusformat
```
If you have an Anaconda installation, use::
```
$ conda install -c nexpy nexusformat
```
The source code can be downloaded from the NeXpy Git repository:
```
$ git clone http://github.com/nexpy/nexusformat.git
```
To install in the standard Python location:
```
$ python setup.py install
```
To install in an alternate location:
```
$ python setup.py install --prefix=/path/to/installation/dir
```
Prerequisites
=============
The following libraries are used by the full installation of NeXpy. There is
more details of the nature of these dependencies in the
[NeXpy documentation](http://nexpy.github.io/nexpy).
* h5py http://www.h5py.org
* numpy http://numpy.org
User Support
============
Consult the [NeXpy documentation](http://nexpy.github.io/nexpy) for details
of both the Python command-line API and how to use the NeXpy GUI. If you have
any general questions concerning the use of NeXpy, please address
them to the
[NeXus Mailing List](http://download.nexusformat.org/doc/html/mailinglist.html).
If you discover any bugs, please submit a
[Github issue](https://github.com/nexpy/nexusformat/issues), preferably with
relevant tracebacks.
Installation
============
Released versions of the NeXus Python API are available on `PyPI
<https://pypi.python.org/pypi/nexusformat/>`_. If you have the `Python Setup
Tools <https://pypi.python.org/pypi/setuptools>`_ installed, then you can
install using either::
$ pip install nexusformat
or::
$ easy_install nexusformat
or::
$ conda install -c https://conda.anaconda.org/nexpy nexusformat
If you have trouble with the pip or easy_install installations, you can install
the package from the source code either by downloading one of the
`Github releases <https://github.com/nexpy/nexusformat/releases>`_ or by cloning
the latest development version in the
`NeXpy Git repository <https://github.com/nexpy/nexusformat>`_::
$ git clone https://github.com/nexpy/nexusformat.git
You can then install NeXpy by changing to the source directory and typing::
$ python setup.py install
To install in an alternate location::
$ python setup.py install --prefix=/path/to/installation/dir
Required Libraries
==================
================= ===================================================
Library URL
================= ===================================================
h5py http://www.h5py.org
numpy http://numpy.scipy.org/
================= ===================================================
Versioning
-------------------
This package uses `Semantic Versioning <http://semver.org/spec/v2.0.0.html>`_.
User Support
------------
Consult the `NeXpy documentation <http://nexpy.github.io/nexpy/>`_ for help. If
you have any general questions concerning the use of this module, please address
them to the `NeXus Mailing List
<http://download.nexusformat.org/doc/html/mailinglist.html>`_. If you discover
any bugs, please submit a `Github issue
<https://github.com/nexpy/nexusformat/issues>`_, preferably with relevant
tracebacks.
Acknowledgements
----------------
The `NeXus format <http://www.nexusformat.org>`_ for neutron, x-ray and muon
data is developed by an international collaboration under the supervision of the
`NeXus International Advisory Committee <http://wiki.nexusformat.org/NIAC>`_.
The Python tree API used in NeXpy was originally developed by Paul Kienzle, who
also wrote the standard Python interface to the NeXus C-API.
"%PYTHON%" setup.py install
if errorlevel 1 exit 1
#!/bin/bash
$PYTHON setup.py install --single-version-externally-managed --record installed_files.txt
package:
name: nexusformat
version: "0.4.18"
source:
git_url: https://github.com/nexpy/nexusformat.git
git_tag: v0.4.18
build:
entry_points:
- nxstack = nexusformat.scripts.nxstack:main
number: 0
requirements:
build:
- python
- setuptools
- numpy >=1.6.0
- h5py
run:
- python
- numpy >=1.6.0
- h5py
test:
imports:
- nexusformat
- nexusformat.nexus
about:
home: http://nexpy.github.io/nexusformat/
license: BSD License
summary: 'nexusformat: Python API to access NeXus data'
%global srcname nexusformat
%define debug_package %{nil}
Name: python-%{srcname}
Version: 0.3.1
Release: 1%{?dist}
Summary: Python API to NeXus files using h5py
License: BSD
URL: https://nexpy.github.io/nexpy/
Source0: https://github.com/nexpy/nexusformat/archive/v%{version}.zip
Requires: h5py
Requires: numpy
BuildRequires: numpy
BuildRequires: python2-devel
BuildRequires: python-setuptools
BuildArch: noarch
%description
Python API to NeXus files using h5py
%prep
%autosetup -n %{srcname}-%{version}
%build
%py2_build
%install
%py2_install
%files
%doc README.rst README.md README
%{python2_sitelib}/nexusformat/*
%{python2_sitelib}/nexusformat-%{version}-py2*.egg-info/*
%{_bindir}/nxstack
%{_bindir}/nxstartserver
%changelog
* Thu Apr 7 2016 Stuart Campbell <campbellsi@ornl.gov> - 0.2.2-1
- Initial package
[versioneer]
vcs = git
VCS = git
style = pep440
versionfile_source = src/nexusformat/_version.py
versionfile_build = nexusformat/_version.py
tag_prefix = v
[egg_info]
tag_build =
tag_date = 0
......@@ -52,6 +52,7 @@ setup (name = nexusformat.__package_name__, # NeXpy
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Visualization'],
)
Metadata-Version: 1.1
Name: nexusformat
Version: 0.4.17+54.gad6fbe0
Summary: nexusformat: Python API to access NeXus data
Home-page: http://nexpy.github.io/nexpy/
Author: NeXpy Development Team
Author-email: nexpydev@gmail.com
License: BSD
Download-URL: https://github.com/nexpy/nexusformat/
Description:
This package provides a Python API to open, create, and manipulate `NeXus data
<http://www.nexusformat.org/>`_ written in the HDF5 format. The 'nexusformat'
package provides the underlying API for `NeXpy
<http://nexpy.github.io/nexpy>`_, which provides a GUI interface. It also
contains a command-line script, `nxstack` for merging TIFF or CBF files into a
single HDF5 array.
The latest development version is always available from `NeXpy's GitHub
site <https://github.com/nexpy/nexusformat>`_.
Platform: any
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: BSD License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Scientific/Engineering :: Visualization
MANIFEST.in
README
setup.cfg
setup.py
versioneer.py
src/nexusformat/__init__.py
src/nexusformat/_version.py
src/nexusformat/requires.py
src/nexusformat.egg-info/PKG-INFO
src/nexusformat.egg-info/SOURCES.txt
src/nexusformat.egg-info/dependency_links.txt
src/nexusformat.egg-info/entry_points.txt
src/nexusformat.egg-info/requires.txt
src/nexusformat.egg-info/top_level.txt
src/nexusformat/nexus/__init__.py
src/nexusformat/nexus/plot.py
src/nexusformat/nexus/remote.py
src/nexusformat/nexus/tree.py
src/nexusformat/scripts/__init__.py
src/nexusformat/scripts/nxstack.py
\ No newline at end of file
[console_scripts]
nxstack = nexusformat.scripts.nxstack:main
# This file was generated by 'versioneer.py' (0.15) from
# revision-control system data, or from the parent directory name of an
# unpacked source archive. Distribution tarballs contain a pre-generated copy
# of this file.
# This file helps to compute a version number in source trees obtained from
# git-archive tarball (such as those provided by githubs download-from-tag
# feature). Distribution tarballs (built by setup.py sdist) and build
# directories (produced by setup.py build) will contain a much shorter file
# that just contains the computed version number.
import json
# This file is released into the public domain. Generated by
# versioneer-0.15 (https://github.com/warner/python-versioneer)
import errno
import os
import re
import subprocess
import sys
version_json = '''
{
"dirty": false,
"error": null,
"full-revisionid": "ad6fbe0e1ff9b26b1a3facea884332bb74ec265c",
"version": "0.4.17+54.gad6fbe0"
}
''' # END VERSION_JSON
def get_keywords():
# these strings will be replaced by git during git-archive.
# setup.py/versioneer.py will grep for the variable names, so they must
# each be defined on a line of their own. _version.py will just call
# get_keywords().
git_refnames = " (HEAD -> master, tag: v0.4.18)"
git_full = "b9de7f7dba7e2b4c623aa05f19bee12fbc4ec3a9"
keywords = {"refnames": git_refnames, "full": git_full}
return keywords
class VersioneerConfig:
pass
def get_config():
# these strings are filled in when 'setup.py versioneer' creates
# _version.py
cfg = VersioneerConfig()
cfg.VCS = "git"
cfg.style = "pep440"
cfg.tag_prefix = "v"
cfg.parentdir_prefix = "None"
cfg.versionfile_source = "src/nexusformat/_version.py"
cfg.verbose = False
return cfg
class NotThisMethod(Exception):
pass
LONG_VERSION_PY = {}
HANDLERS = {}
def register_vcs_handler(vcs, method): # decorator
def decorate(f):
if vcs not in HANDLERS:
HANDLERS[vcs] = {}
HANDLERS[vcs][method] = f
return f
return decorate
def run_command(commands, args, cwd=None, verbose=False, hide_stderr=False):
assert isinstance(commands, list)
p = None
for c in commands:
try:
dispcmd = str([c] + args)
# remember shell=False, so use git.cmd on windows, not just git
p = subprocess.Popen([c] + args, cwd=cwd, stdout=subprocess.PIPE,
stderr=(subprocess.PIPE if hide_stderr
else None))
break
except EnvironmentError:
e = sys.exc_info()[1]
if e.errno == errno.ENOENT:
continue
if verbose:
print("unable to run %s" % dispcmd)
print(e)
return None
else:
if verbose:
print("unable to find command, tried %s" % (commands,))
return None
stdout = p.communicate()[0].strip()
if sys.version_info[0] >= 3:
stdout = stdout.decode()
if p.returncode != 0:
if verbose:
print("unable to run %s (error)" % dispcmd)
return None
return stdout
def versions_from_parentdir(parentdir_prefix, root, verbose):
# Source tarballs conventionally unpack into a directory that includes
# both the project name and a version string.
dirname = os.path.basename(root)
if not dirname.startswith(parentdir_prefix):
if verbose:
print("guessing rootdir is '%s', but '%s' doesn't start with "
"prefix '%s'" % (root, dirname, parentdir_prefix))
raise NotThisMethod("rootdir doesn't start with parentdir_prefix")
return {"version": dirname[len(parentdir_prefix):],
"full-revisionid": None,
"dirty": False, "error": None}
@register_vcs_handler("git", "get_keywords")
def git_get_keywords(versionfile_abs):
# the code embedded in _version.py can just fetch the value of these
# keywords. When used from setup.py, we don't want to import _version.py,