14
0
forked from pool/python-rope
Files
python-rope/python-rope.spec

88 lines
2.9 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-rope
#
# Copyright (c) 2023 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
Name: python-rope
Version: 1.9.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
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}
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
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
BuildArch: noarch
%python_subpackages
%description
Rope is a python refactoring library.
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.
%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}
%build
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
%install
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}
%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"
%files %{python_files}
%license COPYING
%doc README.rst
%doc docs/
%{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
%changelog