dev-python: upgrade selenium to upstream

Upgrade the dev-python/selenium package to the latest version, which
must be done prior to upgrading the python eclasses, which do not accept
ebuilds using EAPI 4.

BUG=chromium:867070
TEST=`./update_chroot` and `./build_packages --board=chell` both work.

Change-Id: I6fe56e8f009c7b89ab8f3b2252e14f6c4439618f
Reviewed-on: https://chromium-review.googlesource.com/1162755
Commit-Ready: Alex Khouderchah <akhouderchah@chromium.org>
Tested-by: Alex Khouderchah <akhouderchah@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
diff --git a/dev-python/selenium/Manifest b/dev-python/selenium/Manifest
index ac69774..ce3e049 100644
--- a/dev-python/selenium/Manifest
+++ b/dev-python/selenium/Manifest
@@ -1 +1 @@
-DIST selenium-2.29.0.tar.gz 2085853 SHA256 f12e1fc9346a8365f1803af7e5801d571a4c63879344aa15f562eeee4a2d29b3 SHA512 fdd4ae73175fc2bffeb566027708e2492896f2d7d72cbb4aa563a66e7fb8a28baaf6ac52a40fcbe85fb6dc1a63600d26f7197e771e233e856df04a01ad805980 WHIRLPOOL ae8e187f60f174383c3d96f98eb5020fea8f517429b44ade94785ed7220a08345a1a772b6431c2b0bd031650c73804101903e901514184f2045c0e44568bca6b
+DIST selenium-3.0.2.tar.gz 830314 BLAKE2B d6d2e5775fb1fe9d043a54ecc1757e5290326e048e16e1647d30ff4445e2a24d0b7acad7cba7d122f265d00704b665a4ae302d8804a97a7bd8d9066f6c926f8a SHA512 6ddbe68e65d8999dfa362fbafceee008967b73808d51efabbfa5a7e79325597ee6fa226a45347e1c5b7e479cc607af4f0233c31cc7296067566a4dcdf1f86496
diff --git a/dev-python/selenium/metadata.xml b/dev-python/selenium/metadata.xml
index 301d220..07a1d68 100644
--- a/dev-python/selenium/metadata.xml
+++ b/dev-python/selenium/metadata.xml
@@ -1,5 +1,12 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
-	<herd>python</herd>
+  <maintainer type="project">
+    <email>python@gentoo.org</email>
+    <name>Python</name>
+  </maintainer>
+  <upstream>
+    <remote-id type="pypi">selenium</remote-id>
+    <remote-id type="github">SeleniumHQ/selenium</remote-id>
+  </upstream>
 </pkgmetadata>
diff --git a/dev-python/selenium/selenium-2.29.0.ebuild b/dev-python/selenium/selenium-2.29.0.ebuild
deleted file mode 100644
index f81e86e..0000000
--- a/dev-python/selenium/selenium-2.29.0.ebuild
+++ /dev/null
@@ -1,24 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/selenium/selenium-2.29.0.ebuild,v 1.3 2013/09/05 18:46:06 mgorny Exp $
-
-EAPI=4
-PYTHON_DEPEND="2:2.6"
-
-inherit distutils
-
-DESCRIPTION="a Python language binding for Selenium Remote Control (version 1.0 and 2.0)"
-HOMEPAGE="http://pypi.python.org/pypi/selenium/"
-SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
-
-KEYWORDS="*"
-IUSE="doc"
-LICENSE="Apache-2.0"
-SLOT="0"
-DOCS=( py/CHANGES py/README )
-
-DISTUTILS_IN_SOURCE_BUILD=1
-src_install() {
-	distutils_src_install
-	dodoc ${DOCS[@]}
-}
diff --git a/dev-python/selenium/selenium-3.0.2.ebuild b/dev-python/selenium/selenium-3.0.2.ebuild
new file mode 100644
index 0000000..4269f54
--- /dev/null
+++ b/dev-python/selenium/selenium-3.0.2.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
+
+inherit distutils-r1
+
+DESCRIPTION="Python language binding for Selenium Remote Control"
+HOMEPAGE="http://www.seleniumhq.org"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+KEYWORDS="*"
+LICENSE="Apache-2.0"
+SLOT="0"
+
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
+
+DOCS=( py/CHANGES py/README.rst )
+
+QA_PREBUILT="/usr/lib*/python*/site-packages/${PN}/webdriver/firefox/*/x_ignore_nofocus.so"