Skip to content

Commit

Permalink
Add debian folder
Browse files Browse the repository at this point in the history
    Add a debian folder to build avocado-framework as
    python3-avocado-framework package on Ubuntu.
    Currently the debian/copyright file needs a review, among other things
    to be improved before a final commit.

    This commit is meant to be reviewed by upstream maintainers of
    avocado-framework and work on improvements and pieces missing, so that
    we can squash and do a proper commit at a later stage.

Signed-off-by: David Negreira <david.negreira@canonical.com>
  • Loading branch information
dnegreira committed Apr 29, 2024
1 parent b337ef3 commit 4e4f6dc
Show file tree
Hide file tree
Showing 7 changed files with 67 additions and 0 deletions.
5 changes: 5 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
python3-avocado-framework (103.0ubuntu1) jammy; urgency=medium

* Initial release.

-- David Negreira <david.negreira@canonical.com> Thu, 18 Apr 2024 12:53:10 +0000
1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
10
15 changes: 15 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Source: python3-avocado-framework
Section: python
Priority: optional
Maintainer: David Negreira <david.negreira@canonical.com>
Build-Depends: debhelper (>=11~), dh-python, python3-all, python3-setuptools, python3-pip, python3-dev, python3-sphinx, python3-sphinx-rtd-theme
Standards-Version: 4.6.2

Package: python3-avocado-framework
Architecture: all
Homepage: https://github.com/avocado-framework/avocado
X-Python3-Version: >=3.7
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.
24 changes: 24 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: Avocado Framework
Source: https://avocado-framework.github.io/

Files: *
Copyright: PLACEHOLDER for The Avocado Team
License: GPL-2+

Files: debian/*
Copyright: 2024, David Negreira <david.negreira@canonical.com>
License: GPL-2+


License: GPL-2+
This is free software, licensed under:
.
The GNU General Public License, Version 2, June 1991
.
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 dated June, 1991, or (at
your option) any later version.
On Debian systems, the complete text of version 2 of the GNU General
Public License can be found in '/usr/share/common-licenses/GPL-2'.
1 change: 1 addition & 0 deletions debian/python3-avocado-framework.manpages
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
man/avocado.1
17 changes: 17 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/make -f
DH_VERBOSE = 1
export PYBUILD_NAME = avocado-framework-103
export PYBUILD_INSTALL_ARGS=--install-layout=deb

override_dh_auto_test:

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
override_dh_installman:
python3 setup.py man
dh_installman
%:
dh $@ --with python3 --buildsystem=pybuild
4 changes: 4 additions & 0 deletions examples/config/avocado-tests.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[datadir.paths]
base_dir = /build/avocado/data
logs_dir = /build/avocado/data/job-results
cache_dirs = ['/build/avocado/data/cache']

0 comments on commit 4e4f6dc

Please sign in to comment.