summaryrefslogtreecommitdiff
path: root/dev-python/dropbox
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2023-03-12 12:05:49 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2023-03-12 12:05:49 +0000
commit090216a39ee5ab584838d745b5d72018ba448ff0 (patch)
tree57d70390c364ce8c3f8bed936330739505414915 /dev-python/dropbox
parent1b08c9751c34c3c71432dc748f2a20eee4b57f18 (diff)
downloadbaldeagleos-repo-090216a39ee5ab584838d745b5d72018ba448ff0.tar.gz
baldeagleos-repo-090216a39ee5ab584838d745b5d72018ba448ff0.tar.xz
baldeagleos-repo-090216a39ee5ab584838d745b5d72018ba448ff0.zip
Adding metadata
Diffstat (limited to 'dev-python/dropbox')
-rw-r--r--dev-python/dropbox/dropbox-11.36.0.ebuild16
1 files changed, 9 insertions, 7 deletions
diff --git a/dev-python/dropbox/dropbox-11.36.0.ebuild b/dev-python/dropbox/dropbox-11.36.0.ebuild
index 12cd62d8f5ce..b52b5e4ea07d 100644
--- a/dev-python/dropbox/dropbox-11.36.0.ebuild
+++ b/dev-python/dropbox/dropbox-11.36.0.ebuild
@@ -11,6 +11,7 @@ GH_PN=dropbox-sdk-python
DESCRIPTION="The offical Dropbox SDK for Python"
HOMEPAGE="https://www.dropbox.com/developers"
+# pypi does not have tests, stick with gh
SRC_URI="https://github.com/dropbox/${GH_PN}/archive/refs/tags/v${PV}.tar.gz -> ${GH_PN}-${PV}.gh.tar.gz"
S="${WORKDIR}"/${GH_PN}-${PV}
@@ -26,18 +27,19 @@ RDEPEND="
PATCHES=( "${FILESDIR}"/${P}-setuptools-67.patch )
+# disable tests that need SCOPED_USER_DROPBOX_TOKEN
+# and tests that fail
+EPYTEST_DESELECT=(
+ test/integration/test_dropbox.py
+ test/unit/test_dropbox_unit.py::TestClient
+ test/unit/test_dropbox_unit.py::TestOAuth::test_NoRedirect_whole_flow
+)
+
distutils_enable_tests pytest
python_prepare_all() {
- # Don't run tests via setup.py pytest
- sed -i -e "/'pytest-runner.*',/d" setup.py || die
# this is wrong
sed -i -e "s/^import mock$/from unittest import mock/" test/unit/test_dropbox_unit.py || die
- # disable tests that need SCOPED_USER_DROPBOX_TOKEN
- mv test/integration/test_dropbox.py test/integration/_test_dropbox.py || die
- sed -i -e "s/\(class\) \(TestClient\)/\\1 _\\2/
- s/test_NoRedirect_whole_flow/_&/" test/unit/test_dropbox_unit.py || die
-
distutils-r1_python_prepare_all
}