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/subprocess32/, dev-python/subprocess32/files/
Date: Sat, 03 Jun 2017 10:28:16
Message-Id: 1496485674.62308fdf8373e8a42c501c90b4b2b658b6d03aca.mgorny@gentoo
1 commit: 62308fdf8373e8a42c501c90b4b2b658b6d03aca
2 Author: Sean Vig <sean.v.775 <AT> gmail <DOT> com>
3 AuthorDate: Tue May 23 12:32:09 2017 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Jun 3 10:27:54 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=62308fdf
7
8 dev-python/subprocess32: Add new package
9
10 dev-python/subprocess32/Manifest | 1 +
11 .../subprocess32-3.2.7-sandbox-test-fix.patch | 14 +++++++++++++
12 dev-python/subprocess32/metadata.xml | 12 +++++++++++
13 dev-python/subprocess32/subprocess32-3.2.7.ebuild | 23 ++++++++++++++++++++++
14 4 files changed, 50 insertions(+)
15
16 diff --git a/dev-python/subprocess32/Manifest b/dev-python/subprocess32/Manifest
17 new file mode 100644
18 index 00000000000..4df47ced9da
19 --- /dev/null
20 +++ b/dev-python/subprocess32/Manifest
21 @@ -0,0 +1 @@
22 +DIST subprocess32-3.2.7.tar.gz 54240 SHA256 1e450a4a4c53bf197ad6402c564b9f7a53539385918ef8f12bdf430a61036590 SHA512 d897d6a48824991e2a63ea417ca15222f28c3a4117c9bba8cbb4eceabfba9769acce1166aafa7aee8a025d6ebe7e133ce0dd617f90cb07e11bdb73dc1e21dec6 WHIRLPOOL 41226d999895439a089a319e8b805468d1913ec098d5f92705076ae707efb59c8a92f56e1068927065c5c1060ad84388fbaaf575a6e5c4d12a2b2b1e588f3e0a
23
24 diff --git a/dev-python/subprocess32/files/subprocess32-3.2.7-sandbox-test-fix.patch b/dev-python/subprocess32/files/subprocess32-3.2.7-sandbox-test-fix.patch
25 new file mode 100644
26 index 00000000000..50e4a511fc4
27 --- /dev/null
28 +++ b/dev-python/subprocess32/files/subprocess32-3.2.7-sandbox-test-fix.patch
29 @@ -0,0 +1,14 @@
30 +diff --git a/test_subprocess32.py b/test_subprocess32.py
31 +index c312949..000f7d6 100644
32 +--- a/test_subprocess32.py
33 ++++ b/test_subprocess32.py
34 +@@ -538,7 +538,8 @@ class ProcessTestCase(BaseTestCase):
35 + [sys.executable, "-c",
36 + 'import os; '
37 + 'print([k for k in os.environ.keys() '
38 +- ' if ("VERSIONER" not in k and "__CF" not in k)])'],
39 ++ ' if ("VERSIONER" not in k and "__CF" not in k and '
40 ++ ' "LD_PRELOAD" not in k and "SANDBOX_" not in k)])'],
41 + stdout=subprocess.PIPE, env={})
42 + try:
43 + stdout, stderr = p.communicate()
44
45 diff --git a/dev-python/subprocess32/metadata.xml b/dev-python/subprocess32/metadata.xml
46 new file mode 100644
47 index 00000000000..d06e7b26e19
48 --- /dev/null
49 +++ b/dev-python/subprocess32/metadata.xml
50 @@ -0,0 +1,12 @@
51 +<?xml version="1.0" encoding="UTF-8"?>
52 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
53 +<pkgmetadata>
54 + <maintainer type="project">
55 + <email>python@g.o</email>
56 + <name>Python</name>
57 + </maintainer>
58 + <upstream>
59 + <remote-id type="pypi">subprocess32</remote-id>
60 + <remote-id type="github">google/python-subprocess32</remote-id>
61 + </upstream>
62 +</pkgmetadata>
63
64 diff --git a/dev-python/subprocess32/subprocess32-3.2.7.ebuild b/dev-python/subprocess32/subprocess32-3.2.7.ebuild
65 new file mode 100644
66 index 00000000000..452ae88d7ab
67 --- /dev/null
68 +++ b/dev-python/subprocess32/subprocess32-3.2.7.ebuild
69 @@ -0,0 +1,23 @@
70 +# Copyright 1999-2017 Gentoo Foundation
71 +# Distributed under the terms of the GNU General Public License v2
72 +
73 +EAPI=6
74 +
75 +PYTHON_COMPAT=( python2_7 )
76 +
77 +inherit distutils-r1
78 +
79 +DESCRIPTION="A backport of the subprocess module from Python 3.2/3.3 for use on 2.x"
80 +HOMEPAGE="https://github.com/google/python-subprocess32"
81 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
82 +
83 +LICENSE="PSF-2"
84 +SLOT="0"
85 +KEYWORDS="~amd64 ~x86"
86 +IUSE="test"
87 +
88 +PATCHES=( "${FILESDIR}"/${P}-sandbox-test-fix.patch )
89 +
90 +python_test() {
91 + "${PYTHON}" test_subprocess32.py || die "Tests fail with ${EPYTHON}"
92 +}