Update version to 1.5.5

This commit is contained in:
Rusty Brooks 2019-12-05 14:32:14 -06:00
parent 73a2755dac
commit 660d2ea287
3 changed files with 4 additions and 4 deletions

View File

@ -95,7 +95,7 @@ class OTXv2(object):
self.request_session = None
self.headers = {
'X-OTX-API-KEY': self.key,
'User-Agent': user_agent or 'OTX Python {}/1.5.4'.format(project),
'User-Agent': user_agent or 'OTX Python {}/1.5.5'.format(project),
'Content-Type': 'application/json'
}

View File

@ -5,12 +5,12 @@ from setuptools import setup
setup(
name='OTXv2',
version='1.5.4',
version='1.5.5',
description='AlienVault OTX API',
author='AlienVault Team',
author_email='otx@alienvault.com',
url='https://github.com/AlienVault-Labs/OTX-Python-SDK',
download_url='https://github.com/AlienVault-Labs/OTX-Python-SDK/tarball/1.5.4',
download_url='https://github.com/AlienVault-Labs/OTX-Python-SDK/tarball/1.5.5',
py_modules=['OTXv2', 'IndicatorTypes','patch_pulse'],
install_requires=['requests', 'python-dateutil', 'pytz']
)

View File

@ -678,7 +678,7 @@ class TestRequests(TestOTXv2):
def test_user_agent(self):
o = OTXv2(self.api_key, server=ALIEN_DEV_SERVER, project='foo')
self.assertEqual(o.headers['User-Agent'], 'OTX Python foo/1.5.4')
self.assertEqual(o.headers['User-Agent'], 'OTX Python foo/1.5.5')
o = OTXv2(self.api_key, server=ALIEN_DEV_SERVER, user_agent='foo')
self.assertEqual(o.headers['User-Agent'], 'foo')