-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from seme0021/pre-release-housekeeping
Pre-release housekeeping
- Loading branch information
Showing
6 changed files
with
42 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
include LICENSE *.md *.rst | ||
|
||
# Tests | ||
include tox.ini .coveragerc conftest.py *-requirements.txt | ||
recursive-include tests *.py | ||
exclude .travis.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
[metadata] | ||
description-file = README.md | ||
description-file = README.md | ||
license-file = LICENSE | ||
|
||
[bdist_wheel] | ||
universal = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,26 @@ | ||
#!/usr/bin/env python | ||
"""A library that provides a Python interface to the Zillow API.""" | ||
|
||
|
||
""" | ||
A library that provides a Python interface to the Zillow API | ||
""" | ||
from __future__ import absolute_import | ||
|
||
import os as _os | ||
import pkg_resources as _pkg_resources | ||
|
||
from .error import ZillowError # noqa: F401 | ||
from .place import Place # noqa: F401 | ||
from .api import ValuationApi # noqa: F401 | ||
|
||
|
||
__author__ = '[email protected]' | ||
__version__ = '0.1' | ||
|
||
|
||
from .error import ZillowError | ||
from .place import Place | ||
from .api import ValuationApi | ||
try: | ||
_dist = _pkg_resources.get_distribution('python-' + __package__) | ||
if not _os.path.abspath(__file__).startswith( | ||
_os.path.join(_dist.location, __package__)): | ||
# Manually raise the exception if there is a distribution but | ||
# it's installed from elsewhere. | ||
raise _pkg_resources.DistributionNotFound | ||
except _pkg_resources.DistributionNotFound: | ||
__version__ = 'development' | ||
else: | ||
__version__ = _dist.version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
#!/usr/bin/env python | ||
|
||
class ZillowError(Exception): | ||
"""Base class for Twitter errors""" | ||
"""Base class for Zillow errors""" | ||
|
||
@property | ||
def message(self): | ||
""" | ||
:return: The first argument used to construct this error. | ||
""" | ||
return self.args[0] | ||
return self.args[0] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters