2014-07-14 13:07:38 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-param
|
|
|
|
|
#
|
2023-03-26 20:02:17 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2014-07-14 13:07:38 +00:00
|
|
|
#
|
|
|
|
|
# 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.
|
|
|
|
|
|
2019-03-13 13:44:13 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2014-07-14 13:07:38 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
2021-01-11 13:52:06 +00:00
|
|
|
%define modname param
|
2014-07-14 13:07:38 +00:00
|
|
|
Name: python-param
|
2023-12-16 19:12:47 +00:00
|
|
|
Version: 2.0.1
|
2014-07-14 13:07:38 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Declarative Python programming using Parameters
|
|
|
|
|
License: BSD-3-Clause
|
|
|
|
|
Group: Development/Languages/Python
|
2023-12-16 19:12:47 +00:00
|
|
|
URL: https://param.holoviz.org/index.html
|
2023-10-26 10:56:00 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/p/param/param-%{version}.tar.gz
|
2019-08-30 16:21:49 +00:00
|
|
|
Source100: python-param-rpmlintrc
|
2023-10-26 10:56:00 +00:00
|
|
|
BuildRequires: %{python_module base >= 3.8}
|
|
|
|
|
BuildRequires: %{python_module hatch_vcs}
|
|
|
|
|
BuildRequires: %{python_module hatchling}
|
2021-02-26 21:41:07 +00:00
|
|
|
BuildRequires: %{python_module jsonschema}
|
2023-10-26 10:56:00 +00:00
|
|
|
BuildRequires: %{python_module numpy}
|
|
|
|
|
BuildRequires: %{python_module pandas}
|
|
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
|
BuildRequires: %{python_module pytest-asyncio}
|
2020-08-03 14:57:47 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2023-10-26 10:56:00 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2018-05-12 18:17:06 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: python-rpm-macros
|
2022-02-16 09:36:01 +00:00
|
|
|
Recommends: python-jsonschema
|
2018-04-18 02:09:47 +00:00
|
|
|
Recommends: python-numpy
|
2021-02-26 21:41:07 +00:00
|
|
|
Recommends: python-pandas
|
2018-04-18 02:09:47 +00:00
|
|
|
BuildArch: noarch
|
2017-08-17 15:51:52 +00:00
|
|
|
%python_subpackages
|
2014-07-14 13:07:38 +00:00
|
|
|
|
|
|
|
|
%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
|
2020-08-03 14:57:47 +00:00
|
|
|
%autosetup -p1 -n param-%{version}
|
|
|
|
|
|
2019-08-30 16:21:49 +00:00
|
|
|
echo '{"git_describe": "v%{version}", "version_string": "%{version}"}' > param/.version
|
2014-07-14 13:07:38 +00:00
|
|
|
|
|
|
|
|
%build
|
2023-10-26 10:56:00 +00:00
|
|
|
%pyproject_wheel
|
2014-07-14 13:07:38 +00:00
|
|
|
|
|
|
|
|
%install
|
2023-10-26 10:56:00 +00:00
|
|
|
%pyproject_install
|
2018-04-18 02:09:47 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2014-07-14 13:07:38 +00:00
|
|
|
|
2018-07-17 08:52:08 +00:00
|
|
|
%check
|
2023-10-26 10:56:00 +00:00
|
|
|
%pytest
|
2021-01-03 19:47:42 +00:00
|
|
|
%{python_expand # make sure the correct version is reported. Other packages depend on it.
|
|
|
|
|
PYTHONPATH=%{buildroot}%{$python_sitelib}
|
|
|
|
|
$python -c '
|
|
|
|
|
import param
|
|
|
|
|
v = param.__version__
|
|
|
|
|
assert v == "%{version}", "wrong version reported: {}".format(v)
|
|
|
|
|
'
|
|
|
|
|
}
|
2018-07-17 08:52:08 +00:00
|
|
|
|
2017-08-17 15:51:52 +00:00
|
|
|
%files %{python_files}
|
2018-05-12 18:17:06 +00:00
|
|
|
%license LICENSE.txt
|
2022-02-16 09:36:01 +00:00
|
|
|
%doc README.md
|
2018-04-18 02:09:47 +00:00
|
|
|
%{python_sitelib}/param/
|
|
|
|
|
%{python_sitelib}/numbergen/
|
2023-10-26 10:56:00 +00:00
|
|
|
%{python_sitelib}/param-%{version}.dist-info/
|
2014-07-14 13:07:38 +00:00
|
|
|
|
|
|
|
|
%changelog
|