Gentoo Archives: gentoo-commits

From: Patrick McLean <chutzpah@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pyroute2/, dev-python/pyroute2/files/
Date: Wed, 29 Apr 2020 23:47:19
Message-Id: 1588204028.6f7a9fb3f96913f9c6fd423496e7d8c5f1cd7cb6.chutzpah@gentoo
1 commit: 6f7a9fb3f96913f9c6fd423496e7d8c5f1cd7cb6
2 Author: Patrick McLean <patrick.mclean <AT> sony <DOT> com>
3 AuthorDate: Wed Apr 29 23:46:56 2020 +0000
4 Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
5 CommitDate: Wed Apr 29 23:47:08 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6f7a9fb3
7
8 dev-python/pyroute2-0.5.12: version bump, add py38
9
10 Copyright: Sony Interactive Entertainment Inc.
11 Package-Manager: Portage-2.3.99, Repoman-2.3.22
12 Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>
13
14 dev-python/pyroute2/Manifest | 1 +
15 .../files/pyroute2-0.5.12-readme-filename.patch | 13 ++++++++
16 dev-python/pyroute2/pyroute2-0.5.12.ebuild | 35 ++++++++++++++++++++++
17 3 files changed, 49 insertions(+)
18
19 diff --git a/dev-python/pyroute2/Manifest b/dev-python/pyroute2/Manifest
20 index dc2b61ac657..8d9af855b1c 100644
21 --- a/dev-python/pyroute2/Manifest
22 +++ b/dev-python/pyroute2/Manifest
23 @@ -1 +1,2 @@
24 +DIST pyroute2-0.5.12.tar.gz 425500 BLAKE2B 2b8f919bc7fc9caea9f4dd41b110e8a321406de998598408bbd12d6d62fcae009d01511271e462a4118311f12c54bf51696c0334da2ce9cb185688e35994b0a8 SHA512 6115826a43f6392a727fe2dde0dd24317f35c3a7af5e45459766c3fbe9853540c68f9a9a2233c266e866f3decd22dab0032117f687758f69b962ac6606d4cbdf
25 DIST pyroute2-0.5.5.tar.gz 702481 BLAKE2B 7d9db1efe0d76e5fbca3f07d0ce666f919001fa26c220bd432c719aa6fc3a4d0148ea6357ed84cd5d0a6e47069994f35d2501365115b9c497674159098c2e5e5 SHA512 c7166e667b6fd21eefd34a01a0bba8467f3ae4d9526af32d5a6e96747c8aac7590da1097f1ca9b12390158e90ddfd6ff9f68c85765abbe179e8761658dda6b86
26
27 diff --git a/dev-python/pyroute2/files/pyroute2-0.5.12-readme-filename.patch b/dev-python/pyroute2/files/pyroute2-0.5.12-readme-filename.patch
28 new file mode 100644
29 index 00000000000..9fa7379e565
30 --- /dev/null
31 +++ b/dev-python/pyroute2/files/pyroute2-0.5.12-readme-filename.patch
32 @@ -0,0 +1,13 @@
33 +diff --git a/setup.py b/setup.py
34 +index 5c387f01..b0f1449e 100644
35 +--- a/setup.py
36 ++++ b/setup.py
37 +@@ -23,7 +23,7 @@ module = __import__(config.get('setup', 'setuplib'),
38 + ['setup'], 0)
39 + setup = getattr(module, 'setup')
40 +
41 +-readme = open("README.md", "r")
42 ++readme = open("README.rst", "r")
43 +
44 +
45 + setup(name='pyroute2',
46
47 diff --git a/dev-python/pyroute2/pyroute2-0.5.12.ebuild b/dev-python/pyroute2/pyroute2-0.5.12.ebuild
48 new file mode 100644
49 index 00000000000..09505762e11
50 --- /dev/null
51 +++ b/dev-python/pyroute2/pyroute2-0.5.12.ebuild
52 @@ -0,0 +1,35 @@
53 +# Copyright 1999-2020 Gentoo Authors
54 +# Distributed under the terms of the GNU General Public License v2
55 +
56 +EAPI=7
57 +PYTHON_COMPAT=( python3_{6,7,8} pypy3 )
58 +PYTHON_REQ_USE="sqlite"
59 +DISTUTILS_USE_SETUPTOOLS=no
60 +
61 +inherit distutils-r1
62 +
63 +DESCRIPTION="A pure Python netlink and Linux network configuration library."
64 +HOMEPAGE="https://github.com/svinota/pyroute2"
65 +SRC_URI="https://github.com/svinota/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
66 +
67 +LICENSE="Apache-2.0"
68 +SLOT="0"
69 +KEYWORDS="~amd64 ~arm64 ~x86"
70 +IUSE="test"
71 +
72 +BDEPEND="
73 + test? (
74 + dev-python/psutil[${PYTHON_USEDEP}]
75 + )
76 +"
77 +
78 +RESTRICT="!test? ( test )"
79 +
80 +# tests need root access
81 +RESTRICT+=" test"
82 +
83 +PATCHES=(
84 + "${FILESDIR}/pyroute2-0.5.12-readme-filename.patch"
85 +)
86 +
87 +distutils_enable_tests nose