Files
gentoo/dev-python/linode-metadata/linode-metadata-0.4.0-r1.ebuild
Viorel Munteanu e551a8c875 dev-python/linode-metadata: enable py3.15
- Enable the unit tests and enable py3.15.
- Use the github archive since it contains the tests.

Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
2026-10-31 16:32:53 +02:00

36 lines
767 B
Bash

# Copyright 2023-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{11..15} )
DISTUTILS_USE_PEP517=setuptools
inherit distutils-r1
MY_PN=py-metadata
DESCRIPTION="Python bindings for the Linode Metadata Service"
HOMEPAGE="https://github.com/linode/py-metadata https://www.linode.com/"
SRC_URI="https://github.com/linode/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz"
S="${WORKDIR}"/${MY_PN}-${PV}
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="
dev-python/httpx[${PYTHON_USEDEP}]
"
EPYTEST_PLUGINS=()
distutils_enable_tests pytest
src_prepare() {
default
# require network and do not work
rm -r test/integration || die
emake create-version LINODE_METADATA_VERSION=${PV}
}