File python-parameters.spec of Package python-parameters

#
# spec file for package python-parameters
#
# Copyright (c) 2014 SUSE LINUX Products 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/
#


Name:           python-parameters
Version:        0.2.1
Release:        0
Summary:        Management of large, hierarchical parameter sets for modelling and simulation
License:        GPL-2.0
Group:          Development/Languages/Python
Url:            http://neuralensemble.org/parameters
Source:         https://pypi.python.org/packages/source/p/parameters/parameters-%{version}.tar.gz
BuildRequires:  python-PyYAML
BuildRequires:  python-devel
BuildRequires:  python-nose
BuildRequires:  python-numpy
BuildRequires:  python-scipy
Requires:       python-PyYAML
Requires:       python-numpy
Recommends:     python-scipy
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch:      noarch
%endif

%description
We consider it to be best practice to cleanly separate the parameters of a model
from the model itself. At the least, parameters should be defined in a separate
section at the start of a file. Ideally, they should be defined in a separate
file entirely. This makes version control easier, since the model code typically
changes less often than the parameters, and makes it easier to track a
simulation project, since the parameter sets can be stored in a database,
displayed in a GUI, etc.


The **Parameters** package provides Python classes to make it easier to work with
parameter sets for complex models.  In particular it provides tools for

* working with parameters for models that have a deep hierarchical structure;
* specifying that a parameter value should be drawn from a random distribution;
* specifying a range of values, for example for performing a sensitivity analysis;
* specifying the physical dimensions and range of permissible values of parameters;
* defining and iterating over multiple points in a parameter space;
* validation of parameter sets against a pre-defined schema.

%prep
%setup -q -n parameters-%{version}

%build
python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}

%check
nosetests

%files
%defattr(-,root,root,-)
%doc AUTHORS LICENSE.txt README.txt doc/*
%{python_sitelib}//parameters-%{version}-py*.egg-info
%{python_sitelib}//parameters/

%changelog
openSUSE Build Service is sponsored by