summaryrefslogtreecommitdiff
path: root/dev-python/pyls
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/pyls')
-rw-r--r--dev-python/pyls/files/setup.py-exclude-all-test-modules.patch25
-rw-r--r--dev-python/pyls/pyls-0.21.2-r1.ebuild3
2 files changed, 27 insertions, 1 deletions
diff --git a/dev-python/pyls/files/setup.py-exclude-all-test-modules.patch b/dev-python/pyls/files/setup.py-exclude-all-test-modules.patch
new file mode 100644
index 0000000..709a0db
--- /dev/null
+++ b/dev-python/pyls/files/setup.py-exclude-all-test-modules.patch
@@ -0,0 +1,25 @@
+From 2f911df1a61205a551d23fb4637e79bd069f336b Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= <karel.koci@nic.cz>
+Date: Mon, 22 Oct 2018 12:59:15 +0200
+Subject: [PATCH] setup.py: exclude all test modules
+
+---
+ setup.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/setup.py b/setup.py
+index 432c461..e38c30a 100755
+--- a/setup.py
++++ b/setup.py
+@@ -25,7 +25,7 @@ setup(
+
+ # You can just specify the packages manually here if your project is
+ # simple. Or you can use find_packages().
+- packages=find_packages(exclude=['contrib', 'docs', 'test']),
++ packages=find_packages(exclude=['contrib', 'docs', 'test*']),
+
+ # List run-time dependencies here. These will be installed by pip when
+ # your project is installed. For an analysis of "install_requires" vs pip's
+--
+2.19.1
+
diff --git a/dev-python/pyls/pyls-0.21.2-r1.ebuild b/dev-python/pyls/pyls-0.21.2-r1.ebuild
index 4d74e1c..7983264 100644
--- a/dev-python/pyls/pyls-0.21.2-r1.ebuild
+++ b/dev-python/pyls/pyls-0.21.2-r1.ebuild
@@ -11,7 +11,8 @@ S="${WORKDIR}/python-language-server-${PV}"
LICENSE="MIT"
KEYWORDS="amd64 ~x86"
SLOT="0"
-IUSE="test"
+IUSE=""
+PATCHES=( "${FILESDIR}/setup.py-exclude-all-test-modules.patch" )
RDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
>=dev-python/future-0.14.0