commit:     3d827b1ad8d77387534524b17d16844b74cda947
Author:     Andrea Cerisara <andreacerisara <AT> gmail <DOT> com>
AuthorDate: Sun Oct 11 20:00:48 2020 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Sat Oct 31 15:58:42 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d827b1a

dev-python/google-auth-oauthlib: add unit test support

Signed-off-by: Andrea Cerisara <andreacerisara <AT> 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 <AT> gentoo.org>

 .../google-auth-oauthlib/google-auth-oauthlib-0.4.1-r1.ebuild    | 9 ++++++++-
 dev-python/google-auth-oauthlib/metadata.xml                     | 9 ++++++++-
 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 dc65d4be51d..4270ac5f77e 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 dd996c7c52f..28caf6379e3 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>[email protected]</email>
+    <name>Andrea Cerisara</name>
+  </maintainer>
+  <maintainer type="project">
+    <email>[email protected]</email>
+    <name>Proxy Maintainers</name>
+  </maintainer>
   <upstream>
     <remote-id type="pypi">google-auth-oauthlib</remote-id>
   </upstream>

Reply via email to