Bump to v0.1.1

This commit is contained in:
Harry Marr 2010-01-04 04:34:02 +00:00
parent 6363b6290b
commit de1847048b
4 changed files with 23 additions and 10 deletions

View File

@ -12,6 +12,13 @@ a `tutorial <http://hmarr.com/mongoengine/tutorial.html>`_, a `user guide
<http://hmarr.com/mongoengine/userguide.html>`_ and an `API reference <http://hmarr.com/mongoengine/userguide.html>`_ and an `API reference
<http://hmarr.com/mongoengine/apireference.html>`_. <http://hmarr.com/mongoengine/apireference.html>`_.
Installation
============
If you have `setuptools <http://peak.telecommunity.com/DevCenter/setuptools>`_
you can use ``easy_install mongoengine``. Otherwise, you can download the
source from `GitHub <http://github.com/hmarr/mongoengine>`_ and run ``python
setup.py install``.
Dependencies Dependencies
============ ============
- pymongo 1.1+ - pymongo 1.1+
@ -69,3 +76,14 @@ Some simple examples of what MongoEngine code looks like::
2 2
>>> len(BlogPost.objects(tags='mongodb')) >>> len(BlogPost.objects(tags='mongodb'))
1 1
Tests
=====
To run the test suite, ensure you are running a local instance of MongoDB on
the standard port, and run ``python setup.py test``.
Contributing
============
The source is available on `GitHub <http://github.com/hmarr/mongoengine>`_ - to
contribute to the project, fork it on GitHub and send a pull request, all
contributions and suggestions are welcome!

View File

@ -48,7 +48,7 @@ import mongoengine
# The short X.Y version. # The short X.Y version.
version = mongoengine.get_version() version = mongoengine.get_version()
# The full version, including alpha/beta/rc tags. # The full version, including alpha/beta/rc tags.
release = mongoengine.get_release() release = mongoengine.get_version()
# The language for content autogenerated by Sphinx. Refer to documentation # The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages. # for a list of supported languages.

View File

@ -12,7 +12,7 @@ __all__ = (document.__all__ + fields.__all__ + connection.__all__ +
__author__ = 'Harry Marr' __author__ = 'Harry Marr'
VERSION = (0, 1, 0, 'beta') VERSION = (0, 1, 1)
def get_version(): def get_version():
version = '%s.%s' % (VERSION[0], VERSION[1]) version = '%s.%s' % (VERSION[0], VERSION[1])
@ -20,11 +20,5 @@ def get_version():
version = '%s.%s' % (version, VERSION[2]) version = '%s.%s' % (version, VERSION[2])
return version return version
def get_release(): __version__ = get_version()
version = get_version()
if VERSION[3] != 'final':
version = '%s-%s' % (version, VERSION[3])
return version
__version__ = get_release()

View File

@ -1,6 +1,6 @@
from setuptools import setup from setuptools import setup
VERSION = '0.1' VERSION = '0.1.1'
DESCRIPTION = "A Python Document-Object Mapper for working with MongoDB" DESCRIPTION = "A Python Document-Object Mapper for working with MongoDB"
@ -32,4 +32,5 @@ setup(name='mongoengine',
platforms=['any'], platforms=['any'],
classifiers=CLASSIFIERS, classifiers=CLASSIFIERS,
install_requires=['pymongo'], install_requires=['pymongo'],
test_suite='tests',
) )