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

License:        LGPL-3.0-or-later
Source:         %{pypi_source rope}

Patch:          rope-pr290-ast_str-deprecation.patch

BuildArch:      noarch

BuildRequires:  python3-devel, python3-build
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

%description %_description

%package -n python3-rope
Summary: %summary

%description -n python3-rope %_description

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

%pyproject_buildrequires -x dev


%pyproject_save_files rope

# Disable failing tests for now. Will look into them again.
# ImportUtilsTest and LineFinderTest only fail in f39+ (Python3.12?)
%{py3_test_envvars} %{python3} -m pytest -v -k "not (InlineTest or \
  AutoImportTest or ImportUtilsTest or LineFinderTest)"

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