Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix setup settings #2

Merged
merged 1 commit into from
Apr 16, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
except ImportError:
from distutils.core import setup

from sia import __version__, __authors__, __emails__
from sia import __version__, __authors__, __email__


setup(
name='essentia-sia-api',
version=__version__,
author=__authors__,
author_email=__emails__,
author_email=__email__,
url='https://github.com/essentiaone/essentia-sia-api',
description='Sia API wrapper written in Python.',
download_url='https://github.com/essentiaone/essentia-sia-api/archive/master.zip',
Expand Down
12 changes: 6 additions & 6 deletions sia/__init__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"""
Provide methainfo about Sia-package.
"""
from sia.sia import Sia # noqa: F401
try:
from sia.sia import Sia
except ImportError:
from sia import Sia

__authors__ = 'Dmytro Striletskyi, Alexander Ruban'
__emails__ = 'dmytro.striletskyi@gmail, alexander.ruban98@gmail.com'
__version__ = '0.0.1-alpha-0'
__email__ = 'dev@essentia.one'
__version__ = '0.0.1a0'
6 changes: 3 additions & 3 deletions sia/mixins/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def http_post(self, path, data=None):
Helper HTTP POST request function.
Sends HTTP POST request to given path with given payload.
"""
url = self.address + ':' + str(self.port) + path
url = str(self.address) + ':' + str(self.port) + path
resp = requests.post(url, headers=self.headers, data=data)
try:
resp.raise_for_status()
Expand All @@ -69,8 +69,8 @@ def get(path, data=None): # pylint: disable=missing-docstring

@staticmethod
def post(path, data=None): # pylint: disable=missing-docstring
return HttpMixinToDeprecate.http_post(path, data)
return HttpMixinToDeprecate().http_post(path, data)

@staticmethod
def get_bytes(path, data=None): # pylint: disable=missing-docstring
return HttpMixinToDeprecate.http_get_bytes(path, data)
return HttpMixinToDeprecate().http_get_bytes(path, data)