| 221 | Want to get started hacking announcer? Here's what'd I do. Replace vim with the editor of your choice. Replace git with the SCM of your choice. |
| 222 | |
| 223 | 1. Make sure you have virtualenv installed |
| 224 | 1. Get the code |
| 225 | {{{ |
| 226 | #!sh |
| 227 | ~ $ cd src |
| 228 | ~/src $ git svn init http://trac-hacks.org/svn th-announcer |
| 229 | ~/src $ cd th-announcer |
| 230 | ~/src/th-announcer $ vim .git/config |
| 231 | ~/src/th-announcer $ cat .git/config |
| 232 | [core] |
| 233 | repositoryformatversion = 0 |
| 234 | filemode = true |
| 235 | bare = false |
| 236 | logallrefupdates = true |
| 237 | autocrlf = false |
| 238 | [svn-remote "svn"] |
| 239 | url = http://trac-hacks.org/svn |
| 240 | fetch = announcerplugin/trunk:refs/remotes/git-svn/trunk |
| 241 | fetch = announcerplugin/0.11:refs/remotes/git-svn/0.11 |
| 242 | fetch = announcerplugin/0.11dev:refs/remotes/git-svn/0.11dev |
| 243 | ~/src/th-announcer $ git svn fetch |
| 244 | git blah blah |
| 245 | ~/src/th-announcer $ git checkout -b trunk git-svn/trunk |
| 246 | more blah blah |
| 247 | }}} |
| 248 | 1. Setup a virtualenv and install everything in it |
| 249 | {{{ |
| 250 | #!sh |
| 251 | ~/src/th-announcer $ cd |
| 252 | ~ $ virtualenv th-announcer |
| 253 | ~ $ . th-announcer/bin/activate |
| 254 | (th-announcer)~ $ pip install -U Babel Trac |
| 255 | pip blah blah |
| 256 | (th-announcer)~ $ cd src/th-announcer |
| 257 | (th-announcer)~/src/th-announcer $ python setup.py install |
| 258 | }}} |
| 259 | 1. It is also very helpful to install iniadmin `pip install -U http://trac-hacks.org/svn/iniadminplugin/0.11` |
| 260 | 1. Create a trac instance for testing `trac-admin ~/virttrac/trac initenv` |
| 261 | 1. Add `root` as a TRAC_ADMIN `trac-admin ~/virttrac/trac/ permission add root TRAC_ADMIN` |
| 262 | 1. Create an htpasswd file so you can log in: `echo root:Xy2PtsPf0839Y > ~/th-announcer/trac/htpasswd` (that's 'password') |
| 263 | 1. Fire her up! `cd ~/th-announcer/trac && tracd -p 7421 . -sr --basic-auth *,${HOME}/th-announcer/trac/htpasswd,*` |
| 264 | 1. Browse to it. `chromium http://localhost:7421/admin` and login as root:password |
| 265 | 1. Enable all the announcer and iniadmin stuff. |
| 266 | 1. Edit your config with iniadmin. |
| 267 | |