summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2021-08-17 13:34:13 +0200
committerMichał Górny <mgorny@gentoo.org>2021-08-18 09:57:01 +0200
commit1ec8384ede721c169963dc856ef46129b3b1048b (patch)
treeec4c1152c0acb09b27a86d7eab85cd2dfaecfea7 /dev-python/podman-py
parentMove dev-python/python-musicbrainz{-ngs → ngs} (diff)
downloadgentoo-1ec8384ede721c169963dc856ef46129b3b1048b.tar.gz
gentoo-1ec8384ede721c169963dc856ef46129b3b1048b.tar.bz2
gentoo-1ec8384ede721c169963dc856ef46129b3b1048b.zip
Move dev-python/{python-podman → podman-py}
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/podman-py')
-rw-r--r--dev-python/podman-py/Manifest1
-rw-r--r--dev-python/podman-py/metadata.xml16
-rw-r--r--dev-python/podman-py/podman-py-3.2.0.ebuild42
3 files changed, 59 insertions, 0 deletions
diff --git a/dev-python/podman-py/Manifest b/dev-python/podman-py/Manifest
new file mode 100644
index 000000000000..ab2ad9fb16d0
--- /dev/null
+++ b/dev-python/podman-py/Manifest
@@ -0,0 +1 @@
+DIST podman-py-3.2.0.tar.gz 165514 BLAKE2B 7e25d160b98e45cc147069249d850b3a3d6dac5227942d90ed99b8313befd9db04a6423015ae56959a53eeeb49958d9067eb6fb7127ee55bf50ebfcea617a220 SHA512 8ef165847de5fecd81e7b5564baeaa0298efd4d2e6f12e1dfe958eed77f945d9375d90ba93a8ebab4b090b228d451e96ce49d08288dc3daae1255a05127b25c7
diff --git a/dev-python/podman-py/metadata.xml b/dev-python/podman-py/metadata.xml
new file mode 100644
index 000000000000..7dce9f7cad9f
--- /dev/null
+++ b/dev-python/podman-py/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>zmedico@gentoo.org</email>
+ <name>Zac Medico</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>python@gentoo.org</email>
+ <name>Python</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">containers/podman-py</remote-id>
+ <remote-id type="pypi">podman</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-python/podman-py/podman-py-3.2.0.ebuild b/dev-python/podman-py/podman-py-3.2.0.ebuild
new file mode 100644
index 000000000000..ae42159d3f28
--- /dev/null
+++ b/dev-python/podman-py/podman-py-3.2.0.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..9} )
+inherit distutils-r1
+
+DESCRIPTION="A library to interact with a Podman server"
+HOMEPAGE="
+ https://github.com/containers/podman-py/
+ https://pypi.org/project/podman/"
+SRC_URI="
+ https://github.com/containers/podman-py/archive/v${PV}.tar.gz
+ -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+ dev-python/pyxdg[${PYTHON_USEDEP}]
+ dev-python/requests[${PYTHON_USEDEP}]
+ dev-python/toml[${PYTHON_USEDEP}]
+ dev-python/urllib3[${PYTHON_USEDEP}]"
+BDEPEND="
+ test? (
+ dev-python/requests-mock[${PYTHON_USEDEP}]
+ )"
+
+distutils_enable_tests pytest
+
+python_test() {
+ local deselect=(
+ # TODO
+ podman/tests/unit/test_volumesmanager.py::VolumesManagerTestCase::test_get_404
+ )
+
+ # integration tests require a workable podman server,
+ # and it doesn't seem to work in ebuild env
+ epytest podman/tests/unit ${deselect[@]/#/--deselect }
+}