mirror of
https://github.com/sprockets/sprockets.mixins.http.git
synced 2024-11-14 19:29:31 +00:00
Fix installation
This commit is contained in:
parent
9943632e32
commit
47db53f28f
3 changed files with 11 additions and 30 deletions
|
@ -1,11 +1,15 @@
|
|||
Version History
|
||||
===============
|
||||
|
||||
`1.0.1`_ Apr 26, 2017
|
||||
`1.0.3`_ Apr 28, 2017
|
||||
---------------------
|
||||
- Fix the installer
|
||||
|
||||
`1.0.2`_ Apr 26, 2017
|
||||
---------------------
|
||||
- Documentation Updates
|
||||
|
||||
`1.0.0`_ Apr 26, 2017
|
||||
`1.0.1`_ Apr 26, 2017
|
||||
---------------------
|
||||
- Default Accept headers include both msgpack and json
|
||||
|
||||
|
|
4
setup.py
4
setup.py
|
@ -3,8 +3,6 @@ import os.path
|
|||
|
||||
import setuptools
|
||||
|
||||
from sprockets.mixins.http import __version__
|
||||
|
||||
|
||||
def read_requirements(name):
|
||||
requirements = []
|
||||
|
@ -25,7 +23,7 @@ def read_requirements(name):
|
|||
|
||||
setuptools.setup(
|
||||
name='sprockets.mixins.http',
|
||||
version=__version__,
|
||||
version='1.0.3',
|
||||
description='HTTP Client Mixin for Tornado RequestHandlers',
|
||||
long_description=open('README.rst').read(),
|
||||
url='https://github.com/sprockets/sprockets.mixins.http',
|
||||
|
|
|
@ -11,32 +11,11 @@ import logging
|
|||
import socket
|
||||
import time
|
||||
|
||||
try:
|
||||
from ietfparse import algorithms, datastructures, errors, headers
|
||||
except ImportError: # pragma: nocover
|
||||
logging.getLogger().error('Could not load ietfparse modules')
|
||||
algorithms, datastructures, errors = None, None, None
|
||||
from ietfparse import algorithms, errors, headers
|
||||
from tornado import gen, httpclient
|
||||
import umsgpack
|
||||
|
||||
class headers(object):
|
||||
"""Dummy class for installation"""
|
||||
@staticmethod
|
||||
def parse_content_type(value):
|
||||
"""Dummy method"""
|
||||
return value
|
||||
|
||||
try:
|
||||
from tornado import gen, httpclient
|
||||
except ImportError: # pragma: nocover
|
||||
logging.getLogger().error('Could not load tornado modules')
|
||||
gen, httpclient = None, None
|
||||
|
||||
try:
|
||||
import umsgpack
|
||||
except ImportError: # pragma: nocover
|
||||
logging.getLogger().error('Could not load umsgpack module')
|
||||
umsgpack = None
|
||||
|
||||
__version__ = '1.0.2'
|
||||
__version__ = '1.0.3'
|
||||
|
||||
LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
|
Loading…
Reference in a new issue