Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/semantic_version/
Date: Wed, 05 Feb 2020 21:28:26
Message-Id: 1580938054.5317fc865771edba8533c72494dfa2f6f3cd1a37.asturm@gentoo
1 commit: 5317fc865771edba8533c72494dfa2f6f3cd1a37
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Tue Feb 4 20:58:33 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 5 21:27:34 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5317fc86
7
8 dev-python/semantic_version: 2.8.4 version bump, python3_8
9
10 Tests passed.
11
12 Package-Manager: Portage-2.3.87, Repoman-2.3.20
13 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
14
15 dev-python/semantic_version/Manifest | 1 +
16 .../semantic_version/semantic_version-2.8.4.ebuild | 36 ++++++++++++++++++++++
17 2 files changed, 37 insertions(+)
18
19 diff --git a/dev-python/semantic_version/Manifest b/dev-python/semantic_version/Manifest
20 index 073d02691b2..610a9ed5b05 100644
21 --- a/dev-python/semantic_version/Manifest
22 +++ b/dev-python/semantic_version/Manifest
23 @@ -1 +1,2 @@
24 DIST semantic_version-2.8.2.tar.gz 49243 BLAKE2B 73c66696b2fd6e30dc74bba6f1d4d84d71bf470f8ecd2ab93b4225f573bb0575f797b573d8fa6605ff35636de713a8f69522a2719949cf0bfebd0791ab5bae99 SHA512 f54ad2bb2e8392e154718c3dff8e7a7fa7663d7df0ab4b196444e0ad22440fe9d9a3abe9043824c0e0121f9051121b8c9d67f76a615aa5348c321e217b3a5dcd
25 +DIST semantic_version-2.8.4.tar.gz 49774 BLAKE2B 30dc1bbca9e24db993e2c9eae2ba05e7a102ba8baae10bc49640d74a3fe9ff943b7606b7c7cbad3d7b25d65a10df7ab587179b5a9bfe73822eb62b945074db23 SHA512 2ed9a8ae03384731865c0b160a9bc92f9c877b610a4ecf15c30969886f15e7cdf77cf384997f96126a8a77534e032c70f587c835fe288fe4ab3e9e2061cb6f47
26
27 diff --git a/dev-python/semantic_version/semantic_version-2.8.4.ebuild b/dev-python/semantic_version/semantic_version-2.8.4.ebuild
28 new file mode 100644
29 index 00000000000..a390c08f655
30 --- /dev/null
31 +++ b/dev-python/semantic_version/semantic_version-2.8.4.ebuild
32 @@ -0,0 +1,36 @@
33 +# Copyright 1999-2020 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +PYTHON_COMPAT=( pypy3 python3_{6,7,8} )
39 +inherit distutils-r1
40 +
41 +DESCRIPTION="Python library providing a few tools handling SemVer in Python"
42 +HOMEPAGE="https://pypi.org/project/semantic_version/"
43 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
44 +#SRC_URI="https://github.com/rbarrois/python-semanticversion/archive/${PV}.tar.gz -> ${P}.tar.gz"
45 +
46 +LICENSE="BSD"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~arm64 ~x86"
49 +IUSE="doc test"
50 +
51 +DEPEND="
52 + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
53 + test? ( dev-python/pytest[${PYTHON_USEDEP}] )
54 +"
55 +RESTRICT="!test? ( test )"
56 +
57 +python_compile_all() {
58 + if use doc; then
59 + sphinx-build docs docs/_build/html || die
60 + HTML_DOCS=( docs/_build/html/. )
61 + fi
62 +}
63 +
64 +python_test() {
65 + # The django test hangs
66 + pytest -vv --ignore tests/test_django.py\
67 + || die "tests failed with ${EPYTHON}"
68 +}