-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Magic to resolve content-type on upload (#121)
Performs conditional import of magic with hinting about python-magic-bin on Mac and Windows Signed-off-by: Robert Wikman <[email protected]>
- Loading branch information
Showing
4 changed files
with
24 additions
and
5 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
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 |
---|---|---|
|
@@ -7,13 +7,13 @@ | |
from .params_builder import ParamsBuilder | ||
|
||
__author__ = "Robert Wikman <[email protected]>" | ||
__version__ = "0.7.8" | ||
__version__ = "0.7.9" | ||
|
||
# Set default logging handler to avoid "No handler found" warnings. | ||
import logging | ||
try: # Python 2.7+ | ||
from logging import NullHandler | ||
except ImportError: | ||
except ImportError: # pragma: no cover | ||
class NullHandler(logging.Handler): | ||
def emit(self, record): | ||
pass | ||
|
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 |
---|---|---|
|
@@ -26,7 +26,16 @@ def get_version(): | |
version=get_version(), | ||
description='ServiceNow HTTP client library', | ||
long_description=readme.read(), | ||
install_requires=['requests', 'oauthlib', 'requests_oauthlib', 'httpretty', 'six', 'ijson', 'pytz'], | ||
install_requires=[ | ||
'requests', | ||
'oauthlib', | ||
'python-magic', | ||
'requests_oauthlib', | ||
'httpretty', | ||
'six', | ||
'ijson', | ||
'pytz' | ||
], | ||
author='Robert Wikman', | ||
author_email='[email protected]', | ||
maintainer='Robert Wikman', | ||
|