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/distlib/files/
Date: Sat, 29 May 2021 20:45:25
Message-Id: 1622321116.9b464b677f521fff2564dd713a413064d35714d6.mgorny@gentoo
1 commit: 9b464b677f521fff2564dd713a413064d35714d6
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat May 29 20:41:11 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat May 29 20:45:16 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9b464b67
7
8 dev-python/distlib: Add missing patch
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 .../files/distlib-0.3.2-system-pypiserver.py | 24 ++++++++++++++++++++++
13 1 file changed, 24 insertions(+)
14
15 diff --git a/dev-python/distlib/files/distlib-0.3.2-system-pypiserver.py b/dev-python/distlib/files/distlib-0.3.2-system-pypiserver.py
16 new file mode 100644
17 index 00000000000..386ad05da57
18 --- /dev/null
19 +++ b/dev-python/distlib/files/distlib-0.3.2-system-pypiserver.py
20 @@ -0,0 +1,24 @@
21 +diff -dupr a/tests/test_index.py b/tests/test_index.py
22 +--- a/tests/test_index.py 2021-05-29 17:42:08.015558305 +0200
23 ++++ b/tests/test_index.py 2021-05-29 17:42:56.949966576 +0200
24 +@@ -57,11 +57,6 @@ class PackageIndexTestCase(DistlibTestCa
25 + def setUpClass(cls):
26 + if cls.run_test_server:
27 + cls.server = None
28 +- server_script = os.path.join(HERE, 'pypi-server-standalone.py')
29 +- if not os.path.exists(server_script):
30 +- logger.debug('test server not available - some tests '
31 +- 'will be skipped.')
32 +- return
33 + pwdfn = os.path.join(HERE, 'passwords')
34 + if not os.path.exists(pwdfn): # pragma: no cover
35 + with open(pwdfn, 'w') as f:
36 +@@ -72,7 +67,7 @@ class PackageIndexTestCase(DistlibTestCa
37 + fd, cls.sinkfile = tempfile.mkstemp(suffix='.log', prefix='distlib-pypi-')
38 + os.close(fd)
39 + cls.sink = sink = open(cls.sinkfile, 'w')
40 +- cmd = [sys.executable, 'pypi-server-standalone.py',
41 ++ cmd = ['pypi-server',
42 + '--interface', '127.0.0.1', '--port', TEST_SERVER_PORT,
43 + '-P', 'passwords', 'packages']
44 + cls.server = subprocess.Popen(cmd, stdout=sink, stderr=sink,