Monday, January 4, 2010

First client script

Created a client build script for zope...

http://github.com/mlaite/pony-build/blob/master/client/build-zope

Creating the actual script was easy as its pretty much working from ctb's 'template'. The only real work, if we can call it that, involved is figuring out the right commands and paths for building and testing. This, of course, just worked out this way for this particular build, I am sure we will find ones that will not be so easy (Windows!) . Though, I think most python based projects will be able to be built with pb by just amending a few simple lines, repo_url/git_url, and the 'commands' section.


Some after thoughts:

I have not done svn work in so long that at first I was not using the full direct path to the zope repo so I was getting svn errors. (I was using a shortcut, D'oh!) Luckily most projects, on their SVN faq, will give you the correct full path to use, though I would of figured it out eventually, the good people who run the project like to save us, the royal "us", slackers some time.

After the initial commit, I was looking over the code after a lunch break and found little issues here and there. So, at the time of writing this, I think I have updated the script about 4 times fixing little mistakes or cleaning up unnecessary items. Just reinforcing that it is always a good idea to take a break, then come back with a fresh head, cause you will find mistakes and all so ways of improving your code.

I am using vi to write my scripts so far. I think if I move to an actual IDE with python support this would remove most of the initial errors I encountered.

No comments:

Post a Comment