Tag Archives: rcs

Django dependencies

For some reasons, I have to come back to web development. I hate having to write websites, because I feel that so boring, but what I want to achieve is more something that is a close to a real application, but web-based. At least, the business code and the goal is going to be much funnier. Anyway, in a pythonic logic, I therefore fired up django and started writing this web app.

The first step lead me to collect a few of reusable apps. One of the problem is that most of them aren’t packaged or if they are, most of them are too old compared to what is released. Some cool guys had a good idea : include a way to fetch dependencies automatically using the “manage.py” command. This piece of code is called django-dependency. All you have to do is something like this :

1
2
3
4
5
6
7
DEPENDENCIES = (
# subversion
deps.SVN(
'http://code.djangoproject.com/svn/django/trunk/django',
root=DEPDENDENCY_ROOT,
),
)

and then, from the command line :

1
./manage.py up

While it looks sexy, this software have some problems :

  1. It doesn’t support GIT
  2. It relies on shell commands (not the python libraries) for RCSes
  3. It doesn’t handle checking out/updating a specific revision

I therefore decided to patch it. But, while I was adding things, I felt something was wrong and I ended up rewriting it completely.

This is why I now have a new system that is very close to the idea of django-dependency (thank you guys for this awesome idea !). I’ve called it django-autodeps and it is licensed under the GPL v3. I plan to released it as soon as possible (it works well for me, but I prefer to use it a few weeks, fix bugs, etc before releasing a stable version).