Accepting request 656831 from devel:languages:python
Automatic submission by obs-autosubmit OBS-URL: https://build.opensuse.org/request/show/656831 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cmd2?expand=0&rev=21
This commit is contained in:
commit
4278d1277e
@ -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
|
||||
@ -38,6 +39,10 @@ BuildRequires: %{python_module pyperclip >= 1.5.27}
|
||||
BuildRequires: %{python_module pytest-mock}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module wcwidth}
|
||||
%if 0%{?sle_version} < 150000 && 0%{?is_opensuse}
|
||||
BuildRequires: %{python_module contextlib2}
|
||||
BuildRequires: %{python_module typing}
|
||||
%endif
|
||||
# /SECTION
|
||||
Requires: python-attrs
|
||||
Requires: python-colorama
|
||||
@ -68,6 +73,9 @@ Drop-in replacement adds several features for command-prompt tools:
|
||||
|
||||
%prep
|
||||
%setup -q -n cmd2-%{version}
|
||||
%if 0%{?sle_version} < 150000 && 0%{?is_opensuse}
|
||||
%patch0 -p1
|
||||
%endif
|
||||
# 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