]> git.pld-linux.org Git - packages/python-ipykernel.git/blobdiff - python-ipykernel.spec
- jupyter_client is required also for setup; added ipykernel 5.x note
[packages/python-ipykernel.git] / python-ipykernel.spec
index 2782817b765235605201a32a6bf1e13fa91768f1..4a39fc864019ab84bc57b1af681fe32b4a7d73bb 100644 (file)
@@ -1,3 +1,4 @@
+# NOTE: for versions >= 5 (for python 3.4+) see python3-ipykernel.spec
 #
 # Conditional build:
 %bcond_without doc     # Sphinx documentation
@@ -8,20 +9,22 @@
 Summary:       IPython kernel for Jupyter
 Summary(pl.UTF-8):     Jądro IPythona dla Jupytera
 Name:          python-ipykernel
+# keep 4.x here for python2 support
 Version:       4.10.1
-Release:       1
+Release:       3
 License:       BSD
 Group:         Libraries/Python
 #Source0Download: https://pypi.org/simple/ipykernel/
 Source0:       https://files.pythonhosted.org/packages/source/i/ipykernel/ipykernel-%{version}.tar.gz
 # Source0-md5: 23871bb7da2907749cb65a9446c9e637
+Patch0:                %{name}-use_setuptools.patch
 URL:           https://pypi.org/project/ipykernel/
 %if %{with python2}
+BuildRequires: python-jupyter_client
 BuildRequires: python-modules >= 1:2.7
 BuildRequires: python-setuptools
 %if %{with tests}
 BuildRequires: python-ipython >= 4.0.0
-BuildRequires: python-jupyter_client
 BuildRequires: python-mock
 BuildRequires: python-nose
 BuildRequires: python-pytest
@@ -31,11 +34,12 @@ BuildRequires:      python-tornado >= 4.0
 %endif
 %endif
 %if %{with python3}
+BuildRequires: python3-jupyter_client
 BuildRequires: python3-modules >= 1:3.4
 BuildRequires: python3-setuptools
 %if %{with tests}
 BuildRequires: python3-ipython >= 4.0.0
-BuildRequires: python3-jupyter_client
+BuildRequires: python3-jupyter_client < 6
 BuildRequires: python3-nose
 BuildRequires: python3-pytest
 BuildRequires: python3-pytest-cov
@@ -50,7 +54,7 @@ BuildRequires:        sed >= 4.0
 BuildRequires: python3-sphinxcontrib_github_alt
 BuildRequires: sphinx-pdg-3
 %endif
-Requires:      python-modules >= 1:3.4
+Requires:      python-modules >= 1:2.7
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -85,6 +89,7 @@ Dokumentacja API modułu Pythona ipykernel.
 
 %prep
 %setup -q -n ipykernel-%{version}
+%patch0 -p1
 
 %build
 %if %{with python2}
This page took 0.076233 seconds and 4 git commands to generate.