From bf8560725a3beadcc9ba63ca096f4a285c96961d Mon Sep 17 00:00:00 2001 From: Rizda Dwi Prasetya Date: Fri, 26 Oct 2018 14:27:06 +0700 Subject: [PATCH] add travis-ci integration --- .travis.yml | 16 ++++++++++++++++ README.md | 2 ++ setup.py | 3 +-- tests/helpers.py | 4 ++-- 4 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..6011099 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,16 @@ +language: python +python: + # - "2.6" # deprecated version of python + - "2.7" + # - "3.3" # deprecated version of python not supported by pytest + - "3.4" + - "3.5" + - "3.6" + - "3.7-dev" +# command to install dependencies +install: + - pip install pytest + - pip install . +# command to run tests +script: + - pytest \ No newline at end of file diff --git a/README.md b/README.md index e02f3b6..14a1176 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ Midtrans Client - Python =============== +[![Build Status](https://travis-ci.org/rizdaprasetya/midtrans-python-client.svg?branch=master)](https://travis-ci.org/rizdaprasetya/midtrans-python-client) + Midtrans ❤️ Python! 🐍 This is the Official Python API client/library for Midtrans Payment API. Visit [https://midtrans.com](https://midtrans.com). More information about the product and see documentation at [http://docs.midtrans.com](http://docs.midtrans) for more technical details. diff --git a/setup.py b/setup.py index 410ec1f..d35fb3b 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ setuptools.setup( name="midtransclient", - version="1.0.1", + version="1.0.2", author="Rizda Prasetya", author_email="rizda.prasetya@midtrans.com", license='MIT', @@ -24,7 +24,6 @@ classifiers=[ 'Programming Language :: Python', 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.6', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', 'Programming Language :: Python :: 3.3', diff --git a/tests/helpers.py b/tests/helpers.py index 89f622e..a98855a 100644 --- a/tests/helpers.py +++ b/tests/helpers.py @@ -1,6 +1,6 @@ import sys def is_str(target_str): if sys.version_info[0] >= 3: - return type(target_str) is str - return target_str is basestring + return isinstance(target_str, str) + return isinstance(target_str, basestring) \ No newline at end of file