2009-08-27 13:23:09 +00:00
|
|
|
#
|
2011-01-26 17:14:13 +00:00
|
|
|
# spec file for package python-rope
|
2009-08-27 13:23:09 +00:00
|
|
|
#
|
2020-01-02 10:24:08 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2009-08-27 13:23:09 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
2012-06-06 11:08:29 +00:00
|
|
|
|
2019-01-16 16:42:51 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2009-08-27 13:23:09 +00:00
|
|
|
#
|
|
|
|
|
2012-06-06 11:08:29 +00:00
|
|
|
|
2018-08-09 07:56:32 +00:00
|
|
|
%define upname rope
|
2017-08-01 15:52:31 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2012-01-31 10:37:34 +00:00
|
|
|
Name: python-rope
|
2019-03-22 23:23:02 +00:00
|
|
|
Version: 0.14.0
|
2012-01-31 10:37:34 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: A python refactoring library
|
2019-03-22 23:23:02 +00:00
|
|
|
License: LGPL-3.0-or-later
|
2012-01-31 10:37:34 +00:00
|
|
|
Group: Development/Languages/Python
|
2018-08-09 07:56:32 +00:00
|
|
|
URL: https://github.com/python-rope/rope
|
2017-08-01 15:52:31 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/r/rope/rope-%{version}.tar.gz
|
2019-01-16 16:42:51 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2018-08-29 11:53:17 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2017-08-01 15:52:31 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2012-01-31 10:37:34 +00:00
|
|
|
BuildArch: noarch
|
2017-08-01 15:52:31 +00:00
|
|
|
%python_subpackages
|
2009-08-27 13:23:09 +00:00
|
|
|
|
|
|
|
%description
|
2011-01-26 17:14:13 +00:00
|
|
|
Rope is a python refactoring library.
|
2009-08-27 13:23:09 +00:00
|
|
|
|
|
|
|
%prep
|
2012-01-31 10:37:34 +00:00
|
|
|
%setup -q -n rope-%{version}
|
2009-08-27 13:23:09 +00:00
|
|
|
|
|
|
|
%build
|
2017-08-01 15:52:31 +00:00
|
|
|
export LANG=en_US.UTF-8
|
2018-08-09 07:56:32 +00:00
|
|
|
%python_build
|
2009-08-27 13:23:09 +00:00
|
|
|
|
|
|
|
%install
|
2017-08-01 15:52:31 +00:00
|
|
|
export LANG=en_US.UTF-8
|
2018-08-09 07:56:32 +00:00
|
|
|
%python_install
|
2019-03-07 11:16:55 +00:00
|
|
|
%{python_expand rm -rf %{buildroot}/%{$python_sitelib}/python-rope/ropetest/
|
2017-08-28 16:31:23 +00:00
|
|
|
%fdupes %{buildroot}/%{$python_sitelib}
|
|
|
|
}
|
2017-08-01 15:52:31 +00:00
|
|
|
|
|
|
|
%check
|
|
|
|
export LANG=en_US.UTF-8
|
2019-01-16 16:42:51 +00:00
|
|
|
# Work around gh#python-rope/rope#247
|
2019-12-18 15:34:17 +00:00
|
|
|
%pytest -k 'not (test_hint_parametrized_iterable or test_hint_parametrized_iterator)'
|
2009-08-27 13:23:09 +00:00
|
|
|
|
2017-08-01 15:52:31 +00:00
|
|
|
%files %{python_files}
|
2018-08-09 07:56:32 +00:00
|
|
|
%license COPYING
|
|
|
|
%doc README.rst
|
2017-08-28 16:31:23 +00:00
|
|
|
%doc docs/
|
2015-02-23 13:41:39 +00:00
|
|
|
%{python_sitelib}/
|
2009-08-27 13:23:09 +00:00
|
|
|
|
|
|
|
%changelog
|