Blob Blame History Raw
Name:           python-rope
Version:        0.22.0
Release:        %autorelease
Summary:        Python Code Refactoring Library

License:        LGPLv3+
URL:            https://github.com/python-rope/rope
Source:         %{pypi_source rope}
# https://github.com/python-rope/rope/pull/290
Patch:          rope-pr290-ast_str-deprecation.patch

BuildArch:      noarch
BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros


# pysvn, hg, git, and darcs are optional.  If installed, they give integration
# between rope and the version control system.  (So refactorings that rename a
# file, for instance, will be checked into version control.)

%global _description\
A python refactoring library. It provides features like refactorings and coding\
assists.

%description %_description

%package -n python3-rope
Summary: %summary

%description -n python3-rope %_description

%prep
%autosetup -p1 -n rope-%{version}

%generate_buildrequires
%pyproject_buildrequires -x dev

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files rope

%check
%pytest -v -k "not ( advanced_oi_test )"

%files -n python3-rope -f %pyproject_files
%license COPYING
%doc README.rst docs

%changelog
%autochangelog