diff options
author | Michał Górny <mgorny@gentoo.org> | 2023-12-09 07:12:55 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2023-12-09 07:28:17 +0100 |
commit | 86329d2cbc739e333b02d21e828e8567d5720b78 (patch) | |
tree | 440d21e1d84cb555dd285b44787b97e985cdb9a6 /dev-python | |
parent | dev-python/bandit: Bump to 1.7.6 (diff) | |
download | gentoo-86329d2cbc739e333b02d21e828e8567d5720b78.tar.gz gentoo-86329d2cbc739e333b02d21e828e8567d5720b78.tar.bz2 gentoo-86329d2cbc739e333b02d21e828e8567d5720b78.zip |
dev-python/docker: Bump to 7.0.0
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/docker/Manifest | 1 | ||||
-rw-r--r-- | dev-python/docker/docker-7.0.0.ebuild | 56 |
2 files changed, 57 insertions, 0 deletions
diff --git a/dev-python/docker/Manifest b/dev-python/docker/Manifest index 84c5fd710377..0a0aefbfab77 100644 --- a/dev-python/docker/Manifest +++ b/dev-python/docker/Manifest @@ -1 +1,2 @@ DIST docker-py-6.1.3.gh.tar.gz 253192 BLAKE2B b5a54d2bcbb4a89e4861bbf59a9b4565886f5541a518f66691ae205b7581f73af9fe6d491af299b0295f39b4a6e6248871b16e25ea5650fabbeafb7ced6cdaf7 SHA512 ba6ade2487afb8f68606b7d78c0f0dc83ffde622444a9598a5c647d0176695171040c5d1115fb8db6d97cb062a24d552d043274a56923b0eae0f64d98cb92c30 +DIST docker-py-7.0.0.gh.tar.gz 252188 BLAKE2B 64df988c8ece4fc0199731206b7f85554841e4c60ea10f1044c1d5f0dc52286e9da36280bfc468933bbae1f8efaa0fd44afaedf732001cd3d7a2c05879d6a467 SHA512 1ddfdc6d533d9e623baf8bbf1243272d6e511c2bb356c82d9401e566733794d38aa34df151788f1ad807fe7ba0144cc428e0b7f74acd888a58afc61c09c6d09c diff --git a/dev-python/docker/docker-7.0.0.ebuild b/dev-python/docker/docker-7.0.0.ebuild new file mode 100644 index 000000000000..e75b77815095 --- /dev/null +++ b/dev-python/docker/docker-7.0.0.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..12} ) + +inherit distutils-r1 + +MY_P=docker-py-${PV} +DESCRIPTION="Python client for Docker" +HOMEPAGE=" + https://github.com/docker/docker-py/ + https://pypi.org/project/docker/ +" +SRC_URI=" + https://github.com/docker/docker-py/archive/${PV}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86" + +RDEPEND=" + >=dev-python/packaging-14.0[${PYTHON_USEDEP}] + >=dev-python/requests-2.26.0[${PYTHON_USEDEP}] + >=dev-python/urllib3-1.26.0[${PYTHON_USEDEP}] +" +BDEPEND=" + dev-python/setuptools-scm[${PYTHON_USEDEP}] + test? ( + >=dev-python/paramiko-2.4.3[${PYTHON_USEDEP}] + >=dev-python/websocket-client-0.32.0[${PYTHON_USEDEP}] + ) +" + +distutils_enable_sphinx docs \ + 'dev-python/myst-parser' +distutils_enable_tests pytest + +src_prepare() { + # localhost has a better chance of being in /etc/hosts + sed -e 's:socket[.]gethostname():"localhost":' \ + -i tests/unit/api_test.py || die + + distutils-r1_src_prepare + + export SETUPTOOLS_SCM_PRETEND_VERSION=${PV} +} + +python_test() { + epytest tests/unit +} |