Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/entrypoint2/files/, dev-python/entrypoint2/
Date: Wed, 01 Jun 2022 10:55:52
Message-Id: 1654080930.a380f8e7ffd21fe5eccbf161aa06f2b12d21b8a0.andrewammerlaan@gentoo
1 commit: a380f8e7ffd21fe5eccbf161aa06f2b12d21b8a0
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jun 1 10:35:55 2022 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Wed Jun 1 10:55:30 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a380f8e7
7
8 dev-python/entrypoint2: enable py3.11
9
10 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
11
12 dev-python/entrypoint2/entrypoint2-1.0-r1.ebuild | 29 ++++++++++++++++++++++
13 .../files/entrypoint2-1.0-python311.patch | 13 ++++++++++
14 2 files changed, 42 insertions(+)
15
16 diff --git a/dev-python/entrypoint2/entrypoint2-1.0-r1.ebuild b/dev-python/entrypoint2/entrypoint2-1.0-r1.ebuild
17 new file mode 100644
18 index 000000000000..758a23521d24
19 --- /dev/null
20 +++ b/dev-python/entrypoint2/entrypoint2-1.0-r1.ebuild
21 @@ -0,0 +1,29 @@
22 +# Copyright 1999-2022 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=8
26 +
27 +DISTUTILS_USE_PEP517=setuptools
28 +PYTHON_COMPAT=( python3_{8..11} )
29 +inherit distutils-r1
30 +
31 +DESCRIPTION="Easy to use command-line interface for python modules"
32 +HOMEPAGE="https://github.com/ponty/entrypoint2"
33 +SRC_URI="https://github.com/ponty/entrypoint2/archive/${PV}.tar.gz -> ${P}.tar.gz"
34 +
35 +LICENSE="BSD-2"
36 +SLOT="0"
37 +KEYWORDS="~amd64 ~arm64 ~x86"
38 +
39 +BDEPEND="
40 + test? (
41 + dev-python/easyprocess[${PYTHON_USEDEP}]
42 + dev-python/path-py[${PYTHON_USEDEP}]
43 + )
44 +"
45 +
46 +PATCHES=(
47 + "${FILESDIR}/${P}-python311.patch"
48 +)
49 +
50 +distutils_enable_tests pytest
51
52 diff --git a/dev-python/entrypoint2/files/entrypoint2-1.0-python311.patch b/dev-python/entrypoint2/files/entrypoint2-1.0-python311.patch
53 new file mode 100644
54 index 000000000000..95de1d3b689a
55 --- /dev/null
56 +++ b/dev-python/entrypoint2/files/entrypoint2-1.0-python311.patch
57 @@ -0,0 +1,13 @@
58 +diff --git a/entrypoint2/__init__.py b/entrypoint2/__init__.py
59 +index 63ab78b..a99a298 100644
60 +--- a/entrypoint2/__init__.py
61 ++++ b/entrypoint2/__init__.py
62 +@@ -345,7 +345,7 @@ def _correct_args(func, kwargs):
63 + Convert a dictionary of arguments including __argv into a list
64 + for passing to the function.
65 + """
66 +- args = inspect.getargspec(func)[0]
67 ++ args = inspect.getfullargspec(func)[0]
68 + return [kwargs[arg] for arg in args] + kwargs["__args"]
69 +
70 +