summaryrefslogtreecommitdiff
path: root/dev-python/pylama
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-02-02 17:45:32 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-02-02 17:45:32 +0000
commit5939313f229e6fcf374fb7e9ee4f8675b05ab293 (patch)
tree0a8181cbc5d052ab4d26a8e1d2dc52f126063fc6 /dev-python/pylama
parent7e3d6dcede5749fe6a1adef4e673a9dde7703b7b (diff)
gentoo auto-resync : 02:02:2024 - 17:45:32
Diffstat (limited to 'dev-python/pylama')
-rw-r--r--dev-python/pylama/Manifest5
-rw-r--r--dev-python/pylama/files/pylama-8.4.1-dummy-elif.patch32
-rw-r--r--dev-python/pylama/files/pylama-8.4.1-tomli.patch69
-rw-r--r--dev-python/pylama/metadata.xml17
-rw-r--r--dev-python/pylama/pylama-8.4.1-r1.ebuild55
5 files changed, 0 insertions, 178 deletions
diff --git a/dev-python/pylama/Manifest b/dev-python/pylama/Manifest
deleted file mode 100644
index c0ffec33d24f..000000000000
--- a/dev-python/pylama/Manifest
+++ /dev/null
@@ -1,5 +0,0 @@
-AUX pylama-8.4.1-dummy-elif.patch 971 BLAKE2B d237185baee054bd8dd252fd5b13929371b699640239a650fdb5c1eeaf461c2ff95f78433a41b8b48a3c6a344e63b1170a0e9ddcc7595b471675bf3174ac63f2 SHA512 943584207783a5fec8f62dc61c5f192c46bc8046d7d4c921162f4b1b479e61c86935aac4c6b0c50b8342fbb189588b42f114b1d9d17931ed553e7f30d7409fca
-AUX pylama-8.4.1-tomli.patch 2304 BLAKE2B 5e8a3c9ba4d8ac2965dc60198ee72fd29293330a9b0c643fa49e7fcd0515c3448b8a3cb75b164b014b5d6117486304f17c8736d46cf3aa6f586708427678a1f3 SHA512 fd1449d6f893a19194f84a3bb6b0c77d34e624900c3f10ec24989e9e09c66dfb6ae4d93faa63b131d0a0e53d50e8a880ca33f039f378b7d5ddf844d9d29b5dc8
-DIST pylama-8.4.1.gh.tar.gz 37850 BLAKE2B dea99fc784736f3b229c5d82a59f2e2b5490fbe344ad98167e30e550b6c774c7b42cbddfedeb073d9d843cf53169c441812974036b06088ab07d7b7996def4a5 SHA512 fb038c39a2e962bd065ac5ef545f1be50f5b230141141a55e1701ffdc6a241b5778613ac91f29ff648b7ce48fa969c3961a11b7e906b6e350c84b57eea5369cd
-EBUILD pylama-8.4.1-r1.ebuild 1220 BLAKE2B 0fd8b903fba9c631c13846267c6c2bd93ba70e4079f01cce1766abcdcf5cd5d3ac3dd760ec121a1519e06397b3f940bf658c7522e6bd07dd2ae5fd08d8550e35 SHA512 c0fbad4f7655bfeb1de9693e5da2294ea5fee712204d35a0d1ad01f1e8604431d53cf2bccb68fbc8afb58cd732d6e1dcad10db4726f83d3f36c72c0bbaf1fb41
-MISC metadata.xml 490 BLAKE2B 4c0dda4b057901937d4b6af02041edc0544e392ade5a3497de0d58ba5c1423332e6c1f0b289a3bbbdcccc1b45eedc01f158778e99f9a6f3911cb6b91d999519d SHA512 d3dc1fdaee046554de697e6aeb324910199ea9329a57ac89cebc96f2143e4d2482e31cadc5df16893fcd012058282f600fef676992d8dd55dba3f045f69bc52b
diff --git a/dev-python/pylama/files/pylama-8.4.1-dummy-elif.patch b/dev-python/pylama/files/pylama-8.4.1-dummy-elif.patch
deleted file mode 100644
index 788d38382114..000000000000
--- a/dev-python/pylama/files/pylama-8.4.1-dummy-elif.patch
+++ /dev/null
@@ -1,32 +0,0 @@
-From 2093ce0ad405e20efa3f2dad771a04577e0f7e6b Mon Sep 17 00:00:00 2001
-From: Stanislav Levin <slev@altlinux.org>
-Date: Fri, 12 May 2023 19:38:41 +0300
-Subject: [PATCH] tests: Sync pylint's no-else-return
-
-https://github.com/klen/pylama/pull/243
-
-See https://pylint.readthedocs.io/en/latest/user_guide/messages/refactor/no-else-return.html for details.
-
-Fixes: https://github.com/klen/pylama/issues/238
-Signed-off-by: Stanislav Levin <slev@altlinux.org>
----
- dummy.py | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/dummy.py b/dummy.py
-index c19ee6d..09a0e3c 100644
---- a/dummy.py
-+++ b/dummy.py
-@@ -22,10 +22,10 @@ def __init__(self, filename, loc, use_column=True):
- if test == 1:
- if test == 1:
- return 28
-- elif test == 2:
-+ if test == 2:
- return 28
- return 28
-- elif test == 2:
-+ if test == 2:
- return 28
-
- def __str__(self):
diff --git a/dev-python/pylama/files/pylama-8.4.1-tomli.patch b/dev-python/pylama/files/pylama-8.4.1-tomli.patch
deleted file mode 100644
index 291bc9f530e7..000000000000
--- a/dev-python/pylama/files/pylama-8.4.1-tomli.patch
+++ /dev/null
@@ -1,69 +0,0 @@
-From 8b7908fec960a05af0a0a9b10d24ed458fcf97c7 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
-Date: Tue, 8 Nov 2022 14:33:59 +0100
-Subject: [PATCH] Use tomli/tomllib instead of the unmaintained toml package
-
-Replace the use of the unmaintained `toml` package with the modern
-alternatives: the built-in `tomllib` in Python 3.11+, and its equivalent
-`tomli` in older Python versions. `tomli` installs type stubs, so there
-is no need for an additional `types-*` package for it.
----
- pylama/config_toml.py | 9 +++++++--
- requirements/requirements-tests.txt | 3 +--
- setup.py | 2 +-
- 3 files changed, 9 insertions(+), 5 deletions(-)
-
-diff --git a/pylama/config_toml.py b/pylama/config_toml.py
-index 2af02a5..ea6e17a 100644
---- a/pylama/config_toml.py
-+++ b/pylama/config_toml.py
-@@ -1,16 +1,21 @@
- """Pylama TOML configuration."""
-
--import toml
-+import sys
-
- from pylama.libs.inirama import Namespace as _Namespace
-
-+if sys.version_info >= (3, 11):
-+ import tomllib
-+else:
-+ import tomli as tomllib
-+
-
- class Namespace(_Namespace):
- """Inirama-style wrapper for TOML config."""
-
- def parse(self, source: str, update: bool = True, **params):
- """Parse TOML source as string."""
-- content = toml.loads(source)
-+ content = tomllib.loads(source)
- tool = content.get("tool", {})
- pylama = tool.get("pylama", {})
- linters = pylama.pop("linter", {})
-diff --git a/requirements/requirements-tests.txt b/requirements/requirements-tests.txt
-index d786f1f..e62ccae 100644
---- a/requirements/requirements-tests.txt
-+++ b/requirements/requirements-tests.txt
-@@ -5,8 +5,7 @@ radon >= 5.1.0
- mypy
- pylint >= 2.11.1
- pylama-quotes
--toml
-+tomli >= 1.2.3 ; python_version < "3.11"
- vulture
-
- types-setuptools
--types-toml
-diff --git a/setup.py b/setup.py
-index 911aea6..6d0222b 100644
---- a/setup.py
-+++ b/setup.py
-@@ -21,6 +21,6 @@ def parse_requirements(path: str) -> "list[str]":
- extras_require=dict(
- tests=parse_requirements("requirements/requirements-tests.txt"),
- all=OPTIONAL_LINTERS, **{linter: [linter] for linter in OPTIONAL_LINTERS},
-- toml="toml>=0.10.2",
-+ toml="tomli>=1.2.3; python_version < '3.11'",
- ),
- )
diff --git a/dev-python/pylama/metadata.xml b/dev-python/pylama/metadata.xml
deleted file mode 100644
index 5ea1c06f17d7..000000000000
--- a/dev-python/pylama/metadata.xml
+++ /dev/null
@@ -1,17 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <maintainer type="person">
- <email>zmedico@gentoo.org</email>
- <name>Zac Medico</name>
- </maintainer>
- <maintainer type="project">
- <email>python@gentoo.org</email>
- <name>Python</name>
- </maintainer>
- <stabilize-allarches/>
- <upstream>
- <remote-id type="pypi">pylama</remote-id>
- <remote-id type="github">klen/pylama</remote-id>
- </upstream>
-</pkgmetadata>
diff --git a/dev-python/pylama/pylama-8.4.1-r1.ebuild b/dev-python/pylama/pylama-8.4.1-r1.ebuild
deleted file mode 100644
index 30c5ca59c22f..000000000000
--- a/dev-python/pylama/pylama-8.4.1-r1.ebuild
+++ /dev/null
@@ -1,55 +0,0 @@
-# Copyright 1999-2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{9..11} )
-
-inherit distutils-r1
-
-DESCRIPTION="Code audit tool for python"
-HOMEPAGE="
- https://github.com/klen/pylama/
- https://pypi.org/project/pylama/
-"
-SRC_URI="
- https://github.com/klen/pylama/archive/${PV}.tar.gz
- -> ${P}.gh.tar.gz
-"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~mips ppc ppc64 ~riscv ~s390 sparc x86"
-
-RDEPEND="
- >=dev-python/mccabe-0.7.0[${PYTHON_USEDEP}]
- >=dev-python/pycodestyle-2.9.1[${PYTHON_USEDEP}]
- >=dev-python/pydocstyle-6.1.1[${PYTHON_USEDEP}]
- >=dev-python/pyflakes-2.5.0[${PYTHON_USEDEP}]
-"
-BDEPEND="
- test? (
- dev-python/eradicate[${PYTHON_USEDEP}]
- dev-python/mypy[${PYTHON_USEDEP}]
- dev-python/pylint[${PYTHON_USEDEP}]
- dev-python/radon[${PYTHON_USEDEP}]
- dev-vcs/git
- $(python_gen_cond_dep '
- dev-python/tomli[${PYTHON_USEDEP}]
- ' 3.{8..10})
- )
-"
-
-distutils_enable_tests pytest
-
-PATCHES=(
- "${FILESDIR}"/${P}-tomli.patch
- "${FILESDIR}"/${P}-dummy-elif.patch
-)
-
-EPYTEST_DESELECT=(
- # not packaged
- tests/test_linters.py::test_quotes
- tests/test_linters.py::test_vulture
-)