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
|
|
|
#
|
2023-09-04 07:45:29 +00:00
|
|
|
# Copyright (c) 2023 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
|
|
|
|
2023-11-09 09:29:38 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
|
|
|
|
2018-08-09 07:56:32 +00:00
|
|
|
%define upname rope
|
2012-01-31 10:37:34 +00:00
|
|
|
Name: python-rope
|
2023-09-04 07:45:29 +00:00
|
|
|
Version: 1.9.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
|
Accepting request 1045827 from home:bnavigator:branches:devel:languages:python:numeric
- Update to 1.6.0
## New features & Enhancements
* #559, #560 Improve handling of whitespace in import and
from-import statements (@lieryan)
* #566, #567, #597 Fix variables in kwonlyargs and posonlyargs
not being correctly passed to extracted methods (@lieryan)
## Unit Test
* #589, #596 Fix issue with sample_project() creating directories
where it shouldn't when running tests (@lieryan)
* #547 Add config file for linters
* #593 Remove only_for decorator for all python versions less
than 3.7 (@edreamleo)
## Tech Debt
### Code quality
* #546 Remove unused vars in test (@lieryan, @edreamleo)
* #551, #552 Numerous flake8 linter complaints (@edreamleo)
* #558 Fix typos (@kianmeng)
* #583, #584 More consistent import style (@edreamleo)
### Python 2-related tech debt
* #533 Refactoring to Remove usage of unicode type (@lieryan)
* #549, #553 Remove rope.base.utils.pycompat (@dreamleo)
* #555 Fix some python2-isms (@lieryan)
### Rope's AST Wrapper
* #536, #578 walk does not return a value (@edreamleo)
* #537, #538 Remove special case code from walk (@edreamleo)
* #581 Remove functions in rope.base.ast that has functionally
identical implementation in stdlib's ast (@lieryan, @edreamleo)
* #582 Refactoring rope.base.ast and remove rope.base.astutils
(@lieryan, @edreamleo)
### pynames and pyobjects
OBS-URL: https://build.opensuse.org/request/show/1045827
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rope?expand=0&rev=53
2022-12-30 20:19:29 +00:00
|
|
|
BuildRequires: %{python_module base >= 3.7}
|
|
|
|
BuildRequires: %{python_module pip}
|
2018-08-29 11:53:17 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
Accepting request 1045827 from home:bnavigator:branches:devel:languages:python:numeric
- Update to 1.6.0
## New features & Enhancements
* #559, #560 Improve handling of whitespace in import and
from-import statements (@lieryan)
* #566, #567, #597 Fix variables in kwonlyargs and posonlyargs
not being correctly passed to extracted methods (@lieryan)
## Unit Test
* #589, #596 Fix issue with sample_project() creating directories
where it shouldn't when running tests (@lieryan)
* #547 Add config file for linters
* #593 Remove only_for decorator for all python versions less
than 3.7 (@edreamleo)
## Tech Debt
### Code quality
* #546 Remove unused vars in test (@lieryan, @edreamleo)
* #551, #552 Numerous flake8 linter complaints (@edreamleo)
* #558 Fix typos (@kianmeng)
* #583, #584 More consistent import style (@edreamleo)
### Python 2-related tech debt
* #533 Refactoring to Remove usage of unicode type (@lieryan)
* #549, #553 Remove rope.base.utils.pycompat (@dreamleo)
* #555 Fix some python2-isms (@lieryan)
### Rope's AST Wrapper
* #536, #578 walk does not return a value (@edreamleo)
* #537, #538 Remove special case code from walk (@edreamleo)
* #581 Remove functions in rope.base.ast that has functionally
identical implementation in stdlib's ast (@lieryan, @edreamleo)
* #582 Refactoring rope.base.ast and remove rope.base.astutils
(@lieryan, @edreamleo)
### pynames and pyobjects
OBS-URL: https://build.opensuse.org/request/show/1045827
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rope?expand=0&rev=53
2022-12-30 20:19:29 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
|
|
|
# SECTION test
|
|
|
|
# Requires full stdlib
|
|
|
|
BuildRequires: %{pythons}
|
|
|
|
BuildRequires: %{python_module build}
|
|
|
|
BuildRequires: %{python_module pytest >= 7.0.1}
|
|
|
|
BuildRequires: %{python_module pytest-timeout >= 2.1.0}
|
|
|
|
BuildRequires: %{python_module pytoolconfig-global >= 1.2.2}
|
|
|
|
# /SECTION
|
2017-08-01 15:52:31 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
Accepting request 1045827 from home:bnavigator:branches:devel:languages:python:numeric
- Update to 1.6.0
## New features & Enhancements
* #559, #560 Improve handling of whitespace in import and
from-import statements (@lieryan)
* #566, #567, #597 Fix variables in kwonlyargs and posonlyargs
not being correctly passed to extracted methods (@lieryan)
## Unit Test
* #589, #596 Fix issue with sample_project() creating directories
where it shouldn't when running tests (@lieryan)
* #547 Add config file for linters
* #593 Remove only_for decorator for all python versions less
than 3.7 (@edreamleo)
## Tech Debt
### Code quality
* #546 Remove unused vars in test (@lieryan, @edreamleo)
* #551, #552 Numerous flake8 linter complaints (@edreamleo)
* #558 Fix typos (@kianmeng)
* #583, #584 More consistent import style (@edreamleo)
### Python 2-related tech debt
* #533 Refactoring to Remove usage of unicode type (@lieryan)
* #549, #553 Remove rope.base.utils.pycompat (@dreamleo)
* #555 Fix some python2-isms (@lieryan)
### Rope's AST Wrapper
* #536, #578 walk does not return a value (@edreamleo)
* #537, #538 Remove special case code from walk (@edreamleo)
* #581 Remove functions in rope.base.ast that has functionally
identical implementation in stdlib's ast (@lieryan, @edreamleo)
* #582 Refactoring rope.base.ast and remove rope.base.astutils
(@lieryan, @edreamleo)
### pynames and pyobjects
OBS-URL: https://build.opensuse.org/request/show/1045827
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rope?expand=0&rev=53
2022-12-30 20:19:29 +00:00
|
|
|
Requires: python
|
|
|
|
Requires: python-pytoolconfig-global >= 1.2.2
|
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
|
|
|
|
Accepting request 1045827 from home:bnavigator:branches:devel:languages:python:numeric
- Update to 1.6.0
## New features & Enhancements
* #559, #560 Improve handling of whitespace in import and
from-import statements (@lieryan)
* #566, #567, #597 Fix variables in kwonlyargs and posonlyargs
not being correctly passed to extracted methods (@lieryan)
## Unit Test
* #589, #596 Fix issue with sample_project() creating directories
where it shouldn't when running tests (@lieryan)
* #547 Add config file for linters
* #593 Remove only_for decorator for all python versions less
than 3.7 (@edreamleo)
## Tech Debt
### Code quality
* #546 Remove unused vars in test (@lieryan, @edreamleo)
* #551, #552 Numerous flake8 linter complaints (@edreamleo)
* #558 Fix typos (@kianmeng)
* #583, #584 More consistent import style (@edreamleo)
### Python 2-related tech debt
* #533 Refactoring to Remove usage of unicode type (@lieryan)
* #549, #553 Remove rope.base.utils.pycompat (@dreamleo)
* #555 Fix some python2-isms (@lieryan)
### Rope's AST Wrapper
* #536, #578 walk does not return a value (@edreamleo)
* #537, #538 Remove special case code from walk (@edreamleo)
* #581 Remove functions in rope.base.ast that has functionally
identical implementation in stdlib's ast (@lieryan, @edreamleo)
* #582 Refactoring rope.base.ast and remove rope.base.astutils
(@lieryan, @edreamleo)
### pynames and pyobjects
OBS-URL: https://build.opensuse.org/request/show/1045827
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rope?expand=0&rev=53
2022-12-30 20:19:29 +00:00
|
|
|
* Rope aims to provide powerful and safe refactoring
|
|
|
|
* Rope is light on dependency, Rope only depends on Python itself
|
|
|
|
* Unlike PyRight or PyLance, Rope does not depend on Node.js
|
|
|
|
* Unlike PyLance or PyCharm, Rope is open source.
|
|
|
|
* Unlike PyRight and PyLance, Rope is written in Python itself,
|
|
|
|
so if you experience problems, you would be able to debug and
|
|
|
|
hack it yourself in a language that you are already familiar with
|
|
|
|
* In comparison to Jedi, Rope is focused on refactoring. While Jedi
|
|
|
|
provides some basic refactoring capabilities, Rope supports many
|
|
|
|
more advanced refactoring operations and options that Jedi does not.
|
|
|
|
|
2009-08-27 13:23:09 +00:00
|
|
|
%prep
|
Accepting request 1045827 from home:bnavigator:branches:devel:languages:python:numeric
- Update to 1.6.0
## New features & Enhancements
* #559, #560 Improve handling of whitespace in import and
from-import statements (@lieryan)
* #566, #567, #597 Fix variables in kwonlyargs and posonlyargs
not being correctly passed to extracted methods (@lieryan)
## Unit Test
* #589, #596 Fix issue with sample_project() creating directories
where it shouldn't when running tests (@lieryan)
* #547 Add config file for linters
* #593 Remove only_for decorator for all python versions less
than 3.7 (@edreamleo)
## Tech Debt
### Code quality
* #546 Remove unused vars in test (@lieryan, @edreamleo)
* #551, #552 Numerous flake8 linter complaints (@edreamleo)
* #558 Fix typos (@kianmeng)
* #583, #584 More consistent import style (@edreamleo)
### Python 2-related tech debt
* #533 Refactoring to Remove usage of unicode type (@lieryan)
* #549, #553 Remove rope.base.utils.pycompat (@dreamleo)
* #555 Fix some python2-isms (@lieryan)
### Rope's AST Wrapper
* #536, #578 walk does not return a value (@edreamleo)
* #537, #538 Remove special case code from walk (@edreamleo)
* #581 Remove functions in rope.base.ast that has functionally
identical implementation in stdlib's ast (@lieryan, @edreamleo)
* #582 Refactoring rope.base.ast and remove rope.base.astutils
(@lieryan, @edreamleo)
### pynames and pyobjects
OBS-URL: https://build.opensuse.org/request/show/1045827
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rope?expand=0&rev=53
2022-12-30 20:19:29 +00:00
|
|
|
%autosetup -p1 -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
|
Accepting request 1045827 from home:bnavigator:branches:devel:languages:python:numeric
- Update to 1.6.0
## New features & Enhancements
* #559, #560 Improve handling of whitespace in import and
from-import statements (@lieryan)
* #566, #567, #597 Fix variables in kwonlyargs and posonlyargs
not being correctly passed to extracted methods (@lieryan)
## Unit Test
* #589, #596 Fix issue with sample_project() creating directories
where it shouldn't when running tests (@lieryan)
* #547 Add config file for linters
* #593 Remove only_for decorator for all python versions less
than 3.7 (@edreamleo)
## Tech Debt
### Code quality
* #546 Remove unused vars in test (@lieryan, @edreamleo)
* #551, #552 Numerous flake8 linter complaints (@edreamleo)
* #558 Fix typos (@kianmeng)
* #583, #584 More consistent import style (@edreamleo)
### Python 2-related tech debt
* #533 Refactoring to Remove usage of unicode type (@lieryan)
* #549, #553 Remove rope.base.utils.pycompat (@dreamleo)
* #555 Fix some python2-isms (@lieryan)
### Rope's AST Wrapper
* #536, #578 walk does not return a value (@edreamleo)
* #537, #538 Remove special case code from walk (@edreamleo)
* #581 Remove functions in rope.base.ast that has functionally
identical implementation in stdlib's ast (@lieryan, @edreamleo)
* #582 Refactoring rope.base.ast and remove rope.base.astutils
(@lieryan, @edreamleo)
### pynames and pyobjects
OBS-URL: https://build.opensuse.org/request/show/1045827
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rope?expand=0&rev=53
2022-12-30 20:19:29 +00:00
|
|
|
%pyproject_wheel
|
2009-08-27 13:23:09 +00:00
|
|
|
|
|
|
|
%install
|
2017-08-01 15:52:31 +00:00
|
|
|
export LANG=en_US.UTF-8
|
Accepting request 1045827 from home:bnavigator:branches:devel:languages:python:numeric
- Update to 1.6.0
## New features & Enhancements
* #559, #560 Improve handling of whitespace in import and
from-import statements (@lieryan)
* #566, #567, #597 Fix variables in kwonlyargs and posonlyargs
not being correctly passed to extracted methods (@lieryan)
## Unit Test
* #589, #596 Fix issue with sample_project() creating directories
where it shouldn't when running tests (@lieryan)
* #547 Add config file for linters
* #593 Remove only_for decorator for all python versions less
than 3.7 (@edreamleo)
## Tech Debt
### Code quality
* #546 Remove unused vars in test (@lieryan, @edreamleo)
* #551, #552 Numerous flake8 linter complaints (@edreamleo)
* #558 Fix typos (@kianmeng)
* #583, #584 More consistent import style (@edreamleo)
### Python 2-related tech debt
* #533 Refactoring to Remove usage of unicode type (@lieryan)
* #549, #553 Remove rope.base.utils.pycompat (@dreamleo)
* #555 Fix some python2-isms (@lieryan)
### Rope's AST Wrapper
* #536, #578 walk does not return a value (@edreamleo)
* #537, #538 Remove special case code from walk (@edreamleo)
* #581 Remove functions in rope.base.ast that has functionally
identical implementation in stdlib's ast (@lieryan, @edreamleo)
* #582 Refactoring rope.base.ast and remove rope.base.astutils
(@lieryan, @edreamleo)
### pynames and pyobjects
OBS-URL: https://build.opensuse.org/request/show/1045827
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rope?expand=0&rev=53
2022-12-30 20:19:29 +00:00
|
|
|
%pyproject_install
|
|
|
|
%python_expand %fdupes %{buildroot}/%{$python_sitelib}
|
2017-08-01 15:52:31 +00:00
|
|
|
|
|
|
|
%check
|
|
|
|
export LANG=en_US.UTF-8
|
Accepting request 1045827 from home:bnavigator:branches:devel:languages:python:numeric
- Update to 1.6.0
## New features & Enhancements
* #559, #560 Improve handling of whitespace in import and
from-import statements (@lieryan)
* #566, #567, #597 Fix variables in kwonlyargs and posonlyargs
not being correctly passed to extracted methods (@lieryan)
## Unit Test
* #589, #596 Fix issue with sample_project() creating directories
where it shouldn't when running tests (@lieryan)
* #547 Add config file for linters
* #593 Remove only_for decorator for all python versions less
than 3.7 (@edreamleo)
## Tech Debt
### Code quality
* #546 Remove unused vars in test (@lieryan, @edreamleo)
* #551, #552 Numerous flake8 linter complaints (@edreamleo)
* #558 Fix typos (@kianmeng)
* #583, #584 More consistent import style (@edreamleo)
### Python 2-related tech debt
* #533 Refactoring to Remove usage of unicode type (@lieryan)
* #549, #553 Remove rope.base.utils.pycompat (@dreamleo)
* #555 Fix some python2-isms (@lieryan)
### Rope's AST Wrapper
* #536, #578 walk does not return a value (@edreamleo)
* #537, #538 Remove special case code from walk (@edreamleo)
* #581 Remove functions in rope.base.ast that has functionally
identical implementation in stdlib's ast (@lieryan, @edreamleo)
* #582 Refactoring rope.base.ast and remove rope.base.astutils
(@lieryan, @edreamleo)
### pynames and pyobjects
OBS-URL: https://build.opensuse.org/request/show/1045827
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rope?expand=0&rev=53
2022-12-30 20:19:29 +00:00
|
|
|
# find ropetest from local source dir
|
|
|
|
export PYTHONPATH=":x"
|
|
|
|
# https://github.com/python-rope/rope/issues/478, we have a shuffled build directory and can't work around this
|
|
|
|
%pytest -k "not test_search_submodule"
|
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/
|
2021-04-16 08:34:04 +00:00
|
|
|
%{python_sitelib}/rope
|
Accepting request 1045827 from home:bnavigator:branches:devel:languages:python:numeric
- Update to 1.6.0
## New features & Enhancements
* #559, #560 Improve handling of whitespace in import and
from-import statements (@lieryan)
* #566, #567, #597 Fix variables in kwonlyargs and posonlyargs
not being correctly passed to extracted methods (@lieryan)
## Unit Test
* #589, #596 Fix issue with sample_project() creating directories
where it shouldn't when running tests (@lieryan)
* #547 Add config file for linters
* #593 Remove only_for decorator for all python versions less
than 3.7 (@edreamleo)
## Tech Debt
### Code quality
* #546 Remove unused vars in test (@lieryan, @edreamleo)
* #551, #552 Numerous flake8 linter complaints (@edreamleo)
* #558 Fix typos (@kianmeng)
* #583, #584 More consistent import style (@edreamleo)
### Python 2-related tech debt
* #533 Refactoring to Remove usage of unicode type (@lieryan)
* #549, #553 Remove rope.base.utils.pycompat (@dreamleo)
* #555 Fix some python2-isms (@lieryan)
### Rope's AST Wrapper
* #536, #578 walk does not return a value (@edreamleo)
* #537, #538 Remove special case code from walk (@edreamleo)
* #581 Remove functions in rope.base.ast that has functionally
identical implementation in stdlib's ast (@lieryan, @edreamleo)
* #582 Refactoring rope.base.ast and remove rope.base.astutils
(@lieryan, @edreamleo)
### pynames and pyobjects
OBS-URL: https://build.opensuse.org/request/show/1045827
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rope?expand=0&rev=53
2022-12-30 20:19:29 +00:00
|
|
|
%{python_sitelib}/rope-%{version}.dist-info
|
2009-08-27 13:23:09 +00:00
|
|
|
|
|
|
|
%changelog
|