1 |
commit: 802c9a05f99c475a79c2a538d9388c5c0495aa70 |
2 |
Author: Louis Sautier <sbraz <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Aug 12 10:56:57 2019 +0000 |
4 |
Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 12 10:56:57 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=802c9a05 |
7 |
|
8 |
dev-python/node-semver: bump to 0.6.1, support Py3.7, fix tests |
9 |
|
10 |
Package-Manager: Portage-2.3.69, Repoman-2.3.16 |
11 |
Signed-off-by: Louis Sautier <sbraz <AT> gentoo.org> |
12 |
|
13 |
dev-python/node-semver/Manifest | 1 + |
14 |
dev-python/node-semver/node-semver-0.6.1.ebuild | 37 +++++++++++++++++++++++++ |
15 |
2 files changed, 38 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/node-semver/Manifest b/dev-python/node-semver/Manifest |
18 |
index 98bbc500a8f..9051017fbad 100644 |
19 |
--- a/dev-python/node-semver/Manifest |
20 |
+++ b/dev-python/node-semver/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST node-semver-0.2.0.tar.gz 10236 BLAKE2B f4f48761a0086b8a2e79307427b4dc93954362452f653042582024cee593b4b7fefb1a14d3d4ea6832255209b054c9bdb05b02cb101af1e359a1266c472c5149 SHA512 7c636d94a262723c5e50123433c9c7af38424c46711c1b8e001931b242fc9703a084a0426b75e6884104a4adc6104a298355bf3c1604b9cae0ddab7d5f11b430 |
23 |
+DIST node-semver-0.6.1.tar.gz 17952 BLAKE2B f7d48f7d0373acdad56ef6745f09653163f3bcfbed26820ff77205d7bb479b0c9debfd79f719d3eb973d3cec06b0bac3773f06351712c274f90a2dcf5c658694 SHA512 d1f406d6e82f02c3e0eb0f4e1506279b00e7f31875f45bfbd7f87e6777b46676003bb7b39241bdeae616c6506dd85c60e61217460c55dd5079ea87cd818cd6bc |
24 |
|
25 |
diff --git a/dev-python/node-semver/node-semver-0.6.1.ebuild b/dev-python/node-semver/node-semver-0.6.1.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..38da8d9ff05 |
28 |
--- /dev/null |
29 |
+++ b/dev-python/node-semver/node-semver-0.6.1.ebuild |
30 |
@@ -0,0 +1,37 @@ |
31 |
+# Copyright 1999-2019 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+PYTHON_COMPAT=( pypy{,3} python{2_7,3_{5,6,7}} ) |
37 |
+ |
38 |
+inherit distutils-r1 |
39 |
+ |
40 |
+DESCRIPTION="Python version of node-semver, the semantic versioner for npm" |
41 |
+HOMEPAGE=" |
42 |
+ https://pypi.org/project/node-semver/ |
43 |
+ https://github.com/podhmo/python-semver |
44 |
+ https://github.com/npm/node-semver |
45 |
+" |
46 |
+# Tests are currently missing from PyPI tarballs |
47 |
+# https://github.com/podhmo/python-semver/pull/31 |
48 |
+SRC_URI="https://github.com/podhmo/python-semver/archive/${PV}.tar.gz -> ${P}.tar.gz" |
49 |
+ |
50 |
+LICENSE="MIT" |
51 |
+SLOT="0" |
52 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux" |
53 |
+IUSE="test" |
54 |
+ |
55 |
+BDEPEND=" |
56 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
57 |
+ test? ( dev-python/pytest[${PYTHON_USEDEP}] ) |
58 |
+" |
59 |
+ |
60 |
+S="${WORKDIR}/python-semver-${PV}" |
61 |
+ |
62 |
+python_test() { |
63 |
+ # Ignore 2 tests that fail with Python 2 |
64 |
+ # https://github.com/podhmo/python-semver/issues/30 |
65 |
+ pytest -vv --ignore semver/tests/test_passing_bytes.py \ |
66 |
+ || die "tests failed with ${EPYTHON}" |
67 |
+} |