dev-python/dropbox-sdk-python: fix setuptools warning

Signed-off-by: Viorel Munteanu <ceamac.paragon@gmail.com>
This commit is contained in:
Viorel Munteanu
2022-01-31 12:32:22 +02:00
parent d5c410e4cf
commit 13c9de534f

View File

@@ -29,6 +29,9 @@ python_prepare_all() {
# this is wrong
sed -i -e "s/^import mock$/from unittest import mock/" test/unit/test_dropbox_unit.py || die
# setuptools warning
sed -i -e 's/description-file/description_file/' setup.cfg
# 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/