mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-python/rope: Remove old
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -1,2 +1 @@
|
||||
DIST rope-1.13.0.tar.gz 294457 BLAKE2B 6d859f9a5d09734ef90398671a3ef3c8564f2a8b1d03a064d22161ac7deeceefb38849cd6940a53f61f20199c27edc5ef5e88d59336cfd69f4da22685c705356 SHA512 2f150d8b56165dd3cffc3f41d94394b5f44d7d6274859d7b460c6e61b99cb9d9630f3540940fa97bcd1238fa8a799cf9c80f2d9b5b7fd6a690cebabadf775db4
|
||||
DIST rope-1.14.0.tar.gz 296801 BLAKE2B 91bb9f38dc8618958e3acbb0d14bb9996851bc0d8160e66fc379ea98aa3afb0b7bfd0d4fa82eff986f7f5df4c579f2d06145294157a2fa25a5297e8b934319f3 SHA512 c6be815e386b7430eb48de0f09d04243bbcbf37b32bac043c8141fa63f6d33ef29809ce1eb37f0f01d0d0032be9a43c02c984a418a796f86da6ce056ac060785
|
||||
|
||||
@@ -1,55 +0,0 @@
|
||||
diff --git a/rope/base/oi/type_hinting/utils.py b/rope/base/oi/type_hinting/utils.py
|
||||
index b0a7aff97..2381c8472 100644
|
||||
--- a/rope/base/oi/type_hinting/utils.py
|
||||
+++ b/rope/base/oi/type_hinting/utils.py
|
||||
@@ -1,6 +1,7 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import logging
|
||||
+import sys
|
||||
from typing import TYPE_CHECKING, Optional, Union
|
||||
|
||||
import rope.base.utils as base_utils
|
||||
@@ -81,7 +82,10 @@ def resolve_type(
|
||||
"""
|
||||
Find proper type object from its name.
|
||||
"""
|
||||
- deprecated_aliases = {"collections": "collections.abc"}
|
||||
+ if sys.version_info < (3, 13):
|
||||
+ deprecated_aliases = {"collections": "collections.abc"}
|
||||
+ else:
|
||||
+ deprecated_aliases = {"collections": "_collections_abc"}
|
||||
ret_type = None
|
||||
logging.debug("Looking for %s", type_name)
|
||||
if "." not in type_name:
|
||||
|
||||
diff --git a/rope/contrib/autoimport/sqlite.py b/rope/contrib/autoimport/sqlite.py
|
||||
index 54a6d03cf..f06fdaca3 100644
|
||||
--- a/rope/contrib/autoimport/sqlite.py
|
||||
+++ b/rope/contrib/autoimport/sqlite.py
|
||||
@@ -569,14 +569,17 @@ def filter_folders(folder: Path) -> bool:
|
||||
return list(OrderedDict.fromkeys(folder_paths))
|
||||
|
||||
def _safe_iterdir(self, folder: Path):
|
||||
- dirs = folder.iterdir()
|
||||
- while True:
|
||||
- try:
|
||||
- yield next(dirs)
|
||||
- except PermissionError:
|
||||
- pass
|
||||
- except StopIteration:
|
||||
- break
|
||||
+ try:
|
||||
+ dirs = folder.iterdir()
|
||||
+ while True:
|
||||
+ try:
|
||||
+ yield next(dirs)
|
||||
+ except PermissionError:
|
||||
+ pass
|
||||
+ except StopIteration:
|
||||
+ break
|
||||
+ except PermissionError:
|
||||
+ pass
|
||||
|
||||
def _get_available_packages(self) -> List[Package]:
|
||||
packages: List[Package] = [
|
||||
@@ -1,48 +0,0 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_USE_PEP517=setuptools
|
||||
PYTHON_COMPAT=( python3_{10..13} )
|
||||
|
||||
inherit distutils-r1 pypi
|
||||
|
||||
DESCRIPTION="Python refactoring library"
|
||||
HOMEPAGE="
|
||||
https://pypi.org/project/rope/
|
||||
https://github.com/python-rope/rope/
|
||||
"
|
||||
|
||||
LICENSE="LGPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm64 ~ppc64 x86"
|
||||
IUSE="doc"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-python/pytoolconfig-1.2.2[${PYTHON_USEDEP}]
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/build[${PYTHON_USEDEP}]
|
||||
dev-python/pip[${PYTHON_USEDEP}]
|
||||
dev-python/pytest-timeout[${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
# https://github.com/python-rope/rope/pull/809
|
||||
"${FILESDIR}/${PN}-1.13.0-python3.13.patch"
|
||||
)
|
||||
|
||||
distutils_enable_tests pytest
|
||||
|
||||
EPYTEST_DESELECT=(
|
||||
# our venv style confuses this comparison
|
||||
ropetest/contrib/autoimport/utilstest.py::test_get_package_source_typing
|
||||
ropetest/contrib/autoimport/utilstest.py::test_get_package_tuple_typing
|
||||
ropetest/contrib/autoimport/utilstest.py::test_get_package_tuple_compiled
|
||||
# TODO
|
||||
ropetest/contrib/autoimport/autoimporttest.py::TestQueryUsesIndexes::test_search_by_name_like_uses_index
|
||||
ropetest/contrib/autoimport/autoimporttest.py::TestQueryUsesIndexes::test_search_module_like_uses_index
|
||||
)
|
||||
Reference in New Issue
Block a user