forked from pool/python-cmd2
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
This commit is contained in:
parent
ba66dcb5fa
commit
1c94b67aaa
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 3 11:13:35 UTC 2018 - Matěj Cepl <mcepl@suse.com>
|
||||
|
||||
- Add remove-typing.patch removing requirements for the typing library,
|
||||
which is useless now.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 20 20:17:41 UTC 2018 - Todd R <toddrme2178@gmail.com>
|
||||
|
||||
|
@ -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
|
||||
|
15
remove-typing.patch
Normal file
15
remove-typing.patch
Normal file
@ -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': [
|
Loading…
x
Reference in New Issue
Block a user