django-checksum /

# -*- coding: utf-8 -*-
#  checksum
#  Created by Lars Yencken on 09-11-2008.
#  Copyright 2008 Lars Yencken. All rights reserved.

Package file for the checksum app.

from setuptools import setup
import os
from os import path

def get_mercurial_id():
    revision = None
    # Is mercurial installed?
    if os.system('which hg >/dev/null 2>&1') == 0:
        revision = os.popen('hg id -n 2>/dev/null').read().strip().rstrip('+')

    return revision or 'unknown'

        version='0.1.r%s' % get_mercurial_id(),
        description='Django checksum app',
        long_description="""An app for managing static file dependencies using Django's ORM as a data store. This is useful when, for example, building a large resource in many stages from a variety of static dependencies, both data files and python modules. Simple methods are provided for querying whether the generated resource is up-to-date based on the checksum of its dependencies.""",
        author='Lars Yencken',
        install_requires=['django >= 1.0'],
        packages = ['checksum'],
        package_dir = {'checksum': 'src'},

# vim: ts=4 sw=4 sts=4 et tw=78:
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.