mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-20 20:43:09 -04:00
dev-python/pdm: add 2.6.1
Signed-off-by: Florian Albrechtskirchinger <falbrechtskirchinger@gmail.com>
This commit is contained in:
@@ -1 +1,2 @@
|
|||||||
DIST pdm-2.5.4.tar.gz 3051088 BLAKE2B 717867fe16bdb02efb41136360afe9d7bd06c1706e30014a0a6f66ee69a676461d86f0efe726d6b2002290fb45c1623e92a7614efd7d15742479187c399afc6a SHA512 0a3d1ae42d1541ce458c77ef2bce41564c000fc599ee596aec25d6153d40723595fd0fa1170d7ece6bf24055670030556582b043505d45484acc99052192c063
|
DIST pdm-2.5.4.tar.gz 3051088 BLAKE2B 717867fe16bdb02efb41136360afe9d7bd06c1706e30014a0a6f66ee69a676461d86f0efe726d6b2002290fb45c1623e92a7614efd7d15742479187c399afc6a SHA512 0a3d1ae42d1541ce458c77ef2bce41564c000fc599ee596aec25d6153d40723595fd0fa1170d7ece6bf24055670030556582b043505d45484acc99052192c063
|
||||||
|
DIST pdm-2.6.1.tar.gz 3056889 BLAKE2B 65a3f8e8badf4bd6da2d801ea38f1e85c1e6ccf204a8c4fb1aa7be31c9093ae8ac93b882a511a00814b4838a479fd7b0cfdcea452198388abfec7cdc00b6b610 SHA512 91d0967f407f1f1e2d23e9b43e268d105ed14ec7772eaa433bf20912fa710478ee7a33d01691d795b875cf6385d61bb3d431d176d53c16d3018670e28794b9c5
|
||||||
|
|||||||
94
dev-python/pdm/pdm-2.6.1.ebuild
Normal file
94
dev-python/pdm/pdm-2.6.1.ebuild
Normal file
@@ -0,0 +1,94 @@
|
|||||||
|
# Copyright 1999-2023 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
DISTUTILS_USE_PEP517=pdm
|
||||||
|
PYTHON_COMPAT=( python3_{10..11} )
|
||||||
|
|
||||||
|
inherit bash-completion-r1 distutils-r1 pypi
|
||||||
|
|
||||||
|
DESCRIPTION="Modern Python package and dependency manager supporting latest PEP standards"
|
||||||
|
HOMEPAGE="
|
||||||
|
https://github.com/pdm-project/pdm/
|
||||||
|
https://pypi.org/project/pdm/
|
||||||
|
"
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
SLOT="0"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
dev-python/blinker[${PYTHON_USEDEP}]
|
||||||
|
dev-python/certifi[${PYTHON_USEDEP}]
|
||||||
|
dev-python/urllib3[${PYTHON_USEDEP}]
|
||||||
|
dev-python/packaging[${PYTHON_USEDEP}]
|
||||||
|
dev-python/platformdirs[${PYTHON_USEDEP}]
|
||||||
|
dev-python/rich[${PYTHON_USEDEP}]
|
||||||
|
dev-python/virtualenv[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pyproject-hooks[${PYTHON_USEDEP}]
|
||||||
|
dev-python/requests-toolbelt[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/unearth-0.9.0[${PYTHON_USEDEP}]
|
||||||
|
dev-python/findpython[${PYTHON_USEDEP}]
|
||||||
|
dev-python/tomlkit[${PYTHON_USEDEP}]
|
||||||
|
dev-python/shellingham[${PYTHON_USEDEP}]
|
||||||
|
dev-python/python-dotenv[${PYTHON_USEDEP}]
|
||||||
|
dev-python/resolvelib[${PYTHON_USEDEP}]
|
||||||
|
dev-python/installer[${PYTHON_USEDEP}]
|
||||||
|
dev-python/cachecontrol[${PYTHON_USEDEP}]
|
||||||
|
|
||||||
|
$(python_gen_cond_dep '
|
||||||
|
dev-python/tomli[${PYTHON_USEDEP}]
|
||||||
|
' 3.10)
|
||||||
|
"
|
||||||
|
BDEPEND="
|
||||||
|
${RDEPEND}
|
||||||
|
test? (
|
||||||
|
dev-python/pytest-mock[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pytest-xdist[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pytest-rerunfailures[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pytest-httpserver[${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}/pdm-2.5.1-build-backend.patch"
|
||||||
|
)
|
||||||
|
|
||||||
|
distutils_enable_tests pytest
|
||||||
|
|
||||||
|
python_compile_all() {
|
||||||
|
PDM_CHECK_UPDATE=0 "${EPYTHON}" -m pdm completion bash > completion.bash || die
|
||||||
|
PDM_CHECK_UPDATE=0 "${EPYTHON}" -m pdm completion zsh > completion.zsh || die
|
||||||
|
}
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
local pdm_python_tests=(
|
||||||
|
tests/cli/test_add.py::test_add_editable_package
|
||||||
|
tests/cli/test_add.py::test_non_editable_override_editable
|
||||||
|
tests/cli/test_list.py::test_list_csv_include_exclude
|
||||||
|
tests/cli/test_list.py::test_list_csv_include_exclude_valid
|
||||||
|
tests/cli/test_list.py::test_list_dependency_graph_include_exclude
|
||||||
|
tests/test_project.py::test_project_packages_path
|
||||||
|
tests/cli/test_init.py::test_init_non_interactive
|
||||||
|
tests/cli/test_remove.py::test_remove_editable_packages_while_keeping_normal
|
||||||
|
tests/cli/test_venv.py::test_conda_backend_create
|
||||||
|
tests/models/test_backends.py::test_project_backend
|
||||||
|
)
|
||||||
|
local EPYTEST_DESELECT=("${pdm_python_tests[@]}")
|
||||||
|
epytest -m "not network"
|
||||||
|
|
||||||
|
EPYTEST_DESELECT=()
|
||||||
|
export PDM_PYTHON="${PYTHON}"
|
||||||
|
epytest -m "not network" "${pdm_python_tests[@]}"
|
||||||
|
unset PDM_PYTHON
|
||||||
|
}
|
||||||
|
|
||||||
|
python_install_all() {
|
||||||
|
distutils-r1_python_install_all
|
||||||
|
|
||||||
|
newbashcomp completion.bash pdm
|
||||||
|
|
||||||
|
insinto /usr/share/zsh/site-functions
|
||||||
|
newins completion.zsh _pdm
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user