Gentoo Archives: gentoo-commits

From: Alexey Shvetsov <alexxy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/semantic_version/
Date: Fri, 04 Oct 2019 11:14:14
Message-Id: 1570187313.7240e9705ead2de7cfbb866378225910184ef7bf.alexxy@gentoo
1 commit: 7240e9705ead2de7cfbb866378225910184ef7bf
2 Author: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
3 AuthorDate: Fri Oct 4 11:08:33 2019 +0000
4 Commit: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
5 CommitDate: Fri Oct 4 11:08:33 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7240e970
7
8 dev-python/semantic_version: version bump
9
10 Package-Manager: Portage-2.3.76, Repoman-2.3.17
11 Signed-off-by: Alexey Shvetsov <alexxy <AT> gentoo.org>
12
13 dev-python/semantic_version/Manifest | 1 +
14 .../semantic_version/semantic_version-2.8.2.ebuild | 38 ++++++++++++++++++++++
15 2 files changed, 39 insertions(+)
16
17 diff --git a/dev-python/semantic_version/Manifest b/dev-python/semantic_version/Manifest
18 index 1ab9250db4f..476e9e6d104 100644
19 --- a/dev-python/semantic_version/Manifest
20 +++ b/dev-python/semantic_version/Manifest
21 @@ -1,2 +1,3 @@
22 DIST semantic_version-2.6.0-1.tar.gz 31678 BLAKE2B 030189762a11559fee8527bf1735fbc596caa4e641b61fdce90e1c1cd6e7a3e957aad13dabb2d90ade2f91028c5a7f35c39c1a9d47afd76d3274c2b755f2b14a SHA512 18db9279c2728565b13362c54bedbf569f0878cbe6bb58e631d87ffe7cff7d9131a30a2592cbf511091c03e854851159bbb298fe7469f53e8a2d92cf26ab4d0b
23 DIST semantic_version-2.6.0.tar.gz 13919 BLAKE2B 811b3bfdb8ffc4cf8358400da1f18d5d0851c2999ff7df73fc0380e508b4039ce760dcf9d438bbb5d112ff1754b1855b3e062652b28be7f607516d8d017b9830 SHA512 805449e7219aaa59d28cc267c27a6abab5cbbbfd52c72d66f24bcace39c9f864e4ed944a3dc614e14a700a5bc92272fa6420312f3169b01a4cfd9ddf3ffb42d6
24 +DIST semantic_version-2.8.2.tar.gz 49243 BLAKE2B 73c66696b2fd6e30dc74bba6f1d4d84d71bf470f8ecd2ab93b4225f573bb0575f797b573d8fa6605ff35636de713a8f69522a2719949cf0bfebd0791ab5bae99 SHA512 f54ad2bb2e8392e154718c3dff8e7a7fa7663d7df0ab4b196444e0ad22440fe9d9a3abe9043824c0e0121f9051121b8c9d67f76a615aa5348c321e217b3a5dcd
25
26 diff --git a/dev-python/semantic_version/semantic_version-2.8.2.ebuild b/dev-python/semantic_version/semantic_version-2.8.2.ebuild
27 new file mode 100644
28 index 00000000000..3a276518e2d
29 --- /dev/null
30 +++ b/dev-python/semantic_version/semantic_version-2.8.2.ebuild
31 @@ -0,0 +1,38 @@
32 +# Copyright 1999-2019 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +PYTHON_COMPAT=( pypy{,3} python{2_7,3_{5,6,7}} )
38 +
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 + dev-python/setuptools[${PYTHON_USEDEP}]
53 + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
54 + test? ( dev-python/pytest[${PYTHON_USEDEP}] )
55 +"
56 +RESTRICT="!test? ( test )"
57 +
58 +python_compile_all() {
59 + if use doc; then
60 + sphinx-build docs docs/_build/html || die
61 + HTML_DOCS=( docs/_build/html/. )
62 + fi
63 +}
64 +
65 +python_test() {
66 + # The django test hangs
67 + pytest -vv --ignore tests/test_django.py\
68 + || die "tests failed with ${EPYTHON}"
69 +}