Skip to content
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
16 changes: 16 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
language: python

matrix:
include:
- os: linux
python: 2.7
- os: linux
python: 3.5
- os: linux
python: 3.6

install:
- pip install -r test-requirements.txt

script:
- flake8 connectsdk
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.14.0
1.14.0
2 changes: 1 addition & 1 deletion connectsdk/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def load_from_file(self, file):
Set Config.api_url/.api_key/.products
"""
if not os.path.exists(file):
raise NotADirectoryError('Not file `{}` on directory'.format(file))
raise IOError('Not file `{}` on directory'.format(file))

with open(file) as config_file:
configs = config_file.read()
Expand Down
8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import os
from os.path import abspath, dirname, join

from setuptools import setup

try: # for pip >= 10
Expand All @@ -11,7 +10,7 @@
from pip.req import parse_requirements

install_reqs = parse_requirements(os.path.join(os.path.dirname(os.path.abspath(__file__)),
'requirements.txt'), session=None)
'requirements.txt'), session='None')

here = abspath(dirname(__file__))

Expand All @@ -22,9 +21,11 @@
name='connectsdk',
author='Ingram Micro',
version=VERSION,
keywords='sdk connectsdk connect automation',
packages=['connectsdk'],
description='Connect Python SDK',
long_description=open('README.md').read(),
long_description='Documentation is described on '
'`GitHub <https://github.com/ingrammicro/connect-python-sdk>`_',
url='https://github.com/ingrammicro/connect-python-sdk',
license='Apache Software License',
include_package_data=True,
Expand All @@ -42,7 +43,6 @@
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',

'Operating System :: OS Independent',
'Operating System :: POSIX',
Expand Down
1 change: 1 addition & 0 deletions test-requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
flake8==3.7.5
3 changes: 3 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[flake8]
show-source = True
max-line-length = 100