dev-python/editorconfig: Bump to 0.17.1

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny 2025-06-10 03:26:44 +02:00
parent 7e45fc9a25
commit 00db4c6995
No known key found for this signature in database
GPG Key ID: 639ADAE2329E240E
2 changed files with 56 additions and 0 deletions

View File

@ -1,2 +1,3 @@
DIST editorconfig-core-py-0.17.0.gh.tar.gz 19657 BLAKE2B d7e78d96454b637e6aee511d99ef38d92c549a24b426f4a8bd3c75217fd1a1513bc81a6e9f89cddf69c13d50a1a7414082ca1b16575af2cc1ee188a12cf87bca SHA512 9e9c90f646ad58634115fcf88cedefcd2613fb90bbe4a186618b0ee5adde76d014cf3506bcdc36638c28b1b3bb33bd0e0c3580f7d55cad981dd926d61493bdd1
DIST editorconfig-core-py-0.17.1.gh.tar.gz 19843 BLAKE2B aabf892af435abd3c682a13f6b1573579427009c17de5c64c89cf9f210e17cdaa6d0063bfce22635b445829ece274eb63a9481296e45dd5981d36523401f38d8 SHA512 0f95a98826d85a2c5e6fdcc2619f50fd09722f78d24fe411df70e9fa5b064928df0ed711a6064dc3b6246b9425abc6b95945de494972dbd6972c36ac589678c9
DIST editorconfig-core-test-d91029bdf1e3e0307714afe0d2cde7ba6fd208ab.gh.tar.gz 13962 BLAKE2B 2ad5d61d0c6b157083a3990d4deb2d06b1efab42c9e4e0f22a42a90317b9b0212b6dd019ee74c86c4f6ff1edfabb9423d63c3baa499622e80b80243ba7dcc677 SHA512 530ac91b7dc5b433c59251edd5928c6f9c579c343b85f0dbd7dc71de6eb2e34328dbb398f0e68a416f4f22c9c7bfa13a792bcfe4c0469902e3a1fe2ba6c9841f

View File

@ -0,0 +1,55 @@
# 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_{11..14} )
inherit cmake distutils-r1
MY_P=editorconfig-core-py-${PV}
TESTVER="d91029bdf1e3e0307714afe0d2cde7ba6fd208ab"
DESCRIPTION="Clone of EditorConfig core written in Python"
HOMEPAGE="
https://editorconfig.org/
https://github.com/editorconfig/editorconfig-core-py/
https://pypi.org/project/EditorConfig/
"
SRC_URI="
https://github.com/editorconfig/editorconfig-core-py/archive/v${PV}.tar.gz
-> ${MY_P}.gh.tar.gz
test? (
https://github.com/editorconfig/editorconfig-core-test/archive/${TESTVER}.tar.gz
-> editorconfig-core-test-${TESTVER}.gh.tar.gz
)
"
S=${WORKDIR}/${MY_P}
LICENSE="PYTHON BSD-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="cli test"
RESTRICT="!test? ( test )"
RDEPEND="
cli? ( !app-text/editorconfig-core-c[cli] )
"
src_prepare() {
if use test; then
mv "${WORKDIR}"/editorconfig-core-test-${TESTVER}/* "${S}"/tests || die
fi
if ! use cli; then
sed -i -e '/editorconfig\.__main__/d' pyproject.toml || die
fi
cmake_src_prepare
distutils-r1_src_prepare
}
python_test() {
cmake_src_configure
cmake_src_compile
cmake_src_test
}