Here's a patch provided by Federico Gimenez
<federico.gimenez.ni...@canonical.com>. Please consider applying it,
removing the .xpi from the orig.tar.gz, and uploading to Sid.
Cheers,
Thomas Goirand (zigo)
-------- Forwarded Message --------
Subject: Re: Question about python-selenium
Date: Tue, 19 May 2015 16:50:39 -0400
From: Federico Gimenez <federico.gimenez.ni...@canonical.com>
Reply-To: fgime...@canonical.com
To: Thomas Goirand <z...@debian.org>
Hi Thomas, the patch is attached for you to have a look, in this case
the binaries are simply removed, I didn't manage to find a way to
compile from source. You didn't put the reference for sending it you
mentioned in your email, were you referring to [1]?Â
Thanks,
[1]Â https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=770232
On Sat, May 16, 2015 at 10:21 PM, Thomas Goirand <z...@debian.org
<mailto:z...@debian.org>> wrote:
On 05/12/2015 01:18 PM, Federico Gimenez wrote:
Hi Thomas, I think that I've met you before, working for some
debian pear packages (xml related?), glad to get in contact again.
I've seen in [1] that you were interested in getting
python-selenium
updated, I have been working on a PPA [2] which removes the
non-free
binaries and also adds some other niceties from members of the
team I
belong to.
Do you think that these changes (with the needed fixes to adapt
this
work to the debian standards) can be added to the archive as a
proper NMU?
Thanks, regards
[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=770232
[2]
http://bazaar.launchpad.net/~fgimenez/+junk/python-selenium/files
--
Federico Gimenez
fgime...@canonical.com <mailto:fgime...@canonical.com>
<mailto:fgime...@canonical.com <mailto:fgime...@canonical.com>>
Hi Federico,
Before attempting to do an NMU, you should first send a bug report
to Debian, and attach the patch you're proposing. Only if the
current maintainer doesn't reply, then you can attempt to NMU. The
thing is, it would need to be a repacked version of Selenium (ie:
the xpi removed from the orig file), and maybe we would need to ship
the non-free xpi files as a separate package in non-free.
Could you send your patch to [1] ?
Does your patch build the xpi now? How does it work? If it's what it
does, then great. If not, then it's nice still.
Thomas
--
Federico Gimenez
fgime...@canonical.com <mailto:fgime...@canonical.com>
>From 3598bd9e37408482c0f9f81bc2b3a4e77c018057 Mon Sep 17 00:00:00 2001
From: Federico Gimenez <fgime...@canonical.com>
Date: Tue, 19 May 2015 16:44:40 -0400
Subject: [PATCH] Initial import
---
debian/changelog | 22 ++++++++++++++++++++++
debian/control | 24 ++++++++++++++++++++++--
debian/copyright | 1 -
debian/docs | 2 --
debian/lintian-overrides | 1 -
debian/patches/remove_x_ignore_nofocus.patch | 14 ++++++++++++++
debian/patches/series | 3 ++-
debian/patches/update-egg-information.patch | 23 -----------------------
debian/rules | 6 +++++-
debian/watch | 2 +-
selenium.egg-info/SOURCES.txt | 2 +-
selenium.egg-info/pbr.json | 1 -
12 files changed, 67 insertions(+), 34 deletions(-)
delete mode 100644 debian/lintian-overrides
create mode 100644 debian/patches/remove_x_ignore_nofocus.patch
delete mode 100644 debian/patches/update-egg-information.patch
delete mode 100644 selenium.egg-info/pbr.json
diff --git a/debian/changelog b/debian/changelog
index f3bc370..c0f7e3e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,25 @@
+python-selenium (2.45.0-1.1) unstable; urgency=low
+
+ * Non-maintainer upload.
+
+ [ Leo Arias ]
+ * Added python3-setuptools as a dependency.
+
+ [ Thomi Richards ]
+ * Include distropatch to add debugger options.
+ * Build python3 packages as well.
+
+ [ Alexandre Abreu ]
+ * Add debugger_address option to the ChromeDriver options list to optionally
+ instruct ChromeDriver to wait for the target devtools instance to be started
+ at a given host:ip.
+ Backported from upstream: c9e0794d5722a87f3bad8a86504b23c770ec493e.
+
+ [ Federico Gimenez ]
+ * New upstream version
+
+ -- Federico Gimenez <fgime...@canonical.com> Tue, 19 May 2015 15:55:23 -0400
+
python-selenium (2.2.0-1) unstable; urgency=low
* source package automatically created by stdeb 0.6.0+git
diff --git a/debian/control b/debian/control
index 0a4591e..fc53c6e 100644
--- a/debian/control
+++ b/debian/control
@@ -1,13 +1,20 @@
Source: python-selenium
Maintainer: Sascha Girrulat <sas...@girrulat.de>
Priority: optional
-Build-Depends: python-setuptools (>= 0.6b3), python (>= 2.6.6-3), debhelper (>= 8)
-Standards-Version: 3.9.2
+Build-Depends: debhelper (>= 9.0.0),
+ dh-python,
+ python (>= 2.6.6-3),
+ python-all-dev,
+ python-setuptools (>= 0.6b3),
+ python3-all-dev,
+ python3-setuptools
+Standards-Version: 3.9.6
Section: non-free/python
Homepage: http://code.google.com/p/selenium/
#Vcs-Git: git://git.debian.org/~sagiru-guest/public_git/python-selenium.git
#Vcs-Browser: http://git.debian.org/?p=users/sagiru-guest/python-selenium.git;a=summary
X-Python-Version: >= 2.6
+X-Python3-Version: >= 3.2
Package: python-selenium
Architecture: all
@@ -22,3 +29,16 @@ Description: python bindings for Selenium
.
The python package is downloaded from
http://pypi.python.org/packages/source/s/selenium/selenium-2.2.0.tar.gz
+
+Package: python3-selenium
+Architecture: all
+Depends: ${misc:Depends}, ${python3:Depends}
+Description: python bindings for Selenium
+ python-selenium includes the Selenium Python Client Driver and is a python
+ language binding for Selenium Remote Control (version 1.0 and 2.0).
+ .
+ Currently the remote protocol, Firefox/Icedove and Chrome for Selenium 2.0 are
+ supported, as well as the Selenium 1.0 bindings. As work will progresses we'll
+ add more "native" drivers.
+ .
+ This package contains the python 3 bindings.
diff --git a/debian/copyright b/debian/copyright
index f9a15c0..00f46bb 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -6,7 +6,6 @@ Files: *
Copyright: 2007-2011 David Burns
2007-2009 Google Inc.
2007-2009 WebDriver committers
-
License: Apache-2.0
Files: debian/*
diff --git a/debian/docs b/debian/docs
index de4f200..a188e06 100644
--- a/debian/docs
+++ b/debian/docs
@@ -1,3 +1 @@
-CREDITS.txt
-README.md
docs/*
diff --git a/debian/lintian-overrides b/debian/lintian-overrides
deleted file mode 100644
index 80ee989..0000000
--- a/debian/lintian-overrides
+++ /dev/null
@@ -1 +0,0 @@
-python-selenium: capitalization-error-in-description python Python
diff --git a/debian/patches/remove_x_ignore_nofocus.patch b/debian/patches/remove_x_ignore_nofocus.patch
new file mode 100644
index 0000000..d5a9a2b
--- /dev/null
+++ b/debian/patches/remove_x_ignore_nofocus.patch
@@ -0,0 +1,14 @@
+Description: Removed x_ignore_nofocus.so from data_files
+
+--- python-selenium-2.44.0.orig/setup.py
++++ python-selenium-2.44.0/setup.py
+@@ -67,8 +67,6 @@ setup_args = {
+ 'package_data':{
+- 'selenium.webdriver.firefox': ['*.xpi', 'webdriver_prefs.json'],
++ 'selenium.webdriver.firefox': ['webdriver_prefs.json'],
+ },
+- 'data_files':[('selenium/webdriver/firefox/x86', ['py/selenium/webdriver/firefox/x86/x_ignore_nofocus.so']),
+- ('selenium/webdriver/firefox/amd64', ['py/selenium/webdriver/firefox/amd64/x_ignore_nofocus.so'])],
+ 'include_package_data':True,
+ 'zip_safe':False
+ }
diff --git a/debian/patches/series b/debian/patches/series
index 2236ce8..5898859 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
-update-egg-information.patch
+remove_x_ignore_nofocus.patch
+
diff --git a/debian/patches/update-egg-information.patch b/debian/patches/update-egg-information.patch
deleted file mode 100644
index 3f599a4..0000000
--- a/debian/patches/update-egg-information.patch
+++ /dev/null
@@ -1,23 +0,0 @@
-Description: Upstream changes introduced in version 2.2.0-1
- This patch has been created by dpkg-source during the package build.
- Here's the last changelog entry, hopefully it gives details on why
- those changes were made:
- .
- selenium (2.2.0-1) unstable; urgency=low
- .
- * source package automatically created by stdeb 0.6.0+git
- .
- The person named in the Author field signed this changelog entry.
-Author: Sascha Girrulat <sas...@girrulat.de>
-
---- selenium-2.2.0.orig/selenium.egg-info/SOURCES.txt
-+++ selenium-2.2.0/selenium.egg-info/SOURCES.txt
-@@ -13,6 +13,7 @@ go.bat
- properties.yml
- selenium.eml
- selenium.iml
-+setup.cfg
- setup.py
- wire.py
- docs/api/py/index.rst
-
diff --git a/debian/rules b/debian/rules
index e63e010..2e45399 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,7 +3,11 @@
# This file was automatically generated by stdeb 0.6.0+git at
# Thu, 28 Jul 2011 18:28:20 +0200
+export DH_VERBOSE=1
+export PYBUILD_NAME=selenium
+export DH_ALWAYS_EXCLUDE=webdriver.xpi:x_ignore_nofocus.cpython-34m-x86_64-linux-gnu.so:x_ignore_nofocus.x86_64-linux-gnu.so
+
%:
- dh $@ --with python2 --buildsystem=python_distutils
+ dh $@ --with python2,python3 --buildsystem=pybuild
diff --git a/debian/watch b/debian/watch
index 248e677..2f1bd6a 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,2 +1,2 @@
version=3
-http://pypi.python.org/packages/source/s/selenium/selenium-(.*)\.tar\.gz
+http://pypi.debian.net/selenium/selenium-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))
diff --git a/selenium.egg-info/SOURCES.txt b/selenium.egg-info/SOURCES.txt
index 3455b14..8be909e 100644
--- a/selenium.egg-info/SOURCES.txt
+++ b/selenium.egg-info/SOURCES.txt
@@ -1,4 +1,5 @@
MANIFEST.in
+setup.cfg
setup.py
py/CHANGES
py/README
@@ -69,5 +70,4 @@ selenium.egg-info/PKG-INFO
selenium.egg-info/SOURCES.txt
selenium.egg-info/dependency_links.txt
selenium.egg-info/not-zip-safe
-selenium.egg-info/pbr.json
selenium.egg-info/top_level.txt
\ No newline at end of file
diff --git a/selenium.egg-info/pbr.json b/selenium.egg-info/pbr.json
deleted file mode 100644
index 8d89466..0000000
--- a/selenium.egg-info/pbr.json
+++ /dev/null
@@ -1 +0,0 @@
-{"is_release": false, "git_version": "9179eaa"}
\ No newline at end of file
--
2.1.4