Skip to content

Commit

Permalink
Update version number
Browse files Browse the repository at this point in the history
  • Loading branch information
rustybrooks committed Apr 2, 2021
1 parent 1ead2ed commit 081f75b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion OTXv2.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def __init__(
self.request_session = None
self.headers = {
'X-OTX-API-KEY': self.key,
'User-Agent': user_agent or 'OTX Python {}/1.5.11'.format(project),
'User-Agent': user_agent or 'OTX Python {}/1.5.12'.format(project),
'Content-Type': 'application/json'
}

Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@

setup(
name='OTXv2',
version='1.5.11',
version='1.5.12',
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.10',
download_url='https://github.com/AlienVault-Labs/OTX-Python-SDK/tarball/1.5.12',
py_modules=['OTXv2', 'IndicatorTypes','patch_pulse'],
install_requires=['requests', 'python-dateutil', 'pytz']
)
2 changes: 1 addition & 1 deletion tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -940,7 +940,7 @@ def _test_backoff(self):

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.11')
self.assertEqual(o.headers['User-Agent'], 'OTX Python foo/1.5.12')

o = OTXv2(self.api_key, server=ALIEN_DEV_SERVER, user_agent='foo')
self.assertEqual(o.headers['User-Agent'], 'foo')
Expand Down

0 comments on commit 081f75b

Please sign in to comment.