Giter Club home page Giter Club logo

Comments (5)

ib-lundgren avatar ib-lundgren commented on May 22, 2024

Thanks for the report! This error is caused because nosetests tries to inspect everything in the oauthlib directory, including the work in progres django oauth 2 provider decorator. Since there is no plan to add django as a dependency just for the sake of a small decorator I've updated the tox, travis and makefile to adjust for this dilemma by only looking in the tests directory.

tl;dr use nosetests -w tests and see if you still see any errors please

from oauthlib.

warsaw avatar warsaw commented on May 22, 2024

Just hit this same problem as I'm working on updating the Ubuntu package. I'd previously been using python setup.py test -vv but I'll either switch to nosetests directly or see if I can add something to setup.cfg to do as you suggest. Oh and also, there's no official Python 3 Django yet. :)

from oauthlib.

warsaw avatar warsaw commented on May 22, 2024

Here's the Debian quilt patch I'm going with:

Description: Restrict nose from looking outside the tests directory for tests.
 This prevents a test failure (and build dependency) on Django.
Author: Barry Warsaw <[email protected]>
Bug: https://github.com/idan/oauthlib/issues/97
Forwarded: yes

--- a/setup.cfg
+++ b/setup.cfg
@@ -3,3 +3,5 @@
 tag_date = 0
 tag_svn_revision = 0

+[nosetests]
+where=tests

from oauthlib.

ib-lundgren avatar ib-lundgren commented on May 22, 2024

Had a nagging feeling there should be a way to prevent nose from nosing around too much. Turns out I was right, if I move oauthlib/oauth2/ext/django/init.py to oauthlib/oauth2/ext/django.py everything is fine. Will sort this out tomorrow as its 01.30 am now...

from oauthlib.

ib-lundgren avatar ib-lundgren commented on May 22, 2024

An updated oauthlib is available on PyPI and should not cause these issues anymore.

from oauthlib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.