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

License:        LGPL-3.0-or-later
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 %{expand:
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

%files -n python3-rope -f %{pyproject_files}
%doc README.rst
%doc docs/

%changelog
%autochangelog