Please sign in to comment.
Make the version available without the deps installed.
Fixes the setup.py, which could fail with an ImportError if the deps hadn't been installed (and therefore also makes tox work).
- Loading branch information...
Showing with 12 additions and 2 deletions.
|@@ -1,5 +1,10 @@|
|from treq.api import head, get, post, put, delete, request|
|head, get, post, put, delete, request|
|__all__ = ('head', 'get', 'post', 'put', 'delete')|
|-__version__ = "0.1dev"|
|+with open(os.path.join(os.path.dirname(__file__), "_version")) as ver:|
|+ __version__ = ver.readline().strip()|