commit 1f09a90e689dcdc4323df9420f4a80115553eb8ab89722da4021aaf193ed1402 Author: Matej Cepl Date: Tue Jan 19 21:27:22 2021 +0000 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 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/mpld3-0.5.2.tar.gz b/mpld3-0.5.2.tar.gz new file mode 100644 index 0000000..0fa942e --- /dev/null +++ b/mpld3-0.5.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1be25e908eb2abea89169b1c532f0d628dba4fc41d5886a24c96f1a3971310b4 +size 888659 diff --git a/python-mpld3.changes b/python-mpld3.changes new file mode 100644 index 0000000..9a0d85e --- /dev/null +++ b/python-mpld3.changes @@ -0,0 +1,25 @@ +------------------------------------------------------------------- +Tue Dec 1 01:32:05 UTC 2020 - Atri Bhattacharya + +- 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 + diff --git a/python-mpld3.spec b/python-mpld3.spec new file mode 100644 index 0000000..ce4eedd --- /dev/null +++ b/python-mpld3.spec @@ -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