From 1c94b67aaa8cb7775c04596be321cb396e75a8c8445295d752fb5c57e72bdac0 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 3 Dec 2018 11:16:36 +0000 Subject: [PATCH] Add remove-typing.patch removing requirements for the typing library, which is useless now. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cmd2?expand=0&rev=35 --- python-cmd2.changes | 6 ++++++ python-cmd2.spec | 6 ++++-- remove-typing.patch | 15 +++++++++++++++ 3 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 remove-typing.patch diff --git a/python-cmd2.changes b/python-cmd2.changes index 91bcdf1..b34afa0 100644 --- a/python-cmd2.changes +++ b/python-cmd2.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Dec 3 11:13:35 UTC 2018 - Matěj Cepl + +- Add remove-typing.patch removing requirements for the typing library, + which is useless now. + ------------------------------------------------------------------- Thu Sep 20 20:17:41 UTC 2018 - Todd R diff --git a/python-cmd2.spec b/python-cmd2.spec index 652c83a..29b726f 100644 --- a/python-cmd2.spec +++ b/python-cmd2.spec @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -26,8 +26,9 @@ License: MIT Group: Development/Languages/Python Url: https://github.com/python-cmd2/cmd2 Source: https://files.pythonhosted.org/packages/source/c/cmd2/cmd2-%{version}.tar.gz -BuildRequires: %{python_module setuptools} +Patch0: remove-typing.patch BuildRequires: %{python_module setuptools_scm} +BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros # SECTION Test requirements @@ -68,6 +69,7 @@ Drop-in replacement adds several features for command-prompt tools: %prep %setup -q -n cmd2-%{version} +%autopatch -p1 # Fix non-executable-script sed -i -e '/^#!\//, 1d' cmd2/cmd2.py # Fix spurious-executable-perm diff --git a/remove-typing.patch b/remove-typing.patch new file mode 100644 index 0000000..e86107d --- /dev/null +++ b/remove-typing.patch @@ -0,0 +1,15 @@ +--- + setup.py | 2 -- + 1 file changed, 2 deletions(-) + +--- a/setup.py ++++ b/setup.py +@@ -68,8 +68,6 @@ EXTRAS_REQUIRE = { + ":sys_platform=='win32'": ['pyreadline'], + # POSIX OSes also require wcwidth for correctly estimating the displayed width of unicode chars + ":sys_platform!='win32'": ['wcwidth'], +- # Python 3.4 and earlier require contextlib2 for temporarily redirecting stderr and stdout +- ":python_version<'3.5'": ['contextlib2', 'typing'], + # development only dependencies + # install with 'pip install -e .[dev]' + 'dev': [