1. Skip to navigation
  2. Skip to content

Entries in the Category “Python”

GitPython Release 0.1.6

written by Michael Trier, on Jan 24, 2009 9:33:00 PM.

I just released GitPython version 0.1.6. This version has some backwards incompatible changes to be sure to read through the changes below before upgrading.

GitPython is a python library that makes it easy to interact with Git repositories. The emphasis so far has been on introspection and less on manipulation, although some manipulation level functionality is present. For a good tutorial on getting started, check out the source distribution documentation files.

This version includes Sphinxification of the documentation. If you haven’t worked with Sphinx yet, I highly recommend it for documenting your projects. I just touched the surface with it and I was really amazed on the “out-of-the-box” functionality.

I hope you enjoy GitPython.

CHANGES

General

  • Added in Sphinx documentation.
  • Removed ambiguity between paths and treeishs. When calling commands that accept treeish and path arguments and there is a path with the same name as a treeish git cowardly refuses to pick one and asks for the command to use the unambiguous syntax where ’—’ seperates the treeish from the paths.
  • Repo.commits, Repo.commits_between, Reop.commits_since, Repo.commit_count, Repo.commit, Commit.count and Commit.find_all all now optionally take a path argument which constrains the lookup by path. This changes the order of the positional arguments in Repo.commits and Repo.commits_since.

Commit

  • Commit.message now contains the full commit message (rather than just the first line) and a new property Commit.summary contains the first line of the commit message.
  • Fixed a failure when trying to lookup the stats of a parentless commit from a bare repo.

Diff

  • The diff parser is now far faster and also addresses a bug where sometimes b_mode was not set.
  • Added support for parsing rename info to the diff parser. Addition of new properties Diff.renamed, Diff.rename_from, and Diff.rename_to.

Head

  • Corrected problem where branches was only returning the last path component instead of the entire path component following refs/heads/.

Repo

  • Modified the gzip archive creation to use the python gzip module.
  • Corrected commits_between always returning None instead of the reversed list.

This Week in Django 38 - 2008-09-22

written by Michael Trier, on Sep 24, 2008 10:46:00 PM.

This Week in Django is a weekly podcast about all things Django.

This week we do a DjangoCon retrospective, feature a special live interview with Pownce developers Leah Culver and Mike Malone, discuss a few source commits and some cool projects from the community.

Check it out…

DjangoCon - Enjoy the Fun

written by Michael Trier, on Sep 16, 2008 2:08:00 PM.

Last weekend I had the unique privilege to attend and participate in DjangoCon, the first international Django based conference. It was a wonderful experience and I had the great opportunity to meet a lot of incredibly smart people. I was especially excited to be able to participate by Moderating two discussion panels and doing the This Week in Django show live. The whole thing was held at Google, which is just amazing, and they recorded all of the presentations and have made them available. I encourage you to . note, if you want higher quality videos watch them on YouTube and select “watch in high quality”. I participated in the following:

Panel: Django Technical Design

A technical design discussion panel featuring core developers: Jacob Kaplan-Moss, Adrian Holovaty, Simon Willison, James Bennett, Malcolm Tredinnick. This one was a ton of fun and I only wish we had more time. I had a bunch of questions that I did not get the opportunity to ask, and others that were covered in prior keynotes so I thought it was best not to harp on them any longer.

Panel: Schema Evolution

A panel discussion on Schema Evolution and three popular approaches to this problem for Django. Featured project leads Simon Willison (), Russ Keith-Magee (), Andrew Godwin (South). This panel had some spirited discussion on schema evolution and their different approaches. It seems that there are enough similarities that we will hopefully see some collaboration among the projects.

TWiD Live

Michael Trier & Brian Rosner do a live presentation of the This Week in Django podcast. We were a bit nervous about this one since in our regular weekly podcast we have an opportunity to stop and start or do certain item over again. With the exception of a couple of minor mistakes it turned out great and was tons of fun. I was quite surprised by the number of questions that were asked. The only bummer about this one right now is that it cuts off the intro and the outro, but we’re trying to get Google to restore that.

Django 1.0

written by Michael Trier, on Sep 3, 2008 7:46:00 PM.

Well it’s finally here. Django 1.0 is the moment a lot of us have been waiting for. It’s a very exciting moment for the Django team but even more so for the development community at large. It represents a huge milestone in the web framework space.

Django, without a doubt, brings forth some incredibly innovative ideas that help take web development to the next level. So I am pleased to be a part of this, in some small way, but also looking forward to what’s next for Django and its popularity as a web framework.

If you haven’t had the pleasure to experience Django I encourage you to do so now. You’re programming mind will thank you for the experience.

This Week in Django 36 - 2008-08-31

written by Michael Trier, on Sep 3, 2008 1:35:00 PM.

This Week in Django 36 has been posted. It’s a great episode with our special guest James Bennett. Hear James talk about the book, the blog, speaking, and a whole lot more.

This Week in Django 35 - 2008-08-24

written by Michael Trier, on Aug 26, 2008 12:21:00 AM.

This Week in Django 35 has been posted. Don’t miss it. We catch up with Robert Lofthouse, Chairman of DjangoCon and EuroDjangoCon.

Django Docs Refactor

written by Michael Trier, on Aug 23, 2008 6:40:00 PM.

Django documentation has been refactored (Changeset 8506) using the excellent Sphinx – Python documentation generator. This is the same package used to generate the new Python documentation Check out the new docs at http://docs.djangoproject.com/. Now I have to go and update all my shortcut snippets. Thanks go especially to Jacob Kaplan-Moss and numerous contributors for all of their hard work on this one.

This Week in Django 34 - 2008-08-17

written by Michael Trier, on Aug 18, 2008 11:11:00 PM.

This Week in Django 34 has been posted.

This week we discuss Django 1.0 Beta 1, a bunch of source commits, some cool projects from the community, and a tip of the week.

Django 1.0-Beta 1

written by Michael Trier, on Aug 14, 2008 11:47:00 PM.

Just released is Django 1.0-Beta 1. This is another huge milestone in the push towards Django 1.0. This also means that we are likely to see a more stable trunk, so it looks like it’s heads down on Django once again. Check out the release notes for more information.

But the coding never stops. Tomorrow begins the Release Candidate sprint in Austin, TX and via IRC on freenode #django-sprint. Jump in and squash bugs.

I want to thank all of the contributors for their very hard work.

This Week in Django 33 - 2008-08-10

written by Michael Trier, on Aug 14, 2008 1:19:00 AM.

This Week in Django 33 has been posted.

This week we discuss the NEW This Week in Django site, a bunch of source commits, and some cool projects from the community.

All show notes from now on will be on the new This Week in Django dedicated site.