python使う

えーと

pythonを使った方が良いような気がしてきた。
とりあえず、以下の内容が必要そう。

  • python
  • ライブラリの管理
    • (複数のversionを使い分ける)
  • testツール
  • ドキュメントツール
  • ドキュメントを手軽に置けるようにする方法

pythonの環境設定

$ sudo apt-get install python python-setuptools python-pip

sphinxのインストー加(with pip)

$ sudo pip install sphinx
現在のインストールされているライブラリを知る。
$ pip freeze
 # GnuPGInterface==0.3.2
 # Jinja2==2.3.1
 # Landscape-Client==1.5.5.1
 # PAM==0.4.2
 # PIL==1.1.7
 # Pygments==1.2.2
 # Sphinx==1.0.4
 # Twisted-Core==10.0.0
 # Wicd==1.7.0
 # apturl==0.4.1ubuntu4
 # command-not-found==0.1
 # distribute==0.6.10
 # docutils==0.6
 # httplib2==0.6.0
 # iniparse==0.3.1
 # launchpadlib==1.6.0
 # lazr.restfulclient==0.9.11
 # lazr.uri==1.0.2
 # lxml==2.2.4
 # oauth==1.0a
 # pexpect==2.3
 # pyOpenSSL==0.10
 # pycurl==7.19.0
 # pyserial==2.3
 # python-apt==0.7.94.2ubuntu6.2
 # python-debian==0.1.14ubuntu2
 # simplejson==2.0.9
 # smart==1.2
 # ufw==0.30pre1-0ubuntu2
 # unattended-upgrades==0.1
 # usb-creator==0.2.22
 # vboxapi==1.0
 # wadllib==1.1.4
 # wsgiref==0.1.2
 # zope.interface==3.5.3

test

  • doctest
  • nose

mercurial

hg init
hg clone
hg serve -p 8080
||
***mercurialで公開されているものの環境作成
>|sh|
$ hg clone http://xxxxx/ .
$ ls
bootstrap.py   buildout.cfg
$ python bootstrap.py
$ bin/buildout
issue tracking

trac