Add support for DocumentProxy so we can access obj.ref.pk without fetching ref and still get the correct type even if ref can be inherited.
This commit is contained in:
parent
dcc5d3c858
commit
929a1b222c
4 changed files with 226 additions and 17 deletions
5
setup.py
5
setup.py
|
|
@ -51,13 +51,14 @@ CLASSIFIERS = [
|
|||
extra_opts = {}
|
||||
if sys.version_info[0] == 3:
|
||||
extra_opts['use_2to3'] = True
|
||||
extra_opts['tests_require'] = ['nose', 'coverage', 'blinker', 'jinja2==2.6']
|
||||
extra_opts['tests_require'] = ['nose', 'coverage', 'blinker', 'jinja2>=2.6']
|
||||
extra_opts['packages'] = find_packages(exclude=('tests',))
|
||||
if "test" in sys.argv or "nosetests" in sys.argv:
|
||||
extra_opts['packages'].append("tests")
|
||||
extra_opts['package_data'] = {"tests": ["fields/mongoengine.png", "fields/mongodb_leaf.png"]}
|
||||
else:
|
||||
extra_opts['tests_require'] = ['nose', 'coverage', 'blinker', 'django>=1.4.2', 'PIL', 'jinja2==2.6', 'python-dateutil']
|
||||
#extra_opts['tests_require'] = ['nose', 'coverage', 'blinker', 'django>=1.4.2', 'PIL', 'jinja2>=2.6']
|
||||
extra_opts['tests_require'] = ['nose', 'coverage', 'blinker', 'jinja2>=2.6']
|
||||
extra_opts['packages'] = find_packages(exclude=('tests',))
|
||||
|
||||
setup(name='mongoengine',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue