Hello community,

here is the log from the commit of package python-curtsies for openSUSE:Factory 
checked in at 2018-04-27 16:09:14
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-curtsies (Old)
 and      /work/SRC/openSUSE:Factory/.python-curtsies.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-curtsies"

Fri Apr 27 16:09:14 2018 rev:4 rq:601624 version:0.3.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-curtsies/python-curtsies.changes  
2018-02-22 15:02:46.437296097 +0100
+++ /work/SRC/openSUSE:Factory/.python-curtsies.new/python-curtsies.changes     
2018-04-27 16:09:15.958414786 +0200
@@ -1,0 +2,7 @@
+Thu Apr 26 14:30:25 UTC 2018 - [email protected]
+
+- Add python-curtsies-dont-require-typing-for-python3.5.patch: The
+  typing module is only required for python3.4 and lower; patch
+  taken from upstream git (gh#bpython/curtsies#111).
+
+-------------------------------------------------------------------

New:
----
  python-curtsies-dont-require-typing-for-python3.5.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-curtsies.spec ++++++
--- /var/tmp/diff_new_pack.divtmX/_old  2018-04-27 16:09:16.450396742 +0200
+++ /var/tmp/diff_new_pack.divtmX/_new  2018-04-27 16:09:16.454396596 +0200
@@ -23,8 +23,10 @@
 Summary:        Curses-like terminal wrapper, with colored strings!
 License:        MIT
 Group:          Development/Languages/Python
-Url:            https://github.com/bpython/curtsies
+URL:            https://github.com/bpython/curtsies
 Source:         
https://files.pythonhosted.org/packages/source/c/curtsies/curtsies-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM python-curtsies-dont-require-typing-for-python3.5.patch 
gh#bpython/curtsies#111 [email protected] -- The typing module is only 
required for python3.4 and lower; patch taken from upstream git.
+Patch0:         python-curtsies-dont-require-typing-for-python3.5.patch
 BuildRequires:  %{python_module blessings}
 BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module mock}
@@ -34,12 +36,12 @@
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 BuildRequires:  python2-typing
+Requires:       python-blessings
+BuildArch:      noarch
 # do not require python3-typing for python >= 3.5
 %if 0%{?suse_version} <= 1320
 BuildRequires:  python3-typing
 %endif
-
-Requires:       python-blessings
 %ifpython2
 Requires:       python-typing
 %endif
@@ -48,9 +50,6 @@
 Requires:       python-typing
 %endif
 %endif
-
-BuildArch:      noarch
-
 %python_subpackages
 
 %description
@@ -59,6 +58,7 @@
 
 %prep
 %setup -q -n curtsies-%{version}
+%patch0 -p1
 
 %build
 %python_build
@@ -71,8 +71,8 @@
 %python_expand nosetests-%{$python_bin_suffix}
 
 %files %{python_files}
-%defattr(-,root,root,-)
-%doc readme.md LICENSE
+%license LICENSE
+%doc readme.md
 %{python_sitelib}/*
 
 %changelog

++++++ python-curtsies-dont-require-typing-for-python3.5.patch ++++++
>From 217b4f83e954837f8adc4c549c1f2f9f2bb272a7 Mon Sep 17 00:00:00 2001
From: Po-Chuan Hsieh <[email protected]>
Date: Wed, 14 Feb 2018 21:28:38 +0800
Subject: [PATCH] Fix install_requires

typing is only required for Python 3.4 or below.
---
 setup.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/setup.py b/setup.py
index b35c7c3..6e52cbd 100644
--- a/setup.py
+++ b/setup.py
@@ -41,7 +41,7 @@ def get_long_description():
       install_requires = [
           'blessings>=1.5',
           'wcwidth>=0.1.4',
-          'typing',
+          'typing; python_version<"3.5"',
       ],
       tests_require = [
           'mock',

Reply via email to