wlanslovenija / django-tastypie-mongoengine

MongoEngine support for django-tastypie.
Other
73 stars 59 forks source link

Add requirements.txt with pip requirements for running unit tests. #61

Closed bendemboski closed 11 years ago

mitar commented 11 years ago

Why? Isn't setup.py enough? You should be running tests with ./setup.py test.

mitar commented 11 years ago

So the issue I have is that we already have list of requirements in three places: setup.py, .travis.yaml and documentation. Adding a new one is an idea I don't really like. :-)

bendemboski commented 11 years ago

Okay. When I create a clean virtual environment and then run setup.py, I get a dependency error, though:

ERROR: test_project.test_app.tests.test_basic

(unittest.loader.ModuleImportFailure)

ImportError: Failed to import test module: test_project.test_app.tests.test_basic Traceback (most recent call last): File "/usr/lib/python2.7/unittest/loader.py", line 252, in _find_tests module = self._get_module_from_name(name) File "/usr/lib/python2.7/unittest/loader.py", line 230, in _get_module_from_name import(name) File "/home/bend/projects/django-tastypie-mongoengine/tests/test_project/test_app/tests/test_basic.py", line 12, in from tastypie_mongoengine import resources as tastypie_mongoengine_resources, test_runner File "/home/bend/projects/django-tastypie-mongoengine/tastypie_mongoengine/resources.py", line 15, in from tastypie import bundle as tastypie_bundle, exceptions as tastypie_exceptions, fields as tastypie_fields, http, resources, utils File "/home/bend/projects/django-tastypie-mongoengine/django_tastypie-0.10.0-py2.7.egg/tastypie/resources.py", line 31, in from tastypie.utils.mime import determine_format, build_content_type File "/home/bend/projects/django-tastypie-mongoengine/django_tastypie-0.10.0-py2.7.egg/tastypie/utils/mime.py", line 3, in import mimeparse ImportError: No module named mimeparse

On Mon, Aug 5, 2013 at 12:37 PM, Mitar notifications@github.com wrote:

So the issue I have is that we already have list of requirements in three places: setup.py, .travis.yaml and documentation. Adding a new one is an idea I don't really like. :-)

— Reply to this email directly or view it on GitHubhttps://github.com/mitar/django-tastypie-mongoengine/pull/61#issuecomment-22134703 .

mitar commented 11 years ago

When was the last time you updated from the master? ;-)