Skip to content

Commit 09dda6c

Browse files
authored
Merge pull request #3 from ht-albert/test-travis
Test travis
2 parents 252ef7c + 7782e8a commit 09dda6c

File tree

6 files changed

+26
-6
lines changed

6 files changed

+26
-6
lines changed

.travis.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
language: python
2+
3+
matrix:
4+
include:
5+
- os: linux
6+
python: 2.7
7+
- os: linux
8+
python: 3.5
9+
- os: linux
10+
python: 3.6
11+
12+
install:
13+
- pip install -r test-requirements.txt
14+
15+
script:
16+
- flake8 connectsdk

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.14.0
1+
1.14.0

connectsdk/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def load_from_file(self, file):
7575
Set Config.api_url/.api_key/.products
7676
"""
7777
if not os.path.exists(file):
78-
raise NotADirectoryError('Not file `{}` on directory'.format(file))
78+
raise IOError('Not file `{}` on directory'.format(file))
7979

8080
with open(file) as config_file:
8181
configs = config_file.read()

setup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import os
44
from os.path import abspath, dirname, join
5-
65
from setuptools import setup
76

87
try: # for pip >= 10
@@ -11,7 +10,7 @@
1110
from pip.req import parse_requirements
1211

1312
install_reqs = parse_requirements(os.path.join(os.path.dirname(os.path.abspath(__file__)),
14-
'requirements.txt'), session=None)
13+
'requirements.txt'), session='None')
1514

1615
here = abspath(dirname(__file__))
1716

@@ -22,9 +21,11 @@
2221
name='connectsdk',
2322
author='Ingram Micro',
2423
version=VERSION,
24+
keywords='sdk connectsdk connect automation',
2525
packages=['connectsdk'],
2626
description='Connect Python SDK',
27-
long_description=open('README.md').read(),
27+
long_description='Documentation is described on '
28+
'`GitHub <https://github.com/ingrammicro/connect-python-sdk>`_',
2829
url='https://github.com/ingrammicro/connect-python-sdk',
2930
license='Apache Software License',
3031
include_package_data=True,
@@ -42,7 +43,6 @@
4243
'Programming Language :: Python :: 2.7',
4344
'Programming Language :: Python :: 3.5',
4445
'Programming Language :: Python :: 3.6',
45-
'Programming Language :: Python :: 3.7',
4646

4747
'Operating System :: OS Independent',
4848
'Operating System :: POSIX',

test-requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
flake8==3.7.5

tox.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[flake8]
2+
show-source = True
3+
max-line-length = 100

0 commit comments

Comments
 (0)