From 13fe38fb927bb864505d1fb8dcb832eae83c3837 Mon Sep 17 00:00:00 2001 From: Mukundan Ragavan Date: Jul 10 2018 23:06:40 +0000 Subject: Initial import #1599026 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a0116d3 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/spyder-kernels-1.0.1.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 61b0bab..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# python-spyder-kernels - -The python-spyder-kernels package \ No newline at end of file diff --git a/python-spyder-kernels.spec b/python-spyder-kernels.spec new file mode 100644 index 0000000..88c4b48 --- /dev/null +++ b/python-spyder-kernels.spec @@ -0,0 +1,90 @@ +%global pypi_name spyder-kernels + +Name: python-%{pypi_name} +Version: 1.0.1 +Release: 1%{?dist} +Summary: Jupyter kernels for the Spyder console + +License: MIT +URL: https://github.com/spyder-ide/spyder-kernels +Source0: https://files.pythonhosted.org/packages/source/s/%{pypi_name}/%{pypi_name}-%{version}.tar.gz +BuildArch: noarch + +BuildRequires: python2-devel +BuildRequires: python2dist(cloudpickle) +BuildRequires: python2dist(ipykernel) +BuildRequires: python2dist(setuptools) + +BuildRequires: python3-devel +BuildRequires: python3dist(cloudpickle) +BuildRequires: python3dist(ipykernel) +BuildRequires: python3dist(setuptools) + +# for tests +# python2 +BuildRequires: python2dist(pandas) +BuildRequires: python2dist(pytest) +BuildRequires: python2dist(numpy) +# python3 +BuildRequires: python3dist(pandas) +BuildRequires: python3dist(pytest) +BuildRequires: python3dist(numpy) + +%description +This package provides jupyter kernels used by spyder on its IPython console. + +%package -n python2-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python2-%{pypi_name}} + +Requires: python2dist(cloudpickle) +Requires: python2dist(ipykernel) + +%description -n python2-%{pypi_name} +This package provides python2 version of jupyter kernels used by spyder on its + IPython console. + + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +Requires: python3dist(cloudpickle) +Requires: python3dist(ipykernel) + +%description -n python3-%{pypi_name} +This package provides python3 version of jupyter kernels used by spyder on its + IPython console. + + +%prep +%autosetup -n %{pypi_name}-%{version} +rm -rf %{pypi_name}.egg-info + +%build +%py2_build +%py3_build + +%install +%py2_install +%py3_install + +%check +%{__python2} setup.py test +%{__python3} setup.py test + +%files -n python2-%{pypi_name} +%license LICENSE +%doc README.md +%{python2_sitelib}/spyder_kernels +%{python2_sitelib}/spyder_kernels-%{version}-py?.?.egg-info + +%files -n python3-%{pypi_name} +%license LICENSE +%doc README.md +%{python3_sitelib}/spyder_kernels +%{python3_sitelib}/spyder_kernels-%{version}-py?.?.egg-info + +%changelog +* Sun Jul 08 2018 Mukundan Ragavan - 1.0.1-1 +- Initial package for review diff --git a/sources b/sources new file mode 100644 index 0000000..07afdf6 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (spyder-kernels-1.0.1.tar.gz) = 05a4124e44cf1ba1d56927295dc9a2fea315ffe107d0f835a36d29b0727c2d7abe35e41974d62ece23b2d5ef78baa18c1d29910c0359b6fea900216e8f093d97