Tuesday, January 19, 2010

Galloping out of the Gate

With the ending of the Spring Code Sprint this past Sunday, the pony-build team can get down to some serious business. At the code sprint I worked on getting jcobian's implementation of virtualenv support ready to roll out to the main pb repo, which it is now after some refinements by ctb. I picked up Issue 6 all so.

Right now I am working on getting pb to create the cache directory, which it uses to store the repos it pulls off the internet locally, and the repo folders if they do not already exist. It is sort of working now, but i am having problems with git and it trying to do lots of clones for some reason. Luckily debugging in python is fairly easy, asserts and print statements hah, good times.I just need to clear up a couple things with ctb and I should have a push to a branch of my git repo by the end of the week.

More detailed info to follow at that point.

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.

./intro

Hello one and all, I am Max, I am a senior in the Computer Science department at the University of the Virgin Islands. I will be partaking in the Undergraduate Capstone Open Source Projects, UCOSP, this spring semester. The project I have selected to work on is pony-build. I will use this blog to post my musings and work on the project through out the semester.