15
0
forked from pool/python-param
Files
python-param/python-param.spec
Tomáš Chvátal f3a0d242c3 Accepting request 697402 from home:pgajdos
- version update to 1.9.0
  New features:
    Added support for instance parameters, allowing parameter metadata
     to be modified per instance and allowing parameter objects to be
     passed to Panel objects (#306)
    Added label slot to Parameter, to allow overriding attribute name
     for display (#319)
    Added step slot to Parameter, e.g. to control Panel widget step
     size (#326)
    Added keywords_to_params utility for deducing Parameter types and
      ranges automatically (#317)
    Added support for multiple outputs from a Parameterized (#312)
    Added Selector as a more user-friendly version of ObjectSelector,
     accepting a list of options as a positional argument (#316)
  Changes affecting backwards compatibility:
    Changed from root logger to a param-specific logger; no change to
     API but will change format of error and warning messages (#330)
    Old abstract class Selector renamed to SelectorBase; should be no
     change unless user code added custom classes inherited from
     Selector without providing a constructor (#316)
  Bugfixes and other improvements:
    Various bugfixes (#320, #323, #327, #329)
    Other improvements (#315, #325)

OBS-URL: https://build.opensuse.org/request/show/697402
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-param?expand=0&rev=19
2019-04-24 09:30:16 +00:00

70 lines
2.3 KiB
RPMSpec

#
# spec file for package python-param
#
# 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
# 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 https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-param
Version: 1.9.0
Release: 0
Summary: Declarative Python programming using Parameters
License: BSD-3-Clause
Group: Development/Languages/Python
URL: http://param.pyviz.org/
Source0: https://github.com/ioam/param/archive/v%{version}.tar.gz
BuildRequires: %{python_module nose}
BuildRequires: %{python_module numpy}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Recommends: python-numpy
BuildArch: noarch
%python_subpackages
%description
Param is a library providing Parameters: Python attributes extended to
have features such as type and range checking, dynamically generated
values, documentation strings, default values, etc., each of which is
inherited from parent classes if not specified in a subclass.
Param contains only two required Python files, with no external
dependencies, and is provided freely for both non-commercial and
commercial use under a BSD license, so that it can easily be included
as part of other projects.
%prep
%setup -q -n param-%{version}
sed -i -e 's:version=get_setup_version("param"):version="%{version}":g' setup.py
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%python_expand nosetests-%{$python_bin_suffix}
%files %{python_files}
%license LICENSE.txt
%doc README.rst
%{python_sitelib}/param/
%{python_sitelib}/numbergen/
%{python_sitelib}/param-%{version}-py*.egg-info
%changelog