diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-03-21 18:50:57 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-03-21 18:50:57 +0000 |
| commit | e972851ed8c5fab9a1beafa32872bf06850a18a5 (patch) | |
| tree | 5cd89ff6591cd3f721ded4109852dfd082b15842 /dev-python | |
| parent | 9ef350107ade9549fa98ab8608888ff1867c7c2d (diff) | |
| download | baldeagleos-repo-e972851ed8c5fab9a1beafa32872bf06850a18a5.tar.gz baldeagleos-repo-e972851ed8c5fab9a1beafa32872bf06850a18a5.tar.xz baldeagleos-repo-e972851ed8c5fab9a1beafa32872bf06850a18a5.zip | |
Adding metadata
Diffstat (limited to 'dev-python')
9 files changed, 139 insertions, 3 deletions
diff --git a/dev-python/anyioutils/anyioutils-0.7.1.ebuild b/dev-python/anyioutils/anyioutils-0.7.1.ebuild index 22780fd4f860..3ec53325e43a 100644 --- a/dev-python/anyioutils/anyioutils-0.7.1.ebuild +++ b/dev-python/anyioutils/anyioutils-0.7.1.ebuild @@ -16,7 +16,7 @@ HOMEPAGE=" LICENSE="MIT" SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~riscv ~sparc ~x86" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc64 ~riscv ~sparc ~x86" IUSE="test-rust" RDEPEND=" diff --git a/dev-python/astroid/astroid-3.3.8.ebuild b/dev-python/astroid/astroid-3.3.8.ebuild index aa709af1010d..3e258d724d77 100644 --- a/dev-python/astroid/astroid-3.3.8.ebuild +++ b/dev-python/astroid/astroid-3.3.8.ebuild @@ -45,6 +45,13 @@ distutils_enable_tests pytest export SETUPTOOLS_SCM_PRETEND_VERSION=${PV} +src_prepare() { + distutils-r1_src_prepare + + # https://bugs.gentoo.org/951713 + sed -i -e '/license-files.*Keep in sync/d' pyproject.toml || die +} + python_test() { local EPYTEST_DESELECT=( # no clue why they're broken diff --git a/dev-python/astroid/astroid-3.3.9.ebuild b/dev-python/astroid/astroid-3.3.9.ebuild index c8d0031ae039..1a42e8962c49 100644 --- a/dev-python/astroid/astroid-3.3.9.ebuild +++ b/dev-python/astroid/astroid-3.3.9.ebuild @@ -45,6 +45,13 @@ distutils_enable_tests pytest export SETUPTOOLS_SCM_PRETEND_VERSION=${PV} +src_prepare() { + distutils-r1_src_prepare + + # https://bugs.gentoo.org/951713 + sed -i -e '/license-files.*Keep in sync/d' pyproject.toml || die +} + python_test() { local EPYTEST_IGNORE=() local EPYTEST_DESELECT=( diff --git a/dev-python/python-lsp-black/files/python-lsp-black-2.0.0-test.patch b/dev-python/python-lsp-black/files/python-lsp-black-2.0.0-test.patch new file mode 100644 index 000000000000..49ab792cded8 --- /dev/null +++ b/dev-python/python-lsp-black/files/python-lsp-black-2.0.0-test.patch @@ -0,0 +1,73 @@ +From d43b41431379f9c9bb05fab158c4d97e6d515f8f Mon Sep 17 00:00:00 2001 +From: Johannes Schauer Marin Rodrigues <josch@mister-muffin.de> +Date: Tue, 20 Feb 2024 07:44:20 +0100 +Subject: [PATCH] Make tests work with black 24.2.0 + +Closes: #55 +--- + tests/test_plugin.py | 18 ++++++++++++++++-- + +diff --git a/tests/test_plugin.py b/tests/test_plugin.py +index 0a51767..2ae8088 100644 +--- a/tests/test_plugin.py ++++ b/tests/test_plugin.py +@@ -281,7 +281,14 @@ def test_load_config_defaults(config): + + assert config == { + "line_length": 88, +- "target_version": set(), ++ "target_version": set( ++ [ ++ black.TargetVersion.PY38, ++ black.TargetVersion.PY39, ++ black.TargetVersion.PY310, ++ black.TargetVersion.PY311, ++ ] ++ ), + "pyi": False, + "fast": False, + "skip_magic_trailing_comma": False, +@@ -297,7 +304,14 @@ def test_load_config_with_skip_options(config_with_skip_options): + + assert config == { + "line_length": 88, +- "target_version": set(), ++ "target_version": set( ++ [ ++ black.TargetVersion.PY38, ++ black.TargetVersion.PY39, ++ black.TargetVersion.PY310, ++ black.TargetVersion.PY311, ++ ] ++ ), + "pyi": False, + "fast": False, + "skip_magic_trailing_comma": True, +From 9298585a9d14d25920c33b188d79e820dc98d4a9 Mon Sep 17 00:00:00 2001 +From: Anton Zhukharev <ancieg@altlinux.org> +Date: Tue, 9 Apr 2024 16:06:55 +0300 +Subject: [PATCH] Make tests work with black 24.3.0 + +Closes: #57 + +Black changed raising exception from AssertionError to ASTSafetyError +and we need to apply similar change. + +See: https://github.com/psf/black/commit/6af7d1109693c4ad3af08ecbc34649c232b47a6d +--- + pylsp_black/plugin.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/pylsp_black/plugin.py b/pylsp_black/plugin.py +index e4fb9ba..5523896 100644 +--- a/pylsp_black/plugin.py ++++ b/pylsp_black/plugin.py +@@ -127,7 +127,7 @@ def format_text(*, text, config, lines): + IndentationError, + # raised when black produces invalid Python code or formats the file + # differently on the second pass +- AssertionError, ++ black.parsing.ASTSafetyError, + ) as e: + # errors will show on lsp stderr stream + logger.error("Error formatting with black: %s", e) diff --git a/dev-python/python-lsp-black/python-lsp-black-2.0.0-r1.ebuild b/dev-python/python-lsp-black/python-lsp-black-2.0.0-r1.ebuild index 4d041ca58691..24984a678a9d 100644 --- a/dev-python/python-lsp-black/python-lsp-black-2.0.0-r1.ebuild +++ b/dev-python/python-lsp-black/python-lsp-black-2.0.0-r1.ebuild @@ -38,6 +38,12 @@ BDEPEND=" distutils_enable_tests pytest +PATCHES=( + # https://github.com/python-lsp/python-lsp-black/pull/56 + # https://github.com/python-lsp/python-lsp-black/pull/59 + "${FILESDIR}/${P}-test.patch" +) + python_test() { local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 epytest diff --git a/dev-python/rpds-py/rpds-py-0.23.1.ebuild b/dev-python/rpds-py/rpds-py-0.23.1.ebuild index 99ba56eedbff..3eb0256388c7 100644 --- a/dev-python/rpds-py/rpds-py-0.23.1.ebuild +++ b/dev-python/rpds-py/rpds-py-0.23.1.ebuild @@ -52,7 +52,7 @@ LICENSE="MIT" # Dependent crate licenses LICENSE+=" Apache-2.0-with-LLVM-exceptions MIT MPL-2.0 Unicode-DFS-2016" SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~mips ppc ppc64 ~riscv ~s390 ~sparc x86" QA_FLAGS_IGNORED="usr/lib.*/py.*/site-packages/rpds/rpds.*.so" diff --git a/dev-python/spyder-line-profiler/Manifest b/dev-python/spyder-line-profiler/Manifest index b89705a46b44..de357a0477cf 100644 --- a/dev-python/spyder-line-profiler/Manifest +++ b/dev-python/spyder-line-profiler/Manifest @@ -1 +1,2 @@ DIST spyder-line-profiler-0.4.0.gh.tar.gz 89222 BLAKE2B 7b4b7d2e884c6843c03289fde1351640fa768d1ede3cb7287859968c81a2207864f8039dff68d4bdf5e5d1fbb622d67ed9b5c90efeb615f8eb6bd6ed37cbd1df SHA512 4210a5ce58f11fb6d1453c29c0b363b111e73e01feb58593d9a4b0e31c3ae8d158a4ae052e633f23ac4b78cb116b68610a2b38e7d686d8cc6ec183723f91ffe1 +DIST spyder-line-profiler-0.4.1.gh.tar.gz 89419 BLAKE2B 396ed214355f8a25a567594ca41e69d2b487cd50fc16801c689086b370ccd07d3e1cdfa0d864e5fef6b0cfcdbcb7b942f779cdf369f656d6e3c77a27329267c4 SHA512 f3b8c6ec5c5cfc2fc5f4134746276cb0c28cf62e40c4420eb73a5caa4a5ae3b3545a964297665049f52d4594e14aff06da18f5748c7f9fc6ef0cc34ac27bb215 diff --git a/dev-python/spyder-line-profiler/spyder-line-profiler-0.4.1.ebuild b/dev-python/spyder-line-profiler/spyder-line-profiler-0.4.1.ebuild new file mode 100644 index 000000000000..456245743e86 --- /dev/null +++ b/dev-python/spyder-line-profiler/spyder-line-profiler-0.4.1.ebuild @@ -0,0 +1,42 @@ +# 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_{9,10,11,12,13} ) + +inherit distutils-r1 virtualx + +DESCRIPTION="Plugin to run the python line profiler from within the spyder editor" +HOMEPAGE=" + https://github.com/spyder-ide/spyder-line-profiler/ + https://pypi.org/project/spyder-line-profiler/ +" +SRC_URI=" + https://github.com/spyder-ide/spyder-line-profiler/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64" + +RDEPEND=" + dev-python/line-profiler[${PYTHON_USEDEP}] + dev-python/qtawesome[${PYTHON_USEDEP}] + >=dev-python/spyder-6[${PYTHON_USEDEP}] + <dev-python/spyder-7[${PYTHON_USEDEP}] +" + +BDEPEND=" + test? ( + dev-python/pytest-qt[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_test() { + virtx epytest +} diff --git a/dev-python/zmq-anyio/zmq-anyio-0.3.6.ebuild b/dev-python/zmq-anyio/zmq-anyio-0.3.6.ebuild index 8f6a7f235c41..edd59d903342 100644 --- a/dev-python/zmq-anyio/zmq-anyio-0.3.6.ebuild +++ b/dev-python/zmq-anyio/zmq-anyio-0.3.6.ebuild @@ -16,7 +16,7 @@ HOMEPAGE=" LICENSE="BSD" SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~riscv ~sparc ~x86" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc64 ~riscv ~sparc ~x86" IUSE="test-rust" RDEPEND=" |
