Skip to content

Commit

Permalink
Fix python version problems before release
Browse files Browse the repository at this point in the history
  • Loading branch information
alpgurtan committed Jun 8, 2017
1 parent 9cd4121 commit fa743f6
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
3 changes: 1 addition & 2 deletions opsgenie/client.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from swagger_client import AlertApi

from .alert.service import AlertService
from .config import Configuration
from .swagger_client import AlertApi


class OpsGenie:
Expand Down
4 changes: 2 additions & 2 deletions opsgenie/config.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from opsgenie import swagger_client
from .errors import ApiKeyMissingError, EndpointMissingError, InvalidConfigurationError
from .swagger_client import configuration as SwaggerConf


class Configuration:
Expand Down Expand Up @@ -36,7 +36,7 @@ def __init__(self, apikey=None, endpoint=DEFAULT_ENDPOINT, http_config=None, pro
else:
self.proxy_config = None

self.swag_conf = swagger_client.configuration
self.swag_conf = SwaggerConf
self.swag_conf.api_key['Authorization'] = self.api_key
self.swag_conf.api_key_prefix['Authorization'] = 'GenieKey'

Expand Down
5 changes: 2 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
tox
pytz>=2016.1
requests>=2.9.1
six>=1.10.0
certifi >= 14.05.14
six>=1.10
python_dateutil >= 2.5.3
setuptools >= 21.0.0
setuptools >= 20.3.1
urllib3 >= 1.15.1
5 changes: 3 additions & 2 deletions test-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
coverage>=4.0.3
tox
nose2>=0.6.4
httpretty>=0.8.14
coverage>=4.0.3
pluggy>=0.3.1
py>=1.4.31
randomize>=0.13
httpretty>=0.8.14
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py27, py34
envlist = py27, py35
skipsdist=True

[testenv]
Expand Down

0 comments on commit fa743f6

Please sign in to comment.