1
0
Files
python-chart-studio/python-chart-studio.spec
Steve Kowalik a506d48023 Accepting request 1078366 from home:dimstar:Factory
- Use skip_pythonX instead of redefining pythons to explicit
  versions: python38 is not supported in all distros anymore (e.g
  Tumbleweed). So rather define for what distro flavors we do not
  need to be built fot.

OBS-URL: https://build.opensuse.org/request/show/1078366
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-chart-studio?expand=0&rev=9
2023-04-12 05:49:19 +00:00

71 lines
2.1 KiB
RPMSpec

#
# spec file for package python-chart-studio
#
# Copyright (c) 2023 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/
#
%define skip_python36 1
%define skip_python37 1
%define skip_python310 1
%define skip_python311 1
%define skip_python312 1
Name: python-chart-studio
Version: 1.1.0
Release: 0
Summary: Utilities for Chart Studio
License: MIT
Group: Development/Languages/Python
URL: https://plot.ly/python/
Source: https://files.pythonhosted.org/packages/source/c/chart-studio/chart-studio-%{version}.tar.gz
# https://github.com/plotly/plotly.py/commit/c3fb1a575f009057111f0a7d149861fda2c59129
Patch0: python-chart-studio-no-six.patch
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
# SECTION test requirements
BuildRequires: %{python_module plotly}
BuildRequires: %{python_module requests}
BuildRequires: %{python_module retrying >= 1.3.3}
# /SECTION
BuildRequires: fdupes
Requires: python-plotly
Requires: python-requests
Requires: python-retrying >= 1.3.3
BuildArch: noarch
%python_subpackages
%description
Utilities for interfacing with plotly's Chart Studio
%prep
%autosetup -p1 -n chart-studio-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# no tests in PyPI tarball, github "release tarball" is not suitable for build
%files %{python_files}
%doc README.md
%{python_sitelib}/chart_studio*
%changelog