forked from pool/python-rope
- #392, #316 Handle `global` keyword when extracting method (@climbus) - context manager: - #387, #433 Implement extract refactoring for code containing `async with` (@lieryan) - #398, #104 Fix parsing of nested `with` statement/context manager (@climbus) - list/set/dict/generator comprehension scope issues: - #422 Added scopes for comprehension expressions as part of #293 (@climbus) - #426, #429 Added support for checking scopes by offset as part of #293 (@climbus) - #293, #430 Fix renaming global var affects list comprehension (@climbus) - #395, #315 Reuse of variable in comprehensions confuses method extraction (@climbus) - #436 Fix error `TypeError: 'PyDefinedObject' object is not subscriptable` (@lieryan) - f-string: - #303, #420 Fix inlining into f-string containing quote characters (@lieryan) - inline assignment/walrus operator: - #423 Fix `AttributeError: '_ExpressionVisitor' object has no attribute 'defineds'` (@lieryan) - #391, #376 Fix improper replacement when extracting attribute access expression with `similar=True` (@climbus) - #396 Fix improper replacement when extracting index access expression with `similar=True` (@lieryan) - #434 Move read() to FileSystemCommands OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rope?expand=0&rev=51
66 lines
1.8 KiB
RPMSpec
66 lines
1.8 KiB
RPMSpec
#
|
|
# spec file for package python-rope
|
|
#
|
|
# Copyright (c) 2021 SUSE LLC
|
|
#
|
|
# 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.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define upname rope
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
Name: python-rope
|
|
Version: 0.21.0
|
|
Release: 0
|
|
Summary: A python refactoring library
|
|
License: LGPL-3.0-or-later
|
|
Group: Development/Languages/Python
|
|
URL: https://github.com/python-rope/rope
|
|
Source: https://files.pythonhosted.org/packages/source/r/rope/rope-%{version}.tar.gz
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
BuildArch: noarch
|
|
%python_subpackages
|
|
|
|
%description
|
|
Rope is a python refactoring library.
|
|
|
|
%prep
|
|
%setup -q -n rope-%{version}
|
|
%autopatch -p1
|
|
|
|
%build
|
|
export LANG=en_US.UTF-8
|
|
%python_build
|
|
|
|
%install
|
|
export LANG=en_US.UTF-8
|
|
%python_install
|
|
%{python_expand rm -rf %{buildroot}/%{$python_sitelib}/python-rope/ropetest/
|
|
%fdupes %{buildroot}/%{$python_sitelib}
|
|
}
|
|
|
|
%check
|
|
export LANG=en_US.UTF-8
|
|
%pytest
|
|
|
|
%files %{python_files}
|
|
%license COPYING
|
|
%doc README.rst
|
|
%doc docs/
|
|
%{python_sitelib}/rope
|
|
%{python_sitelib}/rope-%{version}*-info
|
|
|
|
%changelog
|