- Update to version 1.16.0 * #863 Adds a new Download component. Along with this several utility functions are added to help construct the appropriate data format: dcc.send_file - send a file from disk dcc.send_data_frame - send a DataFrame, using one of its writer methods dcc.send_bytes - send a bytestring or the result of a bytestring writer dcc.send_string - send a string or the result of a string writer * #923 Set autoComplete to off in dcc.Dropdown. This fixes #808 * #930 Fixed a bug #867 with DatePickerRange that would sometimes shift the allowed dates by one day. * #934 Fixed a bug in EnhancedTab component that ignored disabled_className property - Release 1.15.0 * #905 Make sure the figure prop of dcc.Graph receives updates from user interactions in the graph, by using the same layout object as provided in the prop rather than cloning it. Fixes #879. * #903 Part of fixing dash import bug https://github.com/plotly/dash/issues/1143 * #911, #906 Upgraded Plotly.js to 1.58.4 Patch Release 1.58.4 Patch Release 1.58.3 * #888 Adds a drag_value prop to dcc.Sliderto be able to fire callbacks from dragging and releasing the slider. - Skip python36 buildrequire for pandas tests: No numpy, no pandas (we don't test it right now anyway) OBS-URL: https://build.opensuse.org/request/show/884139 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-dash-core-components?expand=0&rev=10
85 lines
2.6 KiB
RPMSpec
85 lines
2.6 KiB
RPMSpec
#
|
|
# spec file for package python-dash-core-components-test
|
|
#
|
|
# Copyright (c) 2021 SUSE LLC
|
|
#
|
|
# 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-%{**}}
|
|
%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
|
|
# Upstream cannot tag the release version, but we need the github archive for the test files
|
|
# https://github.com/plotly/dash-core-components/issues/886
|
|
# get this from the master branch (dev is the default but does not have the full package)
|
|
%define commit 44949a48a4c28ab6164eb4c823a346862ae2cfeb
|
|
Name: python-dash-core-components%{psuffix}
|
|
Version: 1.16.0
|
|
Release: 0
|
|
Summary: Core component suite for Dash
|
|
License: MIT
|
|
URL: https://github.com/plotly/dash-core-components
|
|
Source: https://github.com/plotly/dash-core-components/archive/%{commit}.tar.gz#/dash-core-components-%{version}-gh.tar.gz
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
BuildArch: noarch
|
|
%if %{with test}
|
|
BuildRequires: %{python_module dash}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module selenium}
|
|
BuildRequires: %{python_module pandas if (%python-base without python36-base)}
|
|
%endif
|
|
%python_subpackages
|
|
|
|
%description
|
|
Core component suite for Dash
|
|
|
|
%prep
|
|
%setup -q -n dash-core-components-%{commit}
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%if !%{with test}
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
%endif
|
|
|
|
%check
|
|
%if %{with test}
|
|
# simplest integration tests as run in .circleci/
|
|
%pyunittest tests/test_dash_import.py -v
|
|
# fulls suite needs working selenium and chromedriver
|
|
# when fixed this should be enabled
|
|
#%%pytest
|
|
%endif
|
|
|
|
%if !%{with test}
|
|
%files %{python_files}
|
|
%doc README.md
|
|
%license LICENSE
|
|
%{python_sitelib}/dash_core_components
|
|
%{python_sitelib}/dash_core_components-%{version}-py*.egg-info
|
|
%endif
|
|
|
|
%changelog
|