From 908b8ffdee0756f8e564663bba60ba8a881cb291 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Aug 18 2018 01:05:14 +0000 Subject: Initial import (#1618628). --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8683878 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/mplcursors-0.2.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 8f44ca5..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# python-mplcursors - -The python-mplcursors package \ No newline at end of file diff --git a/python-mplcursors.spec b/python-mplcursors.spec new file mode 100644 index 0000000..43871ec --- /dev/null +++ b/python-mplcursors.spec @@ -0,0 +1,87 @@ +%global srcname mplcursors + +Name: python-%{srcname} +Version: 0.2 +Release: 2%{?dist} +Summary: Interactive data selection cursors for Matplotlib + +License: MIT +URL: https://github.com/anntzer/mplcursors +Source0: https://files.pythonhosted.org/packages/source/m/%{srcname}/%{srcname}-%{version}.tar.gz +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3dist(matplotlib) >= 2.1 +BuildRequires: python3dist(setuptools) +BuildRequires: python3dist(setuptools-scm) +BuildRequires: python3dist(pytest) + +%description +mplcursors – Interactive data selection cursors for Matplotlib + + +%package -n python3-%{srcname} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{srcname}} + +Requires: python3dist(matplotlib) >= 2.1 + +%description -n python3-%{srcname} +mplcursors – Interactive data selection cursors for Matplotlib + + +%package -n python-%{srcname}-doc +Summary: mplcursors documentation + +BuildRequires: python3dist(sphinx) +BuildRequires: python3dist(sphinx-gallery) >= 0.1.13 +BuildRequires: python3dist(pandas) + +%description -n python-%{srcname}-doc +Documentation for mplcursors + + +%prep +%autosetup -n %{srcname}-%{version} + +# Remove bundled egg-info and files +rm -rf %{srcname}.egg-info vendor + + +%build +%py3_build + +# generate html docs +PYTHONPATH=${PWD}/build/lib sphinx-build-3 doc/source html +# remove the sphinx-build leftovers +rm -rf html/.{doctrees,buildinfo} + + +%install +%py3_install + + +%check +PYTHONPATH=%{buildroot}%{python3_sitelib} \ + %{__python3} -m pytest + + +%files -n python3-%{srcname} +%license LICENSE.txt +%doc README.rst examples/README.txt +%{python3_sitelib}/%{srcname} +%{python3_sitelib}/%{srcname}.pth +%{python3_sitelib}/%{srcname}-%{version}-py?.?.egg-info + + +%files -n python-%{srcname}-doc +%doc html +%license LICENSE.txt + + +%changelog +* Fri Aug 17 2018 Elliott Sales de Andrade - 0.2-2 +- Remove vendored source code + +* Fri Aug 17 2018 Elliott Sales de Andrade - 0.2-1 +- Initial package. diff --git a/sources b/sources new file mode 100644 index 0000000..4a266c3 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (mplcursors-0.2.tar.gz) = c1da253b9128d2c3d8cd3ab40dab2c8f6d1e8c8884c9209b4cfc2ceef09b9bee24d60400c313763af80be91e31cc36936016ccc4b77780997a13a5d6fbd0f935