SHA256
1
0
forked from pool/python-mpld3

Accepting request 864427 from home:badshah400:branches:science

D3 Viewer for Matplotlib

OBS-URL: https://build.opensuse.org/request/show/864427
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-mpld3?expand=0&rev=1
This commit is contained in:
Matej Cepl 2021-01-19 21:27:22 +00:00 committed by Git OBS Bridge
commit 1f09a90e68
5 changed files with 151 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

3
mpld3-0.5.2.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1be25e908eb2abea89169b1c532f0d628dba4fc41d5886a24c96f1a3971310b4
size 888659

25
python-mpld3.changes Normal file
View File

@ -0,0 +1,25 @@
-------------------------------------------------------------------
Tue Dec 1 01:32:05 UTC 2020 - Atri Bhattacharya <badshah400@gmail.com>
- Update to version 0.5.2:
* No upstream changelog.
- Fix a bunch of additional inappropriate exec permissions on
files.
- Add comment to explain why tests cannot be enabled.
- Be more specific when listing files in the file-list.
- Update minimum required versions for dependencies.
- Recommends: jupter-notebook instead of python-jupyter_ipython.
- Run spec-cleaner for minor specfile cleanups.
-------------------------------------------------------------------
Fri Aug 18 22:23:19 UTC 2017 - toddrme2178@gmail.com
- Implement single-spec version
- Update to version 0.3.0
* No upstream changelog
-------------------------------------------------------------------
Fri Apr 10 13:15:45 UTC 2015 - toddrme2178@gmail.com
- Initial version

99
python-mpld3.spec Normal file
View File

@ -0,0 +1,99 @@
#
# spec file for package python-mpld3
#
# Copyright (c) 2020 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-%{**}}
%define modname mpld3
# Tests don't work without severely outdated diffimg (no longer available for oS)
%bcond_with test
Name: python-mpld3
Version: 0.5.2
Release: 0
Summary: D3 Viewer for Matplotlib
License: BSD-3-Clause
Group: Development/Languages/Python
URL: https://mpld3.github.com
Source: https://files.pythonhosted.org/packages/source/m/mpld3/%{modname}-%{version}.tar.gz
BuildRequires: %{python_module Jinja2 >= 2.7}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module matplotlib >= 2.2}
BuildRequires: %{python_module pandas}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Jinja2 >= 2.7
Requires: python-matplotlib >= 2.2
Requires: python-pandas
Recommends: jupyter-notebook
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module nose}
BuildRequires: %{python_module numpy}
%endif
%python_subpackages
%description
This is an interactive D3js-based viewer which brings matplotlib graphics to the browser.
Please visit http://mpld3.github.io for documentation and examples.
mpld3 provides a custom stand-alone javascript library built on D3, which
parses JSON representations of plots. The mpld3 python module provides a
set of routines which parses matplotlib plots (using the mplexporter
framework) and outputs the JSON description readable by mpld3.js.
%package -n %{name}-doc
Summary: Documentation for %{name}
Group: Development/Languages/Python
Recommends: python3-jupyter_ipython >= 2.0
Provides: %{python_module %{name} = %{version}}
%description -n %{name}-doc
Documentation and examples for %{name}
%prep
%setup -q -n mpld3-%{version}
# Fix a bunch of inappropriate exec perms
chmod a-x notebooks/*.ipynb \
LICENSE \
*.md \
mpld3/js/*.js \
mpld3.egg-info/*
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%if %{with test}
%check
export HIDE_PLOTS=True
%python_expand nosetests-%{$python_bin_suffix} mpld3/tests/*.py
%endif
%files %{python_files}
%license LICENSE
%doc AUTHORS.md README.md
%{python_sitelib}/%{modname}/
%{python_sitelib}/%{modname}-%{version}-py%{python_version}.egg-info/
%files -n %{name}-doc
%doc examples/ notebooks/
%changelog