From: "Maciej Barć" <xgqt@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emacs/elpy/
Date: Sat, 13 Apr 2024 22:56:29 +0000 (UTC) [thread overview]
Message-ID: <1713048948.de2d3b0c5f990d885aa2247aacd776393b203586.xgqt@gentoo> (raw)
commit: de2d3b0c5f990d885aa2247aacd776393b203586
Author: Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 13 22:06:07 2024 +0000
Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Sat Apr 13 22:55:48 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de2d3b0c
app-emacs/elpy: enable py3.12 compat
Closes: https://bugs.gentoo.org/929303
Closes: https://bugs.gentoo.org/885897
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>
...0627.ebuild => elpy-1.35.0_p20220627-r1.ebuild} | 47 +++++++++++++++-------
1 file changed, 32 insertions(+), 15 deletions(-)
diff --git a/app-emacs/elpy/elpy-1.35.0_p20220627.ebuild b/app-emacs/elpy/elpy-1.35.0_p20220627-r1.ebuild
similarity index 52%
rename from app-emacs/elpy/elpy-1.35.0_p20220627.ebuild
rename to app-emacs/elpy/elpy-1.35.0_p20220627-r1.ebuild
index eab92e1f5156..dbb7bd8ac1ba 100644
--- a/app-emacs/elpy/elpy-1.35.0_p20220627.ebuild
+++ b/app-emacs/elpy/elpy-1.35.0_p20220627-r1.ebuild
@@ -1,25 +1,33 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
-[[ ${PV} == *_p20220627 ]] && COMMIT=de31d30003c515c25ff7bfd3a361c70c298f78bb
-
DISTUTILS_SINGLE_IMPL=ON
DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{9..11} )
+PYTHON_COMPAT=( python3_{10..12} )
inherit distutils-r1 elisp
DESCRIPTION="Emacs Python Development Environment"
HOMEPAGE="https://github.com/jorgenschaefer/elpy/"
-SRC_URI="https://github.com/jorgenschaefer/${PN}/archive/${COMMIT}.tar.gz
- -> ${P}.tar.gz"
-S="${WORKDIR}"/${PN}-${COMMIT}
+
+if [[ "${PV}" == *9999* ]] ; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/jorgenschaefer/${PN}.git"
+else
+ [[ "${PV}" == *_p20220627 ]] && COMMIT=de31d30003c515c25ff7bfd3a361c70c298f78bb
+
+ SRC_URI="https://github.com/jorgenschaefer/${PN}/archive/${COMMIT}.tar.gz
+ -> ${P}.tar.gz"
+ S="${WORKDIR}/${PN}-${COMMIT}"
+
+ KEYWORDS="~amd64 ~x86"
+fi
LICENSE="GPL-3+"
SLOT="0"
-KEYWORDS="~amd64 ~x86"
IUSE="test"
RESTRICT="!test? ( test )"
@@ -29,7 +37,9 @@ RDEPEND="
app-emacs/pyvenv
app-emacs/s
app-emacs/yasnippet
- $(python_gen_cond_dep 'dev-python/flake8[${PYTHON_USEDEP}]')
+ $(python_gen_cond_dep '
+ dev-python/flake8[${PYTHON_USEDEP}]
+ ')
"
BDEPEND="
${RDEPEND}
@@ -42,9 +52,13 @@ BDEPEND="
)
"
+ELISP_REMOVE="
+ elpy/tests/test_black.py
+ elpy/tests/test_yapf.py
+"
PATCHES=(
- "${FILESDIR}"/${PN}-elpy.el-yas-snippet-dirs.patch
- "${FILESDIR}"/${PN}-elpy-rpc.el-elpy-rpc-pythonpath.patch
+ "${FILESDIR}/${PN}-elpy.el-yas-snippet-dirs.patch"
+ "${FILESDIR}/${PN}-elpy-rpc.el-elpy-rpc-pythonpath.patch"
)
DOCS=( CONTRIBUTING.rst README.rst )
@@ -60,10 +74,13 @@ pkg_setup() {
src_prepare() {
distutils-r1_src_prepare
- rm elpy/tests/test_black.py || die
- sed -i "s|@SITEETC@|${EPREFIX}${SITEETC}/${PN}|" ${PN}.el || die
- sed -i "s|@PYTHONLIB@|${EPREFIX}/usr/lib/${EPYTHON}|" ${PN}-rpc.el || die
+ sed -i "${PN}.el" -e "s|@SITEETC@|${EPREFIX}${SITEETC}/${PN}|" || die
+ sed -i "${PN}-rpc.el" -e "s|@PYTHONLIB@|${EPREFIX}/usr/lib/${EPYTHON}|" || die
+
+ rm ${ELISP_REMOVE} || die
+ sed -i elpy/tests/support.py \
+ -e "s|test_should_get_oneline_docstring_for_modules|disabled_&|" || die
}
src_compile() {
@@ -79,6 +96,6 @@ src_install() {
distutils-r1_src_install
elisp_src_install
- insinto ${SITEETC}/${PN}
+ insinto "${SITEETC}/${PN}"
doins -r snippets
}
next reply other threads:[~2024-04-13 22:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-13 22:56 Maciej Barć [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-10-03 15:08 [gentoo-commits] repo/gentoo:master commit in: app-emacs/elpy/ Maciej Barć
2023-02-27 0:05 Maciej Barć
2022-08-31 19:26 Maciej Barć
2022-04-08 18:21 Maciej Barć
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1713048948.de2d3b0c5f990d885aa2247aacd776393b203586.xgqt@gentoo \
--to=xgqt@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox