diff options
author | Olivier Gayot <olivier.gayot@sigexec.com> | 2023-02-11 19:47:01 +0100 |
---|---|---|
committer | Olivier Gayot <olivier.gayot@sigexec.com> | 2023-02-11 19:52:47 +0100 |
commit | c35ac6f8e56f042f0188a284d85a4700ccf37773 (patch) | |
tree | 5222411542830e5959bd3affa0ed8388b0b7250d | |
parent | ff3c765f1c33f3adbda07f2d828542099f9cbb26 (diff) |
Make it a debian package
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
-rw-r--r-- | debian/changelog | 5 | ||||
-rw-r--r-- | debian/control | 16 | ||||
-rw-r--r-- | debian/copyright | 32 | ||||
-rwxr-xr-x | debian/rules | 4 | ||||
-rw-r--r-- | debian/source/format | 1 | ||||
-rw-r--r-- | monitor_menu/__init__.py | 0 | ||||
-rw-r--r--[-rwxr-xr-x] | monitor_menu/__main__.py (renamed from monitor-menu.py) | 0 | ||||
-rw-r--r-- | pyproject.toml | 3 | ||||
-rw-r--r-- | setup.cfg | 21 |
9 files changed, 82 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..d5c989e --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +monitor-menu (0.1) lunar; urgency=medium + + * Initial release. + + -- Olivier Gayot <olivier.gayot@sigexec.com> Sat, 11 Feb 2023 18:25:48 +0100 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..099a01b --- /dev/null +++ b/debian/control @@ -0,0 +1,16 @@ +Source: monitor-menu +Maintainer: Olivier Gayot <olivier.gayot@sigexec.com> +Section: python +Priority: optional +Build-Depends: debhelper-compat (= 13), + dh-python, + pybuild-plugin-pyproject, + python3-setuptools, + python3-all-dev, +Standards-Version: 4.5.1 + +Package: monitor-menu +Architecture: all +Pre-Depends: ${misc:Pre-Depends} +Depends: ${misc:Depends}, ${python3:Depends}, python3-dialog +Description: TUI application to manage monitor profiles diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..167257a --- /dev/null +++ b/debian/copyright @@ -0,0 +1,32 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: monitor-menu +Upstream-Contact: Olivier Gayot <olivier.gayot@sigexec.com> +Source: https://git.sigexec.com/cgit.cgi/monitor-menu.git + +Files: * +Copyright: Copyright (c) 2023 Olivier Gayot +License: BSD-3-clause + +License: BSD-3-clause + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + . + 1. Redistributions of source code must retain the copyright + notice, this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + 3. The name of the author may not be used to endorse or promote products + derived from this software without specific prior written permission. + . + THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR + IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. + IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, + INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT + NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF + THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..772500e --- /dev/null +++ b/debian/rules @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + +%: + dh $@ --with python3 --buildsystem pybuild diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/monitor_menu/__init__.py b/monitor_menu/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/monitor_menu/__init__.py diff --git a/monitor-menu.py b/monitor_menu/__main__.py index d450ba8..d450ba8 100755..100644 --- a/monitor-menu.py +++ b/monitor_menu/__main__.py diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..fed528d --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["setuptools"] +build-backend = "setuptools.build_meta" diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..828c630 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,21 @@ +[metadata] +name = monitor_menu +version = 0.1 +author = Olivier Gayot +author_email = olivier.gayot@sigexec.com + +description = TUI interface to manage monitor profiles +url = https://git.sigexec.com/cgit.cgi/monitor_menu.git +classifiers = + Programming Language :: Python :: 3 + License :: BSD-3 + Operating System :: POSIX :: Linux + +[options] +packages = find: +python_requires = >=3.10 + +[options.entry_points] +console_scripts = + monitor-menu = monitor_menu.__main__:main + |