From 213deb1eb1e4224bdfada1d228160027e734474d8b273e87ac46a41072b4ef36 Mon Sep 17 00:00:00 2001 From: Todd R Date: Wed, 22 May 2019 19:12:16 +0000 Subject: [PATCH 1/2] Accepting request 704829 from home:TheBlackCat:branches:devel:languages:python:jupyter - Drop python2 support since some of its dependencies have also dropped python2 support. - Use new jupyter package names. OBS-URL: https://build.opensuse.org/request/show/704829 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-coconut?expand=0&rev=13 --- python-coconut.changes | 7 +++++++ python-coconut.spec | 45 +++++++++++++----------------------------- 2 files changed, 21 insertions(+), 31 deletions(-) diff --git a/python-coconut.changes b/python-coconut.changes index d97a8fe..7155565 100644 --- a/python-coconut.changes +++ b/python-coconut.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed May 22 14:34:21 UTC 2019 - Todd R + +- Drop python2 support since some of its dependencies have also + dropped python2 support. +- Use new jupyter package names. + ------------------------------------------------------------------- Thu Mar 7 10:52:51 UTC 2019 - Tomáš Chvátal diff --git a/python-coconut.spec b/python-coconut.spec index 98c19f2..cde1e38 100644 --- a/python-coconut.spec +++ b/python-coconut.spec @@ -17,6 +17,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define skip_python2 1 Name: python-coconut Version: 1.4.0 Release: 0 @@ -26,26 +27,23 @@ Group: Development/Languages/Python URL: https://github.com/evhub/coconut Source: https://files.pythonhosted.org/packages/source/c/coconut/coconut-%{version}.tar.gz BuildRequires: %{python_module Pygments >= 2.2} +BuildRequires: %{python_module prompt_toolkit >= 2} BuildRequires: %{python_module pyparsing >= 2.2} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module six} -# IPython python2 version requires prompt_toolkit 1 while python3 version requires prompt_toolkit 2 BuildRequires: fdupes -BuildRequires: python-prompt_toolkit1 BuildRequires: python-rpm-macros -BuildRequires: python2-futures >= 3.1 -BuildRequires: python3-prompt_toolkit >= 2 # SECTION test requirements BuildRequires: %{python_module cPyparsing >= 2.2.0.1.1} BuildRequires: %{python_module jupyter >= 1} BuildRequires: %{python_module jupyter_console >= 5.2} -BuildRequires: %{python_module jupyter_ipykernel >= 4.6} -BuildRequires: %{python_module jupyter_ipython >= 5.4} +BuildRequires: %{python_module ipykernel >= 4.6} +BuildRequires: %{python_module ipython >= 5.4} +BuildRequires: %{python_module mypy >= 0.540} BuildRequires: %{python_module psutil >= 5} BuildRequires: %{python_module pytest >= 3} BuildRequires: %{python_module requests >= 2} BuildRequires: %{python_module watchdog >= 0.8} -BuildRequires: python3-mypy >= 0.540 # /SECTION Requires: python-Pygments >= 2.2 Requires: python-pyparsing >= 2.2 @@ -53,22 +51,15 @@ Requires: python-six Recommends: python-cPyparsing >= 2.2.0.1.1 Recommends: python-jupyter >= 1 Recommends: python-jupyter_console >= 5.2 -Recommends: python-jupyter_ipykernel >= 4.6 -Recommends: python-jupyter_ipython >= 5.4 +Recommends: python-ipykernel >= 4.6 +Recommends: python-ipython >= 5.4 Recommends: python-mypy >= 0.540 +Requires: python-prompt_toolkit >= 2 Recommends: python-psutil >= 5 Recommends: python-requests >= 2 Recommends: python-watchdog >= 0.8 -%ifpython2 -Requires: python-futures >= 3.1 -Requires: python-prompt_toolkit1 -%endif -%ifpython3 -Requires: python-prompt_toolkit >= 2 -%endif -Requires(post): update-alternatives -Requires(postun): update-alternatives BuildArch: noarch + %python_subpackages %description @@ -91,23 +82,15 @@ find . -name '*.py' -exec sed -i -e '/^#!\//, 1d' {} + %install %python_install %python_expand %fdupes %{buildroot}/%{$python_sitelib}/ -%python_clone -a %{buildroot}%{_bindir}/coconut - -%post -%python_install_alternative coconut - -%postun -%python_uninstall_alternative coconut %files %{python_files} %doc README.rst CONTRIBUTING.md DOCS.md FAQ.md HELP.md %license LICENSE.txt -%python2_only %{_bindir}/coconut-py2* -%python3_only %{_bindir}/coconut-py3* -%python_alternative %{_bindir}/coconut -%python3_only %{_bindir}/coconut-v1* -%python3_only %{_bindir}/coconut-release* -%python3_only %{_bindir}/coconut-run +%{_bindir}/coconut-py3* +%{_bindir}/coconut +%{_bindir}/coconut-v1* +%{_bindir}/coconut-release* +%{_bindir}/coconut-run %{python_sitelib}/coconut/ %{python_sitelib}/coconut-%{version}-py*.egg-info From 35af30ae6d20e8aea7507706de01fcbb749e1713b79670927d40e77ebcea46cd Mon Sep 17 00:00:00 2001 From: Todd R Date: Fri, 24 May 2019 03:07:37 +0000 Subject: [PATCH 2/2] Accepting request 705104 from home:TheBlackCat:branches:devel:languages:python - Add conflicts with python2 version since we are dropping update-alternatives. OBS-URL: https://build.opensuse.org/request/show/705104 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-coconut?expand=0&rev=14 --- python-coconut.changes | 6 ++++++ python-coconut.spec | 1 + 2 files changed, 7 insertions(+) diff --git a/python-coconut.changes b/python-coconut.changes index 7155565..80cd7c3 100644 --- a/python-coconut.changes +++ b/python-coconut.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri May 24 03:06:34 UTC 2019 - Todd R + +- Add conflicts with python2 version since we are dropping + update-alternatives. + ------------------------------------------------------------------- Wed May 22 14:34:21 UTC 2019 - Todd R diff --git a/python-coconut.spec b/python-coconut.spec index cde1e38..c0c1937 100644 --- a/python-coconut.spec +++ b/python-coconut.spec @@ -58,6 +58,7 @@ Requires: python-prompt_toolkit >= 2 Recommends: python-psutil >= 5 Recommends: python-requests >= 2 Recommends: python-watchdog >= 0.8 +Conflicts: python2-coconut <= 1.4.0 BuildArch: noarch %python_subpackages