[neon/neon-packaging/selenium-webdriver-at-spi/Neon/unstable] debian: initial packaging

Carlos De Maine null at kde.org
Mon Jan 8 10:16:39 GMT 2024


Git commit 3ab44ffd213321138a81b65ca48b31928cdcdd4f by Carlos De Maine.
Committed on 08/01/2024 at 11:16.
Pushed by carlosdem into branch 'Neon/unstable'.

initial packaging

A  +5    -0    debian/changelog
A  +57   -0    debian/control
A  +21   -0    debian/copyright
A  +1    -0    debian/patches/series
A  +39   -0    debian/patches/virtenv.diff
A  +30   -0    debian/rules
A  +2    -0    debian/selenium-webdriver-at-spi.links
A  +1    -0    debian/source/format

https://invent.kde.org/neon/neon-packaging/selenium-webdriver-at-spi/-/commit/3ab44ffd213321138a81b65ca48b31928cdcdd4f

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..a9bfc65
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+selenium-webdriver-at-spi (0.0.1) jammy; urgency=medium
+
+  * Initial packaging. 
+
+ -- Carlos De Maine <carlosdemaine at gmail.com>  Sat, 06 Jan 2024 20:05:13 +1000
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..c91cf7a
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,57 @@
+Source: selenium-webdriver-at-spi
+Section: libs
+Priority: optional
+Build-Depends: accerciser,
+               at-spi2-core,
+               cmake,
+               debhelper-compat (= 13),
+               dh-python,
+               dh-virtualenv,
+               git,
+               gobject-introspection,
+               libgirepository1.0-dev,
+               kf6-extra-cmake-modules,
+               kf6-kcoreaddons-dev,
+               kf6-kwindowsystem-dev,
+               libcairo2-dev,
+               libkpipewire-dev,
+               kwayland6-dev,
+               pkg-kde-tools-neon,
+               plasma-wayland-protocols,
+               python3,
+               python3-pyatspi,
+               python3-cairo,
+               python3-gi-cairo,
+               python3-virtualenv,
+               qt6-base-dev,
+Standards-Version: 4.6.2
+Homepage: https://invent.kde.org/sdk/selenium-webdriver-at-spi
+Vcs-Git: https://invent.kde.org/sdk/selenium-webdriver-at-spi
+Vcs-Browser: https://invent.kde.org/sdk/selenium-webdriver-at-spi
+Maintainer: Neon CI <neon at kde.org>
+
+Package: selenium-webdriver-at-spi
+Section: libdevel
+Architecture: any
+Depends: accerciser,
+         accessibility-inspector,
+         at-spi2-core,
+         gobject-introspection,
+         libgirepository-1.0-1  ,
+         kf6-kcoreaddons,
+         kf6-kwindowsystem,
+         libcairo2,
+         libkpipewire6,
+         kwayland6,
+         plasma-wayland-protocols,
+         python3-virtualenv,
+         qt6-base,
+         ${misc:Depends}
+Description:  WebDriver for Appium  using the Linux accessibility  API
+ Selenium-webdriver-at-spi is a WebDriver for Appium (based on Selenium)
+ using the Linux accessibility API AT-SPI2.
+ .
+ It effectively enables us to write selenium-style UI tests that behind
+ the scenes manipulate the UI through the accessibility API. This allows
+ better blackbox testing than what QTest and other unit test frameworks
+ provide, while also not relying on pixmap comparision like openqa.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..05ca264
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2023 sitter at kde.org
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..a8e3b15
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+virtenv.diff
diff --git a/debian/patches/virtenv.diff b/debian/patches/virtenv.diff
new file mode 100644
index 0000000..53749e7
--- /dev/null
+++ b/debian/patches/virtenv.diff
@@ -0,0 +1,39 @@
+ b236665d639588c5bda29d190ab55c1eeae5b8e3
+ CMakeLists.txt |  3 ++-
+ setup.py       | 14 ++++++++++++++
+ 2 files changed, 16 insertions(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 295e9fc..ccbe5c7 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -59,7 +59,8 @@ add_subdirectory(videorecorder)
+ install(PROGRAMS run.rb
+     RENAME selenium-webdriver-at-spi-run
+     DESTINATION ${CMAKE_INSTALL_BINDIR})
+-install(FILES selenium-webdriver-at-spi.py app_roles.py requirements.txt DESTINATION ${CMAKE_INSTALL_DATADIR}/selenium-webdriver-at-spi)
++install(FILES requirements.txt DESTINATION ${CMAKE_INSTALL_DATADIR}/selenium-webdriver-at-spi)
++#install(FILES selenium-webdriver-at-spi.py app_roles.py requirements.txt DESTINATION ${CMAKE_INSTALL_DATADIR}/selenium-webdriver-at-spi)
+
+ set(CMAKECONFIG_INSTALL_DIR "${KDE_INSTALL_CMAKEPACKAGEDIR}/SeleniumWebDriverATSPI")
+
+diff --git a/setup.py b/setup.py
+new file mode 100644
+index 0000000..e68d3c6
+--- /dev/null
++++ b/setup.py
+@@ -0,0 +1,14 @@
++from setuptools import setup, find_packages
++
++setup(
++        name='selenium-webdriver-at-spi',
++        version='0.0.1',
++        description='KDE Selenium/Appium WebDriver implementation based on AT-SPI Accessibility',
++        maintainer='Harold Sitter',
++        maintainer_email='sitter at kde.org',
++        url='https://invent.kde.org/sdk/selenium-webdriver-at-spi',
++        packages=find_packages(),
++        python_requires=">=3.8",
++        scripts=['app_roles.py', 'selenium-webdriver-at-spi.py'],
++        install_requires=["pycairo", "pygobject"]
++	)
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..c05cbd5
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,30 @@
+#!/usr/bin/make -f
+# SPDX-License-Identifier: LGPL-2.0-or-later
+# SPDX-FileCopyrightText: 2023 Jonathan Riddell <jr at jriddell.org>
+
+export DH_VERBOSE=1
+export DH_VIRTUALENV_INSTALL_ROOT=/usr/lib/
+
+PACKAGE=$(shell dh_listpackages)
+DH_VENV_DIR=debian/$(PACKAGE)$(DH_VIRTUALENV_INSTALL_ROOT)/$(PACKAGE)
+
+
+#	dh $@ --with kf6 --buildsystem kf6
+
+#override_dh_auto_configure:
+#	pip install -U --upgrade-strategy eager -r requirements.txt
+#	dh_auto_configure
+
+#	override_dh_auto_test:
+#	:
+
+%:
+	dh $@ --buildsystem=pybuild --with python-virtualenv --use-system-packages --no-test --with kf6 --buildsystem kf6
+
+override_dh_virtualenv:
+	dh_virtualenv --python=python3
+	$(DH_VENV_DIR)/bin/python $(DH_VENV_DIR)/bin/pip install -U --upgrade-strategy eager -r requirements.txt
+	. $(DH_VENV_DIR)/bin/activate \
+	&& dh_auto_configure \
+	&& dh_auto_build \
+	&& dh_auto_install
diff --git a/debian/selenium-webdriver-at-spi.links b/debian/selenium-webdriver-at-spi.links
new file mode 100644
index 0000000..4a87dcb
--- /dev/null
+++ b/debian/selenium-webdriver-at-spi.links
@@ -0,0 +1,2 @@
+usr/lib/selenium-webdriver-at-spi/bin/app_roles.py /usr/share/selenium-webdriver-at-spi/app_roles.py
+usr/lib/selenium-webdriver-at-spi/bin/selenium-webdriver-at-spi.py /usr/share/selenium-webdriver-at-spi/selenium-webdriver-at-spi.py
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)


More information about the Neon-commits mailing list