mirror of
https://github.com/Hopiu/django-model-utils.git
synced 2026-03-16 20:00:23 +00:00
update setup.py
--HG-- rename : CHANGELOG.txt => CHANGES.txt
This commit is contained in:
parent
0e6de5ae75
commit
e585513529
8 changed files with 48 additions and 16 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,2 +1,3 @@
|
|||
dist/*
|
||||
django_model_utils.egg-info/*
|
||||
HGREV
|
||||
|
|
|
|||
|
|
@ -1,2 +1,3 @@
|
|||
^dist/
|
||||
^django_model_utils.egg-info/
|
||||
^HGREV$
|
||||
|
|
|
|||
|
|
@ -1,9 +0,0 @@
|
|||
============================
|
||||
django-model-utils changelog
|
||||
============================
|
||||
|
||||
v0.3.0
|
||||
------
|
||||
|
||||
* Added ``QueryManager``
|
||||
|
||||
13
CHANGES.txt
Normal file
13
CHANGES.txt
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
CHANGES
|
||||
=======
|
||||
|
||||
tip (unreleased)
|
||||
----------------
|
||||
|
||||
- added South support for custom model fields
|
||||
|
||||
0.3.0
|
||||
-----
|
||||
|
||||
* Added ``QueryManager``
|
||||
|
||||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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).
|
||||
|
||||
|
|
|
|||
4
TODO.txt
4
TODO.txt
|
|
@ -1,5 +1,5 @@
|
|||
TODO list for django-model-utils
|
||||
================================
|
||||
TODO
|
||||
====
|
||||
|
||||
* Custom QuerySet subclass to pair with InheritanceCastModel for more
|
||||
efficient querying.
|
||||
|
|
|
|||
30
setup.py
30
setup.py
|
|
@ -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/',
|
||||
|
|
|
|||
Loading…
Reference in a new issue