summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Rasmus Thomsen <Rasmus.thomsen@protonmail.com> 2017-09-07 21:04:05 +0200
committerAvatar Heiko Becker <heirecka@exherbo.org> 2017-09-16 17:09:49 +0200
commit3dd62b183ba3240f2c4743c21fe976e8e6cc4905 (patch)
tree0a0bc244fe839a3e2e1e2dbfc47783e911b51f22
parent487386a5cb290c9a026dd104ec0eb56dea8b22e0 (diff)
downloadpython-3dd62b183ba3240f2c4743c21fe976e8e6cc4905.tar.gz
python-3dd62b183ba3240f2c4743c21fe976e8e6cc4905.tar.xz
dev-python/incremental: initial exheres
Change-Id: Ic9e98764e59ba1d4ad0831f55563e554f9d54e1d Reviewed-on: https://galileo.mailstation.de/gerrit/10014 Reviewed-by: Heiko Becker <heirecka@exherbo.org>
-rw-r--r--packages/dev-python/incremental/incremental-17.5.0.exheres-034
1 files changed, 34 insertions, 0 deletions
diff --git a/packages/dev-python/incremental/incremental-17.5.0.exheres-0 b/packages/dev-python/incremental/incremental-17.5.0.exheres-0
new file mode 100644
index 0000000..fa1187d
--- /dev/null
+++ b/packages/dev-python/incremental/incremental-17.5.0.exheres-0
@@ -0,0 +1,34 @@
+# Copyright 2017 Rasmus Thomsen <Rasmus.thomsen@protonmail.com>
+# Distributed under the terms of the GNU General Public License v2
+
+require pypi
+require setup-py [ import=setuptools test=pytest ]
+require utf8-locale
+
+SUMMARY="Incremental is a small library that versions your Python projects"
+
+LICENCES="MIT"
+SLOT="0"
+PLATFORMS="~amd64"
+
+MYOPTIONS=""
+
+DEPENDENCIES="
+ test:
+ dev-python/click[>=6.0][python_abis:*(-)?]
+ post:
+ net-twisted/Twisted[>=16.4.0][python_abis:*(-)?]
+"
+
+test_one_multibuild() {
+ # Tests require UTF-8 for click to work
+ require_utf8_locale
+
+ # avoid dependency cycle between Twisted and incremental
+ if has_version "net-twisted/Twisted[>=16.4.0][python_abis:$(python_get_abi)]"; then
+ PYTHONPATH="$(ls -d build/lib*)" edo py.test-${MULTIBUILD_TARGET} "${PYTEST_PARAMS[@]}"
+ else
+ ewarn "Test dependencies are not yet installed, skipping tests"
+ fi
+}
+