From: Ira W. Snyder Date: Sun, 9 Nov 2008 20:22:54 +0000 (-0800) Subject: Improve distribution X-Git-Tag: v2.1.0 X-Git-Url: https://www.irasnyder.com/gitweb/?p=rarslave2.git;a=commitdiff_plain;h=8d08278a0a88aa9510748b309b1b135a28d4d4e1 Improve distribution Add a ChangeLog and example configuration file to the source distribution. This makes things nicer for the end user. Signed-off-by: Ira W. Snyder --- diff --git a/ChangeLog b/ChangeLog new file mode 100644 index 0000000..ecdc461 --- /dev/null +++ b/ChangeLog @@ -0,0 +1,13 @@ +v2.1.0 (2008-11-09): +* Add example configuration file +* Print better debugging information in case of error +* Use subprocess module for commands, fixing usage with strange charater sets +* Simplify package usage +* Use exceptions for error handling +* Add distutils setup + +v2.0.0 (2008-01-27): +* Rewritten version to simplify maintence +* Supercedes the original rarslave project + +# vim: set ft=changelog tw=80: diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..b019705 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,2 @@ +include rarslave.conf +include ChangeLog diff --git a/rarslave.conf b/rarslave.conf new file mode 100644 index 0000000..ce946fb --- /dev/null +++ b/rarslave.conf @@ -0,0 +1,16 @@ +# This is an example configuration file +# +# If you wish to customize this file, copy it to +# $HOME/.config/rarslave/rarslave.conf +# +# If rarslave does not find a configuration file, it +# will use the built-in defaults, listed below + +[directories] +start = ~/downloads/ + +[options] +verbosity = 0 +recursive = True +interactive = False +delete = True diff --git a/rarslave.py b/rarslave.py index 5d9824d..001bf0f 100755 --- a/rarslave.py +++ b/rarslave.py @@ -43,7 +43,7 @@ import PAR2Set class RarslaveConfig(object): DEFAULT_CONFIG_FILE = PAR2Set.utils.absolutePath( - os.path.join('~', '.config', 'rarslave2', 'rarslave2.conf')) + os.path.join('~', '.config', 'rarslave', 'rarslave.conf')) def __init__(self, fileName=DEFAULT_CONFIG_FILE):