summaryrefslogtreecommitdiff
path: root/dev-python/ruamel-yaml
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-02-11 16:09:52 +0000
committerV3n3RiX <venerix@redcorelinux.org>2018-02-11 16:09:52 +0000
commitf78108598211053d41752a83e0345441bb9014ae (patch)
treedd2fc7ae0a1aea7bda4942ab0c453d1e55284b37 /dev-python/ruamel-yaml
parentdc45b83b28fb83e9659492066e347b8dc60bc9e3 (diff)
gentoo resync : 11.02.2018
Diffstat (limited to 'dev-python/ruamel-yaml')
-rw-r--r--dev-python/ruamel-yaml/Manifest3
-rw-r--r--dev-python/ruamel-yaml/metadata.xml16
-rw-r--r--dev-python/ruamel-yaml/ruamel-yaml-0.15.35.ebuild44
3 files changed, 63 insertions, 0 deletions
diff --git a/dev-python/ruamel-yaml/Manifest b/dev-python/ruamel-yaml/Manifest
new file mode 100644
index 000000000000..5390b6fd826e
--- /dev/null
+++ b/dev-python/ruamel-yaml/Manifest
@@ -0,0 +1,3 @@
+DIST ruamel-yaml-0.15.35.tar.gz 344241 BLAKE2B 3e77f5da4e2a7f64099da1d79a108adfb093c5e47baaf11611462637ec6e29091924088e0ce261b21283a0ab07123da45a1ea7b0c522692d1e96cdcc27502541 SHA512 9e335d627db20b85ec0384f16d7ea03c310c01e84517e7b9bced1af9289fe542b87eb31da8ad960b17d26f35f2cc33a87a5a5b976e0e5ca587339b21b4b53fca
+EBUILD ruamel-yaml-0.15.35.ebuild 1083 BLAKE2B 6221af21420a4bc24146b98add92b5746aa7091bae451ea3196c366d4a8dee77f044a77742dddb156d475e205f0c4fb1b92925868e8c7531e8e625534e9d6838 SHA512 20d635c6f78038905dc4d0d5591c3923de97d85924516d69896b511b2ddd26854945c2183d4d203d1e48e127d85b676ce5740754823b2fc9359750b86763d810
+MISC metadata.xml 487 BLAKE2B 3564fcb4d8426e84f8e597771f9d5c8fb89a770ff6324f1af2112ca4e589cadd4f83503c9b9151ba5fb983b3afd837403fae0b0144da9ed3fb9677c0b5cdbd86 SHA512 d0db6519618ae2dc134a7ed8840a7c1dbf1e49c43fe781ccabf8ff8508ac6dcc7fab92e61b8e6cc6179f30aa5bff2c772721ca09fad15d57734a16d372c6f0fb
diff --git a/dev-python/ruamel-yaml/metadata.xml b/dev-python/ruamel-yaml/metadata.xml
new file mode 100644
index 000000000000..8c9ad6241320
--- /dev/null
+++ b/dev-python/ruamel-yaml/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>fkmclane@gmail.com</email>
+ <name>Foster McLane</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>andrey_utkin@gentoo.org</email>
+ <name>Andrey Utkin</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="bitbucket">ruamel/yaml</remote-id>
+ <remote-id type="pypi">ruamel.yaml</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-python/ruamel-yaml/ruamel-yaml-0.15.35.ebuild b/dev-python/ruamel-yaml/ruamel-yaml-0.15.35.ebuild
new file mode 100644
index 000000000000..47cb54173894
--- /dev/null
+++ b/dev-python/ruamel-yaml/ruamel-yaml-0.15.35.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python3_{4,5,6} )
+
+inherit distutils-r1 vcs-snapshot
+
+DESCRIPTION="YAML parser/emitter that supports roundtrip comment preservation"
+HOMEPAGE="https://pypi.python.org/pypi/ruamel.yaml https://bitbucket.org/ruamel/yaml"
+MY_PN="${PN//-/.}"
+SRC_URI="https://bitbucket.org/${MY_PN/.//}/get/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="test"
+
+RDEPEND="
+ ${PYTHON_DEPS}
+"
+DEPEND="
+ ${RDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? (
+ dev-python/flake8[${PYTHON_USEDEP}]
+ dev-python/pytest[${PYTHON_USEDEP}]
+ dev-python/ruamel-std-pathlib[${PYTHON_USEDEP}]
+ )
+"
+
+python_install() {
+ distutils-r1_python_install --single-version-externally-managed
+ find "${ED}" -name '*.pth' -delete || die
+}
+
+python_test() {
+ # This file produced by setup.py breaks finding system-wide installed
+ # ruamel.std.pathlib due to shared namespace
+ rm "${BUILD_DIR}/lib/ruamel/__init__.py" || die
+
+ py.test -v _test/test_*.py || die
+}