Skip to content

Commit 0f29e5c

Browse files
committed
Improve tests
- Test all versions of Python on Travis - Remove dependency on tox
1 parent 8477dbc commit 0f29e5c

6 files changed

Lines changed: 25 additions & 34 deletions

File tree

.travis.yml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,23 @@
1-
language: python
2-
3-
sudo: false
4-
51
notifications:
62
email: false
73

4+
language: python
5+
86
python:
7+
- '2.7'
8+
- '3.4'
99
- '3.5'
10+
- '3.6'
11+
12+
matrix:
13+
include:
14+
- python: '3.7'
15+
dist: xenial
16+
sudo: true
17+
1018
install:
11-
- pip install tox
19+
- pip install -r test-requirements.txt
20+
1221
script:
13-
- tox
22+
- python setup.py test
23+
- flake8 --ignore E125,E123,E129 --max-line-length 120 --exclude kanboard/__init__.py kanboard/ tests/

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2016-2018 Frederic Guillot
3+
Copyright (c) 2016-2019 Frederic Guillot
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Python API Client for Kanboard
55
.. image:: https://travis-ci.org/kanboard/python-api-client.svg?branch=master
66
:target: https://travis-ci.org/kanboard/python-api-client
77

8-
Kanboard API client.
8+
Client library for Kanboard API.
99

1010
- Author: Frédéric Guillot
1111
- License: MIT
@@ -18,7 +18,7 @@ Installation
1818
pip install kanboard
1919
2020
21-
This library is compatible with Python 2.7, 3.4, 3.5 and 3.6.
21+
This library is compatible with Python 2.7, 3.4, 3.5, 3.6, and 3.7.
2222

2323
Examples
2424
========

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@
2020
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2121
# THE SOFTWARE.
2222

23-
from distutils.core import setup
23+
try:
24+
from setuptools import setup
25+
except ImportError:
26+
from distutils.core import setup
2427

2528

2629
def readme():

test-requirements.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
flake8>=2.5.4,<2.6.0 # MIT
2-
mock>=2.0 # BSD
3-
nose # LGPL
4-
pep8==1.5.7 # MIT
1+
flake8
2+
mock

tox.ini

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)