summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Cerisara <andreacerisara@gmail.com>2020-10-12 07:00:48 +1100
committerJoonas Niilola <juippis@gentoo.org>2020-10-31 17:58:42 +0200
commit3d827b1ad8d77387534524b17d16844b74cda947 (patch)
tree092028e42e37675b5fe5214699e6d38746a64201 /dev-python
parentdev-libs/nspr: 4.29 amd64 stable. (diff)
downloadgentoo-3d827b1ad8d77387534524b17d16844b74cda947.tar.gz
gentoo-3d827b1ad8d77387534524b17d16844b74cda947.tar.bz2
gentoo-3d827b1ad8d77387534524b17d16844b74cda947.zip
dev-python/google-auth-oauthlib: add unit test support
Signed-off-by: Andrea Cerisara <andreacerisara@gmail.com> Package-Manager: Portage-3.0.8, Repoman-3.0.1 Closes: https://github.com/gentoo/gentoo/pull/17893 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/google-auth-oauthlib/google-auth-oauthlib-0.4.1-r1.ebuild9
-rw-r--r--dev-python/google-auth-oauthlib/metadata.xml9
2 files changed, 16 insertions, 2 deletions
diff --git a/dev-python/google-auth-oauthlib/google-auth-oauthlib-0.4.1-r1.ebuild b/dev-python/google-auth-oauthlib/google-auth-oauthlib-0.4.1-r1.ebuild
index dc65d4be51dd..4270ac5f77e8 100644
--- a/dev-python/google-auth-oauthlib/google-auth-oauthlib-0.4.1-r1.ebuild
+++ b/dev-python/google-auth-oauthlib/google-auth-oauthlib-0.4.1-r1.ebuild
@@ -9,14 +9,21 @@ inherit distutils-r1
DESCRIPTION="Google Authentication Library"
HOMEPAGE="https://pypi.org/project/google-auth-oauthlib/ https://github.com/googleapis/google-auth-library-python-oauthlib"
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+SRC_URI="mirror://pypi/google-auth-oauthlib/google-auth-oauthlib/${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
+DEPEND="
+ test? ( dev-python/mock[${PYTHON_USEDEP}] )
+"
+
RDEPEND="
dev-python/click[${PYTHON_USEDEP}]
dev-python/google-auth[${PYTHON_USEDEP}]
>=dev-python/requests-oauthlib-0.7.0[${PYTHON_USEDEP}]
"
+
+distutils_enable_tests pytest
+DOCS=( LICENSE README.rst )
diff --git a/dev-python/google-auth-oauthlib/metadata.xml b/dev-python/google-auth-oauthlib/metadata.xml
index dd996c7c52ff..28caf6379e33 100644
--- a/dev-python/google-auth-oauthlib/metadata.xml
+++ b/dev-python/google-auth-oauthlib/metadata.xml
@@ -1,7 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
- <!-- maintainer-needed -->
+ <maintainer type="person">
+ <email>andreacerisara@gmail.com</email>
+ <name>Andrea Cerisara</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
<upstream>
<remote-id type="pypi">google-auth-oauthlib</remote-id>
</upstream>