2020-03-31 07:22:51 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-dash-core-components
|
|
|
|
|
#
|
2020-03-31 07:34:45 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2020-03-31 07:22:51 +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.
|
|
|
|
|
|
2020-03-31 07:34:45 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
|
#
|
2020-03-31 07:22:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2020-03-31 07:34:45 +00:00
|
|
|
%global flavor @BUILD_FLAVOR@%{nil}
|
|
|
|
|
%if "%{flavor}" == "test"
|
|
|
|
|
%define psuffix -test
|
|
|
|
|
%bcond_without test
|
|
|
|
|
%else
|
|
|
|
|
%define psuffix %{nil}
|
|
|
|
|
%bcond_with test
|
|
|
|
|
%endif
|
|
|
|
|
%define skip_python2 1
|
|
|
|
|
Name: python-dash-core-components%{psuffix}
|
2020-03-31 07:22:51 +00:00
|
|
|
Version: 1.8.1
|
|
|
|
|
Release: 0
|
|
|
|
|
Summary: Core component suite for Dash
|
2020-03-31 07:34:45 +00:00
|
|
|
License: MIT
|
|
|
|
|
URL: https://github.com/plotly/dash-core-components
|
|
|
|
|
Source: https://github.com/plotly/dash-core-components/archive/v%{version}.tar.gz
|
2020-03-31 07:22:51 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
|
BuildRequires: fdupes
|
2020-03-31 07:34:45 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
|
Requires: python-dash
|
2020-03-31 07:22:51 +00:00
|
|
|
BuildArch: noarch
|
2020-03-31 07:34:45 +00:00
|
|
|
%if %{with test}
|
|
|
|
|
BuildRequires: %{python_module dash}
|
|
|
|
|
BuildRequires: %{python_module pandas}
|
|
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
|
BuildRequires: %{python_module selenium}
|
|
|
|
|
%endif
|
2020-03-31 07:22:51 +00:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Core component suite for Dash
|
|
|
|
|
|
|
|
|
|
%prep
|
2020-03-31 07:34:45 +00:00
|
|
|
%setup -q -n dash-core-components-%{version}
|
2020-03-31 07:22:51 +00:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
|
|
%install
|
2020-03-31 07:34:45 +00:00
|
|
|
%if !%{with test}
|
2020-03-31 07:22:51 +00:00
|
|
|
%python_install
|
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2020-03-31 07:34:45 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%if %{with test}
|
2020-03-31 08:26:16 +00:00
|
|
|
# needs working selenium and chromedriver
|
|
|
|
|
# when fixed this should be enabled
|
|
|
|
|
#%%pytest
|
2020-03-31 07:34:45 +00:00
|
|
|
%endif
|
2020-03-31 07:22:51 +00:00
|
|
|
|
2020-03-31 07:34:45 +00:00
|
|
|
%if !%{with test}
|
2020-03-31 07:22:51 +00:00
|
|
|
%files %{python_files}
|
2020-03-31 07:34:45 +00:00
|
|
|
%doc README.md
|
|
|
|
|
%license LICENSE
|
2020-03-31 07:22:51 +00:00
|
|
|
%{python_sitelib}/*
|
2020-03-31 07:34:45 +00:00
|
|
|
%endif
|
2020-03-31 07:22:51 +00:00
|
|
|
|
|
|
|
|
%changelog
|