From 177c11fd9a71f71625544e4c3e25a1d25cb10d6b Mon Sep 17 00:00:00 2001 From: Martin Ueding Date: Sun, 28 Apr 2013 15:32:03 +0200 Subject: [PATCH 1/3] Add launcher script I tried to package this program in Ubuntu, and found that it has no startup script. So I added a `colout` script that gets installed into the scripts directory with the `setup.py`. --- bin/colout | 11 +++++++++++ setup.py | 1 + 2 files changed, 12 insertions(+) create mode 100644 bin/colout diff --git a/bin/colout b/bin/colout new file mode 100644 index 0000000..8d38565 --- /dev/null +++ b/bin/colout @@ -0,0 +1,11 @@ +#!/bin/bash +# Copyright © 2013 Martin Ueding + +# Small launcher script for the main module. + +# Licence: GPL 3+ + +set -e +set -u + +python -m colout.colout "$@" diff --git a/setup.py b/setup.py index bb9fb52..36d8666 100644 --- a/setup.py +++ b/setup.py @@ -29,6 +29,7 @@ setup( packages=packages, package_data={'': ['LICENSE']}, package_dir={'colout': 'colout'}, + scripts=['bin/colout'], include_package_data=True, install_requires=requires, license=open('LICENSE').read(), From e199f3869854c074dc9c455151c6342a683fa2d4 Mon Sep 17 00:00:00 2001 From: Martin Ueding Date: Tue, 30 Apr 2013 16:42:36 +0200 Subject: [PATCH 2/3] Call Python 3 --- bin/colout | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/colout b/bin/colout index 8d38565..99da3e4 100644 --- a/bin/colout +++ b/bin/colout @@ -8,4 +8,4 @@ set -e set -u -python -m colout.colout "$@" +python3 -m colout.colout "$@" From c9bd98b414d771ed7086a4111aa5e8e5c9e3e393 Mon Sep 17 00:00:00 2001 From: Martin Ueding Date: Tue, 30 Apr 2013 16:43:06 +0200 Subject: [PATCH 3/3] Change License to GPL 3 only It has been 3+ previously, but the remainder of the project is using 3 only. --- bin/colout | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/colout b/bin/colout index 99da3e4..9e09ae9 100644 --- a/bin/colout +++ b/bin/colout @@ -3,7 +3,7 @@ # Small launcher script for the main module. -# Licence: GPL 3+ +# Licence: GPL 3 set -e set -u