Skip to content

Commit

Permalink
Merge pull request #60 from gamechanger/tnt-pymongo-3
Browse files Browse the repository at this point in the history
Upgrade to PyMongo 3, bump our version to 0.8
  • Loading branch information
thieman authored Apr 27, 2017
2 parents 72707d6 + f5904c8 commit 5305bda
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

setuptools.setup(
name="Mongothon",
version="0.7.20",
version="0.8.0",
author="Tom Leach",
author_email="[email protected]",
description="A MongoDB object-document mapping layer for Python",
Expand All @@ -15,7 +15,7 @@
"API for Python, loosely based on the awesome " +
"mongoose.js library.",
install_requires=[
'pymongo>=2.5.0, <3.0.0', 'inflection==0.2.0', 'schemer>=0.2.0, <0.3.0'
'pymongo>=3.0.0, <4.0.0', 'inflection==0.2.0', 'schemer>=0.2.0, <0.3.0'
],
tests_require=['mock', 'nose']
)
4 changes: 2 additions & 2 deletions tests/mongothon/pymongo_integration_test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import os
from pymongo.connection import Connection
from pymongo import MongoClient
import unittest
from mongothon import create_model
from sample import blog_post_schema, valid_doc, expected_db_doc
Expand All @@ -10,7 +10,7 @@


def get_db(*args, **kwargs):
return Connection(host, port, *args, **kwargs).mongothon_test
return MongoClient(host, port, *args, **kwargs).mongothon_test

blog_post_collection = get_db().blog_post
BlogPost = create_model(blog_post_schema, blog_post_collection)
Expand Down

0 comments on commit 5305bda

Please sign in to comment.