1 |
commit: ca1aae0e24168d9d5976d53dcf7970e326f2a8eb |
2 |
Author: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de> |
3 |
AuthorDate: Wed Mar 8 17:47:01 2017 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Mar 9 20:43:59 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ca1aae0e |
7 |
|
8 |
dev-python/entrypoints: Version bump to 0.2.2 |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
Closes: https://github.com/gentoo/gentoo/pull/4164 |
12 |
|
13 |
dev-python/entrypoints/Manifest | 1 + |
14 |
dev-python/entrypoints/entrypoints-0.2.2.ebuild | 56 ++++++++++++++++++++++ |
15 |
.../files/entrypoints-0.2.2-setup.py.patch | 20 ++++++++ |
16 |
3 files changed, 77 insertions(+) |
17 |
|
18 |
diff --git a/dev-python/entrypoints/Manifest b/dev-python/entrypoints/Manifest |
19 |
index 8ba52629a38..04d735e50c6 100644 |
20 |
--- a/dev-python/entrypoints/Manifest |
21 |
+++ b/dev-python/entrypoints/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST entrypoints-0.2.1.tar.gz 11126 SHA256 0d6b6798446c2e5e5dd6691e79356c29e82234bdb67995233f57413a11f2ded4 SHA512 67a24fc53ae8bdac6bda163d2c8057b158979d55ccdbcdb8709966573bf0a999728e04eb92a05fbc2c0d532593de0ec6518bcfed1d5bcf875b00bbd5c48494c7 WHIRLPOOL f673fb42bad930bb1907692013df469d64b9afb77c3e0acca250fb0b14fe17ec3962cb60de2f0760ede40c8f039690851424b816e047669916ff1d73389daaf7 |
24 |
+DIST entrypoints-0.2.2.tar.gz 11162 SHA256 e54b5df8bb971507278c65df96e6486cf4aea0cdac384d0102ea0339e0a4f82b SHA512 c987807924f92fd6bc0aab1cccaa4b204587d4f34932c353033ed062fff5adf69bfdc8767f095dda15fff9b57e2be2d205bfa44abc5ad7f7820114e0355a6e99 WHIRLPOOL 9d884c8977f8ea49f23f3c8a6b8ac3d48de6e6ff1133f53afe7072e180fd714019c9076b553deae5595d2383a02728412a8536ea26f4a1a56a8d552806054da9 |
25 |
|
26 |
diff --git a/dev-python/entrypoints/entrypoints-0.2.2.ebuild b/dev-python/entrypoints/entrypoints-0.2.2.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..1d04d23dc79 |
29 |
--- /dev/null |
30 |
+++ b/dev-python/entrypoints/entrypoints-0.2.2.ebuild |
31 |
@@ -0,0 +1,56 @@ |
32 |
+# Copyright 1999-2017 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=6 |
36 |
+ |
37 |
+PYTHON_COMPAT=( python2_7 python3_{4,5} ) |
38 |
+ |
39 |
+inherit distutils-r1 |
40 |
+ |
41 |
+DESCRIPTION="Discover and load entry points from installed packages" |
42 |
+HOMEPAGE="https://github.com/takluyver/entrypoints" |
43 |
+SRC_URI="https://github.com//takluyver/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
44 |
+ |
45 |
+LICENSE="BSD" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~x86" |
48 |
+IUSE="doc test" |
49 |
+ |
50 |
+DEPEND=" |
51 |
+ $(python_gen_cond_dep '>=dev-python/configparser-3.5.0[${PYTHON_USEDEP}]' 'python2*') |
52 |
+ test? ( |
53 |
+ dev-python/pytest[${PYTHON_USEDEP}] |
54 |
+ virtual/python-pathlib[${PYTHON_USEDEP}] |
55 |
+ ) |
56 |
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) |
57 |
+ " |
58 |
+ |
59 |
+PATCHES=( |
60 |
+ "${FILESDIR}/${P}"-setup.py.patch |
61 |
+ "${FILESDIR}/${PN}"-0.2.1-init.py.patch |
62 |
+) |
63 |
+ |
64 |
+python_prepare_all() { |
65 |
+ # Prevent un-needed download during build |
66 |
+ if use doc; then |
67 |
+ sed -e "/^ 'sphinx.ext.intersphinx',/d" -i doc/conf.py || die |
68 |
+ fi |
69 |
+ |
70 |
+ distutils-r1_python_prepare_all |
71 |
+ |
72 |
+ mv "${WORKDIR}/${P}"/entrypoints.py "${WORKDIR}/${P}/${PN}/" || die |
73 |
+} |
74 |
+ |
75 |
+python_compile_all() { |
76 |
+ if use doc; then |
77 |
+ emake -C doc html |
78 |
+ HTML_DOCS=( doc/_build/html/. ) |
79 |
+ fi |
80 |
+} |
81 |
+ |
82 |
+python_test() { |
83 |
+ distutils_install_for_testing |
84 |
+ cd "${TEST_DIR}"/lib || die |
85 |
+ cp -r "${S}"/tests "${TEST_DIR}"/lib/ || die |
86 |
+ py.test || die |
87 |
+} |
88 |
|
89 |
diff --git a/dev-python/entrypoints/files/entrypoints-0.2.2-setup.py.patch b/dev-python/entrypoints/files/entrypoints-0.2.2-setup.py.patch |
90 |
new file mode 100644 |
91 |
index 00000000000..bb82eee6951 |
92 |
--- /dev/null |
93 |
+++ b/dev-python/entrypoints/files/entrypoints-0.2.2-setup.py.patch |
94 |
@@ -0,0 +1,20 @@ |
95 |
+setup.py for entrypoints by Marius Brehler <marbre@××××××××××××××.de>. |
96 |
+ |
97 |
+Patch by Marius Brehler <marbrbre@××××××××××××××.de>. |
98 |
+--- /dev/null |
99 |
++++ b/setup.py |
100 |
+@@ -0,0 +1,13 @@ |
101 |
++from distutils.core import setup |
102 |
++ |
103 |
++setup(name='entrypoints', |
104 |
++ version='0.2.2', |
105 |
++ description='Discover and load entry points from installed packages.', |
106 |
++ author='Thomas Kluyver', |
107 |
++ author_email='thomas@××××××××××.uk', |
108 |
++ url='https://github.com/takluyver/entrypoints', |
109 |
++ packages=['entrypoints'], |
110 |
++ classifiers=[ |
111 |
++ 'License :: OSI Approved :: MIT License' |
112 |
++ ] |
113 |
++) |
114 |
+\ No newline at end of file |