1 |
commit: e13ecfddda536fbbe4b127a60c496eea7cbcfae6 |
2 |
Author: Bernardo Meurer <bernardo <AT> standard <DOT> ai> |
3 |
AuthorDate: Thu Sep 12 10:04:09 2019 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 12 10:04:09 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e13ecfdd |
7 |
|
8 |
dev-python/confuse: new package (1.0.0) |
9 |
|
10 |
Confuse is a configuration library for Python that uses YAML. |
11 |
|
12 |
Closes: https://bugs.gentoo.org/693178 |
13 |
Closes: https://github.com/gentoo/gentoo/pull/12828 |
14 |
Package-Manager: Portage-2.3.73, Repoman-2.3.17 |
15 |
Signed-off-by: Bernardo Meurer <bernardo <AT> standard.ai> |
16 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
17 |
|
18 |
dev-python/confuse/Manifest | 1 + |
19 |
dev-python/confuse/confuse-1.0.0.ebuild | 42 +++++++++++++++++++++++++++++++++ |
20 |
dev-python/confuse/metadata.xml | 20 ++++++++++++++++ |
21 |
3 files changed, 63 insertions(+) |
22 |
|
23 |
diff --git a/dev-python/confuse/Manifest b/dev-python/confuse/Manifest |
24 |
new file mode 100644 |
25 |
index 00000000000..d53a447c06e |
26 |
--- /dev/null |
27 |
+++ b/dev-python/confuse/Manifest |
28 |
@@ -0,0 +1 @@ |
29 |
+DIST confuse-1.0.0.tar.gz 34790 BLAKE2B efa23f59e6d450160af279042ed3d77b3b26bd1fe2fffd90b0ce1c87821b5540048b45644bfff1a8420007cf2a705d388965daa20034bb8f846085dd92b49186 SHA512 f436a400b9b84db1a20409c70d64fdde44903ffba6c3618917fd297e04ecf3dda806e315972f7cf1f786c93639b10b0652a622a579a2cfa47703386a43433c8d |
30 |
|
31 |
diff --git a/dev-python/confuse/confuse-1.0.0.ebuild b/dev-python/confuse/confuse-1.0.0.ebuild |
32 |
new file mode 100644 |
33 |
index 00000000000..716e4d49263 |
34 |
--- /dev/null |
35 |
+++ b/dev-python/confuse/confuse-1.0.0.ebuild |
36 |
@@ -0,0 +1,42 @@ |
37 |
+# Copyright 1999-2019 Gentoo Authors |
38 |
+# Distributed under the terms of the GNU General Public License v2 |
39 |
+ |
40 |
+EAPI=7 |
41 |
+ |
42 |
+PYTHON_COMPAT=( python3_{5,6,7} pypy3 ) |
43 |
+inherit distutils-r1 |
44 |
+ |
45 |
+DESCRIPTION="Confuse is a configuration library for Python that uses YAML" |
46 |
+HOMEPAGE="https://github.com/beetbox/confuse" |
47 |
+SRC_URI="https://github.com/beetbox/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
48 |
+ |
49 |
+LICENSE="MIT" |
50 |
+SLOT="0" |
51 |
+KEYWORDS="~amd64 ~x86" |
52 |
+IUSE="doc test" |
53 |
+RESTRICT="!test? ( test )" |
54 |
+ |
55 |
+BDEPEND=" |
56 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
57 |
+ doc? ( dev-python/sphinx ) |
58 |
+ test? ( dev-python/nose[${PYTHON_USEDEP}] ) |
59 |
+" |
60 |
+DEPEND=" |
61 |
+ dev-python/pyyaml[${PYTHON_USEDEP}] |
62 |
+" |
63 |
+RDEPEND="${DEPEND}" |
64 |
+ |
65 |
+python_compile_all() { |
66 |
+ if use doc; then |
67 |
+ emake -C docs html |
68 |
+ rm -r docs/_build/html/_sources || die |
69 |
+ HTML_DOCS=( docs/_build/html/. ) |
70 |
+ fi |
71 |
+} |
72 |
+ |
73 |
+python_test() { |
74 |
+ nosetests -v || die "Tests failed" |
75 |
+ if use doc; then |
76 |
+ sphinx-build -W -q -b html docs __doctest || die "Doc tests failed" |
77 |
+ fi |
78 |
+} |
79 |
|
80 |
diff --git a/dev-python/confuse/metadata.xml b/dev-python/confuse/metadata.xml |
81 |
new file mode 100644 |
82 |
index 00000000000..b32d7cb6cb7 |
83 |
--- /dev/null |
84 |
+++ b/dev-python/confuse/metadata.xml |
85 |
@@ -0,0 +1,20 @@ |
86 |
+<?xml version="1.0" encoding="UTF-8"?> |
87 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
88 |
+<pkgmetadata> |
89 |
+ <maintainer type="person"> |
90 |
+ <email>bernardo@××××××××.ai</email> |
91 |
+ <name>Bernardo Meurer</name> |
92 |
+ </maintainer> |
93 |
+ <maintainer type="project"> |
94 |
+ <email>proxy-maint@g.o</email> |
95 |
+ <name>Gentoo Proxy Maintainers Project</name> |
96 |
+ </maintainer> |
97 |
+ <longdescription lang="en"> |
98 |
+ Confuse is a configuration library for Python that uses YAML. It takes |
99 |
+ care of defaults, overrides, type checking, command-line integration, |
100 |
+ human-readable errors, and standard OS-specific locations. |
101 |
+ </longdescription> |
102 |
+ <upstream> |
103 |
+ <remote-id type="github">beetbox/confuse</remote-id> |
104 |
+ </upstream> |
105 |
+</pkgmetadata> |