1 |
commit: e52017c21972caa5edb4dc999902f7b30c9b3a9b |
2 |
Author: Louis Sautier <sautier.louis <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun May 27 14:46:48 2018 +0000 |
4 |
Commit: Aaron Bauman <bman <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 27 16:22:58 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e52017c2 |
7 |
|
8 |
dev-python/rst-linker: bump to 1.10 |
9 |
|
10 |
setup.py requires pytest 3.5 for testing but 3.4 seems to work, so stick |
11 |
to that version for now since 3.5 is not yet in the tree. |
12 |
The whole namespace-package-related logic can be removed since |
13 |
https://github.com/jaraco/rst.linker/commit/c84284022a198d560e685c5a687458a5be4c5fe6 |
14 |
|
15 |
Package-Manager: Portage-2.3.38, Repoman-2.3.9 |
16 |
Closes: https://github.com/gentoo/gentoo/pull/8625 |
17 |
|
18 |
dev-python/rst-linker/Manifest | 1 + |
19 |
dev-python/rst-linker/rst-linker-1.10.ebuild | 51 ++++++++++++++++++++++++++++ |
20 |
2 files changed, 52 insertions(+) |
21 |
|
22 |
diff --git a/dev-python/rst-linker/Manifest b/dev-python/rst-linker/Manifest |
23 |
index 9392617ea7d..a782e81e4dd 100644 |
24 |
--- a/dev-python/rst-linker/Manifest |
25 |
+++ b/dev-python/rst-linker/Manifest |
26 |
@@ -1,2 +1,3 @@ |
27 |
+DIST rst.linker-1.10.tar.gz 8820 BLAKE2B 3615353dcce16652aa3528985997467e1501161b012fad44203fd98cc5e91dc32acf6c8492f0797ae748a87c008e5f3437833b435c5cbd85845340b91665e664 SHA512 5541d0ba5299a6efee444ed3c4fb4f108bcdd7c84e4be0b0a44f71c9f13e18d5b5c4c38328a542fe5666d435e1e04c35c0db5535706a45932dc01590813a85cc |
28 |
DIST rst.linker-1.7.tar.gz 6798 BLAKE2B d4d5129bd79534cbc58f287a60876153325cde3142b3e516e3a75f22827f78c85edbd8eb2777263e6bf3c04f6ebabc78441647df3ed23950982ebd7ebe156632 SHA512 380cd1b36a1153a6512144b7c83be75dfa95ce397437d34cb76c4c41de6266c77cf1f811f4fb0576838e10bd78e1f46394df11b0f7dc5e3fafeef36b6e8c9ba0 |
29 |
DIST rst.linker-1.9.tar.gz 7618 BLAKE2B b344495a217d7cd1c057256701130851975e46c45a740251ce20efa5131feb46a074fb1367a645e89b436b7e093baad1a484d06ca069ebc0f59eca8183ddd36d SHA512 b3e39b025f75bb6ff670f23ee7abd48dcc4e19343626c1ffadd2304a7e3285fe0b7369ace96e47094606e864672c8aeea967a02217b110762e53498dde64b8a7 |
30 |
|
31 |
diff --git a/dev-python/rst-linker/rst-linker-1.10.ebuild b/dev-python/rst-linker/rst-linker-1.10.ebuild |
32 |
new file mode 100644 |
33 |
index 00000000000..b84ffd335f5 |
34 |
--- /dev/null |
35 |
+++ b/dev-python/rst-linker/rst-linker-1.10.ebuild |
36 |
@@ -0,0 +1,51 @@ |
37 |
+# Copyright 1999-2018 Gentoo Foundation |
38 |
+# Distributed under the terms of the GNU General Public License v2 |
39 |
+ |
40 |
+EAPI=7 |
41 |
+ |
42 |
+PYTHON_COMPAT=( python{2_7,3_{4,5,6}} pypy{,3} ) |
43 |
+ |
44 |
+inherit distutils-r1 |
45 |
+ |
46 |
+MY_PN="${PN/-/.}" |
47 |
+DESCRIPTION="Sphinx plugin to add links and timestamps to the changelog" |
48 |
+HOMEPAGE="https://github.com/jaraco/rst.linker" |
49 |
+SRC_URI="mirror://pypi/${PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz" |
50 |
+ |
51 |
+LICENSE="MIT" |
52 |
+SLOT="0" |
53 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd" |
54 |
+IUSE="doc test" |
55 |
+ |
56 |
+RDEPEND=" |
57 |
+ dev-python/python-dateutil[${PYTHON_USEDEP}] |
58 |
+ dev-python/six[${PYTHON_USEDEP}] |
59 |
+" |
60 |
+DEPEND=" |
61 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
62 |
+ >=dev-python/setuptools_scm-1.15.0[${PYTHON_USEDEP}] |
63 |
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) |
64 |
+ test? ( |
65 |
+ ${RDEPEND} |
66 |
+ dev-python/path-py[${PYTHON_USEDEP}] |
67 |
+ >=dev-python/pytest-3.4[${PYTHON_USEDEP}] |
68 |
+ ) |
69 |
+" |
70 |
+ |
71 |
+S="${WORKDIR}/${MY_PN}-${PV}" |
72 |
+ |
73 |
+python_compile_all() { |
74 |
+ if use doc; then |
75 |
+ sphinx-build docs docs/_build/html || die |
76 |
+ HTML_DOCS=( docs/_build/html/. ) |
77 |
+ fi |
78 |
+} |
79 |
+ |
80 |
+python_test() { |
81 |
+ # Ignore the module from ${S}, use the one from ${BUILD_DIR} |
82 |
+ # Otherwise, ImportMismatchError may occur |
83 |
+ # https://github.com/gentoo/gentoo/pull/1622#issuecomment-224482396 |
84 |
+ # Override pytest options to skip flake8 |
85 |
+ py.test -v --ignore=rst --override-ini="addopts=--doctest-modules" \ |
86 |
+ || die "tests failed with ${EPYTHON}" |
87 |
+} |