From 0b9ff8b83912f87295c05dbe54024bbb0a46732d Mon Sep 17 00:00:00 2001 From: David Negreira Date: Wed, 11 Sep 2024 17:56:30 +0200 Subject: [PATCH] Add debian folder Add a debian folder to build avocado-framework as python3-avocado package on Debian/Ubuntu. Co-authored-by: Arif Ali Signed-off-by: David Negreira Signed-off-by: Arif Ali --- debian/changelog | 5 + debian/compat | 1 + debian/control | 24 +++++ debian/copyright | 158 +++++++++++++++++++++++++++++ debian/python3-avocado.manpages | 1 + debian/rules | 20 ++++ debian/source/format | 1 + debian/source/lintian-overrides | 7 ++ debian/upstream/metadata | 5 + debian/watch | 2 + examples/config/avocado-tests.conf | 4 + 11 files changed, 228 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/python3-avocado.manpages create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 debian/source/lintian-overrides create mode 100644 debian/upstream/metadata create mode 100644 debian/watch create mode 100644 examples/config/avocado-tests.conf diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000000..ce899a09ae --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +python3-avocado (107.0-1) unstable; urgency=medium + + * Initial release. + + -- David Negreira Thu, 18 Apr 2024 12:53:10 +0000 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000000..f599e28b8a --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +10 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000000..0b43e8c510 --- /dev/null +++ b/debian/control @@ -0,0 +1,24 @@ +Source: python3-avocado +Section: python +Priority: optional +Maintainer: David Negreira +Uploaders: Arif Ali +Homepage: https://github.com/avocado-framework/avocado +Build-Depends: + debhelper-compat (=13), + dh-python, + python3-all, + python3-setuptools, + python3-pip, + python3-dev, + python3-sphinx, + python3-sphinx-rtd-theme, +Standards-Version: 4.6.2 +Rules-Requires-Root: no + +Package: python3-avocado +Architecture: all +Depends: ${misc:Depends}, ${python3:Depends} +Description: Avocado is a set of tools and libraries to help with automated testing. + One can call it a test framework with benefits. + Native tests are written in Python and they follow the unittest pattern, but any executable can serve as a test. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000000..f3f5317e8a --- /dev/null +++ b/debian/copyright @@ -0,0 +1,158 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: Avocado Framework +Source: https://avocado-framework.github.io/ + +Files: * +Copyright: (C) 2013-2024 Red Hat Inc. +License: GPL-2+ + +Files: avocado/core/main.py + avocado/core/settings.py + avocado/core/sysinfo.py + avocado/core/test.py + avocado/libexec/avocado-bash-utils + avocado/utils/diff_validator.py + avocado/utils/download.py + avocado/utils/file_utils.py + avocado/utils/genio.py + contrib/scripts/avocado-bisect.sh + contrib/scripts/avocado-check-pr.sh + contrib/scripts/avocado-fetch-eggs.py + contrib/scripts/avocado-get-job-results-dir.py + contrib/scripts/avocado-safeloader-find-avocado-instrumented + contrib/scripts/avocado-safeloader-find-python-unittest + contrib/scripts/find-python-unittest + contrib/testsuites/run-kvm-unit-test.sh + scripts/avocado-run-testplan + scripts/external_runner.py + selftests/run_coverage +Copyright: (C) 2013-2017, 2021 Red Hat Inc. +License: GPL-2 + +Files: avocado/core/tapparser.py +Copyright: (C) 2019, 2021-2022 Red Hat Inc. +License: Expat + +Files: debian/* +Copyright: 2024 David Negreira +License: GPL-2+ + +Files: avocado/utils/service.py +Copyright: (C) 2013 Intel Corporation. +License: GPL-2 + +Files: optional_plugins/html/avocado_result_html/templates/bootstrap.min.css + optional_plugins/html/avocado_result_html/templates/bootstrap.min.css + optional_plugins/html/avocado_result_html/templates/bootstrap.min.js +Copyright: (C) 2011-2016 Twitter, Inc. +License: Expat + +Files: selftests/.data/jenkins-junit.xsd +Copyright: (C) 2010 Thales Corporate Services SAS +License: Expat + +Files: avocado/utils/external/spark.py +Copyright: (C) 1998-2002 John Aycock +License: Expat + +Files: selftests/unit/utils/service.py +Copyright: (C) 2013 Intel Corporation +License: GPL-2 + +Files: optional_plugins/result_upload/avocado_result_upload/result_upload.py +Copyright: Virtuozzo Inc. 2017 +License: GPL-2+ + +Files: avocado/core/tree.py +Copyright: (C) 2014 Red Hat Inc. + (C) 2009 Jaime Huerta-Cepas +License: GPL-2+ + +Files: avocado/utils/dmesg.py + avocado/utils/softwareraid.py + avocado/utils/pmem.py + avocado/utils/multipath.py + avocado/utils/disk.py + avocado/utils/nvme.py + avocado/utils/pci.py + avocado/utils/linux_modules.py +Copyright: (C) 2016, 2018-2020, 2022 IBM +License: GPL-2+ + +Files: avocado/utils/lv_utils.py +Copyright: (C) IBM 2016 - Harish + (C) Red Hat 2016 - Lukas Doktor + (C) Intra2net AG 2018 - Plamen Dimitrov +License: GPL-2 + +Files: avocado/utils/linux.py + avocado/utils/network/interfaces.py + avocado/utils/software_manager/inspector.py + avocado/utils/software_manager/main.py + avocado/utils/software_manager/backends/base.py +Copyright: (C) IBM, 2008-2009, 2019-2020 + (C) Red Hat Inc. 2009-2014, 2019-2020 +License: GPL-2+ + +Files: avocado/utils/external/gdbmi_parser.py +Copyright: (C) 2008 Michael Eddington +License: Expat + +Files: avocado/utils/partition.py +Copyright: (C) IBM 2016 + (C) Red Hat Inc. 2016 + (C) Google 2006-2008 +License: GPL-2+ + +License: Expat + 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 + +License: GPL + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; version 1. + . + This program is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +License: GPL-2+ + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or (at + your option) any later version. + . + This program is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, + USA. + +License: GPL-2 + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License + as published by the Free Software Foundation; version 2. + . + This program is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, + USA. diff --git a/debian/python3-avocado.manpages b/debian/python3-avocado.manpages new file mode 100644 index 0000000000..83fb7b471d --- /dev/null +++ b/debian/python3-avocado.manpages @@ -0,0 +1 @@ +man/avocado.1 diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000000..65db4bf9b9 --- /dev/null +++ b/debian/rules @@ -0,0 +1,20 @@ +#!/usr/bin/make -f +DH_VERBOSE = 1 +export PYBUILD_NAME = avocado-107 +export PYBUILD_INSTALL_ARGS=--install-layout=deb + +override_dh_auto_test: +ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) + mkdir -p /build/etc/avocado/ + mkdir -p /build/avocado/data/job-results + mkdir -p /build/avocado/data/cache + cp examples/config/avocado-tests.conf /build/etc/avocado/avocado.conf + VIRTUAL_ENV="/build/" python3 setup.py test --select=unit +endif + +override_dh_installman: + python3 setup.py man + dh_installman + +%: + dh $@ --with python3 --buildsystem=pybuild diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000000..163aaf8d82 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/source/lintian-overrides b/debian/source/lintian-overrides new file mode 100644 index 0000000000..fd83bcebb6 --- /dev/null +++ b/debian/source/lintian-overrides @@ -0,0 +1,7 @@ +python3-avocado source: source-package-encodes-python-version +python3-avocado source: debian-watch-does-not-check-openpgp-signature [debian/watch] +python3-avocado source: source-is-missing [optional_plugins/html/avocado_result_html/templates/bootstrap.min.js] +python3-avocado source: source-is-missing [optional_plugins/html/avocado_result_html/templates/datatables.min.js] +python3-avocado source: source-is-missing [optional_plugins/html/avocado_result_html/templates/jquery.min.js] +python3-avocado source: source-contains-prebuilt-javascript-object * +python3-avocado source: very-long-line-length-in-source-file * diff --git a/debian/upstream/metadata b/debian/upstream/metadata new file mode 100644 index 0000000000..4199783313 --- /dev/null +++ b/debian/upstream/metadata @@ -0,0 +1,5 @@ +Bug-Database: https://github.com/avocado-framework/avocado/issues +Bug-Submit: https://github.com/avocado-framework/avocado/issues/new +Documentation: https://avocado-framework.github.io/ +Repository: https://github.com/avocado-framework/avocado.git +Repository-Browse: https://github.com/avocado-framework/avocado diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000000..9d93c9f1ad --- /dev/null +++ b/debian/watch @@ -0,0 +1,2 @@ +version=4 +https://github.com/avocado-framework/avocado/tags .*/v?(\d.*)@ARCHIVE_EXT@ diff --git a/examples/config/avocado-tests.conf b/examples/config/avocado-tests.conf new file mode 100644 index 0000000000..47da9c72dd --- /dev/null +++ b/examples/config/avocado-tests.conf @@ -0,0 +1,4 @@ +[datadir.paths] +base_dir = /build/avocado/data +logs_dir = /build/avocado/data/job-results +cache_dirs = ['/build/avocado/data/cache']