2023-01-13 20:20:10 +01:00
|
|
|
# Copyright 2022-2023 Gentoo Authors
|
2022-12-31 16:46:12 +01:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2023-02-08 22:20:57 +01:00
|
|
|
EAPI="8"
|
2022-12-31 16:46:12 +01:00
|
|
|
|
|
|
|
DISTUTILS_USE_PEP517=pdm
|
|
|
|
PYTHON_COMPAT=( python3_{10..11} )
|
2023-02-25 16:24:13 +01:00
|
|
|
inherit distutils-r1 pypi
|
2022-12-31 16:46:12 +01:00
|
|
|
|
|
|
|
DESCRIPTION="Python package and dependcy manager supporting latest PEPs"
|
|
|
|
HOMEPAGE="
|
|
|
|
https://pdm.fming.dev/latest/
|
2023-02-20 23:34:06 +01:00
|
|
|
https://github.com/pdm-project/pdm
|
2022-12-31 16:46:12 +01:00
|
|
|
https://pypi.org/project/pdm/
|
|
|
|
"
|
|
|
|
|
|
|
|
LICENSE="MIT"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64"
|
|
|
|
IUSE="test"
|
|
|
|
RESTRICT="!test? ( test )"
|
|
|
|
|
|
|
|
RDEPEND="
|
2023-02-20 23:34:06 +01:00
|
|
|
dev-python/blinker[${PYTHON_USEDEP}]
|
2023-01-16 07:04:54 +01:00
|
|
|
dev-python/cachecontrol[${PYTHON_USEDEP}]
|
2023-02-20 23:34:06 +01:00
|
|
|
dev-python/certifi[${PYTHON_USEDEP}]
|
2022-12-31 16:46:12 +01:00
|
|
|
dev-python/findpython[${PYTHON_USEDEP}]
|
2023-04-23 11:00:46 +02:00
|
|
|
dev-python/importlib-metadata[${PYTHON_USEDEP}]
|
2023-02-20 23:34:06 +01:00
|
|
|
dev-python/installer[${PYTHON_USEDEP}]
|
|
|
|
dev-python/packaging[${PYTHON_USEDEP}]
|
2023-02-25 16:24:13 +01:00
|
|
|
dev-python/platformdirs[${PYTHON_USEDEP}]
|
2022-12-31 16:46:12 +01:00
|
|
|
dev-python/pyproject-hooks[${PYTHON_USEDEP}]
|
2023-02-20 23:34:06 +01:00
|
|
|
dev-python/python-dotenv[${PYTHON_USEDEP}]
|
|
|
|
dev-python/requests-toolbelt[${PYTHON_USEDEP}]
|
2023-02-23 22:00:02 +01:00
|
|
|
dev-python/resolvelib[${PYTHON_USEDEP}]
|
2023-02-20 23:34:06 +01:00
|
|
|
dev-python/rich[${PYTHON_USEDEP}]
|
2022-12-31 16:46:12 +01:00
|
|
|
dev-python/shellingham[${PYTHON_USEDEP}]
|
2023-02-20 23:34:06 +01:00
|
|
|
dev-python/tomlkit[${PYTHON_USEDEP}]
|
|
|
|
dev-python/tomli[${PYTHON_USEDEP}]
|
|
|
|
dev-python/typing-extensions[${PYTHON_USEDEP}]
|
2023-04-23 11:00:46 +02:00
|
|
|
>=dev-python/unearth-0.9.0[${PYTHON_USEDEP}]
|
2023-01-16 07:04:54 +01:00
|
|
|
dev-python/virtualenv[${PYTHON_USEDEP}]
|
2022-12-31 16:46:12 +01:00
|
|
|
"
|
|
|
|
BDEPEND=""
|
|
|
|
|
|
|
|
distutils_enable_tests pytest
|
2023-04-23 11:00:46 +02:00
|
|
|
|
|
|
|
src_prepare(){
|
|
|
|
default
|
|
|
|
|
|
|
|
# workaround until "dev-python/pdm-pep517" is renamed into "pdm-backend".
|
|
|
|
sed -i "s/pdm-backend/pdm-pep517/" pyproject.toml || die
|
|
|
|
sed -i "s/pdm.backend/pdm.pep517.api/" pyproject.toml || die
|
|
|
|
}
|