Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/recommonmark/
Date: Thu, 20 Sep 2018 08:43:16
Message-Id: 1537432987.c8aee497eea5c9cf935a3f06e7c22edbb00210bb.mgorny@gentoo
1 commit: c8aee497eea5c9cf935a3f06e7c22edbb00210bb
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 20 07:54:07 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 20 08:43:07 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c8aee497
7
8 dev-python/recommonmark: Bump to 0.5.0_pre20180907
9
10 Take a fresh snapshot since upstream did not do a release in some time.
11 It fixes compatibility with new versions of dev-python/CommonMark,
12 enables tests and adds Python 3.7 support.
13
14 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
15
16 dev-python/recommonmark/Manifest | 1 +
17 .../recommonmark-0.5.0_pre20180907.ebuild | 34 ++++++++++++++++++++++
18 2 files changed, 35 insertions(+)
19
20 diff --git a/dev-python/recommonmark/Manifest b/dev-python/recommonmark/Manifest
21 index 1e1fab1df56..a94d132bddc 100644
22 --- a/dev-python/recommonmark/Manifest
23 +++ b/dev-python/recommonmark/Manifest
24 @@ -1 +1,2 @@
25 DIST recommonmark-0.4.0.tar.gz 7112 BLAKE2B d0e0f95f251e859908523c90b012ef2b162823d72b87192651d08a9cb5217a8bf497caf0320cefd3e724f77d3ad4324db446ddb57de55fd308c7739b78f55c04 SHA512 30d900840093c9ee2c1a322aeaba64c06c6f236e4c86a8d7604edc7d9fb0e78d66387f844619364d9253585db3f38d212242d2798153f343bc01ad281c146c9c
26 +DIST recommonmark-33b5c2a4ec50d18d3f659aa119d3bd11452327da.tar.gz 22085 BLAKE2B 2225f8854eb92f9c905c5943c3d4db1cb56ccf22826f32101c9e8db6ac1a1658a543d58a71bfdd8650f225229be5c47658a6db9c6f535718eab5361589436d77 SHA512 4b4c3c9354c3de223c7d441b1665879d49a2f9f2328532901c69d10f4f8d90ff84e28aab3d1b4884edecd80071193ec69fbdbce735527ec2edc574b5a3d1fe88
27
28 diff --git a/dev-python/recommonmark/recommonmark-0.5.0_pre20180907.ebuild b/dev-python/recommonmark/recommonmark-0.5.0_pre20180907.ebuild
29 new file mode 100644
30 index 00000000000..620a81e5742
31 --- /dev/null
32 +++ b/dev-python/recommonmark/recommonmark-0.5.0_pre20180907.ebuild
33 @@ -0,0 +1,34 @@
34 +# Copyright 1999-2018 Gentoo Foundation
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=6
38 +PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6,3_7} )
39 +
40 +inherit distutils-r1
41 +
42 +EGIT_COMMIT=33b5c2a4ec50d18d3f659aa119d3bd11452327da
43 +MY_P=${PN}-${EGIT_COMMIT}
44 +DESCRIPTION="Python docutils-compatibility bridge to CommonMark"
45 +HOMEPAGE="https://recommonmark.readthedocs.io/"
46 +SRC_URI="https://github.com/rtfd/recommonmark/archive/${EGIT_COMMIT}.tar.gz -> ${MY_P}.tar.gz"
47 +
48 +LICENSE="MIT"
49 +SLOT="0"
50 +KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux"
51 +IUSE="test"
52 +RESTRICT="!test? ( test )"
53 +
54 +RDEPEND="
55 + >=dev-python/CommonMark-0.7.3[${PYTHON_USEDEP}]
56 + dev-python/docutils[${PYTHON_USEDEP}]
57 + dev-python/setuptools[${PYTHON_USEDEP}]
58 + >=dev-python/sphinx-1.3.1[${PYTHON_USEDEP}]
59 +"
60 +DEPEND="${RDEPEND}
61 + test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
62 +
63 +S=${WORKDIR}/${MY_P}
64 +
65 +python_test() {
66 + pytest -vv || die "Tests fail with ${EPYTHON}"
67 +}