summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2019-11-21 12:03:09 +0100
committerMichał Górny <mgorny@gentoo.org>2019-11-21 14:03:00 +0100
commita5f8ef84b915e94faa8157f0e411ed60aa74f4c0 (patch)
tree2a611607fd436a34a20bd39825c33aa951901716 /dev-python/argcomplete/files
parentdev-python/hypothesis: Bump to 4.45.1 (diff)
downloadgentoo-a5f8ef84b915e94faa8157f0e411ed60aa74f4c0.tar.gz
gentoo-a5f8ef84b915e94faa8157f0e411ed60aa74f4c0.tar.bz2
gentoo-a5f8ef84b915e94faa8157f0e411ed60aa74f4c0.zip
dev-python/argcomplete: Bump to 1.10.2
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/argcomplete/files')
-rw-r--r--dev-python/argcomplete/files/argcomplete-1.10.2-test-pythonpath.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/dev-python/argcomplete/files/argcomplete-1.10.2-test-pythonpath.patch b/dev-python/argcomplete/files/argcomplete-1.10.2-test-pythonpath.patch
new file mode 100644
index 000000000000..18bd22cf1893
--- /dev/null
+++ b/dev-python/argcomplete/files/argcomplete-1.10.2-test-pythonpath.patch
@@ -0,0 +1,39 @@
+From 003cc45b1fa45c766e38c3230423a5662a00d371 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
+Date: Thu, 21 Nov 2019 11:29:41 +0100
+Subject: [PATCH] Prepend to PYTHONPATH in test_console_script* instead of
+ replacing
+
+Modify _test_console_script() to prepend to PYTHONPATH instead of
+overwriting its value. This is necessary so that it is able to find
+just-built version of argcomplete that is provided via PYTHONPATH
+(vs requiring it to be installed in system-wide directory prior).
+
+Otherwise, the tests are failing:
+
+ Traceback (most recent call last):
+ File "./bin/test-package", line 5, in <module>
+ from test_package import main
+ File "/tmp/argcomplete/test_dir_pychyg9vqx/test_package/__init__.py", line 4, in <module>
+ import argcomplete
+ ModuleNotFoundError: No module named 'argcomplete'
+---
+ test/test.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/test/test.py b/test/test.py
+index 98da760..ddf5a03 100755
+--- a/test/test.py
++++ b/test/test.py
+@@ -1185,7 +1185,7 @@ class TestBashGlobal(TestBash):
+ with TempDir(prefix='test_dir_py', dir='.'):
+ self.sh.run_command('cd ' + os.getcwd())
+ self.sh.run_command('export PATH=$PATH:./bin')
+- self.sh.run_command('export PYTHONPATH=.')
++ self.sh.run_command('export PYTHONPATH=.:$PYTHONPATH')
+ test_package = os.path.join(TEST_DIR, 'test_package')
+ command = 'pip install {} --target .'.format(test_package)
+ if not wheel:
+--
+2.24.0
+