HTTPS SSH

redmine issue description updater

Requirement

client

  • python 2.4+

Install

shell:

hg clone ...(writing)
pip install -r requirements.txt

if you got UnicodeDecodeError, apply following patch

patch:

--- venv/lib/python2.4/site-packages/pyactiveresource/util.py.orig      2012-07-09 18:38:09.000000000 +0900
+++ venv/lib/python2.4/site-packages/pyactiveresource/util.py   2012-07-09 17:52:27.000000000 +0900
@@ -233,7 +233,7 @@
             else:
                 element = ET.SubElement(root_element, key)
                 if value is not None:
-                    element.text = str(value)
+                    element.text = str(value.encode('utf-8'))
                     if isinstance(value, bool):
                         element.text = element.text.lower()
                         element.set('type', 'boolean')

Usage

shell:

LANG=C date | python updater.py

Development

shell:

virtualenv --no-site-packages --python=python2.4 venv
# or
/usr/local/Cellar/python24/2.4.*/bin/virtualenv --no-site-packages --python=python2.4 venv

Note

If you use MacOSX, install python2.4 with homebrew.

shell:

brew tap homebrew/versions
brew install homebrew/versions/python24
curl http://peak.telecommunity.com/dist/ez_setup.py|python2.4
/usr/local/Cellar/python24/2.4.6/bin/easy_install pip
/usr/local/Cellar/python24/2.4.6/bin/pip install virtualenv