update setup.py

--HG--
rename : CHANGELOG.txt => CHANGES.txt
This commit is contained in:
Carl Meyer 2010-01-06 23:48:44 -05:00
parent 0e6de5ae75
commit e585513529
8 changed files with 48 additions and 16 deletions

1
.gitignore vendored
View file

@ -1,2 +1,3 @@
dist/*
django_model_utils.egg-info/*
HGREV

View file

@ -1,2 +1,3 @@
^dist/
^django_model_utils.egg-info/
^HGREV$

View file

@ -1,9 +0,0 @@
============================
django-model-utils changelog
============================
v0.3.0
------
* Added ``QueryManager``

13
CHANGES.txt Normal file
View file

@ -0,0 +1,13 @@
CHANGES
=======
tip (unreleased)
----------------
- added South support for custom model fields
0.3.0
-----
* Added ``QueryManager``

View file

@ -1,7 +1,8 @@
include AUTHORS.txt
include CHANGELOG.txt
include CHANGES.txt
include INSTALL.txt
include LICENSE.txt
include MANIFEST.in
include README.txt
include TODO.txt
include TODO.txt
include HGREV

View file

@ -98,3 +98,4 @@ The kwargs passed to ``QueryManager`` will be passed as-is to the
set the ordering of the ``QuerySet`` returned by the ``QueryManager``
by chaining a call to ``.order_by()`` on the ``QueryManager`` (this is
not required).

View file

@ -1,5 +1,5 @@
TODO list for django-model-utils
================================
TODO
====
* Custom QuerySet subclass to pair with InheritanceCastModel for more
efficient querying.

View file

@ -1,10 +1,34 @@
from setuptools import setup, find_packages
import subprocess
import os.path
try:
# don't get confused if our sdist is unzipped in a subdir of some
# other hg repo
if os.path.isdir('.hg'):
p = subprocess.Popen(['hg', 'parents', r'--template={rev}\n'],
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
if not p.returncode:
fh = open('HGREV', 'w')
fh.write(p.communicate()[0].splitlines()[0])
fh.close()
except (OSError, IndexError):
pass
try:
hgrev = open('HGREV').read()
except IOError:
hgrev = ''
long_description = (open('README.txt').read() +
open('CHANGES.txt').read() +
open('TODO.txt').read())
setup(
name='django-model-utils',
version='0.3.2dev',
version='0.3.2dev%s' % hgrev,
description='Django model mixins and utilities',
long_description=open('README.txt').read(),
long_description=long_description,
author='Carl Meyer',
author_email='carl@dirtcircle.com',
url='http://bitbucket.org/carljm/django-model-utils/',